@font-face {
  font-family: "Houston Serif";
  src: url("assets/Houston.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* chi.university — CHI brand: white, black, grey rules, blue for actions only.
   Layout idea: a respected local firm's printed brochure — left-aligned, wide white space, one idea per band. */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #4d4d4d;      /* secondary text (brand grey #a8a8a8 is too light for text; used for rules) */
  --rule: #a8a8a8;
  --wash: #f4f6f7;       /* alternate band, faint cool grey leaning toward the blue */
  --action: #1686cb;     /* buttons */
  --action-dark: #0f6aa3;/* text links, button hover (passes contrast on white) */
  --keep: #8a2f1d;
  --font-display: "Houston Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif; /* readable serif for small headings and quotes; Houston is all caps */
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.125rem;   /* 18px body */
  --step-1: 1.375rem;
  --step-2: 1.875rem;
  --step-3: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: 1.15; text-wrap: balance; margin: 0 0 .6em; }
h1 { font-size: var(--step-3); letter-spacing: -.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-family: var(--font-serif); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--action-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 68ch; }
.narrow-col > * { max-width: 68ch; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.brand .dot { color: var(--action); }
.logo { display: block; height: 44px; width: auto; }
.logo-footer { display: block; height: 76px; width: auto; }
.site-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; font: inherit; font-size: 1rem; background: none; border: 1px solid var(--ink); border-radius: 4px; padding: .35rem .8rem; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; background: var(--action); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.19rem; line-height: 1.2; padding: .9rem 1.4rem; border-radius: 4px; border: 0; cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { background: var(--action-dark); color: #fff; }
.btn-sm { font-size: 1rem; padding: .6rem 1rem; }
.text-link { font-weight: 600; }
.text-link::after { content: " →"; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

/* Bands */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1rem; }
.lede { font-size: 1.3rem; color: var(--ink-2); max-width: 60ch; }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.page-head .btn { margin-top: .5rem; }
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band.alt { background: var(--wash); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 1.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem; }
.band:not(.alt) .card { background: var(--wash); border-color: transparent; }
.source { font-size: .95rem; color: var(--ink-2); margin-top: 1.5rem; max-width: 80ch; }

/* Hero art */
.hero-art { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.hero-art canvas { display: block; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; touch-action: pan-y; }
.hero-art figcaption { font-size: .95rem; color: var(--ink-2); text-align: center; max-width: 34ch; }
.hook { min-height: 1.6em; }
.hook.swap { opacity: 0; transform: translateY(-4px); }
@media (prefers-reduced-motion: no-preference) {
  .hook { transition: opacity .35s ease, transform .35s ease; }
  .use img, .crew img { transition: transform .35s ease; }
  .use:hover img, .crew img:hover { transform: translateY(-6px); }
}

/* People figures */
.uses { margin-top: 2rem; }
.use img { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 0 .75rem -12px; }
.aside-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); max-width: 70ch; }
.figure-card { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; display: flex; justify-content: center; padding: 1.5rem; }
.band.alt .figure-card { background: #fff; }
.band:not(.alt) .figure-card { background: var(--wash); border-color: transparent; }
.figure-card img { width: 100%; max-width: 300px; height: auto; }
.crew { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.crew img { width: 100%; height: auto; }

/* Ledger */
.ledger { border: 1px solid var(--ink); border-radius: 6px; padding: 1.5rem 1.5rem .75rem; background: var(--paper); }
.ledger-h { font-size: 1.1rem; margin-bottom: .75rem; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .65rem 0; border-top: 1px dashed var(--rule); font-size: 1.02rem; }
.tag { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; padding: .15rem .5rem; border-radius: 3px; }
.tag.sell { background: #e3f1fa; color: #0b4f7a; }
.tag.keep { background: #f6e9e6; color: var(--keep); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: none; }
.steps li { display: flex; flex-direction: column; gap: .75rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.step-n { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--action); font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: .35em; }
.steps p { font-size: 1.02rem; margin-bottom: .5em; }
.step-meta { color: var(--ink-2); font-size: .95rem !important; }
.page-head + .band .steps { grid-template-columns: 1fr; gap: 0; max-width: 76ch; }
.page-head + .band .steps li, .steps.compact li { flex-direction: row; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.steps.compact { grid-template-columns: 1fr; gap: 0; max-width: 76ch; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.timeline li { border-left: 3px solid var(--action); padding: .25rem 0 .25rem 1rem; display: flex; flex-direction: column; }
.timeline b { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; }
.timeline span { color: var(--ink-2); }

/* Lists */
.ticks, .crosses { list-style: none; padding: 0; margin: 0; }
.ticks li, .crosses li { padding: .5rem 0 .5rem 1.9rem; position: relative; border-bottom: 1px solid #e3e3e3; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--action-dark); font-weight: 700; }
.crosses li::before { content: "✕"; position: absolute; left: 0; color: var(--keep); font-weight: 700; }
.promises { padding-left: 1.4rem; max-width: 70ch; }
.promises li { font-family: var(--font-serif); font-size: var(--step-1); padding: .4rem 0; }
.mini { padding-left: 1.2rem; }

/* Founder */
blockquote { margin: 0 0 1rem; font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.4; border-left: 3px solid var(--ink); padding-left: 1.25rem; }
.sig { font-weight: 700; }
.badge-line { display: inline-block; border: 1px solid var(--ink); padding: .3rem .75rem; border-radius: 3px; font-weight: 600; font-size: 1rem; }
.story p { max-width: 64ch; }
.mission { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.3; }
.motto { font-family: var(--font-display); font-style: italic; color: var(--ink-2); }
.motto.big { font-size: 1.4rem; margin-top: 1.5rem; }

/* Photo slots (until real photography arrives) */
.photo-slot {
  margin: 0; aspect-ratio: 4 / 3; border-radius: 6px; display: flex; align-items: flex-end;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.035) 14px 15px),
    var(--wash);
  border: 1px solid var(--rule);
}
.band.alt .photo-slot { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.04) 14px 15px), #fff; }
.photo-slot figcaption { font-size: .9rem; color: var(--ink-2); padding: .75rem 1rem; }

/* Fit check */
.fit-band { background: var(--wash); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fit-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.25rem; }
.fit-result { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 6px; padding: 1.1rem 1.25rem; min-height: 4.5rem; }
.fit-msg { margin: 0; max-width: 56ch; }
.fit-msg b { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; display: block; margin-bottom: .2rem; }

/* Comparison table */
.table-scroll { overflow-x: auto; margin-top: 1.5rem; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1.02rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-bottom: 1px solid #e3e3e3; }
.compare thead th { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td:last-child { background: #eef6fb; }
.compare thead th:last-child { background: #eef6fb; }

/* Trades */
.trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 2.5rem; }
.trade { border-top: 2px solid var(--ink); padding: 1.1rem 0 1.5rem; }
.trade p { color: var(--ink-2); margin: 0; }

/* Definition */
.define-band { background: var(--ink); color: var(--paper); }
.define-band .eyebrow { color: #9fcbe8; }
.define-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem clamp(2rem, 5vw, 4rem); align-items: start; }
.define-grid .text-link { grid-column: 2; }
.define-word { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); line-height: 1; margin: 0 0 .5rem; }
.define-word span { display: block; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; margin-top: .6rem; color: inherit; opacity: .8; }
.define-pos { font-family: var(--font-serif); font-style: italic; margin: 0; opacity: .7; }
.define-senses { margin: 0; padding-left: 1.4rem; display: grid; gap: 1rem; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.45; }
.define-senses li::marker { font-family: var(--font-body); font-weight: 700; color: var(--action); }
.text-link.on-dark { color: #9fcbe8; }
.text-link.on-dark:hover { color: #fff; }
.define-long { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.define-card { border: 1px solid var(--ink); border-radius: 6px; padding: 1.75rem; position: sticky; top: 90px; }
.define-card .eyebrow { color: var(--action-dark); }
.define-card .define-senses { font-size: 1.15rem; margin-top: 1.25rem; }
.define-card .define-senses li::marker { color: var(--action-dark); }
.motto-pair { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; margin-top: 1.25rem; }
.motto-pair span { color: var(--action-dark); }
.statements .motto-pair { font-size: 1.2rem; margin-top: .75rem; }
.motto-sub { font-family: var(--font-serif); font-style: italic; color: var(--ink-2); margin: .5rem 0 0; font-size: 1rem; }
:target { scroll-margin-top: 90px; }

/* About */
.statements { margin-top: 0; }
.statement { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.4; margin: 0; }
.statements .eyebrow { margin-bottom: .6rem; color: var(--action-dark); }
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 2.5rem; margin-top: 1.5rem; }
.values > div { border-top: 2px solid var(--ink); padding: 1rem 0 1.25rem; }
.values p { color: var(--ink-2); margin: 0; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #e3e3e3; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.facts.big dd { font-size: 1.15rem; }
.contact-cta { background: var(--wash); border-radius: 6px; padding: 1.75rem; }

/* Sample report */
.report { background: #fff; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -18px rgba(0,0,0,.25);
  padding: clamp(1.25rem, 4vw, 3rem); max-width: 860px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.report-kicker { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--action-dark); margin: 0 0 .25rem; }
.report-head h2 { margin: 0 0 .25rem; }
.report-meta { color: var(--ink-2); margin: 0; font-size: 1rem; }
.stamp { border: 2px solid var(--keep); color: var(--keep); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 3px; transform: rotate(4deg); font-size: .9rem; }
.report h3 { margin-top: 2rem; font-size: 1.2rem; }
.report-table { min-width: 560px; }
.report-table td:last-child, .report-table thead th:last-child { background: transparent; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .75rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid #ececec; }
.range { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; align-items: end; max-width: 520px; font-variant-numeric: tabular-nums; }
.range > div { display: flex; flex-direction: column; gap: .25rem; padding: .75rem; border: 1px solid var(--rule); border-radius: 4px; }
.range span { font-size: .85rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.range b { font-family: var(--font-serif); font-size: 1.3rem; }
.range .likely { border: 2px solid var(--action); background: #eef6fb; }
.faq-group { font-size: var(--step-1); margin-top: 2rem; }
.faq-group:first-child { margin-top: 0; }

/* FAQ */
.faq { max-width: 76ch; margin-top: 1rem; }
.faq details { border-top: 1px solid var(--rule); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--font-serif); font-size: var(--step-1); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--action-dark); font-family: var(--font-body); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--ink-2); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band h2 { color: var(--paper); }
.cta-band .lede { color: #d4d4d4; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }

/* Form */
.form-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.intake { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field:nth-child(4), fieldset.field, .intake .btn, .consent, .form-error { grid-column: 1 / -1; }
label, legend { font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], select {
  font: inherit; font-size: 1.05rem; padding: .7rem .8rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus { border-color: var(--action); outline: 2px solid var(--action); outline-offset: 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--keep); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.hint { font-weight: 400; color: var(--ink-2); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem 1rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; flex: none; accent-color: var(--action); }
.check.small { font-size: .9rem; color: var(--ink-2); margin-top: .35rem; }
.intake .btn { justify-self: start; }
.consent { font-size: .95rem; color: var(--ink-2); margin: 0; }
.form-error { color: var(--keep); font-weight: 600; margin: 0; }
.form-side { background: var(--wash); border-radius: 6px; padding: 1.5rem; }
.form-side h2 { font-size: var(--step-1); }

.legal h2 { font-size: var(--step-1); margin-top: 1.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 3rem 0 6rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer-h { font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6rem; }
.footer-links a { display: block; padding: .15rem 0; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #e3e3e3; color: var(--ink-2); font-size: .95rem; }

/* Mobile bottom CTA: keeps the Book button on every screen */
.mobile-cta { display: none; }

@media (max-width: 1040px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem 0; border-bottom: 1px solid #ececec; }
  .site-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: #ececec; }
  .menu-toggle { display: inline-block; }
  .header-cta { margin-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .hero-grid, .split, .three, .form-wrap, .intake, .footer-grid, .timeline, .fit-grid, .fit { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { flex-direction: row; gap: 1.25rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
  .founder .photo-slot { order: 2; }
  .hero-art canvas { max-width: 340px; }
  .crew { grid-template-columns: repeat(3, 1fr); }
  .facts > div { grid-template-columns: 1fr; gap: .15rem; }
  .define-grid, .define-long { grid-template-columns: 1fr; }
  .define-grid .text-link { grid-column: 1; }
  .define-card { position: static; }
  .define-senses { font-size: 1.15rem; }
  .range b { font-size: 1.05rem; }
  .use img { max-width: 160px; }
  .header-cta { display: none; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; text-align: center;
    background: var(--action); color: #fff; font-weight: 700; text-decoration: none; padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .mobile-cta:hover { color: #fff; background: var(--action-dark); }
  .lede { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, a { transition: background-color .15s, color .15s; }
}
