:root {
  --text: #1b2330;
  --muted: #4a5568;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --border: #cfd6df;
  --accent: #1d4f7a;
  --accent-dark: #143a5a;
  --focus: #b45309;
  --success: #1e6b3a;
  --error: #a61b1b;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 10;
}

.skip-link:focus { top: 0.5rem; color: #fff; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover { color: var(--accent); text-decoration: underline; }

.hero { padding: 4rem 0 3.5rem; }

.hero h1 { max-width: 22ch; }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 60ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button:disabled { opacity: 0.6; cursor: wait; }

.button-secondary { background: transparent; color: var(--accent); }
.button-secondary:hover { background: var(--bg-alt); color: var(--accent-dark); }

.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg);
}

.meta {
  margin: 0;
  font-weight: 600;
  color: var(--accent-dark);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  border-top: 3px solid var(--accent);
  padding-top: 1rem;
}

.steps li::before {
  content: "Step " counter(step);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }

.checklist {
  margin: 0;
  padding-left: 1.2rem;
}

.checklist li { margin-bottom: 0.4rem; }

form { margin-top: 1.5rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.field.full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.req { font-weight: 400; color: var(--muted); font-size: 0.9rem; }

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #7b8794;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea { resize: vertical; min-height: 8rem; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p { margin: 0; }

.notice { padding-top: 4rem; padding-bottom: 4rem; max-width: 640px; }

h4 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 0.5rem; }

.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.section-intro { color: var(--muted); max-width: 60ch; margin-top: -0.75rem; margin-bottom: 2rem; }

.tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
  margin-right: 0.4rem;
}

.example-head {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.example + .example {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.flow {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.flow-step {
  position: relative;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1rem 1.15rem;
}

.flow-step p { margin: 0; }

.flow-step .flow-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
}

.flow-step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: -1.85rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* Company flow: stacked rows so the department grid gets full width */
.flow.flow-stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
}

.flow-stack .flow-step:not(:last-child)::after {
  content: "\2193";
  top: auto;
  right: auto;
  bottom: -2.1rem;
  left: 50%;
  transform: translateX(-50%);
}

.flow-label-note { font-weight: 400; color: var(--muted); }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
}

.icon-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.35;
}

.dept-grid {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

/* Medium: 3 + 2, bottom pair centered under the top three */
@media (min-width: 640px) {
  .dept-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dept { grid-column: span 2; }
  .dept:nth-child(4) { grid-column: 2 / span 2; }
}

/* Wide: all five in one row */
@media (min-width: 1000px) {
  .dept-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dept,
  .dept:nth-child(4) { grid-column: auto; }
}

.dept {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-alt);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.dept-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.2rem;
}

.dept-name .icon { width: 1.1rem; height: 1.1rem; }

.dept-text { display: block; color: var(--muted); }

.flow-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin: -0.25rem 0 1.5rem;
  padding: 0.55rem 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg);
  font-weight: 600;
  color: var(--accent-dark);
}

.mock { margin: 0; max-width: 560px; }

.mock-doc {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  padding: 1.4rem 1.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  box-shadow: 0 2px 6px rgba(27, 35, 48, 0.08);
}

.mock-doc p { margin: 0; }

.mock-title { font-weight: 700; }

.mock-doc .mock-sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.2rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.mock-flags,
.mock-questions {
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.mock-flags li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
}

.flag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--error);
}

.flag-text { min-width: 0; overflow-wrap: break-word; }

.mock-doc .mock-label { font-weight: 600; margin-bottom: 0.25rem; }

.mock-questions { padding-left: 1.2rem; list-style: disc; }

.mock-foot { font-size: 0.875rem; color: var(--muted); }

.mock figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.compare-card p { margin: 0; }
.compare-after { border-color: var(--accent); border-width: 2px; }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card-primary {
  grid-column: 1 / -1;
  border: 2px solid var(--accent);
  padding: 2rem;
}

.card-primary h3 { font-size: 1.4rem; }
.card-primary p { max-width: 65ch; }
.card-primary p:first-of-type { margin-bottom: 0.4rem; }
.card-primary .meta { margin-bottom: 1rem; }
.card-primary .actions { margin: 1.25rem 0 0; }

.card-compact { padding: 1.25rem 1.5rem; }
.card-compact h3 { font-size: 1.05rem; }
.card-compact p:last-child { margin: 0; font-weight: 600; }

.track + .track { margin-top: 2.5rem; }
.track > h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.track-note { margin-top: 1rem; }

.steps h4 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.faq details:first-child { border-top: 1px solid var(--border); }

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details p { margin: 0.6rem 0 0; color: var(--muted); }

/* Desktop: company in/out items sit in a row, each label on one line */
@media (min-width: 801px) {
  .flow-stack .icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
  }
  .flow-stack .icon-list li { white-space: nowrap; }
}

/* Desktop: contractor columns never narrower than their longest label */
@media (min-width: 1000px) {
  .flow:not(.flow-stack) { grid-template-columns: repeat(3, minmax(max-content, 1fr)); }
  .flow:not(.flow-stack) .icon-list li { white-space: nowrap; }
}

@media (max-width: 800px) {
  .flow { grid-template-columns: 1fr; gap: 2.25rem; }
  .flow-step:not(:last-child)::after {
    content: "\2193";
    top: auto;
    right: auto;
    bottom: -2.1rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0; }
  .cards, .steps, .compare, .services { grid-template-columns: 1fr; }
  .card-primary { padding: 1.5rem; }
  .mock-doc { padding: 1rem; }
  .mock-flags li { grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: 0.5rem; }
}

@media (max-width: 480px) {
  .nav-secondary { display: none; }
  .site-header ul { flex-wrap: nowrap; gap: 1rem; }
  .site-header nav a { font-size: 0.95rem; }
}

/* ---- Hero F: light product hero with orchestration graph ---- */
@property --gb-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --lit {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.hero-f {
  --ink: #0b1220;
  --f-muted: #5b6475;
  --f-line: #e6e9f0;
  /* Single hero accent: a clearer blue in the site's #1d4f7a family. */
  --hx: #1d5fa8;
  --hx-rgb: 29, 95, 168;
  --hx-soft: #eef4fb;
  --hx-line: #c9daee;
  --hx-tint: #8db1db;
  /* The 16s story clock starts once the entrance has settled. */
  --st0: 1.5s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.7, 0.2, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  padding: clamp(2.25rem, 5vh, 4.25rem) 0 clamp(3rem, 7vh, 5rem);
  background: linear-gradient(180deg, #f8f9fb 0%, #fcfcfd 45%, #ffffff 100%);
  color: var(--ink);
}
.hero-f a:focus-visible {
  outline: 2px solid var(--hx);
  outline-offset: 3px;
}

/* Hairline grid with a dot at each crossing, vignetted at the edges. */
.hero-f-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 0.5px 0.5px, rgba(15, 23, 42, 0.16) 1px, transparent 1.6px),
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 30%, #000 20%, rgba(0, 0, 0, 0.45) 55%, transparent 82%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 30%, #000 20%, rgba(0, 0, 0, 0.45) 55%, transparent 82%);
}
.hero-f::before,
.hero-f::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 64rem;
  height: 44rem;
  border-radius: 50%;
  pointer-events: none;
}
.hero-f::before {
  left: 50%;
  top: -18rem;
  margin-left: -44rem;
  background: radial-gradient(closest-side, rgba(var(--hx-rgb), 0.06), rgba(var(--hx-rgb), 0) 100%);
  animation: aurora-a 24s ease-in-out infinite alternate;
}
.hero-f::after {
  left: 50%;
  top: -14rem;
  margin-left: -16rem;
  background: radial-gradient(closest-side, rgba(var(--hx-rgb), 0.045), rgba(var(--hx-rgb), 0) 100%);
  animation: aurora-b 30s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(14rem, 3rem, 0) scale(1.1); }
}
@keyframes aurora-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-16rem, 2rem, 0) scale(0.94); }
}

.hero-f-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-f-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  padding: 0.32rem 0.85rem 0.32rem 0.6rem;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), inset 0 1px 0 #fff;
  color: #39435a;
  font-size: 0.85rem;
  font-weight: 550;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.eyebrow-pill:hover {
  color: var(--ink);
  border-color: var(--hx-line);
  box-shadow: 0 2px 12px rgba(var(--hx-rgb), 0.12), inset 0 1px 0 #fff;
}
.eyebrow-pill-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hx);
}
.eyebrow-pill-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--hx);
  animation: dot-ping 2.4s ease-out infinite;
}
@keyframes dot-ping {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
.eyebrow-pill-arrow {
  color: #8a93a8;
  transition: transform 0.25s var(--ease-soft), color 0.25s;
}
.eyebrow-pill:hover .eyebrow-pill-arrow { transform: translateX(3px); color: var(--hx); }

.hero-f h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-rendering: optimizeLegibility;
}
.hw { display: inline-block; }
/* Near-black letters; a single accent band sweeps across once it lands. */
.hw-sheen {
  color: var(--ink);
  background-image: linear-gradient(100deg,
    var(--ink) 0%, var(--ink) 41%,
    var(--hx) 46.5%, var(--hx-tint) 50%, var(--hx) 53.5%,
    var(--ink) 59%, var(--ink) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-f .actions {
  justify-content: center;
  margin: 1.85rem 0 0;
}
.hero-f .button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 0.72rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.98rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(15, 23, 42, 0.16),
    0 8px 18px -8px rgba(15, 23, 42, 0.45);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease-soft);
}
.hero-f .button:hover {
  background: #1a2333;
  border-color: #1a2333;
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(15, 23, 42, 0.16),
    0 12px 24px -10px rgba(15, 23, 42, 0.5);
}
/* Primary CTA: a soft white sheen travels across on hover (and once on entrance). */
.button-shine::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  background: linear-gradient(105deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.1) 42%,
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 255, 255, 0.1) 58%,
    rgba(255, 255, 255, 0) 70%);
  transform: translateX(-110%);
  pointer-events: none;
}
.button-shine:hover::after {
  transform: translateX(110%);
  transition: transform 0.85s var(--ease-soft);
}
.hero-f .button-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(11, 18, 32, 0.2);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.hero-f .button-secondary:hover {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 14px -8px rgba(15, 23, 42, 0.2);
}

.hero-f-stage {
  position: relative;
  z-index: 2;
  width: calc(100% - 2.5rem);
  max-width: 1360px;
  margin: clamp(2rem, 5vh, 3.25rem) auto 0;
  container-type: inline-size;
}
/* Showroom light behind the window: a soft pool of the accent, slowly drifting. */
.hero-f-spot {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: -14%;
  width: 1100px;
  height: 125%;
  margin-left: -550px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 34% 30% at 50% 36%, rgba(var(--hx-rgb), 0.13), rgba(var(--hx-rgb), 0) 100%),
    radial-gradient(ellipse 50% 46% at 50% 50%, rgba(var(--hx-rgb), 0.075), rgba(var(--hx-rgb), 0) 100%);
  pointer-events: none;
  animation: spot-drift 18s ease-in-out infinite alternate;
}
@keyframes spot-drift {
  0% { transform: translate3d(-5%, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -3%, 0) scale(1.06); }
  100% { transform: translate3d(5%, 1%, 0) scale(0.98); }
}
.hero-f-tilt {
  position: relative;
  z-index: 1;
  transform-origin: 50% 100%;
}
.hero-f-par {
  position: relative;
  transform-origin: 50% 55%;
}
.hero-f-par.is-par {
  transform: perspective(1800px) rotateX(var(--prx, 0deg)) rotateY(var(--pry, 0deg));
  will-change: transform;
}

/* Orchestration graph. viewBox is 1360 wide; window top sits at y=300. */
.orch {
  display: none;
  position: absolute;
  z-index: 2;
  left: 0;
  top: -22.0588cqw;
  width: 100%;
  height: auto;
  aspect-ratio: 1360 / 760;
  overflow: visible;
  pointer-events: none;
}

/* Compact graph on narrow screens: Inbox, Team bot, Permits in a row above the window. */
.orch-m {
  display: block;
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 26rem;
  height: auto;
  aspect-ratio: 390 / 178;
  margin: 0 auto 0;
}
.orch .link {
  fill: none;
  stroke: #d8dfe8;
  stroke-width: 1.5;
  stroke-dasharray: 100 100;
}
.orch .flow {
  fill: none;
  stroke: var(--hx);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.1 11;
  opacity: 0.32;
  animation: flow-march 1.1s linear infinite;
}
@keyframes flow-march {
  to { stroke-dashoffset: -11.1; }
}
/* Light pulses: a bright head with a longer, fainter trail behind it. */
.orch .trail,
.orch .pulse {
  fill: none;
  stroke: var(--hx);
  stroke-linecap: round;
  opacity: 0;
  animation: 16s cubic-bezier(0.45, 0, 0.25, 1) infinite both;
}
.orch .trail {
  stroke-width: 2.6;
  stroke-dasharray: 46 400;
  stroke-dashoffset: 46;
  animation-name: trail-run;
}
.orch .pulse {
  stroke-width: 4.5;
  stroke-dasharray: 9 400;
  stroke-dashoffset: 9;
  animation-name: pulse-run;
}
.orch-pulses { filter: drop-shadow(0 0 3px rgba(var(--hx-rgb), 0.6)); }
@keyframes pulse-run {
  0% { stroke-dashoffset: 9; opacity: 0; }
  0.8% { opacity: 1; }
  8% { opacity: 1; }
  9.5%, 100% { stroke-dashoffset: -137; opacity: 0; }
}
@keyframes trail-run {
  0% { stroke-dashoffset: 46; opacity: 0; }
  0.8% { opacity: 0.45; }
  8% { opacity: 0.45; }
  9.5%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
.orch .p-inbox { animation-delay: calc(var(--st0) + 0.16s); }
.orch .p-permits { animation-delay: calc(var(--st0) + 0.45s); }
.orch .p-bot { animation-delay: calc(var(--st0) + 2.24s); }
.orch .p-approve { animation-delay: calc(var(--st0) + 3.68s); }
.orch .p-cal { animation-delay: calc(var(--st0) + 7.2s); }
.orch .p-crew { animation-delay: calc(var(--st0) + 7.3s); }
.orch .p-report { animation-delay: calc(var(--st0) + 7.4s); }

.onode-halo,
.onode-aura,
.onode-ping,
.onode-orbit,
.onode-ring {
  transform-box: fill-box;
  transform-origin: center;
}
.onode-halo { animation: breathe 4.4s ease-in-out infinite; }
.n-permits .onode-halo { animation-delay: -1.1s; }
.n-cal .onode-halo { animation-delay: -2.3s; }
.n-crew .onode-halo { animation-delay: -0.7s; }
.n-report .onode-halo { animation-delay: -3.1s; }
.n-approve .onode-halo { animation-delay: -1.9s; }
.n-bot .onode-halo { animation-duration: 3.2s; }
@keyframes breathe {
  0%, 100% { opacity: 0.35; transform: scale(0.84); }
  50% { opacity: 0.85; transform: scale(1.1); }
}
.onode-core {
  fill: #fff;
  stroke: var(--hx-line);
  stroke-width: 1.2;
}
/* Lit state, driven by --lit (0..1) in sync with the chat. */
.onode-fill {
  fill: var(--hx);
  opacity: var(--lit);
}
.onode-ring {
  fill: none;
  stroke: rgba(var(--hx-rgb), 0.5);
  stroke-width: 1.4;
  opacity: var(--lit);
  transform: scale(calc(0.8 + 0.2 * var(--lit)));
}
.onode-icon {
  fill: none;
  stroke: color-mix(in srgb, #fff calc(var(--lit) * 100%), var(--hx));
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.onode-label {
  fill: color-mix(in srgb, var(--ink) calc(var(--lit) * 100%), #5d6780);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-anchor: middle;
}
.onode-hub .onode-core { fill: var(--hx); stroke: none; }
.onode-hub .onode-fill { display: none; }
.onode-hub .onode-icon { stroke: #fff; }
.onode-hub .onode-label { fill: var(--hx); font-weight: 700; }
.onode-orbit {
  fill: none;
  stroke: rgba(var(--hx-rgb), 0.45);
  stroke-width: 1.3;
  stroke-dasharray: 3 7;
  animation: spin 12s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.onode-port .onode-core { stroke: var(--hx); stroke-width: 2.5; }

.n-inbox, .n-permits, .n-bot, .n-approve, .n-cal, .n-crew, .n-report {
  animation: 16s ease-in-out infinite both;
  animation-delay: var(--st0);
}
.n-inbox, .n-permits { animation-name: lit-src; }
.n-permits { animation-delay: calc(var(--st0) + 0.3s); }
.n-bot { animation-name: lit-bot; }
.n-approve { animation-name: lit-gate; }
.n-cal, .n-crew, .n-report { animation-name: lit-out; }
.n-crew { animation-delay: calc(var(--st0) + 0.12s); }
.n-report { animation-delay: calc(var(--st0) + 0.24s); }
@keyframes lit-src {
  0% { --lit: 0; }
  2%, 21% { --lit: 1; }
  26%, 100% { --lit: 0; }
}
@keyframes lit-bot {
  0%, 7.5% { --lit: 0; }
  10%, 23% { --lit: 1; }
  27%, 100% { --lit: 0; }
}
@keyframes lit-gate {
  0%, 39.5% { --lit: 0; }
  41.5%, 57% { --lit: 1; }
  62%, 100% { --lit: 0; }
}
@keyframes lit-out {
  0%, 53.5% { --lit: 0; }
  56.5%, 86% { --lit: 1; }
  92%, 100% { --lit: 0; }
}

.onode-ping {
  fill: none;
  stroke: var(--hx);
  stroke-width: 1.6;
  opacity: 0;
  animation: ping 16s ease-out infinite both;
}
@keyframes ping {
  0% { opacity: 0; transform: scale(1); }
  0.4% { opacity: 0.9; transform: scale(1); }
  7% { opacity: 0; transform: scale(2.3); }
  100% { opacity: 0; transform: scale(2.3); }
}
.n-inbox .onode-ping { animation-delay: var(--st0); }
.n-permits .onode-ping { animation-delay: calc(var(--st0) + 0.3s); }
.n-bot .onode-ping { animation-delay: calc(var(--st0) + 1.44s); }
.n-port-in .onode-ping { animation-delay: calc(var(--st0) + 3.5s); }
.n-port-out .onode-ping { animation-delay: calc(var(--st0) + 3.6s); }
.n-approve .onode-ping { animation-delay: calc(var(--st0) + 7.04s); }
.n-cal .onode-ping { animation-delay: calc(var(--st0) + 8.4s); }
.n-crew .onode-ping { animation-delay: calc(var(--st0) + 8.5s); }
.n-report .onode-ping { animation-delay: calc(var(--st0) + 8.6s); }

.onode-aura { opacity: 0; animation: 16s ease-in-out infinite both; animation-delay: var(--st0); }
.n-bot .onode-aura { animation-name: aura-think; }
.aura-wait { animation-name: aura-wait; }
.aura-ok { animation-name: aura-ok; }
@keyframes aura-think {
  0%, 7% { opacity: 0; transform: scale(0.8); }
  11%, 21% { opacity: 1; transform: scale(1.12); }
  16% { opacity: 0.75; transform: scale(1); }
  28%, 100% { opacity: 0; transform: scale(0.8); }
}
@keyframes aura-wait {
  0%, 23% { opacity: 0; transform: scale(0.85); }
  27%, 35% { opacity: 1; transform: scale(1.05); }
  31%, 39% { opacity: 0.6; transform: scale(0.95); }
  42% { opacity: 1; transform: scale(1.05); }
  45%, 100% { opacity: 0; transform: scale(0.85); }
}
@keyframes aura-ok {
  0%, 43% { opacity: 0; transform: scale(0.8); }
  45% { opacity: 1; transform: scale(1.2); }
  60%, 86% { opacity: 0.6; transform: scale(1); }
  93%, 100% { opacity: 0; transform: scale(0.9); }
}

/* App window */
.gb-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 14px;
}
/* Thin light travelling around the window edge: accent arc with a white hot spot. */
.gb-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -1px;
  padding: 1.5px;
  border-radius: 15px;
  background:
    conic-gradient(from var(--gb-angle),
      rgba(var(--hx-rgb), 0) 0deg,
      rgba(var(--hx-rgb), 0.18) 60deg,
      rgba(var(--hx-rgb), 0) 120deg,
      rgba(var(--hx-rgb), 0) 220deg,
      rgba(var(--hx-rgb), 0.5) 295deg,
      rgba(var(--hx-rgb), 0.95) 336deg,
      rgba(255, 255, 255, 1) 349deg,
      rgba(var(--hx-rgb), 0) 360deg),
    linear-gradient(rgba(var(--hx-rgb), 0.1), rgba(var(--hx-rgb), 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: gb-orbit 6.5s linear infinite;
}
/* Faint accent glow pooled under the window (gradient only, no blur filter). */
.gb-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 6%;
  right: 6%;
  top: 18%;
  bottom: -9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--hx-rgb), 0.16), rgba(var(--hx-rgb), 0));
  pointer-events: none;
}
@keyframes gb-orbit {
  to { --gb-angle: 360deg; }
}
.gb-window {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 16px -8px rgba(15, 23, 42, 0.1),
    0 24px 48px -18px rgba(15, 23, 42, 0.18),
    0 60px 110px -40px rgba(var(--hx-rgb), 0.32),
    0 0 0 6px rgba(var(--hx-rgb), 0.03);
  color: #1f2937;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
/* Hairline of accent light along the top edge. */
.gb-window::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--hx-rgb), 0), rgba(var(--hx-rgb), 0.55) 50%, rgba(var(--hx-rgb), 0));
  pointer-events: none;
}
.gb-window p { margin: 0; }
.gb-window ul,
.gb-window ol { list-style: none; margin: 0; padding: 0; }

.gb-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #e8ebf0;
  background: linear-gradient(180deg, #fbfbfc, #f3f5f8);
}
.gb-lights { display: flex; gap: 8px; }
.gb-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.14);
}
.gb-lights span:nth-child(2) { background: #febc2e; }
.gb-lights span:nth-child(3) { background: #28c840; }
.gb-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5563;
}
.gb-tag {
  justify-self: end;
  padding: 1px 8px;
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  background: var(--hx-soft);
  color: var(--hx);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gb-body {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr) 208px;
  height: 31rem;
}

.gb-side {
  padding: 12px 10px;
  border-right: 1px solid #eceef2;
  background: #f8f9fb;
}
.gb-workspace {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid #eceef2;
  font-size: 12.5px;
  font-weight: 650;
  color: #111827;
}
.gb-ws-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1f2937, #475569);
}
.gb-side-kicker {
  margin: 12px 6px 6px;
  color: #9aa3b2;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gb-pane > .gb-side-kicker:first-child { margin-top: 0; }
.gb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #4b5563;
  font-weight: 500;
}
.gb-list li.is-active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(var(--hx-rgb), 0.28), inset 2px 0 0 var(--hx);
  color: #111827;
  font-weight: 600;
}
.gb-live {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hx);
  box-shadow: 0 0 0 3px rgba(var(--hx-rgb), 0.18);
}

.gb-av {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}
.gb-av-lg { width: 30px; height: 30px; }
.av-permits {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 45%),
    conic-gradient(from 210deg, #4f7cff, #8b5cf6, #ec4899, #38bdf8, #4f7cff);
}
.av-estimating {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 45%),
    conic-gradient(from 120deg, #f59e0b, #f43f5e, #fb923c, #f59e0b);
}
.av-ops {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 45%),
    conic-gradient(from 40deg, #10b981, #06b6d4, #84cc16, #10b981);
}
.av-person { background: linear-gradient(135deg, #f9a8d4, #a78bfa); }
.av-inbox {
  background: #eef1f6;
  box-shadow: inset 0 0 0 1px #e1e5ec;
  color: #64748b;
}
.gb-ico {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gb-side .is-active .av-permits,
.gb-thread-head .av-permits { animation: spin 9s linear infinite; }

.gb-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gb-thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #eef0f3;
}
.gb-thread-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gb-thread-title strong { font-size: 13.5px; color: #111827; }
.gb-thread-title > span { color: #6b7280; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-badge {
  display: inline-block;
  margin: 0 2px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--hx-soft);
  color: var(--hx);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}

.gb-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 12px 16px 10px;
  overflow: hidden;
}
.gb-msgs .gb-av { width: 26px; height: 26px; }
.gb-msg { display: flex; align-items: flex-start; gap: 10px; }
.gb-msg-body { min-width: 0; }
.gb-meta {
  margin-bottom: 3px !important;
  color: #8a93a3;
  font-size: 11.5px;
}
.gb-meta strong { margin-right: 3px; color: #111827; font-weight: 650; }
.gb-bubble {
  max-width: 29rem;
  padding: 8px 11px;
  border-radius: 4px 12px 12px 12px;
  background: #f3f4f7;
  color: #1f2937;
}
.gb-email {
  border: 1px solid #e6e9ef;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gb-bubble-bot {
  border: 1px solid #dde7f3;
  background: #f5f8fc;
}
.gb-msg-out { justify-content: flex-end; }
.gb-msg-out .gb-meta { text-align: right; }
.gb-msg-out .gb-meta strong { margin: 0 0 0 3px; }
.gb-bubble-out {
  border-radius: 12px 4px 12px 12px;
  background: var(--hx);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(var(--hx-rgb), 0.5);
}

.gb-slot { display: grid; }
.gb-slot > * { grid-area: 1 / 1; }
.gb-typing {
  display: inline-flex;
  gap: 4px;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 4px 12px 12px 12px;
  background: #f1f5fa;
}
.gb-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--hx-rgb), 0.55);
  animation: typing-dot 1s ease-in-out infinite;
}
.gb-typing span:nth-child(2) { animation-delay: 0.15s; }
.gb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.gb-chips { display: grid; justify-content: start; margin-top: 8px; }
.gb-chip-group { grid-area: 1 / 1; display: flex; gap: 6px; }
.gb-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #dfe3ea;
  border-radius: 7px;
  background: #fff;
  color: #374151;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.gb-chip-primary {
  border-color: transparent;
  background: var(--hx);
  color: #fff;
  box-shadow: 0 2px 6px -2px rgba(var(--hx-rgb), 0.6);
}
.gb-chip-ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.gb-cursor {
  position: absolute;
  left: 55%;
  top: 55%;
  width: 16px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M1 1v15l4-4 3 6.5 2.4-1.1-3-6.4H13z' fill='%23111827' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  pointer-events: none;
}

.gb-report {
  max-width: 29rem;
  padding: 10px 12px;
  border: 1px solid #e3e8ef;
  border-radius: 4px 12px 12px 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gb-report-kicker {
  color: var(--hx);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gb-report-title { margin: 1px 0 5px !important; color: #111827; font-size: 13.5px; font-weight: 650; }
.gb-report ul { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #3f4a5a; }
.gb-report li { display: flex; align-items: center; gap: 6px; }
.gb-report li::before,
.gb-step-check {
  background: var(--hx) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.gb-report li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.gb-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 14px;
  padding: 6px 6px 6px 8px;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gb-composer-plus {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f3f6;
  color: #6b7280;
  font-weight: 600;
  line-height: 1;
}
.gb-composer-field { flex: 1; color: #9aa3b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-composer-send {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 12.5v-9M4 7.5l4-4 4 4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat,
    var(--hx);
}

.gb-pane {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-left: 1px solid #eceef2;
  background: #fbfcfd;
}
.gb-pane-title { margin: 0 6px 10px !important; color: #111827; font-size: 13.5px; font-weight: 650; }
.gb-steps { margin: 0 6px !important; }
.gb-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  color: #374151;
  font-size: 12.5px;
}
.gb-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: calc(50% + 10px);
  height: calc(100% - 20px);
  width: 1px;
  background: #e3e7ee;
}
.gb-step-dot {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #cfd5df;
  border-radius: 50%;
  background: #fff;
}
.gb-step-check {
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
}
.gb-status { display: grid; margin-left: auto; }
.gb-pill {
  grid-area: 1 / 1;
  justify-self: end;
  padding: 1px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
}
.gb-pill-idle { background: #f1f3f6; color: #6b7280; }
.gb-pill-wait { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.gb-pill-ok { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.gb-pane-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eceef2;
}
.gb-pane-foot .gb-side-kicker { margin-top: 0; }
.gb-pane-person { display: flex; align-items: center; gap: 8px; margin: 0 6px !important; font-weight: 550; }

/* Story loop, 16s. Graph pulses/pings above use delays on the same clock. */
.st-in, .st-type, .st-bot, .st-wait, .st-ok, .st-out, .st-report, .st-cursor,
.st-done-a, .st-done-b, .st-done-c, .st-queued, .st-waiting, .st-approved {
  animation-duration: 16s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-delay: var(--st0);
}
.st-in { animation-name: st-in; }
.st-type { animation-name: st-type; }
.st-bot { animation-name: st-bot; }
.st-wait { animation-name: st-wait; }
.st-ok { animation-name: st-ok; }
.st-out { animation-name: st-out; }
.st-report { animation-name: st-report; }
.st-cursor { animation-name: st-cursor; }
.gb-press { animation: st-press 16s var(--st0) ease infinite both; }
.st-done-a { animation-name: st-done-a; }
.st-done-b { animation-name: st-done-b; }
.st-done-c { animation-name: st-done-c; }
.st-queued { animation-name: st-queued; }
.st-waiting { animation-name: st-waiting; }
.st-approved { animation-name: st-approved; }

@keyframes st-in {
  0%, 92% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes st-type {
  0%, 8% { opacity: 0; transform: translateY(6px); }
  10%, 20% { opacity: 1; transform: none; }
  22%, 100% { opacity: 0; transform: none; }
}
@keyframes st-bot {
  0%, 20.5% { opacity: 0; transform: translateY(10px); }
  23.5%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes st-wait {
  0%, 43% { opacity: 1; transform: none; }
  45%, 100% { opacity: 0; transform: scale(0.96); }
}
@keyframes st-ok {
  0%, 43.5% { opacity: 0; transform: scale(0.85); }
  45.5% { opacity: 1; transform: scale(1.06); }
  47%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes st-cursor {
  0%, 29% { opacity: 0; transform: translate(70px, 38px); }
  31% { opacity: 1; transform: translate(70px, 38px); }
  38% { opacity: 1; transform: translate(0, 0) scale(1); }
  40% { opacity: 1; transform: translate(0, 0) scale(0.85); }
  42% { opacity: 1; transform: translate(0, 0) scale(1); }
  46%, 100% { opacity: 0; transform: translate(8px, 10px); }
}
@keyframes st-press {
  0%, 39% { transform: none; filter: none; }
  40% { transform: scale(0.94); filter: brightness(0.88); }
  42%, 100% { transform: none; filter: none; }
}
@keyframes st-out {
  0%, 46.5% { opacity: 0; transform: translateY(10px); }
  49.5%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes st-report {
  0%, 55% { opacity: 0; transform: translateY(10px) scale(0.98); }
  58.5%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes st-done-a {
  0%, 3% { opacity: 0; transform: scale(0.5); }
  5%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes st-done-b {
  0%, 21% { opacity: 0; transform: scale(0.5); }
  23%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes st-done-c {
  0%, 56% { opacity: 0; transform: scale(0.5); }
  58%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes st-queued {
  0%, 22% { opacity: 1; }
  23.5%, 92% { opacity: 0; }
  95%, 100% { opacity: 1; }
}
@keyframes st-waiting {
  0%, 22% { opacity: 0; }
  23.5%, 43.5% { opacity: 1; }
  45%, 100% { opacity: 0; }
}
@keyframes st-approved {
  0%, 43.5% { opacity: 0; transform: scale(0.85); }
  45.5%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}

@media (min-width: 1100px) {
  .orch { display: block; }
  .orch-m { display: none; }
  .gb-frame { width: 66cqw; max-width: none; }
}

@media (max-width: 960px) {
  .gb-body { grid-template-columns: 172px minmax(0, 1fr); }
  .gb-pane { display: none; }
}

@media (max-width: 640px) {
  .hero-f { --st0: 1s; min-height: 0; padding: 2.25rem 0 2.5rem; }
  .eyebrow-pill { margin-bottom: 1.1rem; font-size: 0.8rem; }
  .hero-f h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .hero-f .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 22rem; }
  .hero-f .button { text-align: center; }
  .hero-f-stage { width: calc(100% - 1.5rem); margin-top: 2.25rem; }
  .hero-f-spot { top: -8%; height: 110%; width: 760px; margin-left: -380px; }
  .hero-f-bg { background-size: 44px 44px; }
  .gb-window { font-size: 12.5px; border-radius: 12px; }
  .gb-frame { border-radius: 12px; }
  .gb-frame::before { border-radius: 13px; }
  .gb-chrome { height: 34px; padding: 0 10px; }
  .gb-lights { gap: 6px; }
  .gb-lights span { width: 10px; height: 10px; }
  .gb-body { grid-template-columns: 52px minmax(0, 1fr); height: auto; min-height: 27rem; }
  .gb-side { padding: 10px 0; }
  .gb-side-text,
  .gb-side .gb-side-kicker,
  .gb-live { display: none; }
  .gb-workspace { justify-content: center; padding: 2px 0 10px; margin: 0 8px 8px; }
  .gb-list li { justify-content: center; padding: 6px 0; margin: 0 6px 4px; }
  .gb-list + .gb-side-kicker + .gb-list { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eceef2; }
  .gb-side .gb-av { width: 26px; height: 26px; }
  .gb-thread-head { padding: 9px 12px; }
  .gb-msgs { padding: 12px 12px 10px; gap: 11px; }
  .gb-msgs .gb-av { width: 24px; height: 24px; }
  .gb-msg { gap: 8px; }
  .gb-composer { margin: 0 12px 12px; }
}

/* ---- Entrance: header, eyebrow, headline words, CTAs, then the stage. ---- */
@keyframes hx-rise {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hx-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hx-word {
  from { opacity: 0; filter: blur(6px); transform: translate3d(0, 0.22em, 0); }
  60% { filter: blur(0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}
@keyframes hx-sheen {
  0% { background-position: 100% 0; }
  16%, 100% { background-position: 0% 0; }
}
@keyframes hx-shine {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}
@keyframes hx-tilt {
  0% { opacity: 0; transform: perspective(1600px) translate3d(0, 34px, 0) rotateX(11deg) rotateY(-2.5deg) scale(0.965); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: perspective(1600px) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1); }
}
@keyframes hx-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header { animation: hx-rise 0.6s var(--ease-soft, ease-out) backwards; }
  .hero-f .eyebrow-pill { animation: hx-rise 0.7s 0.1s var(--ease-soft) backwards; }
  .hero-f .hw { animation: hx-word 0.8s var(--ease-soft) backwards; }
  .hero-f .hw:nth-child(1) { animation-delay: 0.2s; }
  .hero-f .hw:nth-child(2) { animation-delay: 0.28s; }
  .hero-f .hw:nth-child(3) { animation-delay: 0.36s; }
  .hero-f .hw:nth-child(4) { animation-delay: 0.42s; }
  .hero-f .hw:nth-child(5) { animation-delay: 0.48s; }
  /* After "orchestration" lands, one accent band sweeps it; repeats rarely and quietly. */
  .hw-sheen { animation: hx-sheen 11s 1.05s cubic-bezier(0.45, 0, 0.3, 1) infinite backwards; }
  .hero-f .actions { animation: hx-rise 0.7s 0.62s var(--ease-soft) backwards; }
  .button-shine::after { animation: hx-shine 1.1s 1.55s var(--ease-soft) backwards; }
  .hero-f-tilt { animation: hx-rise 0.9s 0.7s var(--ease-out) backwards; }
  .hero-f-spot { animation: spot-drift 18s ease-in-out infinite alternate, hx-fade 1.4s 0.6s ease-out backwards; }
  .gb-frame::before { animation: gb-orbit 6.5s linear infinite, hx-fade 1s 1.3s ease-out backwards; }

  /* Graph: nodes appear, edges draw in, then the flows start. */
  .orch-nodes { animation: hx-fade 0.7s 1s ease-out backwards; }
  .orch .link { animation: hx-draw 0.6s cubic-bezier(0.65, 0, 0.35, 1) backwards; }
  .orch .link:nth-child(1) { animation-delay: 1.05s; }
  .orch .link:nth-child(2) { animation-delay: 1.1s; }
  .orch .link:nth-child(3) { animation-delay: 1.25s; }
  .orch .link:nth-child(4) { animation-delay: 1.15s; }
  .orch .link:nth-child(5) { animation-delay: 1.3s; }
  .orch .link:nth-child(6) { animation-delay: 1.35s; }
  .orch .link:nth-child(7) { animation-delay: 1.4s; }
  .orch-flows { animation: hx-fade 0.8s 1.8s ease-out backwards; }
}

/* Desktop: the stage starts tilted back in perspective and eases flat. */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .hero-f-tilt { animation: hx-tilt 1.25s 0.55s var(--ease-out) backwards; }
}

/* Mobile: simpler entrance, copy then window. */
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .hero-f .hw { animation: none; }
  .hero-f h1 { animation: hx-rise 0.7s 0.18s var(--ease-soft) backwards; }
  .hero-f .actions { animation-delay: 0.32s; }
  .hero-f-tilt { animation: hx-rise 0.8s 0.5s var(--ease-out) backwards; }
  .hw-sheen { animation-delay: 1s; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-f::before,
  .hero-f::after,
  .hero-f-spot,
  .eyebrow-pill-dot::after,
  .gb-frame,
  .gb-frame::before,
  .orch,
  .orch *,
  .gb-av,
  .gb-typing span { animation: none !important; }
  .button-shine::after { display: none; }
  .hero-f-par.is-par { transform: none; }
  .orch .flow,
  .orch .pulse,
  .orch .trail,
  .orch .onode-ping,
  .gb-frame::before,
  .orch .onode-aura { display: none; }
  .orch .aura-ok { display: inline; opacity: 0.6; }
  .st-in, .st-bot, .st-ok, .st-out, .st-report,
  .st-done-a, .st-done-b, .st-done-c, .st-approved,
  .gb-press {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .st-type, .st-wait, .st-cursor, .st-queued, .st-waiting {
    animation: none;
    opacity: 0;
    visibility: hidden;
  }
}
