/* Calsco Group brand system. All colors are tokens on :root; no hex elsewhere. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  --navy-900: #0F1229;
  --navy-800: #1A1F3C;
  --navy-500: #5B5F78;
  --navy-300: #A9AEC4;
  --gold-300: #E3C777;
  --gold-500: #C9A84C;
  --gold-700: #9A7727;
  --gold-800: #7A5C16;
  --cream-50: #F7F4EE;
  --cream-100: #EFE9DA;
  --black-950: #080B18;
  --hair-light: #D8D0BA;
  --hair-dark: #2E3454;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --r-input: 2px;
  --r-ui: 6px;
  --r-modal: 14px;
  --section-pad: 96px;
  --gutter: 24px;
  --wrap: 1200px;

  /* Light ground defaults */
  --ground: var(--cream-50);
  --ground-alt: var(--cream-100);
  --ink: var(--navy-900);
  --muted: var(--navy-500);
  --gold-text: var(--gold-800);
  --gold-shape: var(--gold-700);
  --hair: var(--hair-light);
  --btn-bg: var(--navy-900);
  --btn-ink: var(--cream-50);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--gold-500) 25%, transparent);
}
a,
button,
summary {
  touch-action: manipulation;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-shape);
  outline-offset: 3px;
}
.ground-dark a:focus-visible,
.ground-dark button:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--gold-500);
}
:focus:not(:focus-visible) {
  outline: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
p {
  margin: 0 0 16px;
}
p:last-child {
  margin-bottom: 0;
}
address {
  font-style: normal;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Type scale */
h1,
h2,
h3,
.display-xl,
.display-lg,
.display-md,
.display-sm {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 20px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
.display-xl {
  font-size: 96px;
  line-height: 92px;
}
.display-lg,
h1 {
  font-size: 64px;
  line-height: 66px;
}
.display-md,
h2 {
  font-size: 44px;
  line-height: 48px;
}
.display-sm,
h3 {
  font-size: 32px;
  line-height: 38px;
}

.lead {
  font-size: 18px;
  line-height: 28px;
}
.small,
small {
  font-size: 14px;
  line-height: 22px;
}
.muted {
  color: var(--muted);
}
.measure {
  max-width: 640px;
}
.measure-wide {
  max-width: 820px;
}
strong,
b {
  font-weight: 500;
}

@media (max-width: 760px) {
  .display-xl {
    font-size: 52px;
    line-height: 54px;
  }
  .display-lg,
  h1 {
    font-size: 42px;
    line-height: 46px;
  }
  .display-md,
  h2 {
    font-size: 32px;
    line-height: 36px;
  }
  .display-sm,
  h3 {
    font-size: 26px;
    line-height: 32px;
  }
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--hair);
}
.section:first-child {
  border-top: 0;
}
.section-body {
  margin-top: 40px;
}
.section-body-sm {
  margin-top: 24px;
}
.section > .wrap > h2:first-child,
.section > .wrap > h1:first-child {
  margin-top: 0;
}
.ground-light {
  --ground: var(--cream-50);
  background: var(--cream-50);
}
.ground-alt {
  --ground: var(--cream-100);
  background: var(--cream-100);
}
.ground-dark,
.site-footer {
  --ground: var(--navy-900);
  --ground-alt: var(--navy-800);
  --ink: var(--cream-50);
  --muted: var(--navy-300);
  --gold-text: var(--gold-500);
  --gold-shape: var(--gold-500);
  --hair: var(--hair-dark);
  --btn-bg: var(--gold-500);
  --btn-ink: var(--navy-900);
  background: var(--navy-900);
  color: var(--cream-50);
}
.ground-dark + .ground-dark {
  border-top-color: var(--hair-dark);
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  :root {
    --section-pad: 64px;
    --gutter: 16px;
  }
  .grid-3,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* Buttons and links */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  padding: 14px 24px;
  border-radius: var(--r-ui);
  text-decoration: none;
  border: 1px solid transparent;
  text-align: center;
  transition:
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-color: var(--btn-bg);
}
.btn-primary:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.ground-dark .btn-primary:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--navy-500);
}
.btn-secondary:hover {
  background: var(--ground-alt);
}
.btn-nav {
  padding: 10px 16px;
  font-size: 14px;
  line-height: 20px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.text-link {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold-shape);
}
.text-link:hover {
  color: var(--gold-text);
}
.text-link-gap {
  display: inline-block;
  margin-top: 24px;
}
.inline-link,
.contact-list a {
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-shape);
}
.inline-link:hover,
.contact-list a:hover {
  color: var(--gold-text);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  background: var(--navy-900);
  color: var(--cream-50);
  padding: 12px 16px;
  border-radius: var(--r-ui);
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

/* Header: sticky. --header-h is its rendered height (80px row + 1px border); scroll-padding keeps
   anchor jumps (/contact/#book) and keyboard focus from landing underneath it. */
:root {
  --header-h: 81px;
}
html {
  scroll-padding-top: var(--header-h);
}
.site-header {
  background: var(--cream-50);
  border-bottom: 1px solid var(--hair-light);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.logo-svg {
  height: 48px;
  width: auto;
}
.logo-footer .logo-svg {
  height: 44px;
}
.site-header {
  --logo-mark: var(--gold-700);
  --logo-ink: var(--navy-900);
}
.site-footer {
  --logo-mark: var(--gold-500);
  --logo-ink: var(--cream-50);
}
.wordmark {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 32px;
  letter-spacing: 0.01em;
}
.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: var(--navy-500);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--navy-900);
  border-bottom-color: var(--gold-700);
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--navy-500);
  border-radius: var(--r-ui);
  padding: 10px 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--navy-900);
  cursor: pointer;
}
.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--cream-100);
  border-color: var(--navy-900);
}
.menu-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream-50);
    border-bottom: 1px solid var(--hair-light);
    padding: 16px var(--gutter) 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    /* The header stays put, so a tall open menu scrolls inside itself, not the page behind it. */
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav ul li a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--hair-light);
    font-size: 17px;
  }
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--hair-light);
    color: var(--gold-800);
  }
  .btn-nav {
    padding: 14px 24px;
    font-size: 16px;
    line-height: 24px;
  }
}

/* Breadcrumb */
.breadcrumb {
  background: var(--cream-100);
  border-bottom: 1px solid var(--hair-light);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  padding: 12px 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--navy-500);
}
.breadcrumb li + li::before {
  content: "/";
  padding: 0 10px;
  color: var(--navy-300);
}
.breadcrumb a {
  color: var(--navy-500);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--navy-900);
  text-decoration: underline;
}
.breadcrumb [aria-current] {
  color: var(--navy-900);
}

/* Hero */
.hero {
  padding: var(--section-pad) 0;
}
.hero h1 {
  max-width: 900px;
}
.hero .lead {
  max-width: 560px;
}
.hero-tagline {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 34px;
  color: var(--gold-text);
  margin-bottom: 12px;
}
.page-hero {
  padding: var(--section-pad) 0 64px;
}

/* Home hero: copy on the left, system diagram on the right; stacked under 900px. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .sysdiagram {
    max-width: 480px;
  }
}

/* System diagram on a navy panel (gold ring, cream owner dot, as in the dark logo). This is the
   final state: ring drawn, every node lit. Motion rules below start it undrawn and unlit. */
.sysdiagram {
  margin: 0;
  background: var(--navy-900);
  border-radius: var(--r-modal);
  padding: 24px;
}
.sysdiagram svg {
  display: block;
  width: 100%;
  height: auto;
}
.sd-ring-track {
  fill: none;
  stroke: var(--hair-dark);
  stroke-width: 1;
}
.sd-ring {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.sd-node-base {
  fill: var(--navy-900);
  stroke: var(--navy-300);
  stroke-width: 1;
}
.sd-node-lit {
  fill: var(--navy-900);
  stroke: var(--gold-500);
  stroke-width: 2;
}
.sd-label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  fill: var(--navy-300);
}
.sd-label-lit {
  fill: var(--gold-500);
}
.sd-owner {
  fill: var(--cream-50);
}
/* Labels are in viewBox units, so they shrink with the panel; enlarge them on phones (~13.5px). */
@media (max-width: 760px) {
  .sysdiagram {
    padding: 16px;
  }
  .sd-label {
    font-size: 22px;
  }
}

/* Cards, lists */
.card {
  background: var(--ground);
  border: 1px solid var(--hair);
  border-radius: var(--r-ui);
  padding: 32px;
  list-style: none;
  transition: border-color 200ms var(--ease-out);
}
@media (hover: hover) {
  .card:hover {
    border-color: var(--gold-700);
  }
}
.ground-alt .card {
  background: var(--cream-50);
}
.card h3 {
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 10px;
}
.card p:last-child {
  margin-bottom: 0;
}
.service-card h3 a {
  text-decoration: none;
}
.service-card h3 a:hover {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.service-card .text-link {
  display: inline-block;
  margin-top: 20px;
}
.price {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 44px;
  margin: 8px 0 16px;
}
.price-text {
  font-size: 28px;
  line-height: 34px;
}
/* Price ranges stay on one line: the card is the size container, so the
   longest range ("$2,500–$5,000/mo") shrinks to fit narrow three-up cards. */
.service-card {
  container-type: inline-size;
}
.service-card .price {
  font-size: min(40px, 12cqi);
  line-height: 1.1;
  white-space: nowrap;
}
.checklist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.checklist li {
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--hair);
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-shape);
}
.checklist li:last-child {
  border-bottom: 1px solid var(--hair);
}
.plain-list {
  list-style: none;
  padding: 0;
}
.plain-list li {
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
.plain-list li:last-child {
  border-bottom: 1px solid var(--hair);
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--hair);
  border-radius: var(--r-ui);
  overflow: hidden;
}
.step {
  padding: 36px 32px;
  border-left: 1px solid var(--hair);
  background: var(--ground);
}
.step:first-child {
  border-left: 0;
}
.step-num {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 32px;
  color: var(--gold-text);
  margin-bottom: 24px;
}
.step-name {
  font-size: 32px;
  line-height: 38px;
  margin-bottom: 6px;
}
.step-title {
  font-weight: 500;
  margin-bottom: 12px;
}
.step .text-link {
  display: inline-block;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .step {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .step:first-child {
    border-top: 0;
  }
}

/* Stage connector: stages stacked down a 1px rail (gold-700 on cream, gold-500 on navy via
   --gold-shape). On the home page a sticky heading column sits to the left on desktop. The rail
   and gold numbers below are the final state; .js-motion starts them undrawn for site.js. */
.stages-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.stages-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.stages {
  position: relative;
  padding-left: 40px;
  max-width: 760px;
}
.stages-layout .stages {
  max-width: none;
}
.stage-rail {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  overflow: visible;
}
.stage-rail line {
  stroke-width: 1;
}
.stage-rail-track {
  stroke: var(--hair);
}
.stage-rail-fill {
  stroke: var(--gold-shape);
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.stages .steps {
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.stages .step,
.stages .step:first-child {
  padding: 0 0 56px;
  border: 0;
  background: transparent;
}
.stages .step:last-child {
  padding-bottom: 0;
}
.stages .step-num {
  margin-bottom: 16px;
  transition: color 200ms var(--ease-out);
}
@media (max-width: 767px) {
  .stages-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .stages-intro {
    position: static;
  }
  .stages {
    padding-left: 28px;
  }
  .stages .step,
  .stages .step:first-child {
    padding-bottom: 40px;
  }
}
.js-motion .stage-rail-fill {
  stroke-dashoffset: 1;
}
.js-motion .stages .step-num {
  color: var(--muted);
}
.js-motion .stages .step.is-reached .step-num {
  color: var(--gold-text);
}
.js-motion .stages.is-stepwise .stage-rail-fill {
  transition: stroke-dashoffset 500ms var(--ease-out);
}

/* Proof recording in the Build stage: space is reserved at 16:9 so loading it never shifts layout. */
.proof-video {
  margin: 20px 0 0;
}
.proof-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hair);
  border-radius: var(--r-ui);
  background: var(--navy-900);
}

/* Before / after */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.compare-panel {
  border: 1px solid var(--hair);
  border-radius: var(--r-ui);
  padding: 32px;
}
.compare-panel h3 {
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 16px;
}
.compare-after {
  background: var(--navy-900);
  color: var(--cream-50);
  --hair: var(--hair-dark);
  --gold-shape: var(--gold-500);
  --gold-text: var(--gold-500);
  --muted: var(--navy-300);
  border-color: var(--navy-900);
}
@media (max-width: 760px) {
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Statement band */
.statement h2 {
  max-width: 900px;
}
.statement .lead {
  max-width: 600px;
}

/* Case study teaser */
.teaser-meta {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
  margin-bottom: 12px;
}
.proof-line {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 36px;
  color: var(--gold-text);
  border-left: 3px solid var(--gold-shape);
  padding-left: 20px;
  margin: 28px 0;
  max-width: 720px;
}
@media (max-width: 760px) {
  .proof-line {
    font-size: 24px;
    line-height: 30px;
  }
}

/* FAQ */
.faq {
  border-top: 1px solid var(--hair);
}
.faq-item {
  border-bottom: 1px solid var(--hair);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  position: relative;
}
.faq-item summary:hover {
  color: var(--gold-text);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--gold-shape);
  border-bottom: 2px solid var(--gold-shape);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after {
  transform: rotate(225deg);
  top: 32px;
}
.faq-body {
  padding: 0 0 24px;
  max-width: 720px;
  color: var(--muted);
}

/* Prose (case study, about, legal) */
.prose h2 {
  font-size: 32px;
  line-height: 38px;
  margin: 40px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin-bottom: 18px;
}
.legal .prose h2 {
  font-size: 26px;
  line-height: 32px;
  margin-top: 32px;
}
.legal-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}
.draft-notice {
  background: var(--cream-100);
  border: 1px solid var(--hair);
  border-radius: var(--r-ui);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-weight: 500;
}

/* People */
.person {
  border-top: 1px solid var(--hair);
  padding: 24px 0 0;
  max-width: 560px;
}
.person h3 {
  margin-bottom: 4px;
}
.person-role {
  color: var(--muted);
  margin-bottom: 8px;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 32px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
.contact-list li:last-child {
  border-bottom: 1px solid var(--hair);
}
.contact-list .label {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  padding-top: 2px;
}
.book {
  scroll-margin-top: 24px;
}
.form-embed {
  border: 1px solid var(--hair);
  border-radius: var(--r-ui);
  padding: 8px;
  background: var(--cream-50);
}
.form-embed iframe {
  display: block;
}
/* After submit, hide everything but the thank-you line. !important because GHL's form_embed.js
   writes an inline display:block onto its iframe wrapper and the iframe. */
.form-embed.is-submitted > :not(.form-status) {
  display: none !important;
}
.form-submitted {
  padding: 48px 16px;
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

/* CTA band */
.cta-band h2 {
  max-width: 720px;
}
.cta-band .lead {
  max-width: 520px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hair-dark);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hair-dark);
}
.footer-tagline {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 28px;
  color: var(--gold-500);
  margin-top: 20px;
}
.footer-label {
  font-size: 14px;
  line-height: 22px;
  color: var(--navy-300);
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-label-gap {
  margin-top: 24px;
}
.footer-list {
  list-style: none;
}
.footer-list li {
  margin-bottom: 10px;
}
.footer-list a {
  color: var(--cream-50);
  text-decoration: none;
}
.footer-list a:hover {
  color: var(--gold-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  padding-top: 24px;
  color: var(--navy-300);
  font-size: 14px;
  line-height: 22px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* 404 */
.notfound {
  min-height: 60vh;
}

/* Rounded dark panels: each dark section rises over the one above it. */
.section.ground-dark,
.ticker-band {
  position: relative;
  margin-top: calc(-1 * var(--panel-r));
  border-top: 0;
  border-radius: var(--panel-r) var(--panel-r) 0 0;
}
:root {
  --panel-r: 40px;
}
@media (max-width: 760px) {
  :root {
    --panel-r: 24px;
  }
}

/* Systems strip: a static grid of the systems we install, each item under a hairline (the brand
   keeps one dot per composition, so no dot bullets here). */
.ticker-band {
  padding: 40px 0 48px;
}
.ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.ticker-label {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.ticker-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  list-style: none;
  padding: 0 var(--gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}
.ticker-track li {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 32px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
@media (max-width: 900px) {
  .ticker-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .ticker-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .ticker-track li {
    font-size: 22px;
    line-height: 28px;
    padding: 12px 0;
  }
}

/* Motion: hero entrance, scroll reveals, stage rail, system diagram. All of it sits behind .js-motion,
   which the inline head script sets only when the visitor allows motion, so content is never
   hidden without JS. Reveal targets must match REVEAL in site.js. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Page heroes (every hero except the home one) rise in pure CSS, block by block, so they start on
   first paint and never wait on a script running late behind the GHL embeds. They start at 0.01
   opacity, not 0, so they still count as painted. */
@keyframes rise-in {
  from {
    opacity: 0.01;
    transform: translateY(24px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes show-now {
  to {
    opacity: 1;
  }
}
.js-motion :where(.hero:not([data-split]), .page-hero) .wrap > * {
  animation: rise-in 700ms var(--ease-out) both;
  animation-delay: calc(var(--h, 0) * 60ms);
}
.js-motion :where(.hero:not([data-split]), .page-hero) .wrap > :nth-child(2) {
  --h: 1;
}
.js-motion :where(.hero:not([data-split]), .page-hero) .wrap > :nth-child(3) {
  --h: 2;
}
.js-motion :where(.hero:not([data-split]), .page-hero) .wrap > :nth-child(n + 4) {
  --h: 3;
}

/* Home hero: each visual line rises 24px and fades in, 60ms apart; the CTAs fade in 150ms after
   the last line starts. The inline script after the hero splits the lines and adds .is-split.
   Until then the blocks sit at 0.01 opacity; if the script never runs they show at 1.6s. */
.js-motion .hero[data-split] .hero-copy > * {
  opacity: 0.01;
  animation: show-now 1ms 1.6s forwards;
}
.js-motion .hero[data-split].is-split .hero-copy > * {
  opacity: 1;
  animation: none;
}
.js-motion .hero[data-split] .line {
  display: block;
  animation: rise-in 700ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.js-motion .hero[data-split].is-split .cta-row {
  animation: fade-in 700ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

/* Header logo, first page of a visit only (.logo-intro, set by the head script): the ring is
   revealed by a mask stroke sweeping round it, then the dot settles into the opening. 700ms. */
.logo-intro .site-header .logo-ring {
  mask: url(#logo-sweep);
}
.logo-intro .site-header .logo-sweep {
  stroke-dasharray: 1;
  animation: ring-sweep 500ms var(--ease-out) both;
}
.logo-intro .site-header .logo-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-settle 400ms var(--ease-out) 300ms both;
}
@keyframes ring-sweep {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
/* System diagram: on first view (.is-live, from site.js) the ring draws in over 1.2s, then each
   node lights for about a second in turn, looping every 4s. .is-paused holds it while it is
   off-screen or the tab is hidden. The owner dot never moves. Lighting is an opacity fade. */
.js-motion .sd-ring {
  stroke-dashoffset: 1;
}
.js-motion .sd-node-lit,
.js-motion .sd-label-lit {
  opacity: 0;
}
.js-motion .sysdiagram.is-live .sd-ring {
  animation: ring-draw 1.2s var(--ease-out) forwards;
}
.js-motion .sysdiagram.is-live :is(.sd-node-lit, .sd-label-lit) {
  animation: node-lit 4s var(--ease-out) infinite;
  animation-delay: calc(1.2s + var(--n) * 1s);
}
.js-motion .sysdiagram.is-paused :is(.sd-ring, .sd-node-lit, .sd-label-lit) {
  animation-play-state: paused;
}
@keyframes ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes node-lit {
  0%,
  100% {
    opacity: 0;
  }
  6%,
  24% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
}
@keyframes dot-settle {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}
/* Section reveals: each leaf block (heading, paragraph, list row, card, step, FAQ item, CTA row,
   embed) rises 24px and fades in over 500ms once 15% of it is visible. Blocks inside a card, step,
   FAQ item, embed, or CTA row move with their container instead. Siblings stagger 60ms, so list
   rows (Before/After) come in top to bottom. */
.js-motion
  :where(.section)
  :where(h2, h3, p, li, .card, .step, .faq-item, .cta-row, .form-embed, .calendar-embed, a.text-link-gap):not(
    :where(.card, .step, .faq-item, .cta-row, .form-embed, .calendar-embed) *
  ) {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms var(--ease-out) calc(var(--i, 0) * 60ms),
    transform 500ms var(--ease-out) calc(var(--i, 0) * 60ms),
    border-color 200ms var(--ease-out);
}
.js-motion .is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
