:root {
  --ink: #102826;
  --ink-soft: #3d5652;
  --paper: #e8eee7;
  --paper-deep: #d2ddd6;
  --panel: #f8fbf6;
  --signal: #d6ff70;
  --signal-hover: #c2ed57;
  --coral: #e26b52;
  --line: #9fb3aa;
  --shadow: 0 18px 40px rgb(16 40 38 / 12%);
  --radius: 2px;
  --tap: 44px;
  --sans: Arial, Helvetica, sans-serif;
  --display: Georgia, 'Times New Roman', serif;
  --mono: 'Courier New', Courier, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: var(--tap); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.page-shell { overflow: clip; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0; color: var(--ink-soft); font: 700 12px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { align-items: center; display: flex; justify-content: space-between; min-height: 76px; }
.brand { align-items: center; display: inline-flex; font: 700 18px/1 var(--sans); letter-spacing: -.03em; text-decoration: none; }
.moon-mark { background: var(--ink); border-radius: 50%; display: grid; height: 32px; margin-right: 10px; overflow: hidden; place-items: center; position: relative; width: 32px; }
.moon-mark::before { background: var(--signal); border-radius: 50%; content: ''; height: 16px; transform: translateX(4px); width: 16px; }
.moon-mark::after { background: var(--ink); border-radius: 50%; content: ''; height: 16px; position: absolute; transform: translateX(-1px); width: 16px; }
.nav-list { align-items: center; display: flex; font-size: 14px; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current='page'] { text-decoration: underline; }
.nav-list .nav-cta { background: var(--ink); color: white; padding: 11px 16px; text-decoration: none; }
.nav-list .nav-cta:hover { background: #214542; text-decoration: none; }

.hero { padding: 94px 0 68px; position: relative; }
.hero::before { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; content: ''; inset: 0 0 auto 55%; opacity: .3; pointer-events: none; position: absolute; height: 78%; }
.hero-grid { display: grid; gap: 50px; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .75fr); position: relative; }
.hero h1 { font-size: clamp(48px, 7vw, 88px); line-height: .92; margin: 15px 0 24px; max-width: 760px; text-wrap: balance; }
.hero-copy { color: var(--ink-soft); font-size: 20px; max-width: 580px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { align-items: center; background: var(--signal); border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); display: inline-flex; font-size: 15px; font-weight: 700; gap: 9px; justify-content: center; padding: 10px 17px; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.button:hover { background: var(--signal-hover); text-decoration: none; transform: translateY(-2px); }
.button--quiet { background: transparent; }
.button--quiet:hover { background: var(--panel); }
.arrow { font-size: 19px; line-height: 1; }
.promise { color: var(--ink-soft); font-size: 13px; margin: 16px 0 0; }

.project-board { background: var(--ink); box-shadow: var(--shadow); color: #eff7ef; min-height: 420px; padding: 22px; transform: rotate(1.5deg); }
.board-topline { align-items: center; border-bottom: 1px solid rgb(255 255 255 / 28%); display: flex; font: 700 11px/1.2 var(--mono); justify-content: space-between; padding-bottom: 16px; text-transform: uppercase; }
.board-status { color: var(--signal); }
.board-heading { font: 400 clamp(30px, 3vw, 43px)/1 var(--display); letter-spacing: -.04em; margin: 32px 0 25px; max-width: 330px; }
.board-item { border-top: 1px solid rgb(255 255 255 / 22%); display: grid; gap: 12px; grid-template-columns: 28px 1fr; padding: 15px 0; }
.board-number { color: var(--signal); font: 700 12px/1.4 var(--mono); }
.board-item p { color: #c5d4c7; font-size: 14px; margin: 4px 0 0; }
.board-tag { background: var(--coral); color: white; display: inline-block; font: 700 11px/1 var(--mono); margin-top: 20px; padding: 9px 10px; text-transform: uppercase; }

.signal-strip { background: var(--signal); border-bottom: 1px solid var(--ink); border-top: 1px solid var(--ink); padding: 13px 0; }
.signal-strip p { font: 700 13px/1.4 var(--mono); margin: 0; text-align: center; text-transform: uppercase; }
.section { padding: 112px 0; }
.section--dark { background: var(--ink); color: #f4faf2; }
.section--deep { background: var(--paper-deep); }
.section-heading { display: grid; gap: 34px; grid-template-columns: .65fr 1.35fr; margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(37px, 4.5vw, 62px); line-height: .95; margin: 0; max-width: 720px; text-wrap: balance; }
.section-heading p:not(.eyebrow) { color: var(--ink-soft); font-size: 18px; margin: 0; max-width: 580px; }
.section--dark .eyebrow, .section--dark .section-heading p:not(.eyebrow) { color: #c1d3c6; }

.problem-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.problem { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 215px; padding: 24px; }
.problem:nth-child(3n) { border-right: 0; }
.problem h3 { font-size: 21px; line-height: 1.08; margin: 42px 0 8px; }
.problem p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.problem-index { color: var(--coral); font: 700 12px/1 var(--mono); }

.process-grid { border-top: 1px solid rgb(255 255 255 / 28%); display: grid; grid-template-columns: repeat(4, 1fr); }
.process-step { border-right: 1px solid rgb(255 255 255 / 28%); min-height: 295px; padding: 24px; }
.process-step:last-child { border-right: 0; }
.process-number { color: var(--signal); font: 700 12px/1 var(--mono); }
.process-step h3 { font-size: 24px; line-height: 1.05; margin: 54px 0 11px; }
.process-step p { color: #c1d3c6; font-size: 15px; margin: 0; }

.door-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.door { background: var(--panel); border: 1px solid var(--ink); display: flex; flex-direction: column; min-height: 285px; padding: 25px; text-decoration: none; transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.door:hover { background: white; box-shadow: 7px 7px 0 var(--ink); text-decoration: none; transform: translate(-3px, -3px); }
.door-type { color: var(--coral); font: 700 12px/1.3 var(--mono); text-transform: uppercase; }
.door h3 { font-size: 28px; line-height: 1; margin: 58px 0 12px; }
.door p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.door .arrow { margin-top: auto; text-align: right; }

.ownership { display: grid; gap: 50px; grid-template-columns: .75fr 1.25fr; }
.ownership h2 { font-size: clamp(40px, 5vw, 66px); line-height: .92; margin: 14px 0 0; }
.ownership-list { border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.ownership-list li { border-bottom: 1px solid var(--line); color: var(--ink-soft); padding: 20px 0 20px 30px; position: relative; }
.ownership-list li::before { color: var(--coral); content: '→'; left: 0; position: absolute; }
.closing { background: var(--coral); color: white; padding: 94px 0; }
.closing-grid { display: grid; gap: 36px; grid-template-columns: 1.15fr .85fr; }
.closing h2 { font-size: clamp(45px, 6vw, 76px); line-height: .92; margin: 13px 0 0; text-wrap: balance; }
.closing p { font-size: 18px; margin: 12px 0 0; max-width: 450px; }
.closing .button { background: white; margin-top: 26px; }
.closing .button:hover { background: var(--signal); }
.site-footer { background: var(--ink); color: white; padding: 42px 0; }
.footer-grid { align-items: start; display: grid; gap: 30px; grid-template-columns: 1fr auto; }
.footer-grid p { color: #c1d3c6; font-size: 13px; margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: end; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #eff7ef; font-size: 14px; }

.page-hero { padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(48px, 7vw, 88px); line-height: .92; margin: 14px 0 22px; max-width: 900px; text-wrap: balance; }
.page-hero .lede { color: var(--ink-soft); font-size: 20px; max-width: 700px; }
.pain-list { list-style: none; margin: 36px 0 0; max-width: 720px; padding: 0; }
.pain-list li { border-top: 1px solid var(--line); font-size: 19px; padding: 15px 0 15px 34px; position: relative; }
.pain-list li::before { color: var(--coral); content: '×'; font: 700 21px/1 var(--mono); left: 0; position: absolute; }
.split-callout { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.callout { border: 1px solid var(--line); padding: 30px; }
.callout--signal { background: var(--signal); border-color: var(--ink); }
.callout h3 { font-size: 30px; line-height: 1; margin: 10px 0 14px; }
.callout p { color: var(--ink-soft); margin: 0; }
.callout--signal p { color: var(--ink); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq summary { cursor: pointer; font-size: 20px; font-weight: 700; padding: 21px 40px 21px 0; position: relative; }
.faq summary::after { content: '+'; font: 400 28px/1 var(--display); position: absolute; right: 5px; top: 18px; }
.faq details[open] summary::after { content: '−'; }
.faq .answer { color: var(--ink-soft); max-width: 760px; padding: 0 36px 22px 0; }

.intake-layout { display: grid; gap: 54px; grid-template-columns: .7fr 1.3fr; padding: 72px 0 112px; }
.intake-layout h1 { font-size: clamp(44px, 5vw, 68px); line-height: .94; margin: 12px 0 18px; }
.intake-layout aside p:not(.eyebrow) { color: var(--ink-soft); }
.intake-notice { border-left: 3px solid var(--coral); color: var(--ink-soft); font-size: 14px; margin-top: 34px; padding: 4px 0 4px 16px; }
.form-card { background: var(--panel); border: 1px solid var(--ink); padding: clamp(24px, 5vw, 52px); }
.form-card h2 { font-size: 31px; line-height: 1; margin: 0 0 28px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field label span { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea { background: white; border: 1px solid var(--line); border-radius: 0; color: var(--ink); min-height: 48px; padding: 11px 12px; width: 100%; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-error { color: #9e2615; font-size: 13px; margin: 6px 0 0; min-height: 20px; }
.form-note { color: var(--ink-soft); font-size: 13px; margin: 18px 0 0; }
.form-status { border-left: 3px solid var(--ink); font-weight: 700; margin: 16px 0 0; min-height: 24px; padding-left: 12px; }
.form-status.error { border-color: #9e2615; color: #9e2615; }
.form-status.success { border-color: #3f7c5d; color: #24533a; }

.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nav-link-button { background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 14px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.chat-page { display: grid; gap: 24px; grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr); padding: 72px 0 112px; }
.chat-intro h1, .account-page h1, .dashboard-heading h1, .project-heading h1 { font-size: clamp(44px, 5vw, 68px); line-height: .94; margin: 12px 0 18px; }
.chat-intro > p:not(.eyebrow), .account-page > section > p:not(.eyebrow), .dashboard-heading p, .project-heading > div > p { color: var(--ink-soft); }
.chat-shell, .project-chat { background: var(--panel); border: 1px solid var(--ink); display: flex; flex-direction: column; min-height: 560px; }
.chat-heading { align-items: start; border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; padding: 22px 24px; }
.chat-heading h2 { font-size: 25px; line-height: 1; margin: 8px 0 0; }
.chat-state, .project-status { background: var(--signal); border: 1px solid var(--ink); font: 700 11px/1 var(--mono); padding: 8px 9px; text-transform: uppercase; white-space: nowrap; }
.chat-messages { display: flex; flex: 1; flex-direction: column; gap: 15px; max-height: 510px; overflow-y: auto; padding: 24px; }
.chat-message { max-width: 85%; padding: 13px 15px; }
.chat-message--assistant { align-self: flex-start; background: white; border: 1px solid var(--line); }
.chat-message--customer { align-self: flex-end; background: var(--ink); color: white; }
.chat-message-label { color: var(--coral); font: 700 11px/1.2 var(--mono); margin: 0 0 7px; text-transform: uppercase; }
.chat-message--customer .chat-message-label { color: var(--signal); }
.chat-message-content { margin: 0; white-space: pre-wrap; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.quick-reply { background: var(--signal); border: 1px solid var(--ink); color: var(--ink); cursor: pointer; min-height: 40px; padding: 8px 10px; text-align: left; }
.quick-reply:hover { background: var(--signal-hover); box-shadow: 2px 2px 0 var(--ink); transform: translate(-1px, -1px); }
.quick-reply:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.chat-compose { border-top: 1px solid var(--line); padding: 18px 22px; }
.chat-compose textarea { background: white; border: 1px solid var(--line); min-height: 98px; padding: 11px; resize: vertical; width: 100%; }
.chat-compose-actions { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-top: 12px; }
.chat-compose .form-status { flex: 1; margin: 0; }
.scope-preview, .sow-card { background: white; border: 1px solid var(--ink); padding: clamp(24px, 4vw, 44px); }
.scope-preview { grid-column: 2; }
.scope-preview h2, .sow-card h2 { font-size: 34px; line-height: 1; margin: 10px 0 13px; }
.scope-estimate { align-items: baseline; background: var(--signal); border: 1px solid var(--ink); display: flex; justify-content: space-between; margin: 28px 0 0; padding: 15px; }
.scope-estimate span { font: 700 12px/1.2 var(--mono); text-transform: uppercase; }
.scope-estimate strong { font-size: 19px; }
.scope-lines { list-style: none; margin: 0; padding: 0; }
.scope-lines > li { align-items: start; border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 1fr auto; padding: 18px 0; }
.scope-lines > li p { color: var(--ink-soft); font-size: 14px; margin: 5px 0 0; }
.scope-lines > li > span { font: 700 13px/1.3 var(--mono); max-width: 185px; text-align: right; }
.scope-boundaries { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.scope-boundaries summary { color: var(--ink-soft); cursor: pointer; font: 700 11px/1.25 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.scope-boundaries summary::marker { color: var(--coral); }
.scope-boundary-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 13px; }
.scope-boundary-grid section { background: var(--panel); border-left: 3px solid var(--signal-hover); padding: 11px 12px; }
.scope-boundary-grid__excluded { border-left-color: var(--coral) !important; }
.scope-boundary-grid h4 { font-size: 13px; margin: 0 0 7px; }
.scope-boundary-grid ul { color: var(--ink-soft); font-size: 13px; line-height: 1.45; margin: 0; padding-left: 18px; }
.scope-boundary-grid li + li { margin-top: 5px; }
.scope-preview section h3, .sow-card section h3 { font-size: 18px; margin: 28px 0 8px; }
.scope-preview section ul, .sow-card section ul { color: var(--ink-soft); margin: 0; padding-left: 20px; }
.scope-disclosure { color: var(--ink-soft); font-size: 13px; margin: 24px 0 0; }
.scope-access { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 24px; }
.scope-access p { color: var(--ink-soft); margin: 5px 0 18px; }
.account-page { display: grid; gap: 54px; grid-template-columns: .75fr 1.25fr; padding: 72px 0 112px; }
.account-card { max-width: 620px; }
.account-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 20px; margin: -10px 0 30px; }
.tab-button { background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font-weight: 700; padding: 10px 0; }
.tab-button.is-active { border-bottom-color: var(--coral); }
.dashboard-page, .project-page { padding: 72px 0 112px; }
.dashboard-heading, .project-heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 44px; }
.project-list { border-top: 1px solid var(--line); }
.project-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 1fr auto; padding: 28px 0; text-decoration: none; }
.project-row:hover h2 { text-decoration: underline; }
.project-row h2 { font-size: 30px; line-height: 1; margin: 8px 0; }
.project-row p:not(.eyebrow) { color: var(--ink-soft); margin: 0; }
.project-row .arrow { color: var(--coral); }
.empty-state { background: var(--panel); border: 1px solid var(--ink); padding: 42px; }
.empty-state h2 { font-size: 32px; margin: 0 0 12px; }
.empty-state p { color: var(--ink-soft); max-width: 560px; }
.back-link { display: inline-block; font-size: 14px; margin-bottom: 26px; }
.project-heading { align-items: start; }
.project-heading .eyebrow { margin: 0; }
.project-status { margin-top: 28px; }
.project-workspace { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); }
.sow-card { min-height: 500px; }
.project-messages { max-height: 420px; }

.solutions-list { border-top: 1px solid var(--line); }
.solution-row { align-items: start; border-bottom: 1px solid var(--line); display: grid; gap: 22px; grid-template-columns: 90px 1fr auto; padding: 28px 0; }
.solution-row .solution-index { color: var(--coral); font: 700 12px/1.5 var(--mono); }
.solution-row h2 { font-size: 29px; line-height: 1; margin: 0 0 8px; }
.solution-row p { color: var(--ink-soft); margin: 0; max-width: 620px; }

.not-found { min-height: 70vh; padding: 130px 0; }
.not-found h1 { font-size: clamp(52px, 9vw, 108px); line-height: .9; margin: 14px 0; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .site-header .wrap { align-items: flex-start; flex-direction: column; gap: 16px; padding: 18px 0; }
  .nav-list { flex-wrap: wrap; gap: 9px 18px; }
  .nav-list .nav-cta { padding: 8px 11px; }
  .hero { padding: 62px 0 52px; }
  .hero::before { inset: 0 -30px auto 32%; }
  .hero-grid, .section-heading, .ownership, .closing-grid, .split-callout, .intake-layout, .chat-page, .account-page, .project-workspace { grid-template-columns: 1fr; }
  .project-board { min-height: auto; transform: none; }
  .section { padding: 76px 0; }
  .section-heading { gap: 20px; margin-bottom: 34px; }
  .problem-grid, .process-grid, .door-grid { grid-template-columns: 1fr; }
  .problem, .problem:nth-child(3n), .process-step { border-right: 0; min-height: 0; }
  .problem h3, .process-step h3, .door h3 { margin-top: 28px; }
  .process-step { min-height: 0; }
  .solution-row { grid-template-columns: 1fr; gap: 8px; }
  .solution-row .button { justify-self: start; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
  .scope-preview { grid-column: auto; }
  .dashboard-heading, .project-heading { align-items: start; flex-direction: column; }
  .project-status { margin-top: 0; }
  .chat-page { padding-top: 52px; }
  .chat-messages { max-height: none; overflow: visible; }
  .chat-shell, .project-chat { min-height: 0; }
  .scope-lines > li { grid-template-columns: 1fr; }
  .scope-lines > li > span { text-align: left; }
  .scope-boundary-grid { grid-template-columns: 1fr; }
}

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