@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f5f2;
  --surface: #fff;
  --ink: #141724;
  --muted: #535b6b;
  --rule: #d8dadc;
  --accent: #2547d6;
  --accent-hover: #1a36ad;
  --dark: #131826;
  --dark-rule: #353d51;
  --light-text: #f4f6ff;
  --subtle-text: #b5bed1;
  --demo-accent: #a2b1ff;
  --shell: 79rem;
  --gutter: clamp(1rem, 4.4vw, 4.5rem);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 3;
  top: .6rem;
  left: .6rem;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  background: var(--surface);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.55rem;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand-mark {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .16rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: .34rem;
  background: var(--ink);
}
.brand-mark i { display: block; width: .17rem; height: .7rem; background: #fff; transform: skewX(-18deg); }
.brand-mark i:nth-child(2) { height: .94rem; }
.brand-mark i:nth-child(3) { height: .5rem; }
.header-inner nav { display: flex; gap: clamp(1rem, 2.8vw, 2.35rem); font-size: .92rem; font-weight: 700; }
.header-inner nav a { color: var(--muted); text-decoration: none; }
.header-inner nav a:hover { color: var(--accent); }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .66rem 1.08rem;
  border: 1px solid transparent;
  border-radius: .43rem;
  font-size: .9rem;
  font-weight: 780;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-primary:focus-visible { outline-color: var(--accent); }
.button-outline { border-color: #b7bcc5; color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--ink); background: var(--surface); }
.header-cta { min-height: 2.65rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.9rem, 6vw, 5.75rem);
}
.hero-copy { padding-block: 1rem; }
.label {
  color: var(--muted);
  font: 500 .875rem/1.45 var(--mono);
  letter-spacing: .025em;
}
.hero-label { margin-bottom: 1.4rem; }
h1, .section-intro h2 {
  font-weight: 800;
  letter-spacing: -.078em;
  line-height: .99;
}
h1 { font-size: clamp(3rem, 5.4vw, 5.7rem); }
h1 span { display: block; color: var(--accent); text-wrap: balance; }
.hero-description {
  max-width: 31rem;
  margin-top: 1.58rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.58vw, 1.35rem);
  line-height: 1.47;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1.6rem; }
.text-link {
  padding-block: .45rem;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 800;
  text-underline-offset: .24em;
}
.text-link:hover { text-decoration-thickness: 2px; }
.hero-detail { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

.demo {
  --demo-pad: clamp(1rem, 2.55vw, 2rem);
  min-width: 0;
  padding: var(--demo-pad);
  border: 1px solid #262e44;
  border-radius: 1rem;
  background: var(--dark);
  box-shadow: 0 21px 39px -28px #151a35a6;
  color: var(--light-text);
}
.demo-heading, .demo-footer { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1rem; }
.demo-heading h2 { font-size: 1.04rem; font-weight: 800; letter-spacing: -.03em; }
.demo-sample { color: var(--subtle-text); font-size: .8rem; white-space: nowrap; }
.demo-options {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1.05rem 0 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--dark-rule);
}
.demo-options button {
  border: 1px solid var(--dark-rule);
  border-radius: .36rem;
  min-height: 2.5rem;
  padding: .42rem .66rem;
  color: var(--subtle-text);
  background: none;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.demo-options button:hover { border-color: var(--subtle-text); }
.demo-options button[aria-pressed="true"] { border-color: #6577cb; background: #2b3664; color: #fff; }
.demo-workspace { display: grid; gap: .7rem; }
.ticket, .deliverable {
  padding: .84rem .95rem;
  border: 1px solid var(--dark-rule);
  border-radius: .55rem;
  transition: border-color .22s, box-shadow .22s;
}
.ticket { background: #1e2538; }
.ticket .label { color: var(--demo-accent); font-size: .78rem; }
.ticket h3, .deliverable h3 { font-size: .97rem; font-weight: 800; letter-spacing: -.02em; }
.ticket h3 { margin-top: .15rem; }
#ticket-detail { margin-top: .24rem; color: var(--subtle-text); font-size: .87rem; }
.deliverable {
  border-color: #e2e6f5;
  background: #f5f7ff;
  color: var(--ink);
}
.deliverable h3 { color: #233eae; }
#draft-text { margin-top: .25rem; font-size: .94rem; line-height: 1.5; }
#draft-source { margin-top: .45rem; color: var(--muted); font-size: .82rem; }
.draft-review {
  display: flex;
  flex-wrap: wrap;
  gap: .18rem .46rem;
  margin-top: .65rem;
  border-top: 1px solid #d7dcef;
  padding-top: .58rem;
  color: var(--muted);
  font-size: .85rem;
}
.draft-review dd { color: var(--ink); font-weight: 800; }
.demo-workspace[data-phase="0"] .ticket,
.demo-workspace[data-phase="1"] .deliverable,
.demo-workspace[data-phase="2"] .deliverable {
  border-color: var(--demo-accent);
  box-shadow: 0 0 0 2px #a2b1ff47;
}
.demo-workspace[data-phase="2"] .draft-review { color: #233eae; }
.workflow {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  padding: .16rem 0 .72rem;
  list-style: none;
}
.workflow li {
  display: flex;
  align-items: center;
  gap: .36rem;
  color: var(--subtle-text);
  font-size: .82rem;
  font-weight: 650;
}
.workflow li::before {
  width: .46rem;
  height: .46rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}
.workflow li[data-state="done"]::before,
.workflow li[data-state="working"]::before { background: currentColor; }
.workflow li[aria-current="step"] { color: var(--demo-accent); }
.workflow li[aria-current="step"]::before { box-shadow: 0 0 0 2px #a2b1ff38; }
.demo-footer { border-top: 1px solid var(--dark-rule); padding-top: .95rem; }
.demo-play {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
  padding: .54rem .68rem;
  border: 1px solid #7b88c2;
  border-radius: .42rem;
  color: var(--light-text);
  background: #29365c;
  font-size: .84rem;
  font-weight: 780;
  cursor: pointer;
  transition: background-color .18s;
}
.demo-play:hover { background: #384d88; }
.play-icon {
  width: 0;
  height: 0;
  border-top: .24rem solid transparent;
  border-bottom: .24rem solid transparent;
  border-left: .36rem solid currentColor;
}
#demo-status { color: var(--subtle-text); font-size: .82rem; text-align: right; }

.section-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2.25rem, 7vw, 7rem); }
.section-intro h2 { margin-top: .65rem; font-size: clamp(2.65rem, 5.3vw, 5rem); }
.section-intro > p:last-child { max-width: 29rem; margin-top: 1.12rem; color: var(--muted); font-size: 1.08rem; }
.services { border-block: 1px solid var(--rule); padding-block: clamp(3.5rem, 7vw, 6.45rem); background: var(--surface); }
.service-list details { border-top: 1px solid var(--rule); }
.service-list details:last-child { border-bottom: 1px solid var(--rule); }
.service-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem .2rem;
  list-style: none;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.035em;
  cursor: pointer;
}
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary:hover,
.service-list details[open] summary { color: var(--accent); }
.service-list details p { max-width: 35rem; padding: 0 2rem 1.05rem .2rem; color: var(--muted); }
.service-toggle { position: relative; flex: 0 0 1.05rem; height: 1.05rem; }
.service-toggle::before, .service-toggle::after {
  position: absolute;
  top: calc(50% - 1px);
  left: .05rem;
  width: .95rem;
  height: 2px;
  background: currentColor;
  content: "";
}
.service-toggle::after { transform: rotate(90deg); transition: transform .18s; }
.service-list details[open] .service-toggle::after { transform: rotate(0); }

.approach { padding-block: clamp(3.5rem, 7vw, 6.4rem); }
.audience { padding-top: clamp(3.5rem, 7vw, 6.4rem); }
.audience-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.9rem);
  margin-top: clamp(1.8rem, 4vw, 3.2rem);
}
.audience-list article { border-top: 1px solid var(--rule); padding-top: 1rem; }
.audience-list h3 { font-size: 1.18rem; letter-spacing: -.04em; }
.audience-list p { margin-top: .5rem; color: var(--muted); }
.audience-next { margin-top: 1.6rem; color: var(--muted); }
.audience-next a { color: var(--accent); font-weight: 720; text-underline-offset: .18em; }
.example { padding-top: clamp(3.5rem, 8vw, 7rem); }
.example .section-intro h2 { max-width: 13ch; line-height: 1; }
.example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
  margin-top: clamp(1.55rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  background: var(--surface);
}
.example-grid img { display: block; width: 100%; height: 100%; min-height: 25rem; object-fit: cover; object-position: center 55%; }
.example-steps { display: grid; align-content: center; padding: clamp(1.35rem, 4.4vw, 4rem); }
.example-steps article { padding-block: 1.15rem; border-bottom: 1px solid var(--rule); }
.example-steps article:first-child { padding-top: 0; }
.example-steps h3 { font-size: 1.35rem; letter-spacing: -.04em; }
.example-steps article:nth-child(2) h3 { color: var(--accent); }
.example-steps article p, .example-measure p { margin-top: .42rem; color: var(--muted); }
.example-measure { margin-top: 1.2rem; padding: 1rem; border-radius: .55rem; background: #eef1fc; }
.example-measure p { margin-top: 0; }
.example-measure strong { display: block; color: var(--ink); }
.example-measure a { display: inline-block; margin-top: .6rem; }
.team { padding-block: clamp(3.5rem, 7vw, 6.4rem); border-top: 1px solid var(--rule); background: var(--surface); }
.team-list { align-self: center; }
.team-person {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  align-items: start;
  gap: .9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}
.team-person:last-child { border-bottom: 1px solid var(--rule); }
.team-person h3 { font-size: 1.22rem; letter-spacing: -.04em; }
.team-person p { margin-top: .22rem; color: var(--muted); }
.team-monogram {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: .45rem;
  background: #e9edff;
  color: var(--accent);
  font: 700 .86rem/1 var(--mono);
}
.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.9rem);
  margin-top: clamp(1.8rem, 4vw, 3.2rem);
  padding: 0;
  list-style: none;
}
.approach-steps li { border-top: 1px solid var(--rule); padding-top: .85rem; }
.approach-steps h3 { margin-top: .45rem; font-size: 1.19rem; font-weight: 800; letter-spacing: -.04em; }
.approach-steps p { max-width: 23rem; margin-top: .45rem; color: var(--muted); }

.request { border-top: 1px solid #d6dcf7; padding-block: clamp(3.5rem, 7vw, 6.3rem); background: #e9edff; }
.request-panel { min-width: 0; padding: clamp(1.1rem, 3.2vw, 2.1rem); border: 1px solid #cdd3e8; border-radius: .7rem; background: var(--surface); }
.request-panel form { display: grid; gap: 1rem; }
.form-note { color: var(--muted); font-size: .93rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.request-panel label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 750; }
.request-panel input, .request-panel textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: .56rem .65rem;
  border: 1px solid #9ca4b8;
  border-radius: .36rem;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 450;
}
.request-panel textarea { resize: vertical; }
.request-panel button { justify-self: start; }
.request-panel button:disabled { opacity: .7; cursor: wait; }
.request-status:not(:empty) { margin-top: 1rem; border-radius: .4rem; padding: .7rem .8rem; background: #eef1fc; font-weight: 650; }

.site-footer { padding-block: 1.25rem; }
.footer-inner { display: flex; justify-content: space-between; gap: .5rem 1rem; color: var(--muted); font-size: .9rem; }
.footer-inner span:first-child { color: var(--ink); font-weight: 750; }

@media (max-width: 54rem) {
  .hero, .section-split { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.5rem; padding-top: 2.45rem; }
  .hero-copy { padding-bottom: .4rem; }
  .demo { max-width: 42rem; }
  h1 { font-size: clamp(2.7rem, 8.5vw, 5.1rem); }
}

@media (max-width: 43rem) {
  .header-inner nav { display: none; }
  .example-grid { grid-template-columns: minmax(0, 1fr); }
  .example-grid img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 35rem) {
  .header-inner { min-height: 4.15rem; }
  .header-cta { padding-inline: .73rem; font-size: .83rem; }
  .hero { padding-top: 1.85rem; }
  .hero-copy { padding-top: .45rem; }
  .hero-label { margin-bottom: 1rem; }
  .hero-description { margin-top: 1.12rem; }
  .hero-actions { margin-top: 1.25rem; }
  .demo-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .demo-options button {
    min-height: 2.75rem;
    padding-inline: .2rem;
    font-size: .79rem;
    line-height: 1.25;
    text-wrap: balance;
  }
  .demo-footer { align-items: start; }
  .approach-steps, .audience-list, .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .will-reveal { opacity: 0; transform: translateY(.65rem); }
  .did-reveal { opacity: 1; transform: translateY(0); transition: opacity .38s ease, transform .38s ease; }
  .service-list details[open] p { animation: change-scenario .2s ease both; }
  @keyframes change-scenario { from { opacity: .45; transform: translateY(.25rem); } to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
