/* ============================================================
   Homepage sections — "Paper & Ink"
   Base, header and footer come from /css/site.css; tokens from
   /css/tokens.css. Measurements follow the approved design
   reference exactly: 1080px column, 32px gutter, 200px section
   label column, hairline rules, no radius, no shadows.
   ============================================================ */

/* ================= HERO ================= */
.hero {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 64px var(--gutter) 72px;
  border-top: var(--hairline);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}
.hero h1 {
  margin: 22px 0 0;
  font-size: var(--text-display-1);
  line-height: 1.04;
  letter-spacing: -.015em;
}
.hero .lede {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.65;
  max-width: 46ch;
  color: var(--body);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.cta-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  background: var(--accent);
  color: var(--paper);
  font-size: 15px;
  letter-spacing: .01em;
  min-height: 44px;
}
.cta-bar:hover { background: var(--ink); color: var(--paper); }
.cta-bar .arrow { font-size: 18px; line-height: 1; }
.hero-actions .caption { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ================= ASK BAND ================= */
.ask-band { background: var(--band); color: var(--band-text); }
.ask-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 72px var(--gutter) 80px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  gap: 56px;
  align-items: start;
}
.ask-band .eyebrow { color: var(--band-muted-3); }
.ask-band h2 {
  margin: 18px 0 0;
  font-size: var(--text-display-2);
  line-height: 1.12;
}
.ask-band .band-lede {
  margin: 20px 0 0;
  font-size: 16px; line-height: 1.7;
  color: var(--band-muted);
  max-width: 34ch;
  text-wrap: pretty;
}
.ask-suggestions { margin-top: 28px; display: flex; flex-direction: column; gap: 9px; }
.ask-suggestions button {
  text-align: left;
  background: transparent;
  border: 1px solid var(--band-rule);
  color: var(--band-text-3);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.45;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ask-suggestions button:hover {
  border-color: var(--band-muted-2);
  background: var(--band-hover);
}

/* ---- assistant panel ---- */
.ask-panel {
  border: 1px solid var(--band-rule);
  background: var(--band-panel);
  display: flex; flex-direction: column;
  min-height: 440px;
}
.ask-panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--band-rule);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--band-muted-3);
}
.ask-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--band-status); }
.ask-log {
  flex: 1;
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 18px;
  overflow-y: auto;
  max-height: 420px;
}
.ask-msg { display: flex; flex-direction: column; gap: 7px; animation: fadeUp .35s ease both; }
.ask-who {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--band-muted-2);
}
.ask-text { font-size: 15.5px; line-height: 1.7; color: var(--band-text-2); text-wrap: pretty; }
.ask-text p { margin: 0 0 .7em; }
.ask-text p:last-child { margin-bottom: 0; }
.ask-text ul, .ask-text ol { margin: 0 0 .7em; padding-left: 1.2em; }
.ask-text li { margin-bottom: .3em; }
.ask-text li::marker { color: var(--band-muted-2); }
.ask-text h3 {
  margin: 1em 0 .4em;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--band-muted-2);
}
.ask-text strong { font-weight: 500; color: var(--band-text); }
.ask-text a { color: var(--copper-on-dark); }
.ask-text a:hover { color: var(--band-text); }

.ask-msg--boundary { border-left: 2px solid var(--band-status); padding-left: 14px; }
.ask-msg--notice .ask-who { color: var(--copper-on-dark); }
.ask-notice-mail { margin: .6em 0 0; font-size: 14px; }
.ask-grounding {
  margin-top: 4px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--band-muted-3);
}
.ask-msg--disclosure .ask-fineprint { font-size: 14px; color: var(--band-muted); margin-top: .6em; }
.ask-msg--disclosure.is-attention { outline: 1px solid var(--band-muted-2); outline-offset: 10px; }
.ask-ack {
  margin-top: 14px;
  background: var(--band-text); color: var(--band);
  border: none; padding: 11px 18px; min-height: 44px;
  font-family: var(--font-body); font-size: 14px; letter-spacing: .02em;
  cursor: pointer;
}
.ask-ack:hover { background: var(--band-btn-hover); }

.ask-loading { display: flex; gap: 6px; align-items: center; }
.ask-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--band-muted);
  animation: pulseDot 1.1s infinite;
}
.ask-dot:nth-child(2) { animation-delay: .2s; }
.ask-dot:nth-child(3) { animation-delay: .4s; }

.ask-composer {
  border-top: 1px solid var(--band-rule);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
}
.ask-composer input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--band-text);
  font-family: var(--font-body); font-weight: 300; font-size: 15.5px;
  padding: 8px 2px;
}
.ask-composer input::placeholder { color: var(--band-muted-3); }
.ask-composer button {
  background: var(--band-text); color: var(--band);
  border: none; padding: 11px 18px; min-height: 44px;
  font-family: var(--font-body); font-size: 14px; letter-spacing: .02em;
  cursor: pointer;
}
.ask-composer button:hover { background: var(--band-btn-hover); }
.ask-composer.is-locked input { opacity: .55; }
.ask-composer button:disabled { opacity: .45; cursor: not-allowed; }

/* ================= GENERIC SECTION ================= */
.section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--sp-9) var(--gutter);
  border-bottom: var(--hairline);
}
.section-grid {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  gap: 40px;
}
.prose { max-width: var(--measure); }
.prose .lead {
  font-family: var(--font-display);
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.prose p + p { margin-top: var(--sp-5); }
.prose .body { font-size: var(--text-body); line-height: 1.8; color: var(--body); text-wrap: pretty; }

/* ================= ROW LIST ================= */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: var(--sp-5);
  padding: 26px 0;
  border-top: var(--hairline);
}
.row h3 { font-size: var(--text-h3); line-height: 1.3; }
.row .org { margin: 6px 0 0; font-size: var(--text-small); color: var(--secondary); }
.row .note {
  margin: 12px 0 0;
  font-size: 15.5px; line-height: 1.7; color: var(--body);
  max-width: 60ch; text-wrap: pretty;
}
.row .aside { font-size: 14px; letter-spacing: .04em; color: var(--muted); text-align: right; }
.row .metric {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ================= CARD GRID ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: var(--hairline);
}
.card {
  background: var(--paper);
  padding: 26px 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .15s ease;
}
.card:hover { background: var(--paper-raise); }
.card .kind { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 21px; line-height: 1.3; }
.card .note { font-size: var(--text-small); line-height: 1.7; color: var(--body); text-wrap: pretty; }
.card .metric {
  margin: auto 0 0;
  padding-top: 14px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--accent);
}

/* ================= SKILL GROUPS ================= */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; }
.skill-group h3 {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}
.skill-group p { margin: 10px 0 0; font-size: var(--text-small); line-height: 1.85; color: var(--body); }

/* ================= PHOTO STRIP ================= */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: var(--hairline);
  margin-top: 32px;
}
.strip figure { margin: 0; background: var(--paper); }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.75); }
.strip figcaption {
  padding: 10px 14px 14px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.beyond-note {
  margin-top: 28px; max-width: var(--measure);
  font-size: var(--text-small); line-height: 1.8; color: var(--body);
}

/* ================= CONTACT ================= */
.contact { border-bottom: none; padding-bottom: 96px; }
.contact .statement {
  font-family: var(--font-display);
  font-size: var(--text-display-3);
  line-height: 1.25;
  letter-spacing: -.01em;
  max-width: 34ch;
  text-wrap: balance;
}
.contact-pairs { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 36px 56px; }
/* gap:0 because the value's own padding supplies the label spacing while
   lifting the link to a 44px touch target. */
.pair { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.pair .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* Long values (the email address) must wrap rather than push the page
   wider than the viewport at 390px. */
.pair .v {
  font-size: 17px;
  overflow-wrap: anywhere;
  padding-block: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact-meta {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: var(--text-small); color: var(--muted);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 760px) {
  .hero-grid,
  .ask-inner,
  .section-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 36px; align-items: start; }
  .ask-inner { gap: 36px; padding: 56px var(--gutter) 64px; }
  .section-grid { gap: 20px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .row .aside, .row .metric { text-align: left; }
  .hero { padding: 48px var(--gutter) 56px; }
  .section { padding: 56px var(--gutter); }
  .contact { padding-bottom: 72px; }
}
