:root {
  --paper: #ffffff;
  --ticket: #f5e6a3;
  --ticket-line: #d9c672;
  --ink: #1f3d8f;
  --text: #26282c;
  --muted: #5b5f66;
  --stamp: #b3261e;
  --rule: #e4e5e8;
  --wash: #f4f6fa;
  --measure: 34rem;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font:
    400 1.125rem/1.6 "Atkinson Hyperlegible",
    system-ui,
    sans-serif;
}
h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 48rem) {
  .wrap {
    padding: 0 2rem;
  }
}

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}
.brand small {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 0.5rem;
}
.top-call {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  align-items: center;
}
.nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    padding-top: 3.5rem;
    padding-bottom: 6rem;
  }
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
}
.hero .lede {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  max-width: var(--measure);
  color: var(--text);
}
.lede.offer-line {
  font-weight: 700;
  margin-top: 0.75rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 2rem;
}
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
}
.btn:hover {
  background: #17306f;
}
.secondary-btn {
  display: inline-block;
  min-height: 48px;
  padding: 0.72rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.page-actions {
  margin-top: 1.5rem;
}
.plain-link {
  font-weight: 700;
}

.reassure {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--text);
}
.reassure li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
  max-width: 40rem;
}

/* The work order ticket */
.ticket {
  position: relative;
  background: var(--ticket);
  color: var(--text);
  padding: 1.25rem 1.25rem 3.75rem;
  border-radius: 3px;
  box-shadow:
    0 1px 0 var(--ticket-line),
    0 14px 30px -18px rgba(60, 50, 10, 0.45);
  transform: rotate(-1.2deg);
  max-width: 32rem;
  justify-self: center;
  width: 100%;
}
.ticket::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--paper) 4px, transparent 4.5px) 0 0 / 14px 12px repeat-x;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--text);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}
.ticket-head b {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
}
.ticket-head span {
  font-size: 0.9rem;
  color: #6b5d1e;
}
.field {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ticket-line);
}
.field:last-of-type {
  border-bottom: 0;
}
.field dt {
  font-size: 0.85rem;
  color: #6b5d1e;
  padding-top: 0.35rem;
}
.field dd {
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
}
.stamp {
  position: absolute;
  right: 1rem;
  bottom: 1.1rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--stamp);
  border: 3px solid var(--stamp);
  border-radius: 6px;
  padding: 0.1rem 0.6rem;
  transform: rotate(-9deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
}

/* Sections */
section {
  padding: 4rem 0;
}
@media (min-width: 48rem) {
  section {
    padding: 5.5rem 0;
  }
}
.band {
  background: var(--wash);
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}
.section-head p {
  margin-top: 0.85rem;
  color: var(--muted);
}

/* Problems list */
.problems {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--text);
}
.problems li {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 48rem) {
  .problem-link {
    grid-template-columns: 1fr 1.15fr;
  }
}
.problems .said {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
}
.problems .fix {
  color: var(--text);
  max-width: var(--measure);
}
.problem-link {
  display: grid;
  gap: 0.4rem 3rem;
  color: inherit;
  text-decoration: none;
}
.problem-link .said {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.problem-link:hover .said,
.problem-link:focus-visible .said {
  text-decoration-thickness: 2px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}
@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3.5rem;
  }
}
@media (min-width: 70rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.steps h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.steps p {
  color: var(--text);
}

/* Triangle */
.triangle-layout {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}
@media (min-width: 48rem) {
  .triangle-layout {
    grid-template-columns: minmax(18rem, 28rem) 1fr;
  }
}
.triangle-picker {
  position: relative;
  width: min(100%, 28rem);
  aspect-ratio: 1.12;
  margin: 0 auto;
}
.triangle-picker svg {
  position: absolute;
  inset: 8% 10% 12%;
  width: 80%;
  height: 80%;
  overflow: visible;
}
.triangle-picker .base-line {
  stroke: #b6b8bd;
  stroke-width: 3;
  fill: none;
}
.triangle-picker .pick-line {
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0;
}
.triangle-picker[data-pair="fast-cheap"] .fast-cheap,
.triangle-picker[data-pair="fast-good"] .fast-good,
.triangle-picker[data-pair="good-cheap"] .good-cheap {
  opacity: 1;
}
.vertex {
  position: absolute;
  z-index: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  min-width: 5.3rem;
  min-height: 5.3rem;
  padding: 0.5rem;
  font:
    800 1.05rem/1 "Bricolage Grotesque",
    sans-serif;
  cursor: pointer;
}
.vertex[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.vertex[aria-pressed="false"] {
  border-color: #8a8e96;
  color: var(--muted);
  background: var(--paper);
}
.vertex-fast {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.vertex-good {
  bottom: 0;
  left: 0;
}
.vertex-cheap {
  bottom: 0;
  right: 0;
}
.triangle-results {
  border-top: 2px solid var(--text);
}
.triangle-status {
  padding-top: 1rem;
  max-width: var(--measure);
}
.pair-result {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: var(--measure);
}
.pair-result h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}
.pair-result[hidden] {
  display: none;
}
.triangle-note {
  margin-top: 1rem;
  color: var(--muted);
  max-width: var(--measure);
}
.triangle-close {
  margin-top: 1.25rem;
  font-weight: 700;
  max-width: var(--measure);
}
@media (prefers-reduced-motion: no-preference) {
  .triangle-picker .pick-line {
    transition: opacity 220ms ease;
  }
}

/* Clients */
.clients {
  display: grid;
  gap: 2.5rem 4rem;
  border-top: 2px solid var(--text);
  padding-top: 2rem;
}
.clients h3 {
  font-size: 1.6rem;
}
.clients .where {
  color: var(--muted);
  margin: 0.3rem 0 1rem;
}
.clients p {
  max-width: var(--measure);
}
.clients p + p:not(.where) {
  margin-top: 1rem;
}
.clients .client-logo {
  display: block;
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 4px;
}
.clients article + article {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
}

/* Why local */
.why {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 3.5rem;
}
@media (min-width: 48rem) {
  .why {
    grid-template-columns: repeat(2, 1fr);
  }
}
.why h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.why p {
  max-width: var(--measure);
}

/* FAQ */
.faq {
  max-width: 52rem;
  border-top: 2px solid var(--text);
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}
.faq details p {
  margin-top: 0.75rem;
  max-width: var(--measure);
}

/* Interior pages */
.page-hero {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  max-width: 50rem;
}
.page-hero p {
  margin-top: 1rem;
  max-width: var(--measure);
  font-size: 1.2rem;
}
.breadcrumbs {
  padding-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
}
.content-grid {
  display: grid;
  gap: 2.5rem 5rem;
}
@media (min-width: 48rem) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.content-block h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}
.content-block p,
.content-block li {
  max-width: var(--measure);
}
.content-block p + p,
.content-block ul + p {
  margin-top: 1rem;
}
.content-block ul {
  margin: 0;
  padding-left: 1.25rem;
}
@media (min-width: 48rem) {
  .service-situations {
    order: 1;
  }
  .service-solution {
    order: 2;
  }
}
.content-block li + li {
  margin-top: 0.65rem;
}
.situations {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--text);
}
.situations li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--text);
}
.service-group-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 2.5rem 0 1rem;
}
.service-group-title:first-child {
  margin-top: 0;
}
.service-group-intro {
  max-width: var(--measure);
  margin: -0.35rem 0 1.25rem;
  color: var(--muted);
}
.service-list li {
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.service-list h2,
.service-list h3 {
  font-size: 1.5rem;
}
.service-list p {
  margin-top: 0.4rem;
  max-width: var(--measure);
}
.service-row {
  display: block;
  min-height: 100%;
  padding: 1.4rem 0;
  color: var(--text);
  text-decoration: none;
}
.service-row h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.service-row:hover h3,
.service-row:focus-visible h3 {
  text-decoration-thickness: 2px;
}
@media (min-width: 60rem) {
  .service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}
.service-callout {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--text);
  max-width: var(--measure);
}
.service-callout .actions {
  margin-top: 1rem;
}
.page-intro {
  max-width: var(--measure);
}
.quote-note {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.plain-list {
  margin: 0;
  padding-left: 1.25rem;
}
.plain-list li + li {
  margin-top: 0.65rem;
}
.error-page {
  min-height: 62vh;
  display: grid;
  align-items: center;
}
.error-page .actions {
  margin-top: 1.5rem;
}

/* Contact */
.contact {
  background: var(--ink);
  color: #fff;
}
.contact h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 40rem;
}
.contact p {
  margin-top: 1rem;
  max-width: var(--measure);
  color: #dfe5f5;
}
.contact .ways {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 2rem;
}
.contact .ways a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.way-label {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.way-detail {
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: #dfe5f5;
}
.contact .ticket {
  margin: 1.5rem 0 0;
  justify-self: start; /* .ticket centers itself for the hero grid; block layout honors it too */
}
/* No stamp on a blank order, so drop the room reserved for it. */
.ticket-blank {
  padding-bottom: 1.5rem;
}
.ticket-blank {
  box-shadow:
    0 1px 0 var(--ticket-line),
    0 14px 30px -18px rgba(0, 0, 0, 0.35);
}
.contact p a {
  color: #fff;
}
.contact a:focus-visible {
  outline-color: #fff;
}
.contact .fine {
  margin-top: 2.5rem;
  font-size: 1rem;
}

footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

@media (max-width: 30rem) {
  .brand small {
    display: block;
    margin-left: 0;
  }
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand call"
      "nav nav";
    gap: 0.75rem 1rem;
    align-items: start;
  }
  .brand {
    grid-area: brand;
  }
  .top-call {
    grid-area: call;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border: 2px solid var(--ink);
    border-radius: 6px;
    font-size: 0.95rem;
  }
  .nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 0;
    justify-content: space-between;
    border-top: 1px solid var(--rule);
  }
  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
  }
  .page-actions {
    display: grid;
    gap: 0.75rem;
  }
  .page-actions a {
    width: 100%;
    text-align: center;
  }
  .ticket {
    transform: none;
  }
  .field {
    grid-template-columns: 4.5rem 1fr;
  }
  .field dd {
    font-size: 1.4rem;
  }
}

/* Elya chat. Closed until someone clicks. No motion. */
.sophia-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
}
.sophia-launcher.is-tucked {
  visibility: hidden;
}
.sophia-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink);
  flex: 0 0 auto;
}
.sophia-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.75rem;
  z-index: 31;
  display: flex;
  flex-direction: column;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(32rem, 70vh);
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--text);
}
.sophia-panel[hidden] {
  display: none;
}
.sophia-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 0.65rem;
  border-bottom: 1px solid var(--rule);
}
.sophia-panel h2 {
  font-size: 1.15rem;
  line-height: 1.25;
}
.sophia-disclosure {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 36rem;
}
.sophia-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.sophia-log {
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 8rem;
  padding: 0.85rem;
}
.sophia-msg {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sophia-msg.user {
  align-self: flex-end;
  background: var(--wash);
}
.sophia-msg.sophia {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--rule);
}
.sophia-typing {
  color: var(--muted);
}
.sophia-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--rule);
}
.sophia-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font: inherit;
  color: var(--text);
  background: var(--paper);
}
.sophia-form button {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sophia-form button:disabled {
  opacity: 0.6;
  cursor: default;
}
.sophia-invite {
  margin-top: 1.25rem;
  max-width: var(--measure);
}
.sophia-open {
  font: inherit;
  font-weight: 700;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.contact .sophia-open {
  color: #fff;
}
.contact .sophia-open:focus-visible {
  outline-color: #fff;
}
.stack-head {
  margin-top: 2.25rem;
}
footer {
  padding-bottom: 5.5rem;
}
@media (max-width: 30rem) {
  .sophia-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    border-right: 0;
    border-left: 0;
    border-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sophia-panel,
  .sophia-launcher,
  .sophia-log {
    scroll-behavior: auto;
  }
}

/* Long URLs and code samples (e.g. /for-ai/) must not widen the page on phones. */
.content-block {
  min-width: 0;
}
.content-block pre,
.content-block code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
