:root {
  --bg: #efeee9;
  --ink: #121212;
  --muted: #4e4e4a;
  --line: #121212;
  --signal: #ff4d00;
  --paper: #f7f7f4;
  --display: "Syne", "Arial Black", Impact, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --dock: 58px;
}

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

html { color-scheme: light; scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

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

h1, h2, h3, .mast-mark, .idx-title, .phase-num {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
}

ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

::selection { background: var(--signal); color: #111; }

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

[id] { scroll-margin-top: 88px; }

[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--signal);
  color: #111;
  padding: 8px 12px;
}

.skip:focus { top: 10px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 70;
  pointer-events: none;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 10px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}

.mast-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--signal);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.06em;
}

.mast-id {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mast-id span {
  display: inline-block;
  margin-left: 12px;
  color: var(--muted);
}

.mast-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--mono);
  line-height: 1.1;
}

.mast-clock strong { font-weight: 500; font-variant-numeric: tabular-nums; }

.mast-clock span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  min-height: var(--dock);
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--signal);
}

.dock a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  padding: 0 16px;
  min-height: var(--dock);
  text-decoration: none;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-right: 1px solid #2c2c2c;
}

.dock a i {
  font-style: normal;
  color: var(--signal);
}

.dock a:hover { background: #1c1c1c; }

.dock a[aria-current="page"] {
  background: var(--signal);
  color: #111;
}

.dock a[aria-current="page"] i { color: #111; }

.dock a.dock-mail {
  margin-left: auto;
  flex: 0 1 auto;
  border-right: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.stage {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  min-height: calc(100vh - 64px - var(--dock));
  border-bottom: 1px solid var(--ink);
}

.stage-copy {
  background: #111;
  color: var(--paper);
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stage-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: 0.84;
  color: var(--paper);
}

.stage-board {
  background: var(--signal);
  color: #111;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.board-label,
.eyebrow,
.kicker,
.tag,
.ledger-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-copy .eyebrow { color: var(--signal); }

.stage-board ol { list-style: none; display: grid; gap: 0; }

.stage-board li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "n strong" "n em";
  gap: 0 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.28);
}

.stage-board li span { grid-area: n; font-family: var(--mono); font-size: 0.75rem; }
.stage-board strong { grid-area: strong; font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.04em; line-height: 1; }
.stage-board em { grid-area: em; font-style: normal; font-size: 0.92rem; }

.lede { margin-top: 22px; max-width: 38rem; font-size: 1.12rem; }

.stage-copy .lede { color: #d5d5ce; }

.hero-actions, .cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn, .btn-ghost, .choice, .text-btn, .finder-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--signal);
  color: #111;
}

.btn:hover { background: #ff7433; color: #111; }

.btn-ghost, .stage-copy .btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.stage-copy .btn { background: var(--paper); color: #111; }
.stage-copy .btn:hover { background: var(--signal); }
.stage-copy .btn-ghost:hover { background: var(--paper); color: #111; }

.stage-board .btn { background: #111; color: var(--paper); align-self: flex-start; margin-top: auto; }
.stage-board .btn:hover { background: #2a2a2a; color: white; }

.section { padding-block: 72px; }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.section-head h2,
.detail-grid h2,
.prose h2,
.split h2,
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.9;
}

.section-head > p,
.prose p { color: var(--muted); }

.prose .tag, .kicker, .tag { color: var(--ink); }

.kicker span:first-child { color: var(--signal); }

.page-hero {
  width: auto;
  max-width: none;
  margin: 0;
  background: #111;
  color: var(--paper);
  padding: 64px max(22px, calc((100% - 1160px) / 2)) 36px;
}

.page-hero h1 { max-width: 14ch; color: var(--paper); }

.page-hero .lede { color: #c8c8c0; }

.page-hero .eyebrow { color: var(--signal); }
.page-hero .btn { background: var(--signal); color: #111; }
.page-hero .btn-ghost { color: var(--paper); border-color: var(--paper); }
.page-hero .btn-ghost:hover { background: var(--paper); color: #111; }

.ghost-num { display: none; }

.local-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 28px;
  padding-bottom: 4px;
}

.local-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  border: 1px solid #3d3d3d;
  color: var(--paper);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.local-nav a:hover,
.local-nav a[aria-current="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: #111;
}

.index-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.index-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 280px;
  padding: 22px;
  margin-left: -1px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
}

.index-list a:hover {
  background: var(--signal);
  color: #111;
}

.idx-num { font-family: var(--mono); color: var(--signal); letter-spacing: 0.14em; }
.index-list a:hover .idx-num { color: #111; }
.idx-title { font-size: clamp(1.8rem, 2.5vw, 2.4rem); line-height: 0.95; }
.idx-desc { color: var(--muted); margin-top: auto; }
.index-list a:hover .idx-desc { color: #111; }
.idx-go { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #111;
  color: var(--paper);
}

.fact-strip article {
  padding: 22px;
  border-right: 1px solid #333;
}

.fact-strip article:last-child { border-right: 0; }

.fact-strip span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.fact-strip strong {
  display: block;
  margin-top: 16px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fact-strip p { margin-top: 10px; color: #c7c7c0; font-size: 0.95rem; }

.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.phase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
  padding: 20px;
  border: 1px solid var(--ink);
  margin-left: -1px;
}

.phase-num { font-size: 2.2rem; color: var(--signal); line-height: 1; }
.phase h3 { font-size: 2rem; line-height: 0.95; }
.phase p, .phase li { color: var(--muted); }
.phase ul { margin-top: auto; padding-left: 1rem; }

.detail-grid, .split, .two, .contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px 48px;
  align-items: start;
}

.detail + .detail,
.section + .section { }

#consulting, #programming, #continuity {
  border-top: 1px solid var(--ink);
}

.cards, .plans, .principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.card, .plan, .panel, .note {
  background: transparent;
  border: 1px solid var(--ink);
  padding: 22px;
}

.card h3, .plan h3, .panel h3, .faq-item h3 {
  font-size: 1.7rem;
  line-height: 1;
}

.card p, .plan p, .panel p, .panel address { margin-top: 10px; color: var(--muted); }

.card ul, .detail ul, .fit-grid ul, .prose ul {
  margin-top: 12px;
  padding-left: 1.1rem;
  color: var(--muted);
}

.card li + li, .prose li + li, .fit-grid li + li { margin-top: 6px; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

.fit-grid article { padding: 28px; border: 1px solid var(--ink); }

.fit-yes { background: #111; color: var(--paper); margin-right: -1px; }
.fit-yes p, .fit-yes li { color: #d0d0c8; }
.fit-other { background: var(--signal); color: #111; }
.fit-other li { color: #111; }

.finder {
  border: 1px solid var(--ink);
  padding: 28px;
  background: var(--paper);
}

.finder h3, .result-card h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  margin-top: 8px;
}

.choice-grid { display: grid; gap: 8px; margin-top: 18px; }

.choice {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  border: 1px solid var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  padding: 8px 16px;
}

.choice:hover { background: #111; color: var(--paper); }

.finder-nav { margin-top: 12px; }
.finder-nav:has(button[hidden]) { display: none; }

.finder-back, .text-btn {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 40px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.result-card p { margin-top: 12px; color: var(--muted); max-width: 42rem; }

.faq { border-top: 1px solid var(--ink); }

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

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 0;
}

.plus { width: 22px; height: 22px; position: relative; flex: 0 0 auto; }
.plus::before, .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.plus::before { width: 14px; height: 2px; left: 4px; top: 10px; }
.plus::after { width: 2px; height: 14px; left: 10px; top: 4px; }
.faq-item.is-open .plus::after { transform: scaleY(0); }

.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-panel p { max-width: 44rem; padding-bottom: 18px; color: var(--muted); }

.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td {
  text-align: left;
  vertical-align: top;
  padding: 14px 10px;
  border-bottom: 1px solid var(--ink);
}
.facts th { width: 30%; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.person { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; }
.monogram {
  width: 120px;
  height: 120px;
  background: #111;
  color: var(--signal);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.4rem;
}

.place-card {
  background: #111;
  color: var(--paper);
  padding: 28px;
  min-height: 100%;
}
.place-card h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 0.92; margin-top: 10px; }
.place-card p, .place-card address { margin-top: 12px; color: #d0d0c8; }
.place-card .ledger-kicker { color: var(--signal); }
.place-card .btn, .place-card .map-link {
  margin-top: 22px;
  background: var(--signal);
  color: #111;
}
.place-card a { color: var(--paper); }
.place-card .btn { color: #111; }

.contact-aside { display: grid; gap: 12px; align-content: start; }

form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.req { color: var(--signal); }

input, textarea, select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 14px;
}

textarea { min-height: 150px; resize: vertical; }
input.is-invalid, textarea.is-invalid, select.is-invalid { border-color: var(--signal); box-shadow: inset 3px 0 0 var(--signal); }
.field-error { min-height: 1.1em; color: #9a2200; font-size: 0.9rem; }
.form-note { color: var(--muted); }

.ready {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: #111;
  color: var(--paper);
}
.ready pre { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 0.85rem; }
.ready .btn-ghost { color: var(--paper); border-color: var(--paper); }

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.band {
  background: #111;
  color: var(--paper);
  padding: 42px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: end;
}
.band h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.9; max-width: 14ch; }
.band p { margin-top: 12px; color: #cfcfc6; max-width: 36rem; }
.band .kicker { color: var(--signal); }
.band .btn { background: var(--signal); color: #111; }
.band .btn:hover { background: white; }

.colophon {
  border-top: 1px solid var(--ink);
  padding: 28px 0 36px;
}
.colophon-grid {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.colophon a { color: var(--ink); }
.colophon-grid p:last-child { grid-column: 1 / -1; padding-top: 8px; }
.colophon strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 6px; }

.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

@media (max-width: 980px) {
  .stage, .section-head, .detail-grid, .split, .two, .contact-layout, .fit-grid, .phases, .fact-strip, .cards, .plans, .principles, .person, .band, .colophon-grid {
    grid-template-columns: 1fr;
  }
  .index-list { grid-template-columns: 1fr; }
  .index-list a { min-height: 0; margin-left: 0; margin-top: -1px; }
  .phase { margin-left: 0; margin-top: -1px; min-height: 0; }
  .fact-strip article { border-right: 0; border-bottom: 1px solid #333; }
  .fit-yes { margin-right: 0; }
  .dock { overflow-x: auto; }
  .dock a { flex: 0 0 auto; }
  .dock-mail { margin-left: 0; }
  .mast-id span { display: none; }
}

@media (max-width: 640px) {
  .wrap, .colophon-grid { width: min(1160px, calc(100% - 28px)); }
  .mast { grid-template-columns: auto 1fr auto; }
  .mast-clock { display: none; }
  .stage-copy, .stage-board, .band, .page-hero { padding: 28px 18px; }
  .section { padding-block: 48px; }
  h1, .stage-copy h1, .page-hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
}

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