:root {
  --kh-ink: #121212;
  --kh-paper: #e4e2dd;
  --kh-card: #f3f2ee;
  --kh-signal: #c92516;
  --kh-muted: #5c5a55;
  --kh-line: #2a2925;
  --kh-soft: #9a968c;
  --kh-on-ink: #f3f2ee;
  --kh-rule: #c9c6bf;
  --kh-error: #b42318;
  --kh-step: 120ms;
  --kh-ease: cubic-bezier(.2, 0, 0, 1);
  --kh-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --kh-sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}
html { scroll-padding-top: 72px; }
/* The body takes the darkest band so no light canvas shows past the footer; every light band sets its own ground. */
body { font-family: var(--kh-sans); color: var(--kh-ink); line-height: 1.5; font-size: 17px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--kh-ink); outline-offset: 3px; }
.kh-nav :focus-visible, .kh-sched :focus-visible, .kh-footer :focus-visible, .kh-cookie :focus-visible { outline-color: #fff; }

/* Nav: the same ink bar as the home page. */

/* Load sequence: the headline and the lead rise in order, as the project heroes' text does. No photo in this hero. */
@keyframes kh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.kh-seq > * { opacity: 0; animation: kh-rise 520ms var(--kh-ease) forwards; animation-delay: calc(300ms + var(--i, 0) * var(--kh-step)); }

/* Scroll reveals: hidden only once the head script marks the page kh-js, so the content shows with JavaScript off. */
.kh-js .kh-reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms var(--kh-ease), transform 560ms var(--kh-ease); }
.kh-js .kh-fade { opacity: 0; transition: opacity 560ms ease-out; }
.kh-js .kh-reveal.kh-in, .kh-js .kh-fade.kh-in { opacity: 1; transform: none; }
/* With JavaScript off, photos held back by the loader show their noscript copy and the placeholder hides. */
html:not(.kh-js) img[data-srcset] { display: none !important; }

/* Shared band parts. */
.kh-link { font-weight: 600; color: inherit; text-decoration: underline; text-decoration-color: var(--kh-signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Photos: each frame holds its box; the loader drops the picture in when it nears the screen. */
.kh-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin: 0 0 8px; background: #cfccc5; }
.kh-pic picture { display: contents; }
.kh-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Intro: a short paper band with the headline and the lead, no photo. */
.kh-intro { background: var(--kh-paper); padding: 72px 0 40px; }
.kh-intro h1 { font-size: clamp(3rem, 8vw, 6.6rem); max-width: 14ch; }
.kh-intro-lead { margin: 20px 0 0; max-width: 52ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; }

/* The form: a card panel on paper with the labels above the fields, and three finished jobs beside it (under it on a phone). */
.kh-quote { background: var(--kh-paper); padding: 8px 0 96px; }
/* The section is the hidden file picker's containing block: .kh-field input stretches the picker to the section's width, and the body clips the part past the screen. */
.kh-quote { position: relative; }
.kh-quote-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.kh-panel { background: var(--kh-card); border-top: 4px solid var(--kh-signal); padding: 36px 40px 40px; }
.kh-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.kh-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.kh-full { grid-column: 1 / -1; }
.kh-field > label, .kh-label { font-weight: 600; font-size: 16px; }
.kh-opt { font-weight: 400; color: var(--kh-muted); }
.kh-field input, .kh-field select, .kh-field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 17px; color: var(--kh-ink); background: #fff; border: 1px solid var(--kh-muted); border-radius: 0; }
.kh-field textarea { min-height: 136px; resize: vertical; }
.kh-field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23121212' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
/* A field error: the border turns the error red and the message sits under the field, at once (storyboard, form field row). */
.kh-field [aria-invalid="true"] { border-color: var(--kh-error); box-shadow: inset 0 0 0 1px var(--kh-error); }
.kh-err { margin: 0; color: var(--kh-error); font-size: 15px; font-weight: 600; }
.kh-err:empty { display: none; }
.kh-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px; background: #fff; border: 2px dashed var(--kh-soft); }
.kh-drop.kh-over { border-color: var(--kh-signal); background: #fbefed; }
.kh-drop.kh-bad { border-color: var(--kh-error); border-style: solid; }
.kh-drop-text { color: var(--kh-muted); }
.kh-add { min-height: 44px; padding: 10px 18px; font: inherit; font-weight: 600; color: #fff; background: var(--kh-ink); border: 0; cursor: pointer; }
/* The native picker stays in the page for the Add photos button to open; it takes no Tab stop of its own. */
.kh-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.kh-count { flex: 1 0 100%; margin: 0; font-size: 15px; color: var(--kh-muted); }
.kh-files { flex: 1 0 100%; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.kh-files:empty { display: none; }
.kh-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--kh-rule); font-size: 15px; }
.kh-files span { min-width: 0; overflow-wrap: anywhere; }
.kh-files button { min-height: 44px; padding: 0 4px; font: inherit; font-weight: 600; color: var(--kh-ink); background: none; border: 0; text-decoration: underline; text-decoration-color: var(--kh-signal); text-underline-offset: 4px; cursor: pointer; }
/* The deck questions open under the job when the job is a deck: a rule above, the legend in the display face, two columns
   of optional fields (one on a phone), and the features as 24px boxes with 44px labels. */
.kh-deck { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 22px 0 26px; border: 0; border-top: 1px solid var(--kh-rule); border-bottom: 1px solid var(--kh-rule); }
.kh-deck[hidden] { display: none; }
/* The line under The job that tells a screen reader the deck questions opened; it stays in the page while empty. */
.kh-deck-note { margin: 0; font-size: 15px; color: var(--kh-muted); }
.kh-deck > legend { float: left; width: 100%; padding: 0; font-family: var(--kh-display); font-size: 1.75rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.kh-deck > legend .kh-opt { font-family: var(--kh-sans); font-size: 16px; font-weight: 400; text-transform: none; }
.kh-deck-intro { clear: both; margin: 0; padding-top: 10px; max-width: 62ch; color: var(--kh-muted); font-size: 16px; }
.kh-deck-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin-top: 20px; }
.kh-deck-adds { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.kh-deck-adds > legend { padding: 0 0 4px; font-weight: 600; font-size: 16px; }
.kh-deck-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.kh-deck-photos { padding-top: 18px; }
/* Consent: each box apart, both unticked; the label is the target with the box, 44px tall at the least. */
.kh-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.kh-check input { width: 24px; height: 24px; margin: 10px 0 0; accent-color: var(--kh-signal); cursor: pointer; }
.kh-check label { display: block; min-height: 44px; padding: 10px 0 0; font-size: 15px; line-height: 1.45; cursor: pointer; }
.kh-check input[aria-invalid="true"] { outline: 2px solid var(--kh-error); outline-offset: 2px; }
.kh-check input[aria-invalid="true"]:focus-visible { outline: 3px solid var(--kh-ink); outline-offset: 3px; }
.kh-fine { margin: 0; font-size: 14px; color: var(--kh-muted); overflow-wrap: anywhere; }
.kh-fine a { color: var(--kh-ink); font-weight: 400; }
/* The honeypot sits off screen; sighted visitors and the keyboard never reach it. */
/* The Turnstile box spans the form like the full-width fields and keeps its 65px height reserved, so the send row does not jump when it renders. */
.kh-turnstile { grid-column: 1 / -1; min-width: 0; min-height: 65px; }
.kh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kh-send-row { justify-items: start; gap: 12px; margin-top: 6px; }
.kh-send { min-height: 52px; padding: 12px 28px; font: inherit; font-size: 18px; font-weight: 600; border: 0; cursor: pointer; }
.kh-send:disabled { cursor: default; }
.kh-status { margin: 0; font-weight: 600; color: var(--kh-error); }
/* The live regions stay rendered while empty, so a screen reader is already watching them when their words arrive. */
#kh-err-photos:empty { display: block; }
.kh-noscript { margin: 20px 0 0; font-weight: 600; }
/* Submit: the button reads Sending, then the panel swaps to the message over 200ms (storyboard, quote form row). */
#kh-form { transition: opacity 200ms ease-out; }
#kh-form.kh-out { opacity: 0; }
.kh-msg { animation: kh-msg-in 200ms ease-out; }
@keyframes kh-msg-in { from { opacity: 0; } to { opacity: 1; } }
.kh-msg p { margin: 0; max-width: 24ch; font-family: var(--kh-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; text-transform: uppercase; }
.kh-msg a { font-family: var(--kh-sans); }
.kh-strip { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.kh-strip figure { margin: 0; }
.kh-strip figcaption { font-size: 16px; }

/* The schedule on the ink band, signed by Ben. */
.kh-sched { background: var(--kh-ink); color: var(--kh-on-ink); padding: 88px 0 96px; border-bottom: 1px solid var(--kh-line); }
.kh-sched-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.kh-sched h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.kh-sched-text p { margin: 0 0 14px; max-width: 46ch; }
.kh-sched-text .kh-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.4; }
.kh-sched-text p + p { color: #c9c6be; }
.kh-sched-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px !important; }
.kh-sched-cta .kh-call { color: var(--kh-on-ink); text-decoration: underline; text-decoration-color: var(--kh-signal); text-decoration-thickness: 2px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.kh-sign { display: grid; gap: 2px; margin: 32px 0 0 !important; padding-top: 20px; border-top: 1px solid var(--kh-line); }
.kh-sign b { font-family: var(--kh-display); font-size: 1.7rem; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: var(--kh-on-ink); }
.kh-sign span { color: var(--kh-soft); font-weight: 600; }
.kh-foot-grid p, .kh-foot-grid ul { margin: 0; }
.kh-foot-list a { display: inline-flex; align-items: center; min-height: 32px; color: #e4e1da; text-decoration: none; }
.kh-foot-bottom a, .kh-foot-bottom button { color: var(--kh-soft); text-decoration: none; font: inherit; display: inline-flex; align-items: center; min-height: 28px; }
.kh-cookie p { margin: 0; flex: 1; min-width: 220px; font-size: 14px; color: #c9c6be; }
@media (max-width: 900px) {
  .kh-sched-grid, .kh-quote-grid { grid-template-columns: minmax(0, 1fr); }
  .kh-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .kh-strip figcaption { font-size: 14px; line-height: 1.35; }
  .kh-foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .kh-js .kh-nav-links a { min-height: 52px; padding: 0; border-top: 1px solid var(--kh-line); font-size: 17px; }
  .kh-intro { padding: 40px 0 28px; }
  .kh-intro h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .kh-quote { padding: 0 0 64px; }
  .kh-quote-grid { gap: 32px; }
  .kh-wrap.kh-quote-grid { padding: 0; }
  .kh-panel { padding: 28px 16px 32px; }
  .kh-strip { padding: 0 16px; }
  .kh-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kh-deck-grid, .kh-deck-checks { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kh-deck-checks { gap: 0; }
  .kh-sched { padding: 64px 0; }
}

/* Between the phone menu and the full bar, the nav drops its quote button; the closing band carries it. */

/* Reduced motion stays last so it wins every cascade. */
@media (prefers-reduced-motion: reduce) {
  .kh-nav-links a { transition: none; }
  .kh-seq > * { animation: none; opacity: 1; }
  .kh-btn, #kh-form { transition: none; }
  .kh-btn:hover { transform: none; }
  .kh-msg { animation: none; }
}
