: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-step: 120ms;
  --kh-ease: cubic-bezier(.2, 0, 0, 1);
  /* The room the hero keeps for the cookie bar: the bar is 77px tall at 768 and up, 92px at 600, 148px on a phone. */
  --kh-cookie-reserve: 92px;
  --kh-display: 'Big Shoulders Display', 'Arial Narrow', Impact, 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: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif; color: var(--kh-ink); line-height: 1.5; font-size: 17px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--kh-ink); outline-offset: 3px; }
.kh-nav :focus-visible, .kh-hero :focus-visible, .kh-reviews :focus-visible, .kh-sched :focus-visible, .kh-footer :focus-visible, .kh-cookie :focus-visible { outline-color: #fff; }

/* Nav: ink bar, because the logo's wordmark is white and vanishes on paper. Sticky. */

/* Hero: the drone photo fills the viewport under the nav, no fill overlay; a scrim rises from the foot so the tag reads. */
.kh-hero { position: relative; min-height: calc(100vh - 69px); min-height: calc(100svh - 69px); display: grid; align-content: end; isolation: isolate; color: #fff; }
.kh-hero-pic { position: absolute; inset: 0; z-index: -2; margin: 0; }
.kh-hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.kh-hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(10,10,10,.45) 0%, rgba(10,10,10,.4) 50%, rgba(10,10,10,0) 72%), linear-gradient(to top, rgba(10,10,10,.82) 0%, rgba(10,10,10,.45) 45%, rgba(10,10,10,0) 80%); }
@media (max-width: 600px) {
  .kh-hero-scrim { background: linear-gradient(to top, rgba(10,10,10,.85) 0%, rgba(10,10,10,.7) 45%, rgba(10,10,10,.6) 62%, rgba(10,10,10,0) 82%); }
}
.kh-hero-in { padding: 56px 24px 48px; max-width: 1280px; width: 100%; margin: 0 auto; display: grid; gap: 18px; }
.kh-tag { display: inline-grid; gap: 2px; justify-self: start; margin: 0; background: var(--kh-card); color: var(--kh-ink); padding: 10px 14px 10px 16px; border-left: 4px solid var(--kh-signal); font-size: 14px; line-height: 1.35; }
.kh-tag b { font-family: var(--kh-display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; font-weight: 800; }
.kh-tag span { color: var(--kh-muted); }
.kh-tag b, .kh-tag span { text-wrap: pretty; }
.kh-hero h1 { font-size: clamp(3rem, 9vw, 7.6rem); max-width: 14ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.kh-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 52ch; margin: 0; color: #ece9e2; }
.kh-hero-cta { margin: 6px 0 0; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.kh-hero-cta .kh-call { color: #fff; }
/* The text sits on the foot of the photo, so a line parsed late pushes the lines above it up. On a slow connection the browser
   paints before the button row arrives; the block stays hidden until it has, so nothing in it moves once seen. */
.kh-hero-in:not(:has(> .kh-hero-cta)) { visibility: hidden; }

/* Load sequence: the photo fades up, then the tag, the headline, the sub and the button rise in reading order. */
/* The photo starts at .01, not 0, so the browser counts it as painted on the first frame; the fade looks the same. */
@keyframes kh-fade-in { from { opacity: .01; } to { opacity: 1; } }
@keyframes kh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.kh-hero-pic { animation: kh-fade-in 900ms ease-out both; }
.kh-seq > * { opacity: 0; animation: kh-rise 520ms var(--kh-ease) forwards; animation-delay: calc(300ms + var(--i, 0) * var(--kh-step)); }

/* Scroll reveals for the bands after the reel: kh-reveal rises, kh-fade only fades. Neither sits on a full-bleed section.
   They hide only once the head script has marked 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 var(--kh-dur, 560ms) ease-out; }
.kh-js .kh-reveal.kh-in, .kh-js .kh-fade.kh-in { opacity: 1; transform: none; }
/* With JavaScript off, the held-back photos show their noscript copy and the placeholder hides. */
html:not(.kh-js) img[data-srcset] { display: none !important; }

/* Shared band parts. */
.kh-h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.kh-link { font-weight: 600; color: inherit; text-decoration: underline; text-decoration-color: var(--kh-signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.kh-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; }

/* Trust strip after the reel, kept from the live page at Adam's call (2026-10-24): five facts, three of them links. */
.kh-trust { background: var(--kh-paper); border-bottom: 1px solid #c9c6bf; }
.kh-trust-grid { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kh-stat { display: block; min-height: 116px; padding: 20px; border-left: 1px solid #c9c6bf; color: var(--kh-ink); text-decoration: none; }
.kh-stat:last-child { border-right: 1px solid #c9c6bf; }
.kh-stat strong { display: block; font-family: var(--kh-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: .01em; }
.kh-stat span { display: block; margin-top: 8px; color: var(--kh-muted); font-size: 14px; font-weight: 600; line-height: 1.4; }
a.kh-stat { transition: background-color 180ms ease-out, color 180ms ease-out; }
a.kh-stat:hover { background: var(--kh-ink); color: #fff; }
a.kh-stat:hover strong { color: var(--kh-signal); }
a.kh-stat:hover span { color: #e4e1da; }

/* signature:style (depth parallax on the hero, prefix kh-). The drone photo leans toward the cursor through its depth
   map; on load it settles from 112 percent to full size (after victoriauluwatu.com, teardown 2026-11-08) and as the
   page scrolls it pushes in a little under the next band. No pin anywhere. The second screen is the trust strip,
   then the jobs, with a line and a link to the Keystone build in the hero tag. */
.kh-hero-pic{animation:kh-fade-in 900ms ease-out both,kh-settle var(--kh-settle-dur,1500ms) cubic-bezier(.19,0,0,1) both;transform-origin:50% 50%}
@keyframes kh-settle{from{transform:scale(var(--kh-settle-from,1.12))}to{transform:scale(1)}}
.kh-hero-push{position:absolute;inset:0;transform:translate3d(0,var(--kh-push-y,0px),0) scale(var(--kh-push-s,1));transform-origin:50% 50%;will-change:transform;opacity:var(--kh-hero-dim,1);transition:opacity 600ms ease-out}
.kh-hero-push picture{display:contents}
.kh-hero{--kh-sig-crop-x:50%;--kh-sig-crop-y:40%;--kh-hero-maxar:2.6;background:var(--kh-ink)}
.kh-hero-pic img{object-position:var(--kh-sig-crop-x,50%) var(--kh-sig-crop-y,40%)}
/* On a screen wider than maxAr to 1, the photo keeps that ratio and the hero fills the rest with ink gutters, so an
   ultrawide shows the lodge and the lake instead of a strip cut from the middle of the photo. */
@media (min-width:901px) {
  .kh-hero-pic{inset:0 max(0px, calc((100vw - (100svh - 69px) * var(--kh-hero-maxar,2.6)) / 2))}
  /* The scroll push grows and lowers the photo; the hero clips it so no unshaded strip shows below its edge (2026-12-02). */
  .kh-hero{overflow:clip}
}
.kh-sig-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 600ms cubic-bezier(.2,0,0,1)}
.kh-sig-canvas.kh-sig-on{opacity:1}
.kh-tag a{color:inherit}
.kh-sig-after{background:var(--kh-ink);padding:28px 20px 40px}
.kh-sig-after p{margin:0 auto;max-width:1280px;color:#bdbbb3;font-size:15px}
.kh-sig-after a{color:#fff}
/* Under 900px the hero splits: the whole photo on top with nothing over it, the copy under it on the ink band.
   The same 1600 file and depth map serve every width, so the lean runs on a phone and a tablet too. */
@media (max-width:900px) {
  .kh-hero{display:grid;grid-template-rows:auto auto;min-height:0;align-content:start;background:var(--kh-ink)}
  .kh-hero-pic{position:relative;inset:auto;z-index:auto;aspect-ratio:var(--kh-hero-ar,4/3);overflow:hidden}
  .kh-hero-scrim{display:none}
  .kh-hero-in{padding:22px 16px 32px;gap:14px}
  .kh-hero h1{font-size:clamp(2.6rem,10vw,4.4rem);text-shadow:none}
  .kh-tag{margin-top:-46px;position:relative;z-index:1}
}
@media (max-width:600px) {
  .kh-hero{min-height:0}
  .kh-hero-in{padding:20px 16px 28px}
  .kh-tag{margin-top:-40px}
}
@media (prefers-reduced-motion:reduce) {
  .kh-sig-canvas{display:none}
  .kh-hero-pic{animation:none}
  .kh-hero-push{transform:none !important}
}

/* The jobs: six real jobs, each with its year on the photo. */
.kh-jobs { background: var(--kh-paper); padding: 88px 0 104px; }
.kh-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 56px; }
.kh-head p { margin: 0; max-width: 46ch; }
.kh-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.4; }
.kh-head .kh-lead + p { margin-top: 18px; color: var(--kh-muted); }
.kh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 28px; }
.kh-job-a { display: grid; gap: 8px; align-content: start; height: 100%; color: inherit; text-decoration: none; transition: transform .18s var(--kh-ease); }
.kh-job-a:hover { transform: translateY(-2px); }
.kh-job-a:active { transform: translateY(0); transition-duration: 80ms; }
.kh-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin: 0 0 8px; background: #cfccc5; }
.kh-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-pic-tag { position: absolute; left: 0; bottom: 0; display: flex; align-items: baseline; gap: 10px; max-width: 100%; margin: 0; padding: 7px 12px 6px; background: var(--kh-ink); color: #f3f2ee; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.kh-pic-tag b { font-family: var(--kh-display); font-size: 20px; line-height: 1; font-weight: 800; color: var(--kh-signal); }
.kh-job h3 { font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: clamp(1.2rem, 1.5vw, 1.35rem); line-height: 1.2; }
.kh-job-d { margin: 0; color: var(--kh-muted); font-size: 16px; }
.kh-job-q { margin: 6px 0 0; font-size: 16px; }
.kh-go { margin-top: 6px; justify-self: start; font-weight: 600; text-decoration: underline; text-decoration-color: var(--kh-signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.kh-jobs-more { margin: 56px 0 0; }

/* Reviews on the ink band, each under a photo of that kind of job. */
.kh-reviews { background: var(--kh-ink); color: var(--kh-on-ink); padding: 120px 0 112px; }
.kh-reviews .kh-head p { color: #c9c6be; }
.kh-rev-grid { gap: 52px 32px; }
.kh-rev { display: grid; gap: 18px; align-content: start; }
.kh-rev .kh-pic { margin: 0; background: #1a1916; }
.kh-rev .kh-pic-tag { background: var(--kh-card); color: var(--kh-ink); }
.kh-rev blockquote { margin: 0; }
.kh-rev blockquote p { margin: 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.5; }
.kh-rev-by { margin: 0; font-size: 15px; color: var(--kh-soft); }
.kh-rev-links { display: flex; flex-wrap: wrap; gap: 4px 32px; margin: 56px 0 0; padding: 0; list-style: none; }
.kh-rev-links a { color: var(--kh-on-ink); }

/* Ben and the crew: photo left, text right. */
.kh-about { background: var(--kh-paper); padding: 104px 0; }
.kh-about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 72px; align-items: center; }
.kh-about-pic { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #cfccc5; }
.kh-about-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-about h2 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); margin-bottom: 28px; }
.kh-about-text p { margin: 0 0 16px; max-width: 60ch; }
.kh-about-text .kh-about-line { margin: 32px 0 0; max-width: 46ch; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.4; font-weight: 600; }
.kh-sign { display: grid; gap: 2px; margin: 32px 0 0 !important; padding-top: 20px; border-top: 1px solid #c9c6bf; max-width: 46ch; }
.kh-sign b { font-family: var(--kh-display); font-size: 1.7rem; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.kh-sign span { color: var(--kh-muted); font-weight: 600; }
.kh-about-more { margin: 20px 0 0 !important; }

/* The schedule on the ink band. */
.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-text p { margin: 0 0 14px; max-width: 46ch; }
.kh-sched-text .kh-lead { color: var(--kh-on-ink); }
.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-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; }
/* While the bar is up, the footer and the scroll padding make room for it so it never covers a focused link. */
/* While the bar is up on a first visit, the full-bleed hero (over 900px) lifts its button clear of it (Codex on the Keystone page, 2026-10-25). The split hero under 900px takes no reserve. */
@media (min-width: 901px) {
  html.kh-cookie-open .kh-hero-in { padding-bottom: calc(48px + var(--kh-cookie-reserve)); }
}
@media (max-width: 1023px) {
  .kh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-rev-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .kh-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
}
@media (max-width: 900px) {
  .kh-head, .kh-sched-grid { grid-template-columns: minmax(0, 1fr); }
  .kh-about-grid { grid-template-columns: minmax(0, 1fr); }
  .kh-about-pic { aspect-ratio: 4 / 3; max-width: 640px; }
  .kh-about-pic img { object-position: 50% 30%; }
  .kh-foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --kh-cookie-reserve: 148px; }
  .kh-js .kh-nav-links a { min-height: 52px; padding: 0; border-top: 1px solid var(--kh-line); font-size: 17px; }
  .kh-tag { font-size: 13px; }
  .kh-trust-grid { padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-stat { min-height: 0; padding: 16px; border-left: 0; border-top: 1px solid #c9c6bf; }
  .kh-stat:nth-child(odd) { border-right: 1px solid #c9c6bf; }
  .kh-stat:last-child { grid-column: 1 / -1; border-right: 0; }
  .kh-jobs, .kh-reviews, .kh-about, .kh-sched { padding: 64px 0; }
  .kh-head { margin-bottom: 36px; }
  .kh-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .kh-rev { grid-template-columns: minmax(0, 1fr); }
}

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

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