/* ============================================================
   fountyn.ai — design system
   Editorial "shop drawing": warm paper, ink, signal orange.
   ============================================================ */

:root {
  /* color */
  --paper: #FAF7F1;          /* page background — warm off-white */
  --paper-raised: #FFFFFF;   /* cards, form fields */
  --ink: #16130E;            /* near-black text, dark bands */
  --ink-soft: #5C543F;       /* secondary text */
  --line: rgba(22, 19, 14, 0.16);        /* hairline borders */
  --line-faint: rgba(22, 19, 14, 0.08);  /* graph-paper grids */
  --accent: #E04E1B;         /* signal orange — numbers, borders, graphics */
  --accent-strong: #C84310;  /* button fills — AA contrast with white text */
  --accent-deep: #B23A0E;    /* hover state, small accent text */
  --paper-on-ink: rgba(250, 247, 241, 0.78);
  --line-on-ink: rgba(250, 247, 241, 0.18);

  /* type */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* effects */
  --press: 4px 4px 0 var(--ink);
  --press-sm: 3px 3px 0 var(--ink);
}

/* ---------- reset & base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent); color: #fff; }

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

img { max-width: 100%; height: auto; display: block; }

.shell { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

main > .shell + .shell { margin-top: 96px; }
main { padding-bottom: 112px; }

/* ---------- shared atoms ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin: 0 0 18px;
}
.eyebrow::before { content: "/ "; color: var(--accent); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin: 0;
}
.section-head .eyebrow { margin: 0; white-space: nowrap; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  padding: 15px 26px;
  cursor: pointer;
  box-shadow: var(--press);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn--accent { background: var(--accent-strong); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); color: #fff; }

.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: none; box-shadow: none; }

.btn--lg { padding: 19px 34px; font-size: 0.9375rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  position: relative;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wordmark::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--accent);
  flex: none;
}
.wordmark:hover { color: var(--ink); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav > a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
}
.site-nav > a:hover { color: var(--ink); }
.site-nav > a[aria-current="page"] {
  color: var(--accent-deep);
  border-bottom: 2px solid var(--accent);
}

.site-nav > a.site-nav__cta {
  padding: 10px 18px 10px 21px;
  font-size: 0.8rem;
  box-shadow: var(--press-sm);
  color: #fff;
  border-bottom: none;
}
.site-nav > a.site-nav__cta:hover {
  box-shadow: 1px 1px 0 var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 9px 16px;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

/* ---------- page hero ---------- */

.page-hero {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(20px, 4vw, 48px);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.02;
  max-width: 20ch;
  margin-bottom: 28px;
}

.page-hero__lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

/* home hero: portrait right, text left; mobile reorders via grid areas */
.page-hero--home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: clamp(40px, 7vw, 96px);
  grid-template-areas:
    "eyebrow portrait"
    "h1      portrait"
    "lede    portrait"
    "actions portrait"
    "plate   portrait";
  align-items: start;
}
.page-hero--home > .eyebrow { grid-area: eyebrow; }
.page-hero--home > h1 { grid-area: h1; }
.page-hero--home > .page-hero__lede { grid-area: lede; }
.page-hero--home > .page-hero__actions { grid-area: actions; }
.page-hero--home > .title-plate { grid-area: plate; justify-self: start; }

.page-hero__portrait {
  grid-area: portrait;
  margin: 46px 0 0;
  justify-self: end;
  align-self: start;
  width: min(320px, 100%);
}
.page-hero__portrait img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 rgba(22, 19, 14, 0.08);
  filter: saturate(0.95);
}
.page-hero__portrait figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-top: 22px;
}
.page-hero__portrait figcaption::before { content: "/ "; color: var(--accent); }

/* staggered load reveal */
@media (prefers-reduced-motion: no-preference) {
  .page-hero > *:not(h1) {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 640ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .page-hero > *:nth-child(1) { animation-delay: 40ms; }
  .page-hero > *:nth-child(2) { animation-delay: 130ms; }
  .page-hero > *:nth-child(3) { animation-delay: 220ms; }
  .page-hero > *:nth-child(4) { animation-delay: 310ms; }
  .page-hero > *:nth-child(5) { animation-delay: 400ms; }
  .page-hero > *:nth-child(6) { animation-delay: 490ms; }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* hero title-plate: engineering drawing corner block */
.title-plate {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  margin-top: 56px;
}
.title-plate > div {
  padding: 12px 20px;
  border-right: 1px solid var(--line);
}
.title-plate > div:last-child { border-right: none; }
.title-plate b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.title-plate span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- specialty cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.spec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 28px 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.spec-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgba(22, 19, 14, 0.1);
  color: var(--ink);
}
.spec-card::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  color: var(--line);
  transition: color 150ms ease, transform 150ms ease;
}
.spec-card:hover::after { color: var(--accent); transform: translateX(3px); }

.spec-card__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin: 0 0 16px;
}
.spec-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.spec-card__problem {
  font-size: 0.975rem;
  color: var(--ink-soft);
  flex: 1;
}
.spec-card__result {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin: 20px 0 0;
}
.spec-card__result::before {
  content: "RESULT";
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 4px;
}

/* ---------- process steps ---------- */

.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 26px;
  position: relative;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { font-size: 0.975rem; color: var(--ink-soft); }

.step-more { margin-top: 28px; }

/* ---------- work cards (featured + work page) ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.work-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgba(22, 19, 14, 0.1);
  color: var(--ink);
}

.work-card__cover {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 23px, var(--line-faint) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, var(--line-faint) 23px 24px);
}
.work-card__index, .work-card__year {
  position: absolute;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.work-card__index { left: 24px; }
.work-card__year { right: 24px; }
.work-card__cover-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0;
  line-height: 1;
}

.work-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.work-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.work-card__title { font-size: 1.35rem; margin-bottom: 8px; }
.work-card__lede { font-size: 0.975rem; color: var(--ink-soft); flex: 1; }

.work-card__stats {
  list-style: none;
  margin: 20px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.work-card__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.work-card__stats span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  line-height: 1.4;
  display: block;
  margin-top: 3px;
}

.work-card__more {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-top: 18px;
}

/* ---------- work detail (work page) ---------- */

.work-detail {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.work-detail:last-child { padding-bottom: 0; }

.work-detail__rail {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.work-detail__rail b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.work-detail__rail .tag {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  align-self: flex-start;
  margin-top: 10px;
}
.work-detail__rail .tag:hover { color: var(--accent); }

.work-detail__body h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); max-width: 26ch; }
.work-detail__body > p { color: var(--ink-soft); max-width: 62ch; }

.work-detail__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.work-detail__list li {
  padding: 10px 0 10px 26px;
  position: relative;
  max-width: 62ch;
}
.work-detail__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}
.work-detail__list li.stat {
  margin-top: 18px;
  background: color-mix(in srgb, var(--accent) 5%, var(--paper-raised));
  border: 1px solid var(--line);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}
.work-detail__list li.stat::before { content: none; }

/* ---------- service blocks (services page) ---------- */

.service-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  border-top: 1px solid var(--line);
  padding: 60px 0;
}
.service-block:last-of-type { padding-bottom: 0; }

.service-block__rail {
  align-self: start;
  position: sticky;
  top: 100px;
}
.service-block__index {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 14px;
}
.service-block__rail h2 { font-size: 1.5rem; margin: 0; }

.service-block__body { max-width: 62ch; }
.service-block__body .lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin: 26px 0 6px;
}
.service-block__body .lbl:first-child { margin-top: 0; }
.service-block__body .problem { font-style: italic; color: var(--ink-soft); }
.service-block__result {
  background: color-mix(in srgb, var(--accent) 5%, var(--paper-raised));
  border: 1px solid var(--line);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 26px;
}
.service-block__result a { color: var(--accent-deep); }

/* ---------- pricing ---------- */

.price-flow {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.price-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 40px;
}
.price-step__num {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}
.price-step__num small {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-top: 10px;
}
.price-step h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.price-step > div > p { color: var(--ink-soft); max-width: 60ch; }
.price-step .btn { margin-top: 18px; }

.price-step--sprint {
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
  padding: 48px 44px;
}

.price-tag {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 6px 0 18px;
}
.price-tag small {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-left: 10px;
}

.sprint-deliverables {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.sprint-deliverables li {
  padding: 9px 0 9px 30px;
  position: relative;
  max-width: 60ch;
}
.sprint-deliverables li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

.price-duration {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.price-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- FAQ ---------- */

.faq { border-bottom: 1px solid var(--line); }

.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  color: var(--ink-soft);
  max-width: 65ch;
  padding-bottom: 24px;
}

/* ---------- about ---------- */

.bio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.headshot {
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 rgba(22, 19, 14, 0.08);
  filter: saturate(0.92);
}
.bio p { max-width: 62ch; }
.bio p + p { margin-top: 1em; }

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  counter-reset: principle;
}
.principles li {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 26px;
  counter-increment: principle;
}
.principles li::before {
  content: "0" counter(principle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 14px;
}
.principles h3 { font-size: 1.2rem; margin-bottom: 8px; }
.principles p { font-size: 0.975rem; color: var(--ink-soft); }

/* ---------- booking / contact ---------- */

.booking { margin-top: 40px; }
.booking__frame { position: relative; }
.calendly-inline-widget {
  border: 1px solid var(--line);
  background: var(--paper-raised);
}
.booking__loading {
  position: absolute; inset: 1px; display: grid; align-content: center; justify-items: start;
  padding: 32px clamp(20px, 5vw, 48px); background: var(--paper-raised);
  background-image: linear-gradient(var(--line-faint) 1px, transparent 1px), linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: auto;
}
.booking__loading .eyebrow { margin: 0 0 10px; }
.booking__loading-title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.1;
  letter-spacing: -0.01em; margin: 0 0 12px;
}
.booking__loading-title::after {
  content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.4em; vertical-align: 0.05em;
  background: var(--accent); animation: booking-blink 1s steps(2, start) infinite;
}
.booking__loading-text { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); margin: 0; max-width: 42ch; }
.booking__loading-text a { color: var(--accent-deep); }
.booking__frame.is-ready .booking__loading { display: none; }
@keyframes booking-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .booking__loading-title::after { animation: none; } }
.booking__fallback {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-direct {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-direct li {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.contact-direct .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 4px;
}
.contact-direct a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
}
.contact-direct a:hover { color: var(--accent-deep); }

.contact-meta {
  margin-top: 26px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.contact-meta p { margin-bottom: 0.4em; }

/* form */
.contact-form {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 3px 3px 0 rgba(224, 78, 27, 0.25);
}
.field input.invalid { border-color: var(--accent-deep); }
.field-error {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-deep);
  margin: 6px 0 0;
}
.botcheck { display: none; }

.submit {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent-strong);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  padding: 15px 26px;
  cursor: pointer;
  box-shadow: var(--press);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.submit:hover { background: var(--accent-deep); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.submit:disabled { opacity: 0.6; cursor: default; }

.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 16px;
}
.form-status.success { color: var(--ink); }
.form-status.error { color: var(--accent-deep); }

/* ---------- CTA strip ---------- */

.cta-strip {
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--accent);
  padding: clamp(56px, 8vw, 88px) 0;
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--paper);
  max-width: 22ch;
  margin: 0;
}
.cta-strip__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cta-strip .btn--accent { box-shadow: 4px 4px 0 var(--paper); border-color: var(--paper); }
.cta-strip .btn--accent:hover { box-shadow: 2px 2px 0 var(--paper); }
.cta-strip__alt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper-on-ink);
  text-decoration-color: var(--accent);
}
.cta-strip__alt:hover { color: var(--paper); }

.cta-strip__text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.cta-strip__photo {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border: 1px solid var(--paper-on-ink);
  box-shadow: 8px 8px 0 var(--accent);
  filter: saturate(0.95);
  flex: none;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper-on-ink);
  border-top: 1px solid var(--line-on-ink);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.wordmark--footer { color: var(--paper); margin-bottom: 14px; }
.wordmark--footer:hover { color: var(--paper); }
.site-footer__brand p { max-width: 34ch; }
.site-footer h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--paper-on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-on-ink);
  margin-top: 24px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ---------- Otto intro (homepage): text left, process sketch right ---------- */

.otto-intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.otto-intro__text p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  max-width: 62ch;
}
.otto-intro__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.otto-intro__text p.otto-intro__alt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  max-width: 44ch;
  margin: 0;
}

/* small alternative line under a page-hero lede */
.page-hero__alt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* pricing step 1: breathing room between the two entry points */
.price-step .btn + p { margin-top: 26px; }

/* process sketch (lives in the Otto intro) */
.audit-strip__diagram { width: 100%; height: auto; color: var(--ink-soft); }
.audit-strip__manual { stroke: var(--accent-strong); stroke-width: 1.8; }
.audit-strip__drop { stroke: var(--accent-strong); }
.audit-strip__labels text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  fill: var(--ink-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: 1fr; }
  .work-detail, .service-block { grid-template-columns: 200px 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  main > .shell + .shell { margin-top: 72px; }
  main { padding-bottom: 80px; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 6px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a {
    padding: 14px 0;
    border-top: 1px solid var(--line-faint);
    font-size: 0.9rem;
  }
  .site-nav > a[aria-current="page"] { border-bottom: none; }
  .site-nav > a.site-nav__cta {
    margin-top: 16px;
    justify-content: center;
    padding: 14px 18px;
    border-top: none;
  }

  .card-grid, .work-grid, .principles { grid-template-columns: 1fr; }
  .otto-intro { grid-template-columns: 1fr; }
  .audit-strip__diagram { max-width: 300px; }
  .work-detail, .service-block, .bio, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .work-detail__rail, .service-block__rail { position: static; }
  .price-step { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; }
  .price-step--sprint { padding: 32px 24px; box-shadow: 6px 6px 0 var(--accent); }
  .price-step__num { font-size: 2rem; }
  .page-hero--home {
    grid-template-columns: 1fr;
    grid-template-areas: "eyebrow" "h1" "lede" "actions" "portrait" "plate";
  }
  .page-hero__portrait { justify-self: start; width: min(300px, 78vw); margin-top: 30px; }
  .page-hero__portrait figcaption { margin-top: 14px; }
  .title-plate {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 430px;
  }
  .title-plate > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .title-plate > div:nth-child(2n) { border-right: none; }
  .title-plate > div:nth-child(n+3) { border-bottom: none; }
  .section-head { flex-direction: column; gap: 8px; }
  .contact-form { padding: 24px 20px; }
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
  .cta-strip__photo { width: 140px; height: 140px; }
  .headshot { width: 160px; }
}

@media (max-width: 560px) {
  .page-hero__actions { flex-direction: column; align-items: stretch; }
  .page-hero__actions .btn { width: 100%; text-align: center; }
  .cta-strip__actions { flex-direction: column; align-items: stretch; }
  .cta-strip__actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- articles ---------- */
.article { max-width: 66ch; padding-top: clamp(48px, 8vw, 96px); }
.article__head h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.04; margin: 0 0 20px; max-width: 22ch; }
.article__head .article__lede { font-size: clamp(1.1rem, 2vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); margin: 0 0 40px; }
.article__body { font-size: 1.0625rem; line-height: 1.7; }
.article__body p { margin: 0 0 1.25em; }
.article__body h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.15; margin: 2em 0 0.6em; }
.article__body h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.article__body ul, .article__body ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.article__body li { margin-bottom: 0.4em; }
.article__body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 1px solid var(--ink);
  color: var(--ink-soft); font-style: italic;
}
.article__body code {
  font-family: var(--font-mono); font-size: 0.88em; background: var(--paper-raised);
  border: 1px solid var(--line); padding: 1px 5px;
}
.article__body pre {
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.55;
  background: var(--paper-raised); border: 1px solid var(--ink); box-shadow: var(--press-sm);
  padding: 16px 18px; overflow-x: auto; margin: 1.6em 0;
}
.article__body pre code { background: none; border: 0; padding: 0; }
.article__body img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.article__body figcaption, .article__body img + em { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }
.article__body table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1.6em 0; display: block; overflow-x: auto; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article__body th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.article__body a { color: var(--accent-deep); }
.article__body hr { border: 0; border-top: 1px dashed var(--line); margin: 2.4em 0; }
.article__foot { margin-top: 56px; padding-top: 32px; border-top: 1px dashed var(--line); }
.article__next { margin: 32px 0 0; display: flex; flex-direction: column; gap: 6px; }
.article__next .eyebrow { margin: 0; }
.article__next a { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.article__next a:hover { color: var(--accent-deep); }
.article__by { margin-top: 32px; font-size: 0.95rem; color: var(--ink-soft); }

.articles-list { padding-bottom: 40px; }
.articles { list-style: none; margin: 0; padding: 0; max-width: 66ch; }
.articles__item { padding: 28px 0; border-top: 1px solid var(--line); }
.articles__item:last-child { border-bottom: 1px solid var(--line); }
.articles__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.15; color: var(--ink); text-decoration: none; }
.articles__title:hover { color: var(--accent-deep); }
.articles__meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-soft); margin: 8px 0 10px; }
.articles__summary { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.articles__empty { font-family: var(--font-mono); color: var(--ink-soft); }

/* ---------- email opt-in ---------- */
.optin { max-width: 52ch; margin: 36px 0 0; }
.optin__label { display: block; font-size: 1rem; line-height: 1.5; margin: 0 0 12px; }
.optin__row { display: flex; gap: 10px; align-items: stretch; }
.optin__row input[type="email"] {
  flex: 1; min-width: 0; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px;
}
.optin__row input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 3px 3px 0 rgba(224, 78, 27, 0.25); }
.optin__row .btn { padding: 12px 18px; font-size: 0.8rem; white-space: nowrap; }
.optin__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.optin__status { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin: 10px 0 0; min-height: 1.2em; }
.optin__status.is-success { color: var(--accent-deep); }
.optin--footer { margin: 0; max-width: none; }
.optin--footer .optin__label { font-size: 0.9rem; color: var(--paper-on-ink); }
.optin--footer .optin__row input[type="email"] { background: transparent; color: var(--paper); border-color: var(--line-on-ink); }
.optin--footer .optin__row input[type="email"]::placeholder { color: rgba(250, 247, 241, 0.5); }
.optin--footer .optin__row input[type="email"]:focus { border-color: var(--accent); box-shadow: none; }
.optin--footer .optin__status { color: var(--paper-on-ink); }
.optin--footer .optin__status.is-success { color: var(--paper); font-size: 0.95rem; }
.site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1.6fr; }
@media (max-width: 720px) {
  .optin__row { flex-direction: column; }
  .optin__row .btn { width: 100%; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- opt-in slide-in (article pages only) ---------- */
.optin-slide {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 320px;
  background: var(--paper-raised); border: 1px solid var(--ink); box-shadow: var(--press);
  padding: 18px 20px 16px;
  transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
}
.optin-slide.is-open { transform: none; opacity: 1; pointer-events: auto; }
.optin-slide .optin { margin: 0; max-width: none; }
.optin-slide .optin__label { font-size: 0.95rem; padding-right: 28px; }
.optin-slide__close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: 1rem; color: var(--ink-soft);
}
.optin-slide__close:hover { color: var(--ink); }
@media (max-width: 639px) { .optin-slide { display: none; } }
@media (prefers-reduced-motion: reduce) { .optin-slide { transition: none; } }

/* ---------- article layout: one centered 66ch column ---------- */
.article-wrap { padding-top: clamp(48px, 8vw, 96px); }
.article-wrap .article { padding-top: 0; max-width: 66ch; margin: 0 auto; }

/* the corner slide-in gets the same panel treatment */
.optin-slide { padding: 0; }
.optin-slide .optin { padding: 22px 24px 22px; }
.optin-slide .optin__label {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2;
  letter-spacing: -0.01em; margin: 0 0 14px; padding-right: 26px;
}
.optin-slide .optin__row { flex-direction: column; gap: 10px; }
.optin-slide .optin__row input[type="email"] { border-color: var(--ink); box-shadow: var(--press-sm); }
.optin-slide .optin__row .btn { width: 100%; }
.optin-slide__close { top: 10px; right: 10px; }

/* ---------- inline signup inside the article text ---------- */
.article-inline {
  margin: 44px 0; padding: 22px 24px 24px;
  border: 1px solid var(--ink); box-shadow: var(--press); background: var(--paper-raised);
}
.article-inline .eyebrow { margin: 0 0 8px; font-size: 0.68rem; }
.article-inline__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15;
  letter-spacing: -0.01em; margin: 0 0 14px;
}
.article-inline .optin { margin: 0; max-width: none; }
.article-inline .optin__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.article-inline .optin__row input[type="email"] { border-color: var(--ink); box-shadow: var(--press-sm); }
.article-inline .optin__row input[type="email"]::placeholder { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.article-inline .optin__row .btn { padding: 12px 20px; }
.article-inline .optin__status:empty, .optin-slide .optin__status:empty { display: none; }

/* ---------- article figures (charts built from HTML, see articles/figures/) ---------- */
.fig { margin: 2.2em 0; padding: 20px 22px 18px; border: 1px solid var(--ink); background: var(--paper-raised); box-shadow: var(--press); }
.fig__title { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.01em; }
.fig figcaption { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); line-height: 1.5; }
.article__body .bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.article__body .bars li, .article__body .dots__key li { margin: 0; }
.bars__row { display: grid; grid-template-columns: minmax(96px, 9.5rem) 1fr auto; align-items: center; gap: 12px; }
.bars__label { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.3; }
.bars__label small { display: block; font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.06em; }
.bars__track { position: relative; height: 22px; background: var(--paper); border: 1px solid var(--line); overflow: hidden;
  background-image: linear-gradient(to right, var(--line-faint) 1px, transparent 1px); background-size: 10% 100%; }
.bars__fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); }
.bars__row--accent .bars__fill { background: var(--accent); }
.bars__value { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.bars--tall { gap: 16px; }
.bars--tall .bars__row { grid-template-columns: minmax(120px, 12rem) 1fr auto; }
.bars--tall .bars__track { height: 34px; }
.bars--tall .bars__label small { letter-spacing: 0; font-size: 0.72rem; margin-top: 2px; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 320px; }
.dots i { display: block; aspect-ratio: 1; background: var(--paper); border: 1px solid var(--line); }
.dots i.is-on, .dots__key i.is-on { background: var(--accent); border-color: var(--accent); }
.article__body .dots__key { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-family: var(--font-mono); font-size: 0.78rem; }
.dots__key li { display: flex; align-items: flex-start; gap: 8px; }
.dots__key i { margin-top: 3px; }
.dots__key i { width: 12px; height: 12px; flex: none; background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 480px) {
  .fig { padding: 16px 14px 14px; }
  .bars__row, .bars--tall .bars__row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .bars__label { grid-column: 1 / -1; }
  .article__body .bars { gap: 14px; }
}
