/* ==========================================================================
   Roger Emmer. One stylesheet for every page.

   The drawing language is borrowed from fenceOS: an orange run with square
   posts, and gates drawn as a leaf with a swing arc. Links that go somewhere
   carry a gate. Every page ends at a fence drawn to scale.
   Light only, on purpose.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #f6f4ef;
  --paper-3: #eeebe4;
  --ink: #141618;
  --ink-2: #383c42;
  --ink-3: #676c74;
  --line: #e5e1d8;
  --line-2: #d3cec3;
  --line-strong: #8f8a80;
  --accent: #e2621b;
  --accent-ink: #b4490e;
  --header-h: 64px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --r: 3px;
  --shadow: 0 1px 2px rgba(20, 22, 24, .06), 0 16px 36px -20px rgba(20, 22, 24, .3);
  --font: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 660; text-wrap: balance; }
p, figure, blockquote, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.tint { background: var(--paper-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero .eyebrow, .before .eyebrow { color: var(--accent-ink); }
.h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); line-height: 1.08; letter-spacing: -.026em; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r);
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
[data-top-sentinel] { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* --------------------------------------------------------------------------
   Gate. Drawn the way a gate is drawn on a fence plan: two posts, a leaf and
   its swing. It opens when the link under it is hovered or focused. It marks
   the one link that takes you on from a section, so it is used sparingly:
   not in menus, not on back links, and not beside the gate in the big fence.
   -------------------------------------------------------------------------- */
.gate {
  display: inline-block; flex: none; width: 30px; height: 18px; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round;
}
.gate__arc { stroke-width: 1; opacity: .42; }
.gate__post { fill: currentColor; stroke: none; }
.gate__leaf {
  stroke: var(--accent); stroke-width: 2;
  transform-origin: 8px 14px; transform: rotate(-30deg);
  transition: transform .5s cubic-bezier(.3, 1.45, .5, 1);
}
a:hover .gate__leaf, a:focus-visible .gate__leaf, button:hover .gate__leaf,
.feature:hover .gate__leaf, .row:hover .gate__leaf, .note-row:hover .gate__leaf,
.feature:focus-within .gate__leaf, .row:focus-within .gate__leaf, .note-row:focus-within .gate__leaf { transform: rotate(-84deg); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r);
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2a2d32; border-color: #2a2d32; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; }
.back {
  display: inline-block; padding-block: 6px; margin-block: -6px;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; color: var(--ink-3);
  text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.back:hover { color: var(--ink); text-decoration-color: currentColor; }
.more {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 660; letter-spacing: -.01em; white-space: nowrap; }
.brand__post { width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 2px; background: #fff; }
.nav { display: flex; gap: 30px; margin-left: auto; align-self: stretch; }
.nav a { position: relative; display: flex; align-items: center; color: var(--ink-3); text-decoration: none; font-size: .9688rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
/* The page you are on is marked with a post set on the header line. */
.nav a[aria-current]::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; margin-left: -4.5px;
  border: 2px solid var(--accent); border-radius: 2px; background: #fff;
}
.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 9px; height: 9px; margin-left: 10px; border: 2px solid var(--ink); border-radius: 2px; transition: background-color .2s ease, border-color .2s ease; }
.menu[open] summary::after { background: var(--accent); border-color: var(--accent); }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: 4px var(--gutter) 20px;
  background: #fff; border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 40px -28px rgba(20, 22, 24, .35);
}
.menu__panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-size: 1.375rem; font-weight: 640; letter-spacing: -.015em; color: var(--ink); text-decoration: none;
}
.menu__panel a[aria-current] { color: var(--accent-ink); }

/* Fence line: a rail with posts, borrowed from the fenceOS drawing tool. The script
   draws it as a plan: end posts, even bays, one gate that swings down into the page,
   and the length marked above it. Without the script it is the plain line in the page. */
.fence-rule { position: relative; color: var(--accent); --post-fill: #ffffff; }
.fence-rule svg { display: block; width: 100%; height: 16px; overflow: visible; }
.fence-rule.has-plan svg { height: var(--plan-h, 16px); }
.fr-rail { fill: currentColor; }
.fr-post { fill: var(--post-fill); stroke: currentColor; stroke-width: 1.75; }
.fr-post--gate { fill: currentColor; }
.fr-arc { fill: none; stroke: currentColor; stroke-width: 1; opacity: .5; }
.fr-leaf { stroke: currentColor; stroke-width: 2.5; }
.fr-hit { fill: #fff; fill-opacity: 0; pointer-events: all; touch-action: manipulation; }
.fr-watch { position: absolute; left: 0; top: 0; width: 1px; visibility: hidden; pointer-events: none; }
.fr-dim path { fill: none; stroke: var(--accent-ink); stroke-width: 1; }
.fr-dim text { fill: var(--accent-ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-anchor: middle; }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero + .section { padding-top: clamp(48px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 24px; }
.hero .actions { margin-top: 32px; }
/* The phrase gets a thin orange underline that steps around the tail of the y. */
.phrase {
  white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .06em;
  text-underline-offset: .13em; text-decoration-skip-ink: auto;
}
.portrait__img { border-radius: var(--r); overflow: hidden; background: var(--paper-3); aspect-ratio: 4 / 5; }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.plate {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 10px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--ink-3);
}
.hero__foot { margin-top: clamp(56px, 7vw, 88px); }
.before { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-top: 22px; }
.before ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.before li { display: inline-flex; align-items: center; gap: 9px; font-size: .9688rem; font-weight: 500; color: var(--ink-2); }
.before li::before { content: ""; flex: none; width: 7px; height: 7px; border: 1.5px solid var(--ink-3); border-radius: 1.5px; }
.before a { color: inherit; text-decoration: none; }
.before a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
/* What is on offer now gets orange posts. The jobs before fences keep grey ones. */
.before--now { margin-top: clamp(28px, 4vw, 44px); }
.before--now li::before { border-color: var(--accent); }

/* The numbers: a plain list with one date line under it. */
.count { margin-top: clamp(56px, 7vw, 88px); border-top: 2px solid var(--ink); }
.count__row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 40px); align-items: baseline; padding: clamp(18px, 2.4vw, 26px) 0; border-bottom: 1px solid var(--line); }
.count__qty { font-size: clamp(2.375rem, 4.4vw, 3.5rem); font-weight: 660; line-height: 1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.count__what { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink); }
.count__note { margin-top: 14px; font-family: var(--mono); font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }

/* Work list */
.feature, .row, .note-row { position: relative; }
.feature__title a, .row__title a, .note-row__title a { color: inherit; text-decoration: none; }
.feature__title a::after, .row__title a::after, .note-row__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature:hover .feature__title a, .row:hover .row__title a, .note-row:hover .note-row__title a {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent);
}
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line-2); }
.feature__title { font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; }
.feature__line { margin-top: 14px; font-size: clamp(1.0625rem, 1.45vw, 1.25rem); line-height: 1.5; max-width: 26em; }
.feature .more { margin-top: 26px; }
.feature--photo { grid-template-columns: 1fr; gap: 22px; }
.feature--photo .feature__art img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 58%; border-radius: var(--r); background: var(--paper-3); }
.feature--photo .feature__copy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.feature--photo .feature__title { margin-top: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.feature--photo .feature__line { margin-top: 8px; }
.feature--photo .more { margin-top: 0; }

.shot__frame { display: block; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); }
.shot__frame img { width: 100%; }
.shot figcaption, .cap { margin-top: 10px; font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.shot figcaption a, .cap a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }

.row { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 36px); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.row__art { display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--line); }
.row__art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.row__art--logo img { width: 62%; height: auto; object-fit: contain; }
.slip { display: grid; gap: 2px; padding: 8px 12px; background: #fff; border: 1px solid var(--line-2); border-radius: 2px; font-family: var(--mono); font-size: .8125rem; line-height: 1.3; transform: rotate(-3deg); }
.slip s { color: var(--ink-3); }
.slip b { color: var(--ink); font-weight: 500; font-size: 1rem; }
.row__title { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.2; letter-spacing: -.018em; }
.row__body p { margin-top: 4px; color: var(--ink-2); }
.row__go { color: var(--ink); }
@media (hover: hover) {
  .row__go, .note-row__go { opacity: 0; transform: translateX(-8px); transition: opacity .2s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
  .row:hover .row__go, .row:focus-within .row__go,
  .note-row:hover .note-row__go, .note-row:focus-within .note-row__go { opacity: 1; transform: none; }
}

.work-index { border-top: 2px solid var(--ink); padding-bottom: var(--section); }

/* Story */
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); background: var(--paper-3); }
.story__copy p { margin-top: 20px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.62; max-width: 34em; }
.story__copy .text-link { margin-top: 28px; }

/* --------------------------------------------------------------------------
   The close of every page: a question, then a fence drawn to scale with a
   gate in it. The footer is the ground it stands on.
   -------------------------------------------------------------------------- */
.connect { --fence-bg: var(--paper); padding-top: var(--section); background: var(--fence-bg); border-top: 1px solid var(--line-2); overflow: hidden; }
.connect__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.connect__body { margin-top: 16px; max-width: 32em; font-size: clamp(1.0625rem, 1.45vw, 1.25rem); line-height: 1.55; }

.fenceline { position: relative; margin-top: clamp(40px, 6vw, 72px); min-height: 84px;
  background: repeating-linear-gradient(90deg, transparent 0 8px, var(--line-2) 8px 9px) bottom / 100% 70px no-repeat; }
.fenceline.has-fence { background: none; min-height: 0; }
.fenceline__svg { display: block; width: 100%; overflow: visible; }
.f-picket { fill: var(--fence-bg); stroke: var(--line-2); stroke-width: 1; }
.f-rail { fill: var(--fence-bg); stroke: var(--line-strong); stroke-width: 1; }
.f-post { fill: var(--fence-bg); stroke: var(--ink); stroke-width: 1.25; }
.f-string { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 5 4; }
.f-dim line, .f-dim path { stroke: var(--accent-ink); stroke-width: 1; fill: none; }
.f-dim text { fill: var(--accent-ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-anchor: middle; }
.f-dim .f-note { fill: var(--ink-3); text-anchor: start; }
.f-post, .f-rail, .f-picket { transform-box: fill-box; }
.f-post { transform-origin: 50% 100%; }
.f-rail { transform-origin: 0 50%; }

/* Built in the order a crew builds it: string line, posts, rails, pickets, gate. */
.fenceline.will-build .f-post { transform: scaleY(0); }
.fenceline.will-build .f-rail { transform: scaleX(0); }
.fenceline.will-build .f-picket { opacity: 0; transform: translateY(-7px); }
.fenceline.will-build .f-string { clip-path: inset(0 100% 0 0); }
.fenceline.will-build .f-dim, .fenceline.will-build .fenceline__gate { opacity: 0; }
.fenceline.is-built .f-post { transform: none; transition: transform .42s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.fenceline.is-built .f-rail { transform: none; transition: transform .4s cubic-bezier(.3, .7, .2, 1) var(--d, 0ms); }
.fenceline.is-built .f-picket { opacity: 1; transform: none; transition: opacity .16s linear var(--d, 0ms), transform .22s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.fenceline.is-built .f-string { clip-path: inset(0 0 0 0); opacity: 0; transition: clip-path .5s cubic-bezier(.3, .7, .2, 1), opacity .5s ease 1.7s; }
.fenceline.is-built .f-dim { opacity: 1; transition: opacity .5s ease 1.9s; }
.fenceline:not(.will-build) .f-string { opacity: 0; }

.fenceline__gate {
  position: absolute; left: var(--gate-x, 60%); top: var(--gate-y, 0); width: var(--gate-w, 80px); height: var(--gate-h, 100px);
  display: block; color: var(--ink);
  transform-origin: 0 50%; transform: perspective(900px) rotateY(-24deg);
  transition: transform .7s cubic-bezier(.3, 1.35, .45, 1);
}
.fenceline__gate svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fenceline.is-built .fenceline__gate { opacity: 1; transition: opacity .3s ease 1.55s, transform .7s cubic-bezier(.3, 1.35, .45, 1); }
.g-board { fill: var(--fence-bg); stroke: var(--line-strong); stroke-width: 1; }
.g-frame { fill: var(--fence-bg); stroke: var(--ink); stroke-width: 1.25; }
.g-hardware { fill: var(--accent); stroke: none; }
.fenceline__gate:hover, .connect:has(.btn:hover) .fenceline__gate, .connect:has(.btn:focus-visible) .fenceline__gate,
.connect--bare .fenceline__gate { transform: perspective(900px) rotateY(-66deg); }
.fenceline:not(.has-fence) .fenceline__gate { display: none; }
.connect--bare { padding-top: clamp(24px, 4vw, 48px); border-top: 0; }
.connect--bare .connect__inner { display: none; }
.connect--bare .fenceline { margin-top: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .6); font-size: .9375rem; }
.site-footer__main { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; padding-block: 40px 32px; }
.site-footer__name { color: #fff; font-weight: 660; font-size: 1.0625rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-block: 20px 36px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }
.site-footer__links { display: flex; gap: 24px; }
.site-footer__links a { display: inline-block; padding-block: 6px; margin-block: -6px; }
.site-footer--solo { border-top: 0; }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.page-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head .eyebrow + h1 { margin-top: 16px; }
.page-head .lead { margin-top: 22px; }
.page-head .back + h1, .page-head .back + .eyebrow { margin-top: 28px; }
.role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line-2); max-width: 44em; }
.role dt { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.role dd { color: var(--ink); font-weight: 500; }

.reading { display: grid; grid-template-columns: 220px minmax(0, 42rem); gap: clamp(32px, 7vw, 104px); padding-block: clamp(48px, 7vw, 96px); }
.contents { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.contents ol { display: grid; gap: 10px; margin-top: 16px; }
.contents a { font-size: .9375rem; line-height: 1.4; color: var(--ink-3); text-decoration: none; }
.contents a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.reading--solo { grid-template-columns: minmax(0, 42rem); padding-top: clamp(4px, 1.5vw, 20px); }

.prose { font-size: 1.125rem; line-height: 1.68; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.4375rem, 2.2vw, 1.6875rem); line-height: 1.2; letter-spacing: -.018em; }
.prose h2 + * { margin-top: .7em; }
.prose a:not(.text-link) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose a:not(.text-link):hover { text-decoration-color: currentColor; }
.prose ul { display: grid; gap: .5em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border: 1.5px solid var(--accent); border-radius: 1.5px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose .text-link { margin-top: 1.6em; }
.prose figure { margin-block: 2.2em; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pair img, .photo img { width: 100%; object-fit: cover; border-radius: var(--r); background: var(--paper-3); }
.pair img { aspect-ratio: 4 / 3; }

.next { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-block: 32px clamp(56px, 8vw, 104px); border-top: 2px solid var(--ink); }
.next a { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 660; letter-spacing: -.025em; color: var(--ink); text-decoration: none; }
.next a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }

.photo-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 35%; border-radius: var(--r); background: var(--paper-3); }
.photo-lead figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 12px; font-size: .875rem; color: var(--ink-3); }
.photo-lead figcaption img { width: 112px; height: auto; aspect-ratio: auto; border-radius: 0; background: none; }

/* Walkthrough: steps scroll past one pinned screen on wide windows */
.wordmark { width: 152px; height: auto; }
.walk { padding-block: clamp(48px, 7vw, 96px); }
.walk .h2 { margin-top: 26px; }
.walk .lead { margin-top: 16px; color: var(--ink-3); }
.walk__grid { margin-top: clamp(44px, 5vw, 72px); }
.walk__steps { display: grid; gap: clamp(56px, 8vw, 88px); }
.step__num { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.step__n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r);
  border: 1.5px solid var(--line-strong); color: var(--ink); background: #fff;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.step h3 { margin-top: 16px; font-size: clamp(1.5rem, 2.3vw, 1.875rem); line-height: 1.15; letter-spacing: -.022em; }
.step__text > p { margin-top: 12px; max-width: 31em; }
.step .shot { margin-top: 28px; }
.shot--phone .shot__frame { width: min(76%, 290px); margin-inline: auto; border-radius: 30px; border: 7px solid var(--ink); }
.shot--phone .shot__frame img { aspect-ratio: 960 / 1600; object-fit: cover; object-position: top; }
.shot--phone figcaption { text-align: center; }
.walk__stage { display: none; }
.walk__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line-2); }
.walk__more p { max-width: 40em; color: var(--ink-2); }

@media (min-width: 960px) {
  .walk.is-staged .walk__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); }
  .walk.is-staged .walk__steps { gap: 0; }
  .walk.is-staged .step { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0 48px 28px; border-left: 2px solid var(--line); transition: border-color .3s ease; }
  .walk.is-staged .step.is-active { border-left-color: var(--accent); }
  .walk.is-staged .step.is-active .step__n { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
  .walk.is-staged .step .shot { display: none; }
  .walk.is-staged .walk__stage { display: block; }
  .stage { position: sticky; top: max(calc(var(--header-h) + 16px), 18vh); height: 64vh; display: grid; }
  .stage .shot {
    grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
  }
  .stage .shot.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
  .stage .shot__frame { width: auto; max-width: 100%; }
  .stage .shot__frame img { width: auto; max-width: 100%; max-height: calc(64vh - 72px); }
  .stage .shot--phone .shot__frame img { height: calc(64vh - 72px); max-height: 600px; }
  .stage .shot figcaption { max-width: 46em; text-align: center; }
}

/* Worksheet */
.sheet { margin-block: clamp(8px, 2vw, 24px) clamp(48px, 7vw, 96px); border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; }
.sheet__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 12px 48px; align-items: end; padding: clamp(22px, 3vw, 36px); border-bottom: 2px solid var(--ink); }
.sheet__head h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.12; letter-spacing: -.022em; }
.sheet__head p { color: var(--ink-3); }
.sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet__cell { padding: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--line-2); }
.sheet__cell + .sheet__cell { border-left: 1px solid var(--line-2); }
.sheet__cell--wide { grid-column: 1 / -1; border-left: 0 !important; }
.sheet__cell:last-child { border-bottom: 0; }
.sheet__step { display: flex; align-items: center; gap: 12px; }
.sheet__step h3 { font-size: 1.1875rem; letter-spacing: -.01em; }
.sheet__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: var(--r); font-family: var(--mono); font-size: .8125rem; font-weight: 500; color: var(--ink); }
.sheet__meta { margin-top: 10px; font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }
.sheet blockquote { margin-top: 16px; padding: 14px 16px; background: var(--paper-2); border-left: 2px solid var(--accent); font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }
.sheet__sub { margin-top: 22px; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fields { margin-top: 12px; border-top: 1px solid var(--line); }
.fields > div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fields dt { font-size: .9063rem; color: var(--ink-3); }
.fields dd { font-size: .9688rem; color: var(--ink); }
.fields .flag dt { color: var(--accent-ink); font-weight: 600; }
.calc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-top: 20px; }
.qty > span:first-child { display: block; margin-bottom: 8px; font-size: .9063rem; font-weight: 600; color: var(--ink); }
.qty { justify-self: start; }
.qty__row { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.qty__row button { width: 48px; height: 48px; border: 0; background: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--ink); }
.qty__row button:hover { background: var(--paper-2); }
.qty__row input { width: 64px; height: 48px; border: 0; border-inline: 1.5px solid var(--ink); border-radius: 0; text-align: center; font-family: var(--mono); font-size: 1.0625rem; -moz-appearance: textfield; appearance: textfield; background: #fff; }
.qty__row input::-webkit-outer-spin-button, .qty__row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.totals > div { padding: 12px 16px 0 0; }
.totals span { display: block; font-size: .875rem; color: var(--ink-3); }
.totals strong { display: block; margin-top: 2px; font-family: var(--mono); font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.totals .delta strong { color: var(--accent-ink); }
.sheet__callout { margin-top: 22px; max-width: 46em; color: var(--ink); }
.prompt { margin-top: 14px; padding: 16px; background: var(--paper-2); border-radius: var(--r); font-family: var(--mono); font-size: .8438rem; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; }
.btn--small { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.status { font-size: .9063rem; color: var(--ink-3); }

/* Academy banner and the two-versions figure */
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(28px, 5vw, 56px); background: var(--paper-2); border-radius: var(--r); }
.banner img { width: min(232px, 60%); mix-blend-mode: multiply; }
.banner p { font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.versions figcaption b { color: var(--ink); font-weight: 600; }

/* About */
.about-open { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: var(--section); }
.about-open .lead { margin-top: 24px; color: var(--ink); }
.about-open p + p { margin-top: 16px; max-width: 36em; font-size: 1.125rem; line-height: 1.62; }
.about-open .portrait__img { aspect-ratio: 3 / 4; }
.about-open .portrait__img img { object-position: 60% 60%; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.split p { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.62; max-width: 34em; }
.split p + p { margin-top: 18px; }

.career__sub { color: var(--ink-3); }
.runs { margin-top: 56px; padding: 26px 0 30px; }
.runs__track { display: flex; height: 16px; }
.run { position: relative; flex: var(--m) 1 0; min-width: 0; height: 16px; }
.run::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); }
.run--now::before { background: var(--accent); }
.run__post, .runs__end { position: absolute; top: 3px; width: 10px; height: 10px; border-radius: 2px; background: #fff; border: 2px solid var(--ink); z-index: 1; }
.run__post { left: -5px; }
.runs__end { right: -5px; border-color: var(--accent); }
.run--now .run__post { border-color: var(--accent); }
.run__letter { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--ink); }
.run--now .run__letter { color: var(--accent-ink); }
.run__year, .runs__now { position: absolute; top: 24px; font-family: var(--mono); font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.run__year { left: 0; transform: translateX(-50%); }
.runs__now { right: 0; transform: translateX(50%); color: var(--accent-ink); }
.run:first-child .run__year { transform: none; left: -5px; }

.schedule { margin-top: 28px; border-top: 1px solid var(--line-2); }
.schedule__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 132px 124px; gap: 16px; align-items: baseline; }
.schedule__row { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.schedule__run { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.schedule__row--now .schedule__run, .schedule__row--gate .schedule__run { color: var(--accent-ink); }
.schedule__org { font-weight: 660; font-size: 1.125rem; color: var(--ink); }
.schedule__org small { margin-left: 6px; font-size: .875rem; font-weight: 500; color: var(--ink-3); }
.schedule__role { display: block; margin-top: 2px; color: var(--ink-2); font-weight: 500; }
.schedule__desc { display: block; margin-top: 8px; max-width: 40em; color: var(--ink-2); }
.schedule__note { display: block; margin-top: 6px; font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.schedule__note a { color: var(--ink); text-underline-offset: 3px; }
.schedule__when { display: contents; }
.schedule__years, .schedule__len { font-family: var(--mono); font-size: .8438rem; color: var(--ink-2); text-align: right; white-space: nowrap; }

/* Notes */
.note-rows { border-top: 2px solid var(--ink); }
.note-row { display: grid; grid-template-columns: 13rem minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 40px); align-items: baseline; padding: clamp(22px, 3vw, 32px) 0; border-bottom: 1px solid var(--line-2); }
.note-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.note-row__title { font-size: clamp(1.375rem, 2.3vw, 1.8125rem); line-height: 1.16; letter-spacing: -.02em; }
.note-row p { margin-top: 8px; max-width: 40em; }
.note-row__go { align-self: center; color: var(--ink); }
.asides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); padding-block: clamp(48px, 7vw, 96px); }
.asides h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -.018em; }
.asides p { margin-top: 12px; max-width: 30em; }
.asides .text-link { margin-top: 18px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: .9375rem; color: var(--ink-3); }
.byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--paper-3); }
.byline strong { color: var(--ink); font-weight: 650; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(40px, 6vw, 88px); padding-bottom: var(--section); }
.contact h1 { margin-top: 16px; }
.contact__copy > p:not(.eyebrow) { margin-top: 22px; font-size: 1.125rem; line-height: 1.62; max-width: 32em; }
.person { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.person img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--paper-3); }
.person strong { display: block; color: var(--ink); font-weight: 660; }
.person span { display: block; font-size: .9375rem; color: var(--ink-3); }
.form-box { padding: clamp(22px, 3.4vw, 40px); background: var(--paper-2); border-radius: var(--r); border-top: 2px solid var(--ink); }
.form-box h2 { font-size: 1.5rem; letter-spacing: -.018em; }
.form-box > p { margin-top: 8px; color: var(--ink-2); }
.inquiry { display: grid; gap: 18px; margin-top: 24px; }
.inquiry__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.inquiry label { display: grid; gap: 7px; }
.inquiry label > span { font-size: .9063rem; font-weight: 600; color: var(--ink); }
.inquiry input, .inquiry select, .inquiry textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.4;
}
.inquiry textarea { min-height: 148px; resize: vertical; }
.inquiry input:focus-visible, .inquiry select:focus-visible, .inquiry textarea:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-color: var(--ink); }
.inquiry__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.inquiry .status { min-height: 1.4em; }
.inquiry .status[data-error="true"] { color: var(--accent-ink); font-weight: 600; }
.inquiry__note { font-size: .9063rem; color: var(--ink-3); }
.inquiry__note a, .address { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.offers { padding-bottom: var(--section); }
.offers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); }
.offer { padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.offer h3 { font-size: 1.25rem; letter-spacing: -.012em; }
.offer p { margin-top: 8px; max-width: 34em; }

/* Not found */
.lost { padding-block: clamp(72px, 14vw, 180px); }
.lost h1 { margin-top: 16px; }
.lost p:not(.eyebrow) { margin-top: 16px; }
.lost .btn { margin-top: 32px; }

/* One-file copies: every page is in the document and only one shows. */
.spa .page { display: none; }
.spa .page.is-current { display: block; }

/* --------------------------------------------------------------------------
   Smaller screens
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .reading { grid-template-columns: minmax(0, 42rem); gap: 36px; }
  .contents { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line-2); }
  .sheet__head { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero__grid, .about-open, .story__grid, .split, .contact { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; }
  .hero .portrait__img { aspect-ratio: 1 / 1; }
  .hero .portrait__img img { object-position: 50% 8%; }
  .about-open .portrait__img { aspect-ratio: 4 / 5; }
  .story__photo { max-width: 520px; }
  .feature { grid-template-columns: 1fr; }
  .feature__art { order: -1; }
  .count__row { grid-template-columns: 1fr; row-gap: 8px; }
  /* The career turns into a vertical fence line: one post per job. */
  .runs { display: none; }
  .schedule { margin-top: 28px; border-top: 0; }
  .schedule__row { position: relative; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: 14px 0; border-bottom: 0; }
  .schedule__row::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--ink); }
  .schedule__row:first-child::before { top: 30px; }
  .schedule__row--last::before { bottom: auto; height: 30px; }
  .schedule__row--gate::before { display: none; }
  .schedule__row > div { padding-top: 3px; }
  .schedule__run { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; font-size: .8125rem; }
  .schedule__row--now .schedule__run, .schedule__row--gate .schedule__run { border-color: var(--accent); }
  .schedule__when { display: flex; flex-wrap: wrap; gap: 4px 14px; grid-column: 2; margin-top: 6px; }
  .schedule__years, .schedule__len { text-align: left; }
  .schedule__len:not(:empty)::before { content: "\00B7"; margin-right: 14px; color: var(--line-strong); }
  .sheet__grid { grid-template-columns: 1fr; }
  .sheet__cell + .sheet__cell { border-left: 0; }
  .calc { grid-template-columns: 1fr; }
  .note-row { grid-template-columns: minmax(0, 1fr) auto; }
  .note-row__meta { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .menu { display: block; }
  .row { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
  .row__go, .note-row__go { display: none; }
  .note-row { grid-template-columns: minmax(0, 1fr); }
  .slip { padding: 5px 8px; font-size: .75rem; }
  .slip b { font-size: .8125rem; }
  .feature--photo .feature__art img { aspect-ratio: 16 / 10; }
  .pair, .versions, .asides, .offers__grid, .inquiry__grid { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr 1fr; }
  .totals .delta { grid-column: 1 / -1; }
  .fields > div { grid-template-columns: 1fr; }
  .photo-lead img { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .actions .btn, .connect .btn, .inquiry__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
