:root {
  --bg: #f4f7f8;
  --white: #ffffff;
  --ink: #12243c;
  --muted: #5c6d7e;
  --slate: #3e5164;
  --body: #3f5366;
  --teal: #0f6f68;
  --teal-dark: #0c5c56;
  --mint: #e7f4f2;
  --mint-border: #8dccc4;
  --gold: #c8963e;
  --line: #e4eaef;
  --line-strong: #d7e0e7;
  --card-border: #e7eef2;
  --card-bg: #fbfcfd;
  --service-bg: #f5faf8;
  --service-icon-bg: #e5f3ee;
  --service-index: #c3ced6;
  --service-next-bg: #e7f3ee;
  --navy: #101b33;
  --navy-muted: #c9d3de;
  --footer: #7d8c9a;
  --source: #7b8b99;
  --chip: #4d6172;
  --ghost-border: #d5dee6;
  --ghost-border-hover: #c5d0d8;
  --ghost-bg-hover: #f7fafb;
  --light-bg-hover: #f3f6f8;
  --mark-navy: #12324f;
  --mark-pale: #8ec4be;
  --dash: #8aa0b0;
  --shadow: 0 10px 30px rgba(16, 36, 60, 0.05);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 16px;
  --space-section: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--white);
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.7rem, 5vw, 4.35rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--teal);
  text-decoration: none;
}

.brand-name {
  font-size: 1.35rem;
}

.mark {
  display: grid;
  grid-template-columns: 9px 9px;
  gap: 3px;
}

.mark span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.mark span:nth-child(1) {
  background: var(--mark-navy);
}

.mark span:nth-child(2) {
  background: var(--teal);
}

.mark span:nth-child(3) {
  background: var(--gold);
}

.mark span:nth-child(4) {
  background: var(--mark-pale);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.button) {
  color: var(--slate);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--teal);
  border-radius: 9px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button--small {
  padding: 0.55rem 0.95rem;
}

.button--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ghost-border);
}

.button--ghost:hover {
  background: var(--ghost-bg-hover);
  border-color: var(--ghost-border-hover);
  color: var(--ink);
}

.button--light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.button--light:hover {
  background: var(--light-bg-hover);
  color: var(--navy);
}

.hero {
  padding: var(--space-section) 0 4.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.lede {
  max-width: 38rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.hero-note {
  max-width: 34rem;
  margin: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 0.98rem;
}

.constellation {
  justify-self: end;
  width: min(360px, 100%);
}

.constellation svg {
  display: block;
  width: 100%;
  height: auto;
}

.band,
.hero,
.closer {
  scroll-margin-top: 5rem;
}

.band {
  padding: var(--space-section) 0;
}

.band--white {
  background: var(--white);
}

.band-intro {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}

.services-intro {
  max-width: 44rem;
}

.services-intro h2 {
  font-family: var(--sans);
  font-size: clamp(1.85rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.band-intro .eyebrow {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band-intro p,
.service-card > p,
.steps p,
.principles p,
.demo-footnote,
.closer-panel p,
.service-next p {
  color: var(--muted);
}

.service-next__title {
  color: var(--ink);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.3rem 1.2rem;
  border: 1px solid #e4eeea;
  border-radius: 18px;
  background: var(--service-bg);
  box-shadow: var(--shadow);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--service-icon-bg);
  color: var(--teal);
}

.service-icon svg,
.service-next svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-index {
  color: var(--service-index);
  font-size: 0.95rem;
  font-weight: 600;
}

.service-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.service-card ul {
  margin: 0.9rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid #e1ebe7;
  list-style: none;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.4rem 0 0;
  color: var(--body);
  font-size: 0.98rem;
}

.service-card li::before {
  content: "";
  flex: none;
  width: 0.38rem;
  height: 0.68rem;
  margin-top: 0.22rem;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
}

.service-next {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: var(--service-next-bg);
}

.service-next__title {
  margin: 0 0 0.1rem;
  font-weight: 700;
}

.service-next p:last-child {
  margin: 0;
}

.service-next__down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #c9ddd6;
  border-radius: 50%;
  color: var(--ink);
}

.service-next__down:hover {
  background: var(--white);
}

.service-next__talk {
  justify-self: end;
  gap: 0.4rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.demo-scenarios {
  display: grid;
  gap: 0.7rem;
}

.scenario {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

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

.scenario-detail {
  color: var(--muted);
  font-size: 0.92rem;
}

.scenario.is-active {
  border-color: var(--mint-border);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px var(--mint-border);
}

.demo-stage {
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.demo-stage-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-stage-bar p {
  margin: 0;
}

.dots {
  display: flex;
  gap: 0.28rem;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ghost-border);
}

.dots span:nth-child(1) {
  background: #e7b4ae;
}

.dots span:nth-child(2) {
  background: #efd39a;
}

.dots span:nth-child(3) {
  background: #b7d7c5;
}

.thread {
  display: grid;
  gap: 0.75rem;
}

.bubble {
  max-width: 92%;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
}

.bubble--user {
  justify-self: start;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.bubble--assistant {
  justify-self: end;
  background: var(--mint);
}

.demo-source {
  margin: 0.9rem 0 0.75rem;
  color: var(--source);
  font-size: 0.86rem;
  text-align: right;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-chips li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--chip);
  font-size: 0.88rem;
}

.demo-footnote {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0.4rem 0 2.4rem;
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.steps span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.7rem;
}

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

.closer {
  padding: 0.5rem 0 var(--space-section);
  background: var(--white);
}

.closer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2.3rem 2.4rem;
  border-radius: 22px;
  background: var(--navy);
  color: var(--white);
}

.closer-panel h2 {
  max-width: 16ch;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.closer-panel p {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--navy-muted);
}

.closer-actions {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
}

.closer-mail {
  color: var(--white);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  color: var(--footer);
  font-size: 0.92rem;
}

.footer-bar p {
  margin: 0;
}

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

@media (max-width: 980px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .demo,
  .closer-panel,
  .principles {
    grid-template-columns: 1fr;
  }

  .constellation {
    justify-self: start;
    width: min(300px, 80%);
  }

  .closer-panel h2 {
    max-width: none;
  }
}

.call-dialog {
  width: min(40rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(16, 27, 51, 0.28);
}

.call-dialog::backdrop {
  background: rgba(16, 27, 51, 0.55);
}

.call-dialog h2 {
  margin-bottom: 0.4rem;
  font-size: 1.7rem;
}

.call-dialog .eyebrow {
  margin: 0 0 0.35rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-form,
.call-success {
  padding: 1.4rem 1.4rem 1.5rem;
}

.call-form__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.call-form__header p,
.call-success p {
  margin-bottom: 0;
  color: var(--muted);
}

.call-dialog__close {
  flex: none;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.call-dialog__close:hover {
  color: var(--ink);
  border-color: var(--ghost-border-hover);
}

.call-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.call-form__wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-weight: 600;
}

.call-form__grid .field {
  margin-top: 0;
}

.field span {
  font-size: 0.92rem;
}

.field__optional {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.field textarea {
  resize: vertical;
}

.topics {
  margin: 1.1rem 0 0;
  padding: 0;
  border: 0;
}

.topics legend {
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.topics__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.topics label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--body);
  font-weight: 500;
}

.field-error {
  margin: 0.45rem 0 0;
  color: #9b2c2c;
  font-size: 0.92rem;
}

.call-form__note {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.call-success .button {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .header-bar,
  .footer-bar {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.85rem;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
  }

  .service-grid,
  .steps,
  .service-next {
    grid-template-columns: 1fr;
  }

  .service-next__down,
  .service-next__talk {
    justify-self: start;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .bubble {
    max-width: 100%;
  }

  .call-form__grid,
  .topics__grid {
    grid-template-columns: 1fr;
  }
}

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