/* ViaAI (viaai.pages.dev). Quiet, editorial: serif headlines, sans text, one deep blue for the agent path. */
@font-face {
  font-family: "Newsreader"; src: url("/fonts/newsreader-var.woff2") format("woff2-variations"), url("/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-var.woff2") format("woff2-variations"), url("/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --body: #3b3f46;
  --mute: #6a6f78;
  --line: #e4e6ea;
  --line-2: #d3d6dc;
  --wash: #f6f7f8;
  --blue: #2b37e0;
  --blue-soft: #f1f2fe;
  --blue-line: #c9cdf7;
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.04; max-width: 15em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); line-height: 1.1; }
h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.35; }
.h-sm { font-size: 1.5rem; }
.h-gap { margin-top: 2.25rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 44rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 500;
  font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.9375rem; }
.btn-full { width: 100%; }
.link-quiet { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2.25rem; }
.more { margin-top: 2rem; }
.more a { font-weight: 500; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid transparent; backdrop-filter: blur(10px); }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 2.25rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand .mark { width: 1.6rem; height: 1.6rem; }
.links { display: flex; gap: 2rem; margin-left: auto; }
.links a { color: var(--body); text-decoration: none; font-size: 0.9375rem; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 0.5rem 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; min-height: 0; }
  .top .btn-sm { margin-left: auto; }
  .links { order: 3; width: 100%; margin: 0; gap: 1.25rem; overflow-x: auto; padding-bottom: 0.2rem; }
}

/* Hero */
.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-sm { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.lede { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.55; max-width: 36em; color: var(--body); }
.crumb { font-size: 0.9375rem; margin-bottom: 1rem; }
.crumb a { color: var(--mute); }

/* Sections */
.sec { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.sec-tight { padding-top: clamp(1rem, 2vw, 1.5rem); }
.band { background: var(--wash); }
.intro { margin-top: 1rem; max-width: 40em; font-size: 1.125rem; }

/* Handoff diagram: the signature element */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.25rem; }
.tab { font: inherit; font-size: 0.9375rem; color: var(--body); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; }
.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel-more { margin-top: 1.25rem; font-weight: 500; }

.handoff { margin: 2rem 0 0; }
.flow-title { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.lane { margin-top: 1.25rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.lane-after { border-color: var(--blue-line); }
.lane-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 1.25rem; }
.lane-name { font-weight: 600; color: var(--ink); }
.lane-after .lane-name { color: var(--blue); }
.lane-sum { font-size: 0.9375rem; color: var(--mute); }
.steps { list-style: none; display: flex; gap: 1.75rem; align-items: stretch; }
.step { position: relative; flex: 1 1 0; min-width: 0; border: 1px solid var(--line-2); border-radius: 14px; padding: 0.8rem 0.9rem; background: var(--paper); }
.step + .step::before { content: ""; position: absolute; top: 50%; left: -1.75rem; width: 1.75rem; height: 1px; background: var(--line-2); }
.step.waited { margin-left: 3.5rem; }
.step.waited::before {
  left: -5.25rem; width: 5.25rem; height: 1px;
  background: repeating-linear-gradient(90deg, var(--mute) 0 4px, transparent 4px 8px);
}
.wait-tag { position: absolute; left: -5.25rem; width: 5.25rem; top: calc(50% - 1.55rem); text-align: center; font-size: 0.75rem; line-height: 1.2; color: var(--mute); font-style: italic; }
.actor { display: block; font-size: 0.8125rem; color: var(--mute); }
.team .actor { color: var(--ink); font-weight: 600; }
.act { display: block; font-size: 0.9375rem; line-height: 1.4; color: var(--ink); margin-top: 0.15rem; }
.lane-after .step { border-color: var(--blue-line); }
.lane-after .step + .step::before { background: var(--blue); height: 2px; }
.step.agent { background: var(--blue-soft); border-color: var(--blue); flex-grow: 1.6; }
.step.agent .actor { color: var(--blue); font-weight: 600; }
.handoff figcaption { margin-top: 0.9rem; font-size: 0.875rem; color: var(--mute); }
@media (max-width: 900px) {
  .lane { padding: 1.1rem; }
  .steps { flex-direction: column; gap: 1.25rem; }
  .step + .step::before { top: -1.25rem; left: 1.5rem; width: 1px; height: 1.25rem; }
  .lane-after .step + .step::before { width: 2px; height: 1.25rem; }
  .step.waited { margin-left: 0; margin-top: 1.5rem; }
  .step.waited::before { top: -2.75rem; left: 1.5rem; width: 1px; height: 2.75rem; background: repeating-linear-gradient(180deg, var(--mute) 0 4px, transparent 4px 8px); }
  .wait-tag { left: 2.25rem; top: -2.15rem; width: auto; text-align: left; }
}

/* Agent types, principles */
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2.5rem; margin-top: 2.75rem; }
.type { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.type p { margin-top: 0.5rem; }
.prs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 2.5rem; }
.prs-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.pr { border-top: 1px solid var(--line-2); padding-top: 1rem; }
.pr p { margin-top: 0.45rem; }
@media (max-width: 960px) { .types, .prs-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .types, .prs, .prs-compact { grid-template-columns: 1fr; } }

/* Industries */
.inds { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-top: 2rem; border-bottom: 1px solid var(--line); }
.inds li { border-top: 1px solid var(--line); }
.ind { display: block; padding: 1.25rem 2rem 1.25rem 0; text-decoration: none; position: relative; }
.ind::after { content: ""; position: absolute; right: 0.4rem; top: 1.65rem; width: 0.55rem; height: 0.55rem; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); }
.ind-name { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.ind-blurb { display: block; margin-top: 0.35rem; color: var(--body); font-size: 1rem; }
.ind:hover .ind-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (max-width: 760px) { .inds { grid-template-columns: 1fr; } }
.other-inds { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1rem; }

/* Industry page lists */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 2rem; } }
.ticks, .nevers, .plain { list-style: none; margin-top: 1rem; }
.ticks li, .nevers li { position: relative; padding: 0.7rem 0 0.7rem 1.9rem; border-top: 1px solid var(--line-2); }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 1.12rem; width: 0.8rem; height: 0.42rem; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.nevers li::before, .nevers li::after { content: ""; position: absolute; left: 0.2rem; top: 1.35rem; width: 0.9rem; height: 2px; background: var(--ink); }
.nevers li::before { transform: rotate(45deg); }
.nevers li::after { transform: rotate(-45deg); }
.plain li { margin-top: 0.75rem; }

/* Approach: phases */
.line { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 2.75rem; }
.line li { position: relative; padding-top: 2.1rem; }
.line li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
.line li:last-child::before { background: var(--blue); }
.line li:not(:last-child)::after { content: ""; position: absolute; left: 0.55rem; top: 0.5rem; width: calc(100% + 2rem); height: 2px; background: var(--blue); }
.line p { margin-top: 0.45rem; }
@media (max-width: 860px) {
  .line { grid-template-columns: 1fr; gap: 1.75rem; padding-left: 2.1rem; }
  .line li { padding-top: 0; }
  .line li::before { left: -2.1rem; top: 0.2rem; }
  .line li:not(:last-child)::after { left: -1.6rem; top: 0.7rem; width: 2px; height: calc(100% + 1.75rem); }
}

/* Questions */
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; }
.qs { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; color: var(--ink); font-weight: 500; font-size: 1.125rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 0.5rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.45rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
details p { padding: 0 2.5rem 1.25rem 0; max-width: 40em; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Our agents */
.work { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; border-bottom: 1px solid var(--line); }
.work li { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.work h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.work p { margin-top: 0.45rem; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }

/* Closing band */
.cta-band { background: var(--ink); color: #fff; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: #fff; max-width: 18em; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: transparent; color: #fff; }

/* Start a project */
.start-in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .start-in { grid-template-columns: 1fr; } }
.start-copy h1 { font-size: clamp(2.6rem, 4.6vw, 3.75rem); }
.fine { margin-top: 1.75rem; font-size: 0.9375rem; color: var(--mute); }
.form { border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
.f-row { grid-column: span 2; display: flex; flex-direction: column; gap: 0.4rem; }
.f-half { grid-column: span 1; }
@media (max-width: 560px) { .f-half { grid-column: span 2; } }
.form label { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.opt { font-weight: 400; color: var(--mute); }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 0.7rem 0.85rem; min-height: 2.9rem; }
.form textarea { resize: vertical; min-height: 7.5rem; line-height: 1.45; }
.form select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 0.7rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.form ::placeholder { color: #8a9099; }
.f-check { flex-direction: row; align-items: flex-start; gap: 0.65rem; }
.f-check input { width: 1.2rem; height: 1.2rem; min-height: 0; margin: 0.2rem 0 0; accent-color: var(--ink); flex: none; }
.f-check label { font-weight: 400; color: var(--body); }
.form .btn-full { grid-column: span 2; margin-top: 0.4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 2rem 3rem; }
.foot-brand p { margin-top: 0.75rem; color: var(--mute); max-width: 20em; }
.foot-h { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.foot ul { list-style: none; margin-top: 0.75rem; }
.foot li { margin-top: 0.45rem; }
.foot a { color: var(--body); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { margin-top: 3rem; color: var(--mute); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
