.local-preview-notice {
  padding: .4rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--navy);
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
}

#workflow, #services, #contact { scroll-margin-top: 86px; }
#software + #services { background: var(--bg); }
#workflow .section-header { max-width: none; margin-bottom: 1.65rem; }
#workflow p, .home-hero-lead, #services .section-subtitle, #services .card p,
#about p, #contact .section-subtitle { text-transform: none; }
.hero-ca-label { white-space: nowrap; }

#about .toon-about-frame { position: relative; }
.about-conversation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .about-conversation.is-active { opacity: 1; }

  @keyframes about-card-popup {
    0% { opacity: 0; transform: translateY(18px) scale(.95); }
    72% { opacity: 1; transform: translateY(-3px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  .about-pillars .pillar-card.is-visible { animation: about-card-popup .52s ease-out backwards; }
  .about-pillars .pillar-card:nth-child(2) { animation-delay: .12s; }
  .about-pillars .pillar-card:nth-child(3) { animation-delay: .24s; }
}

.home-hero-visual .toon-hero-card { position: relative; }
.hero-advisor-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.hero-advisor-motion.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-advisor-motion.is-active { opacity: 0; }
}

.workflow-story { --workflow-screen: 100svh; }

.workflow-stage {
  position: relative;
  display: none;
  min-width: 0;
  height: var(--workflow-screen);
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 28%, #fff4cf 0 7%, #fff8e346 7.2% 17%, transparent 34%),
    radial-gradient(ellipse at 8% 26%, #ffffff92 0%, transparent 46%),
    linear-gradient(155deg, #a9d7dd, #dbe8d8 55%, #e7caa6 100%);
}

.workflow-story.is-ready .workflow-stage { display: block; }
.workflow-stage > canvas { display: block; width: 100%; height: 100%; }
.workflow-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46rem 30rem at 14% 21%, #e6f2e8e8, #e6f2e89e 42%, transparent 78%),
    linear-gradient(to top, #f1e9d5eb, transparent 13%);
}

.workflow-story.is-cinematic { display: grid; grid-template-columns: minmax(0, 1fr); }
.is-cinematic .workflow-stage {
  position: sticky;
  z-index: 1;
  top: 0;
  grid-area: 1 / 1;
  align-self: start;
}
.is-cinematic .workflow-chapters {
  grid-area: 1 / 1;
  gap: 0;
  margin: 0;
  padding: 0 0 var(--workflow-screen);
  pointer-events: none;
}
.is-cinematic .workflow-chapter { min-height: max(40rem, 126svh); }
.is-cinematic .workflow-chapter[data-chapter="sale"] { min-height: max(83rem, 252svh); }
.is-cinematic .workflow-chapter article {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.workflow-caption {
  position: absolute;
  z-index: 1;
  top: max(6.25rem, 13%);
  left: max(1.25rem, calc((100% - 1180px) / 2));
  width: min(34rem, calc(100% - 2.5rem));
  color: #163549;
  font: 800 clamp(2rem, 4.6vw, 3.7rem) / 1.04 Manrope, sans-serif;
  letter-spacing: -.07em;
  text-wrap: balance;
}
#workflow .workflow-stage-label {
  margin-bottom: 0.55rem;
  color: #2c5d62;
  font: 800 clamp(.72rem, 1.05vw, .85rem) / 1.3 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#workflow-caption-summary {
  max-width: 40ch;
  margin-top: 0.7rem;
  font: 600 clamp(.88rem, 1.25vw, 1.02rem) / 1.48 var(--font-body);
  letter-spacing: normal;
  text-wrap: pretty;
}

.workflow-checkpoint-conversation:not([hidden]) {
  display: grid;
  justify-items: start;
  gap: .38rem;
  margin-top: .65rem;
  font: 600 clamp(.73rem, 1.2vw, .9rem) / 1.35 var(--font-body);
  letter-spacing: normal;
  text-wrap: pretty;
}
.workflow-checkpoint-conversation p {
  padding: .42rem .62rem;
  border: 1px solid #b8ccc4;
  border-radius: .65rem;
  background: #f9fdf8;
}
.workflow-checkpoint-conversation strong { margin-right: .25rem; color: #235b57; }
.workflow-checkpoint-reply, .workflow-checkpoint-documents li { visibility: hidden; }
.has-reply .workflow-checkpoint-reply, .workflow-checkpoint-documents .is-shown { visibility: visible; }
.workflow-checkpoint-conversation .workflow-checkpoint-reply { background: #e4f2fb; }
.workflow-checkpoint-documents {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: 0;
  list-style: none;
  font-size: .8em;
}
.workflow-checkpoint-documents li {
  padding: .3rem .47rem;
  border: 1px solid #a7cbb5;
  border-radius: 1rem;
  color: #245c43;
  background: #edf8ef;
}
.workflow-stage[data-shot="document-check"] .workflow-caption {
  font-size: clamp(1.72rem, 4.6vw, 3.7rem);
}
.workflow-story.is-ready .workflow-stage[data-office] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(.5rem, 1.7svh, 1rem);
  padding: max(5.25rem, 13svh) clamp(.55rem, 3vw, 2rem) max(1.25rem, calc(env(safe-area-inset-bottom) + .85rem));
  background: radial-gradient(ellipse at 50% 66%, #edf3ff, #f8fbff 76%);
}
.workflow-stage[data-office]::after {
  background: linear-gradient(to top, #f1e9d5eb, transparent 13%);
}
.workflow-stage[data-office] > canvas {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.workflow-office { display: none; }
.workflow-stage[data-office] .workflow-office {
  display: flex;
  grid-row: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.6rem, 2svh, 1.1rem);
  min-height: 0;
}
.workflow-office-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(.5rem, 5vw, 5rem);
  width: min(100%, 82rem);
  min-height: 0;
  aspect-ratio: 8 / 3;
  opacity: var(--office-reveal, 1);
  transform: translateY(calc((1 - var(--office-reveal, 1)) * 1rem));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.workflow-office-panel { position: relative; min-height: 0; }
.workflow-office-panel img, .workflow-office-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}
.workflow-office-panel + .workflow-office-panel > * { object-position: left center; }
.workflow-office-motion { display: none; }
.workflow-office-art.is-animated img { visibility: hidden; }
.workflow-office-art.is-animated .workflow-office-motion { display: block; }
.workflow-office-cta { position: relative; z-index: 1; flex-shrink: 0; }
.workflow-office-cta:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 4px; }
.workflow-story.is-cinematic { margin-bottom: 1rem; }
.workflow-story.is-cinematic + .workflow-review { display: none; }
.workflow-stage[data-office] .workflow-caption {
  position: relative;
  inset: auto;
  grid-row: 1;
  width: min(100%, 70rem);
  justify-self: center;
  font-size: clamp(1.65rem, min(4.4vw, 7svh), 3.85rem);
  text-align: center;
  pointer-events: none;
}
.workflow-stage[data-office] #workflow-caption-summary {
  max-width: 58ch;
  margin-inline: auto;
}

.workflow-timeline {
  position: absolute;
  z-index: 1;
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + .85rem));
  left: 50%;
  width: min(32rem, calc(100% - 2rem));
  transform: translateX(-50%);
}
.workflow-stage[data-office] .workflow-timeline {
  position: relative;
  inset: auto;
  grid-row: 3;
  justify-self: center;
  transform: none;
}
.workflow-progress {
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: #1e425d38;
}
.workflow-progress span {
  display: block;
  height: 100%;
  background: #194d69;
  transform: scaleX(var(--story-progress, 0));
  transform-origin: left;
}
.workflow-chapter-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .3rem;
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  color: #27495c;
  font-size: clamp(.73rem, 1.25vw, .9rem);
  font-weight: 600;
  line-height: 1.23;
  text-align: center;
}
.workflow-chapter-track [aria-current="step"] { color: #0c293e; font-weight: 800; }

.workflow-chapters {
  display: grid;
  gap: 1.2rem;
  list-style: none;
  max-width: 70rem;
  padding: 0 1.25rem;
  margin: 2rem auto 0;
}
.workflow-chapter h3 { margin: .1rem 0 .45rem; color: var(--navy); }
.workflow-chapter-description { color: var(--text-secondary); }
.workflow-review { margin-top: clamp(1.8rem, 5vw, 3.25rem); }
#contact .contact-cta-grid .btn { white-space: normal; text-align: center; }

@media (max-width: 640px) {
  .workflow-stage::after { background: linear-gradient(to top, #f1e9d5eb, transparent 11%); }
}

@media (max-height: 600px) {
  .workflow-caption {
    top: 5.1rem;
    font-size: clamp(1.65rem, 5vh, 2.5rem);
  }
}

@media (min-width: 550px) and (max-height: 500px) {
  .workflow-story.is-ready .workflow-stage[data-office] {
    grid-template-columns: minmax(0, .6fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .workflow-stage[data-office] .workflow-caption {
    align-self: center;
    grid-column: 1;
    text-align: left;
  }
  .workflow-stage[data-office] .workflow-office { grid-row: 1; grid-column: 2; }
  .workflow-stage[data-office] .workflow-timeline { grid-row: 2; grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-caption, .workflow-timeline { display: none; }
  .workflow-stage { height: min(64svh, 36rem); }
}

