/* Spacecamp site. Tokens come from the "Spacecamp Design System · Patterns" Figma file. */
:root {
  --field: #EDECE8;          /* page paper, warm gray: lightened from #E7E5DD, then desaturated from #EEECE5 (Jordan, Nov 24) */
  --ink: #33291F;            /* rules, primary text, dark brown */
  --ink-2: #675C4F;          /* secondary text */
  --ink-soft: #CDC9BC;       /* placeholder fill, kept off the paper colour */
  --accent: #E3A72F;         /* warm yellow, used sparingly */
  --rule: 3px;               /* rules and title-block lines */
  --hair: 3px;               /* all horizontal lines match --rule (Jordan, Nov 24) */
  --pad: 128px;             /* bottom margin and other spacing (Jordan, Nov 24) */
  /* side margins (Jordan, Nov 29: more breathing room, a narrower content column, the left
     margin narrower than the right, which holds the nav list): 1056 of 1440 at full width */
  --pad-l: 160px; --pad-r: 224px;
  /* window edge to content edge, at any width */
  --win-l: calc(max(0px, (100vw - 1440px) / 2) + max(var(--pad-l), env(safe-area-inset-left)));
  --win-r: calc(max(0px, (100vw - 1440px) / 2) + max(var(--pad-r), env(safe-area-inset-right)));
  --gap: 40px;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --serif: "BIZ UDMincho", "Times New Roman", serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif; /* body text */
  --hero: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--field);
  background-image: url("../img/grain.png");
  background-size: 50px 50px;
  background-attachment: scroll;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 max(var(--pad-r), env(safe-area-inset-right)) var(--pad) max(var(--pad-l), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* type styles */
.label { font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.h48, .h36, .h24, .contact-title { font-family: var(--sans); }
.h48 { font-size: 48px; line-height: 1.1; letter-spacing: -0.015em; }
.h36 { font-size: 36px; line-height: 1.1; letter-spacing: -0.01em; font-weight: 500; }
.h24 { font-size: 24px; line-height: 1.15; letter-spacing: -0.005em; font-weight: 500; }
.b18 { font-size: 19px; line-height: 1.45; }
.b14 { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.note { font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.value { font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1.3; }
.ph { color: var(--ink-2); }

/* rules: single lines only */
.rule { border: 0; margin: 0; height: var(--rule); background: var(--ink); }
.hair { border: 0; margin: 0; height: var(--hair); background: var(--ink); }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
::selection { background: var(--accent); color: var(--ink); }
.dot--5 { width: 5px; height: 5px; }

/* ---------- mastheads ---------- */
.mast { display: flex; flex-direction: column; }
.mast--home { padding-top: 60px; }
.mast__folio { display: flex; justify-content: space-between; gap: 16px; }
.mast__mark { display: block; margin-top: 16px; }
.mast__mark img { width: 100%; height: auto; }
.links { display: flex; flex-wrap: wrap; gap: 12px var(--gap); }
.links a { display: inline-flex; align-items: center; gap: 8px; }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.mast--home .links { margin-top: 34px; }
.mast--home .rule { margin-top: 14px; }

.mast--sub { padding-top: 40px; gap: 20px; }
.mast--sub .mast__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.mast--sub .mast__mark { margin: 0; width: 240px; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.hero__col { display: flex; flex-direction: column; gap: var(--gap); }
.hero__intro { font-family: var(--hero); font-size: 48px; line-height: 1.1; letter-spacing: -0.015em; font-weight: 400; }
.hero__intro b { font-weight: 700; }
.ph-img { width: 100%; object-fit: cover; }
.hero .h472 { height: 472px; }
.hero .h493 { height: 493px; }
.hero .h500 { height: 500px; }

.head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.service { display: flex; flex-direction: column; gap: 12px; }
.service .num { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-2); }
a.more { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
a.more:hover { text-decoration: underline; text-underline-offset: 3px; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
.projects__col { display: flex; flex-direction: column; gap: var(--gap); }
.proj { display: flex; flex-direction: column; gap: 12px; }
.proj--text { padding-top: 16px; border-top: var(--hair) solid var(--ink); }
.proj img { width: 100%; object-fit: cover; }
.proj:hover .h24 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.foot { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.foot__run { display: grid; grid-template-columns: 440fr 672fr 200fr; gap: 0; }
.foot__run span { display: inline-flex; align-items: center; gap: 8px; }
.foot__run span:last-child { justify-content: flex-end; }
.foot__mark { align-self: flex-end; width: 311px; }

/* ---------- work index ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.work-grid .proj img, .work-grid .box { aspect-ratio: 4 / 3; height: auto; }

/* placeholder box: ink-soft fill, never the paper colour */
.box { background: var(--ink-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; width: 100%; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- case study ---------- */
.cs { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 48px; align-items: start; }
.cs__main { display: flex; flex-direction: column; gap: var(--gap); padding-bottom: var(--pad); min-width: 0; }
.cs__title { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.1; letter-spacing: -0.015em; max-width: 900px; }
.measure { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.cs__photo { width: 100%; border-radius: 12px; object-fit: cover; }
.h600 { height: 600px; } .h560 { height: 560px; } .h520 { height: 520px; }
.figure { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; align-items: end; }
.figure figcaption { display: flex; flex-direction: column; gap: 8px; }
.figure figcaption .label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
figure { margin: 0; }
.sec { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.sec__head { display: flex; align-items: baseline; gap: 16px; }
.sec__head .label { min-width: 24px; }
.squares { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 16px; }
.squares img, .squares .box { aspect-ratio: 1 / 1; height: auto; width: 100%; object-fit: cover; border-radius: 12px; }
.quote { font-family: var(--serif); font-size: 28px; line-height: 1.3; max-width: 760px; margin: 0; }
.quote-by { margin-top: 12px; }
.next { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 16px; border-top: var(--hair) solid var(--ink); }
.next:hover .h36 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* title block: ink shows through 4px gaps, so lines are exactly --rule */
.tb { background: var(--ink); padding: var(--rule); border-radius: 16px; display: flex; flex-direction: column; gap: var(--rule); }
.tb__cell { background-color: var(--field); background-image: url("../img/grain.png"); background-size: 50px 50px; border-radius: 4px; padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb__cell--first { border-radius: 12px 12px 4px 4px; }
.tb__cell--last { border-radius: 4px 4px 12px 12px; }
.tb__cell--mark { padding: 16px 16px 14px; }
.tb__cell--mark .h36 { overflow-wrap: anywhere; }

.rail { position: sticky; top: 24px; }
.rail .h36 { font-size: 30px; }
.toc { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.toc a { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.toc .dot { background: var(--ink); opacity: .25; transition: opacity .2s; }
.toc a.is-active .dot { background: var(--accent); opacity: 1; }
.toc .n { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact-title { font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; margin-top: 8px; }
.contact { display: grid; grid-template-columns: 360px var(--rule) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.contact__vr { background: var(--ink); align-self: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 32px; }
.info-table { display: flex; flex-direction: column; }
.info-table div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-top: var(--hair) solid var(--ink); }
.info-table div:last-child { border-bottom: var(--hair) solid var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; }
.form .tb__cell:nth-child(1) { border-radius: 12px 4px 4px 4px; }
.form .tb__cell:nth-child(2) { border-radius: 4px 12px 4px 4px; }
.form .wide { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 4px; }
.form input, .form textarea {
  font: 500 16px/1.4 var(--mono); color: var(--ink); background: transparent; border: 0; padding: 2px 0; width: 100%; resize: vertical; outline: none;
}
.form input::placeholder, .form textarea::placeholder { color: var(--ink-2); opacity: .55; font-size: 14px; font-weight: 400; }  /* lighter and smaller (Jordan, Nov 30) */
.form textarea { min-height: 160px; }
.form .tb__cell:focus-within { box-shadow: inset 0 0 0 1px var(--ink); }
.form__send { flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 12px 12px 16px; }
.btn { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--accent); border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  :root { --pad: 64px; --pad-l: 64px; --pad-r: 160px; }
  .cs { grid-template-columns: 1fr; }
  .rail { position: static; order: -1; }
  .rail .toc-cell { display: none; }
  .rail .tb { display: grid; grid-template-columns: repeat(3, 1fr); }
  .rail .tb__cell--mark { grid-column: 1 / -1; border-radius: 12px 12px 4px 4px; }
  .rail .tb__cell--meta-last { border-radius: 4px 4px 12px 4px; }
  .contact { grid-template-columns: 1fr; }
  .contact__vr { display: none; }
}
@media (max-width: 800px) {
  :root { --pad: 24px; --pad-l: 24px; --pad-r: 24px; --gap: 28px; }
  .mast--home { padding-top: 24px; }
  .mast--home .links { margin-top: 20px; gap: 10px 20px; }
  .mast--sub { padding-top: 20px; }
  .mast--sub .mast__mark { width: 160px; }
  .mast--sub .links { gap: 10px 16px; }
  .hero, .services, .work-grid { grid-template-columns: 1fr; }
  .hero__intro { font-size: 32px; }
  .hero .ph-img { height: auto; aspect-ratio: 4 / 3; }
  .projects { display: flex; flex-direction: column; gap: var(--gap); }
  .projects__col { display: contents; }
  .proj { order: var(--o); }
  .proj img, .proj__box { height: auto !important; aspect-ratio: 4 / 3; }
  .h36 { font-size: 28px; }
  .cs__title { font-size: 34px; }
  .cs__photo { height: auto; aspect-ratio: 4 / 3; }
  .h520.box { height: auto; aspect-ratio: 4 / 3; }
  .figure { grid-template-columns: 1fr; }
  .squares { gap: 8px; }
  .quote { font-size: 22px; }
  .rail .tb { grid-template-columns: 1fr 1fr; }
  .rail .tb__cell--meta-last { border-radius: 4px; }
  .rail .tb__cell--meta-end { border-radius: 4px 4px 12px 12px; grid-column: 1 / -1; }
  .contact-title { font-size: 40px; }
  .form { grid-template-columns: 1fr; }
  .form .tb__cell:nth-child(1) { border-radius: 12px 12px 4px 4px; }
  .form .tb__cell:nth-child(2) { border-radius: 4px; }
  .info-table div { grid-template-columns: 70px 1fr; }
  .foot__run { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .foot__run span:nth-child(2) { justify-content: flex-end; }
  .foot__run span:last-child { grid-column: 1 / -1; justify-content: flex-start; }
  .foot__mark { width: 200px; }
}

/* accent on hover */
a:hover { text-decoration-color: var(--accent) !important; }
.links a:hover { color: var(--ink); }

/* rounded corners on every photo */
.ph-img, .proj img, .work-grid img, .cs__photo, .squares img { border-radius: 12px; }

/* photos multiply onto the warm paper */
.ph-img, .proj img, .work-grid img, .cs__photo, .squares img { mix-blend-mode: multiply; }

/* home projects, newspaper style: rule under each, kicker above the photo, serif headline */
.projects .proj { border-bottom: var(--rule) solid var(--ink); padding-bottom: 16px; gap: 10px; }
.projects .proj .label { order: -1; }
.projects .proj .h24 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.projects .proj .b14 { color: var(--ink); }

/* ---------- sticky headers (Jordan, Nov 24) ----------
   Nav sits on the right everywhere. Sub page headers stick to the top.
   On home, the big wordmark shrinks as you scroll (home script) until the
   header matches the sub page header, then it stays fixed. */
/* body grain stays scroll-attached: a fixed page background stops the photos multiplying */
.mast {
  position: sticky; top: 0; z-index: 20;
  background-color: var(--field);
  background-image: url("../img/grain.png");
  background-size: 50px 50px;
  background-attachment: fixed;
}
.mast--home .links { justify-content: flex-end; }
.mast--sub .mast__row { flex-wrap: nowrap; }
.mast--home.is-live { display: block; }
.mast--home.is-live > * { position: absolute; margin: 0; }
.mast--home.is-live .mast__folio { left: 0; right: 0; }
.mast--home.is-live .mast__mark { left: 0; }
.mast--home.is-live .mast__mark img { display: block; }
.mast--home.is-live .links { right: 0; }
.mast--home.is-live .rule { left: 0; right: 0; bottom: 0; }
.mast--home.is-live.is-docked .mast__folio { visibility: hidden; }
.rail { top: 109px; }
.sec, .hero { scroll-margin-top: 110px; }
@media (max-width: 800px) {
  .sec, .hero { scroll-margin-top: 80px; }
}
/* hero intro in mincho (Jordan, Nov 24) */
.hero__intro { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.15; }
@media (max-width: 800px) {
  .mast--sub .mast__row { flex-direction: column; align-items: stretch; gap: 10px; }
  .mast--sub .links { justify-content: flex-end; }
}
/* header has no background: page content scrolls under it (Jordan, Nov 24) */
.mast { background: none; }
/* header multiplies over what scrolls under it (Jordan, Nov 24) */
.mast { mix-blend-mode: multiply; }
/* header in a solid rounded rectangle (Jordan, Nov 24): replaces the
   see-through multiplied header. 4px ink edge so the box never shares
   its colour with the page beneath; the edge replaces the header rule. */
.mast {
  mix-blend-mode: normal;
  top: 16px;
  margin-top: 40px;
  padding: 16px 20px;
  border: var(--rule) solid var(--ink);
  border-radius: 16px;
  background-color: var(--field);
  background-image: url("../img/grain.png");
  background-size: 50px 50px;
  background-attachment: fixed;
}
.mast--sub { padding-top: 16px; gap: 0; }
.mast .rule { display: none; }
.rail { top: 104px; }
.sec, .hero { scroll-margin-top: 104px; }
@media (max-width: 800px) {
  .mast { top: 12px; margin-top: 20px; padding: 12px 16px; border-radius: 12px; }
  .mast--sub { padding-top: 12px; }
  .sec, .hero { scroll-margin-top: 100px; }
}

/* ---------- header and footer from Figma Page parts (Jordan, Nov 24) ----------
   Home: the big "Editorial / Masthead" (folio, full-width wordmark, rule,
   icons left in yellow + nav right, rule). It scrolls away, no box.
   Other pages: the compact rounded header, nav then the two icons on the right.
   Footer: rule, three labels each with an ink dot spread across, dot wordmark. */
.mast--home {
  position: static; margin-top: 0; padding: 28px 0 0; border: 0; border-radius: 0;
  background: none; mix-blend-mode: normal; display: flex; flex-direction: column;
}
.mast--home .mast__mark { margin-top: 16px; }
.mast--home .rule { display: block; margin-top: 20px; }
.mast--home .mast__line { display: flex; justify-content: space-between; align-items: center; min-height: 36px; margin-top: 14px; gap: 24px; }
.mast--home .mast__line + .rule { margin-top: 14px; }
.mast--home .links { margin-top: 0; justify-content: flex-end; }
.mast--home .mast__icons { color: var(--accent); }
.mast__icons { display: block; width: 76px; height: auto; flex: none; }
.mast--sub .mast__nav { display: flex; align-items: center; gap: 24px; }
.mast--sub .mast__icons { color: var(--ink); }
.mast--sub .links .dot { background: var(--ink); }
.foot { gap: 40px; }
.foot__run { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.foot__run span { gap: 16px; }
.foot__run .dot { background: var(--ink); }
@media (max-width: 800px) {
  .mast--home { padding-top: 24px; }
  .mast--home .rule { margin-top: 14px; }
  .mast--home .mast__line { align-items: flex-start; }
  .mast__icons { width: 56px; }
  .mast--sub .mast__nav { justify-content: space-between; gap: 16px; }
  .foot { gap: 24px; }
  .foot__run { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---- collage hero (trial, Nov 24): polygon cut pieces, live halftone ---- */
.hero--collage { display: block; position: relative; }
.collage { position: relative; width: 100%; aspect-ratio: 1184 / 900; isolation: isolate; mix-blend-mode: multiply; }
.collage--cs { aspect-ratio: 4 / 3; }
.collage__piece { position: absolute; margin: 0; overflow: hidden; }
.collage__piece img, .collage__piece canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.collage__piece img { object-fit: cover; filter: grayscale(1) contrast(1.2); border-radius: 0; mix-blend-mode: normal; }
.collage__piece--accent img { filter: grayscale(1) sepia(.6) saturate(2.4) hue-rotate(-8deg); }
.collage__piece canvas { opacity: 0; }
.collage__piece.is-ht canvas { opacity: 1; }
.collage__piece.is-ht img { visibility: hidden; }
.hero--collage .hero__intro { position: absolute; top: 0; left: 0; width: 42%; z-index: 20; margin: 0; }
@media (max-width: 800px) {
  .hero--collage .hero__intro { position: static; width: auto; margin-bottom: 20px; }
  .collage { aspect-ratio: 3 / 4; }
  .collage--cs { aspect-ratio: 1 / 1; }
}

/* ---- projects photos (trial, Nov 24): full colour halftone, square, bottom-right cut 45° ---- */
.proj__ph { --cut: 20px; position: relative; display: block; width: 100%; mix-blend-mode: multiply;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.proj__ph img, .proj__ph canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.proj__ph img { object-fit: cover; border-radius: 0; mix-blend-mode: normal; }
.proj__ph canvas { opacity: 0; }
.proj__ph.is-ht canvas { opacity: 1; }
.proj__ph.is-ht img { visibility: hidden; }
@media (max-width: 800px) {
  .proj__ph { height: auto !important; aspect-ratio: 4 / 3; --cut: 16px; }
}
.projects .proj__box { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
/* collage in full colour halftone (Jordan, Nov 24): colour photo as the fallback */
.collage--cmyk .collage__piece img,
.collage--cmyk .collage__piece--accent img { filter: none; }
/* collage pieces multiply onto each other too, so overlaps print through (Jordan, Nov 24) */
.collage__piece { mix-blend-mode: multiply; }

/* ---- hero trial (Nov 24): layouts and fonts that fit above the fold ---- */
.hero__intro { font-size: calc(var(--intro-size, 48px) * var(--fs, 1)); }
.hero[data-font="newsreader"] .hero__intro { font-family: var(--body); letter-spacing: -0.02em; line-height: 1.1; }
.hero[data-font="instrument"] .hero__intro { font-family: "Instrument Serif", var(--body); letter-spacing: -0.01em; line-height: 1.04; --fs: 1.12; }
.hero[data-font="instrument"] .hero__intro b { font-weight: 400; font-style: italic; }
.hero[data-font="fraunces"] .hero__intro { font-family: "Fraunces", var(--body); letter-spacing: -0.02em; line-height: 1.08; }
.hero[data-font="sans"] .hero__intro { font-family: var(--sans); letter-spacing: -0.035em; line-height: 1.06; }
.hero[data-font="sans"] .hero__intro b { font-weight: 500; }
.hero[data-font="mono"] .hero__intro { font-family: var(--mono); letter-spacing: -0.05em; line-height: 1.12; --fs: .8; }
@media (min-width: 801px) {
  .hero--collage:not([data-layout="current"]) { height: var(--hero-h, calc(100svh - 340px)); }
  .hero--collage:not([data-layout="current"]) .collage { aspect-ratio: auto; height: 100%; }
  .hero--collage[data-layout="side"], .hero--collage[data-layout="right"] { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); --intro-size: 44px; }
  .hero--collage[data-layout="right"] { grid-template-columns: 7fr 5fr; }
  .hero--collage[data-layout="side"] .hero__intro, .hero--collage[data-layout="right"] .hero__intro { position: static; width: auto; }
  .hero--collage[data-layout="right"] .hero__intro { order: 2; align-self: end; }
  .hero--collage[data-layout="strip"] { display: flex; flex-direction: column; gap: 28px; }
  .hero--collage[data-layout="strip"] .hero__intro { position: static; width: auto; max-width: 23em; }
  .hero--collage[data-layout="strip"] .collage { flex: 1; min-height: 0; height: auto; }
  .hero--collage[data-layout="fitted"] .hero__intro { width: 40%; }
}
.trial { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; gap: 14px; align-items: center;
  padding: 8px 10px; background: var(--field); border: 3px solid var(--ink); color: var(--ink); }
.trial label { display: flex; gap: 6px; align-items: center; }
.trial select { font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 2px 0; }
@media (min-width: 801px) {
  .hero--collage[data-layout="below"] { display: flex; flex-direction: column; gap: 28px; }
  .hero--collage[data-layout="below"] .hero__intro { position: static; width: auto; max-width: 23em; order: 2; }
  .hero--collage[data-layout="below"] .collage { flex: 1; min-height: 0; height: auto; }
}
/* Collage pieces look opaque (Jordan, Nov 24): each piece has a backing in the page colour,
   and the photo multiplies only onto that backing, for its effect on the colour. Pieces
   no longer print through each other or onto the page. */
.collage, .collage__piece { mix-blend-mode: normal; }
.collage__piece { background: var(--field); isolation: isolate; }
.collage__piece img, .collage__piece canvas,
.collage--cmyk .collage__piece img { mix-blend-mode: multiply; }

/* Process steps with textured icons (Nov 24) */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__icon { width: 72px; height: 72px; image-rendering: pixelated; margin-bottom: 8px; }
.step .num { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-2); }
@media (max-width: 1100px) { .process { grid-template-columns: repeat(3, 1fr); row-gap: 56px; } }
@media (max-width: 800px) { .process { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } .step__icon { width: 56px; height: 56px; } }

/* ---- preview options (Nov 24): switches read from data attributes on <html> ---- */
html[data-corners="square"] .proj__ph,
html[data-corners="square"] .projects .proj__box { clip-path: none; }
html[data-icons="tex"] svg.mast__icons,
html[data-icons="flat"] img.mast__icons { display: none; }
html[data-services="process"] .svc-v--services,
html[data-services="services"] .svc-v--process { display: none; }
.svc-v { display: flex; flex-direction: column; gap: inherit; }

/* The panel: a title block, bottom right, with a toggle that always shows */
.tweaks { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  width: 320px; max-width: calc(100vw - 32px); pointer-events: none; }
.tweaks > * { pointer-events: auto; }
.tweaks__tb { width: 100%; max-height: calc(100vh - 96px); overflow-y: auto; }
.tweaks__tb[hidden] { display: none; }
.tweaks__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tweaks__note { color: var(--ink-2); }
.tweaks__row { cursor: pointer; }
.tweaks__row select { font-family: var(--body); font-size: 16px; color: var(--ink); background: transparent; border: 0;
  padding: 0; margin: 0; width: 100%; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.tweaks__row select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tweaks__reset, .tweaks__toggle { cursor: pointer; color: var(--ink); }
.tweaks__reset { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.tweaks__toggle { background: var(--field); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px; }
@media (max-width: 800px) { .tweaks { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); } }
.step__name { display: flex; flex-direction: column; gap: 4px; }

/* project pages use the home photo treatment (Jordan, Nov 24): dither, multiply, cut corner */
.work-grid .proj__ph { height: auto; aspect-ratio: 4 / 3; }
.squares .proj__ph { height: auto !important; aspect-ratio: 1 / 1; }
.cs .box, .work-grid .box { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
html[data-corners="square"] .cs .box, html[data-corners="square"] .work-grid .box { clip-path: none; }

/* Tent icon (Nov 29): small, fixed bottom left, drawn by assets/js/tent.js as you scroll */
.tent-icon { position: fixed; left: 20px; bottom: 18px; z-index: 90; width: 46px; color: var(--ink); pointer-events: none; }
.tent-icon svg { display: block; width: 100%; height: auto; overflow: visible; }
html[data-tenticon="off"] .tent-icon { display: none; }
@media (max-width: 800px) { .tent-icon { left: 14px; bottom: 14px; width: 38px; } }
@media print { .tent-icon { display: none; } }

/* ---------- home, Figma "Nav states" / Landing (333:1515, Nov 29) ----------
   First screen: the pill strip, then the nav about 70% of the way down with nothing
   under it but the planet and tent turn, pinned bottom right. position: sticky docks the
   nav at the top once it gets there and the page scrolls under it. Nothing above it may
   set overflow or transform (that would break sticky): .page, body and html don't.
   The strip script sets the pill size (--pw) and the spacer under the nav. */
.page--dock { --dock-h: 81px; }
.dock-hero {
  position: relative;
  margin: 0 calc(-1 * var(--win-r)) 0 calc(-1 * var(--win-l));   /* edge to edge of the window at any width; html clips the scrollbar overhang */
  overflow: hidden;
  padding: clamp(72px, 21.1vh, 216px) 0 clamp(32px, 7vh, 72px);
}
.pills { width: 100%; }
.pills__track { position: relative; height: calc(var(--pw, 769px) * 432.31 / 769.365); }
.pill {
  /* each pill is its own small moving layer holding one plain photo: the multiply onto the
     paper is baked into the file (tools/strip_photos.py), so nothing blends while it moves */
  position: absolute; top: 0; left: 0; margin: 0; will-change: transform;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  width: var(--pw, 769px); aspect-ratio: 769.365 / 432.31;
}
.pill img { display: block; width: 100%; height: 100%; user-select: none;
  border-radius: max(16px, calc(var(--pw, 769px) * 39.08 / 769.365)); }

.dock {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 30;
  margin-top: calc(-1 * var(--gap));      /* no gap between the photos and the nav */
  height: var(--dock-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 4px;
}
/* the bar runs edge to edge while its contents keep the page margins (shadow trick: no sideways scroll) */
.dock::before {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: -1;
  left: calc(-1 * var(--win-l)); right: calc(-1 * var(--win-r));   /* full bleed; html clips the scrollbar overhang */
  background: var(--field);
}
/* 4px rule under the nav, page width */
.dock::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ink); }
/* overflow-x: clip (not hidden) stops sideways scroll without making a scroll box, so sticky keeps working */
html:has(.page--dock) { overflow-x: clip; }
.dock + .dock-gap { margin-top: calc(-1 * var(--gap)); }
.dock__mark { display: block; width: 303px; flex: none; }   /* halfway between Wordmark Medium (379) and Small (227), Jordan Nov 29 */
.dock__mark img { width: 100%; height: auto; display: block; }
.dock__right { display: flex; align-items: center; gap: 24px; }
.dock__links { display: flex; gap: 40px; font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.dock__links a:hover { color: #EE930B; }
.dock__login {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; box-sizing: border-box;
  border: 4px solid #EE930B; border-radius: 999px; background: var(--field);
  font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.dock__login .dot { width: 8px; height: 8px; border-radius: 50%; background: #EE930B; flex: none; }
.dock__login:hover { background: #EE930B; }
.dock__login:hover .dot { background: var(--ink); }

/* planet and tent turn: fixed bottom right over everything, darken blend; scroll turns it */
.turn {
  position: fixed; z-index: 95; pointer-events: none;
  /* the drawing's right edge at its widest (148.68 of the 203.36 frame, stroke included) sits on
     the content's right edge: page margin, plus the gutter when the window is wider than 1440 */
  right: calc(var(--win-r) - var(--tw, 122.7px) * 54.68 / 203.36);
  bottom: clamp(16px, 6.7vh, 69px);
  width: 122.7px; color: #EE930B; mix-blend-mode: darken;
}
/* 120 frame sprite (12 x 10): .turn__rows steps down a row, .turn__sheet steps across.
   Transforms only, so the turn never re-lays-out or repaints while you scroll. */
.turn { --tw: 122.7px; --turns: 4; }
.turn__win { width: var(--tw); height: calc(var(--tw) * 174 / 203.36); overflow: hidden; }
.turn__rows { width: var(--tw); height: calc(var(--tw) * 1740 / 203.36); will-change: transform; }
.turn__sheet { display: block; width: calc(var(--tw) * 12); height: auto; max-width: none; will-change: transform; }
@keyframes turn-x { to { transform: translateX(-100%); } }
@keyframes turn-y { to { transform: translateY(-100%); } }
/* browsers with scroll-driven animations: the scroll position runs the frames off the main thread */
.turn.is-sd .turn__rows {
  animation: turn-y steps(10, end) both; animation-timeline: scroll(root block);
  animation-duration: auto; animation-iteration-count: var(--turns);
}
.turn.is-sd .turn__sheet {
  animation: turn-x steps(12, end) both; animation-timeline: scroll(root block);
  animation-duration: auto; animation-iteration-count: calc(var(--turns) * 10);
}
@media print { .turn { display: none; } }

.page--dock .sec { scroll-margin-top: calc(var(--dock-h) + 24px); }
/* the old corner tent is replaced by the turn here */
.page--dock ~ .tent-icon { display: none; }
@media (prefers-reduced-motion: no-preference) { html:has(.page--dock) { scroll-behavior: smooth; } }
@media (max-width: 1100px) {
  .dock__mark { width: 240px; }
  .dock__links { gap: 24px; }
}
@media (max-width: 800px) {
  .page--dock { --dock-h: 112px; }
  .dock-hero { padding: 72px 0 28px; }
  .dock { flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
  .dock__mark { width: 176px; }
  .dock__right { width: 100%; justify-content: space-between; gap: 12px; }
  .dock__links { gap: 18px; font-size: 13px; }
  .dock__login { height: 36px; font-size: 13px; padding: 0 9px; border-width: 3px; }
  .turn { --tw: 72px; width: 72px; bottom: 16px; }
  .page--dock ~ .tweaks { bottom: 104px; }
}
.dock__mark .dock__wm--flat { display: none; }
html[data-logo="svg"] .dock__mark .dock__wm--flat { display: block; }
html[data-logo="svg"] .dock__mark .dock__wm--tex { display: none; }
html[data-theme="dark"] .dock__wm--flat { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .turn { mix-blend-mode: lighten; }

/* process icons: flat Figma SVGs by default, dithered ones when the panel picks them (Nov 29) */
.step__icon--flat { image-rendering: auto; }
.step__icon--tex { display: none; }
html[data-procicons="tex"] .step__icon--tex { display: block; }
html[data-procicons="tex"] .step__icon--flat { display: none; }
html[data-theme="dark"] .step__icon--flat { filter: invert(1) hue-rotate(180deg); }

/* ---------- nav bar on every page, Figma Nav 358:11233 (Jordan, Nov 29) ----------
   A paper box with a 6 px ink edge and 24 px corners sitting on an ink plate with 9 px
   corners (the plate shows in the corners). Sticky near the top; the page scrolls under it.
   Replaces the full-bleed bar and rule on home and the small header on the other pages. */
.dock {
  position: -webkit-sticky; position: sticky; top: 16px; z-index: 30;
  height: auto; margin-top: 40px; padding: 0; display: block;
  background: var(--ink); border-radius: 9px;
}
.page--dock .dock { margin-top: calc(-1 * var(--gap)); }
.page--dock { --dock-h: 76px; }
.dock::before, .dock::after { content: none; display: none; }
.dock__box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px; box-sizing: border-box; padding: 12px 12px 12px 18px;
  background: var(--field); border: 6px solid var(--ink); border-radius: 24px;
}
.dock__mark { display: block; width: 303px; flex: none; }
.dock__mark img { display: block; width: 100%; height: auto; }
.dock__right { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.dock__links { display: flex; gap: 40px; }
.dock__links a[aria-current] { color: #EE930B; }
.dock__login {
  height: 40px; padding: 0 10px; gap: 8px;
  background: var(--ink); color: var(--field); border: 4px solid var(--field); border-radius: 999px;
  line-height: 1.3;
}
.dock__login .dot { background: #EE930B; }
.dock__login:hover { background: #EE930B; color: var(--ink); }
.dock__login:hover .dot { background: var(--ink); }
html[data-theme="dark"] .dock__mark img { filter: invert(1) hue-rotate(180deg); }
.rail { top: 108px; }
.sec, .hero, .page--dock .sec { scroll-margin-top: 108px; }
@media (max-width: 1100px) {
  .dock__mark { width: 240px; }
  .dock__links { gap: 24px; }
}
@media (max-width: 800px) {
  .dock { top: 12px; margin-top: 20px; }
  .page--dock { --dock-h: 120px; }
  .dock__box { flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 10px 10px 14px; border-radius: 20px; }
  .dock__mark { width: 176px; }
  .dock__right { width: 100%; justify-content: space-between; gap: 12px; }
  .dock__links { gap: 14px; font-size: 12px; letter-spacing: .04em; }
  .dock__login { height: 44px; font-size: 12px; letter-spacing: .04em; padding: 0 10px; gap: 6px; border-width: 4px; flex: none; }
  .rail { top: 144px; }
  .sec, .hero, .page--dock .sec { scroll-margin-top: 144px; }
}
/* phones: wordmark and Login share the top row, the three links run under them */
@media (max-width: 800px) {
  .dock__box { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "mark login" "links links"; align-items: center; gap: 10px 12px; }
  .dock__right { display: contents; }
  .dock__mark { grid-area: mark; }
  .dock__login { grid-area: login; justify-self: end; }
  .dock__links { grid-area: links; gap: 0; justify-content: space-between; font-size: 13px; letter-spacing: .06em; padding: 2px 4px 0 0; }
}
@media (max-width: 800px) {
  .dock__box { grid-template-columns: minmax(0, 1fr) auto; }
  .dock__mark { width: auto; max-width: 176px; min-width: 0; }
}
@media (max-width: 359px) { .dock__links { font-size: 12px; letter-spacing: .03em; } }

/* ---------- glass nav, Figma Nav 358:13850 (Jordan, Nov 29) ----------
   Same markup as the ink-edge nav above; html[data-nav] picks the look (NAV_STYLE in build.py).
   Figma: #E8E7E3 box, 24 px corners, no edge, background blur 13.3, black multitone grain
   at 25 %, drop shadow 0 1 4 at 15 %. Jordan, Nov 29: grain and shadow off, box takes the site
   background colour, see-through so the blur shows. */
html:is([data-nav="glass"], [data-nav="fade"]) .dock { background: transparent; border-radius: 24px; }
html:is([data-nav="glass"], [data-nav="fade"]) .page--dock { --dock-h: 64px; }
/* Jordan, Nov 29: the box reaches past the margins by exactly its inside padding, so the
   wordmark starts on the left margin and Login ends on the right margin. */
html:is([data-nav="glass"], [data-nav="fade"]) .dock { margin-left: -18px; margin-right: -12px; }
html:is([data-nav="glass"], [data-nav="fade"]) .dock__box {
  min-height: 64px; border: 0;
  background: color-mix(in srgb, var(--field) 72%, transparent);   /* site bg colour, see-through (Jordan, Nov 29: no grain, no shadow) */
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: none;
}
html:is([data-nav="glass"], [data-nav="fade"]) .rail { top: 96px; }
html:is([data-nav="glass"], [data-nav="fade"]) .sec, html:is([data-nav="glass"], [data-nav="fade"]) .hero { scroll-margin-top: 96px; }
@media (max-width: 800px) {
  html:is([data-nav="glass"], [data-nav="fade"]) .page--dock { --dock-h: 104px; }
  html:is([data-nav="glass"], [data-nav="fade"]) .dock { border-radius: 20px; margin-left: -14px; margin-right: -10px; }
  html:is([data-nav="glass"], [data-nav="fade"]) .dock__links { padding-right: 0; }   /* Process on the left margin, Contact on the right */
  html:is([data-nav="glass"], [data-nav="fade"]) .rail { top: 132px; }
  html:is([data-nav="glass"], [data-nav="fade"]) .sec, html:is([data-nav="glass"], [data-nav="fade"]) .hero { scroll-margin-top: 132px; }
}

/* ---------- fade nav (Jordan, Nov 29) ----------
   Same place and alignment as the glass nav, but no box: a band fixed to the top of the
   window turns the page back into paper as it scrolls up, stronger blur and more paper the
   higher it goes. The nav itself is multiplied onto whatever is under it. */
.dock-fade { display: none; }
html[data-nav="fade"] .dock-fade {
  display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 29; pointer-events: none;
  height: 132px; opacity: 0; transition: opacity .25s ease;
}
html[data-nav="fade"].nav-docked .dock-fade { opacity: 1; }
html[data-nav="fade"] .dock-fade::before, html[data-nav="fade"] .dock-fade::after {
  content: ""; position: absolute; inset: 0;
}
/* light blur over the whole band, fading out at the bottom */
html[data-nav="fade"] .dock-fade::before {
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
/* heavier blur plus the paper itself (colour and grain), solid behind the nav, gone by the bottom */
html[data-nav="fade"] .dock-fade::after {
  background-color: var(--field); background-image: url("../img/grain.png"); background-size: 50px 50px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .92) 45%, rgb(0 0 0 / .5) 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .92) 45%, rgb(0 0 0 / .5) 68%, transparent 100%);
}
html[data-nav="fade"] .dock__box {
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
html[data-nav="fade"] .dock { mix-blend-mode: multiply; }
html[data-nav="fade"][data-theme="dark"] .dock { mix-blend-mode: normal; }
@media (max-width: 800px) {
  html[data-nav="fade"] .dock-fade { height: 156px; }
}

/* turn in the window corner (Jordan, Nov 29): the drawing's own right and bottom edges sit
   --turn-x in from the window's right and bottom edges. The drawing ends 148.68 across and
   172 down its 203.36 x 174 frame, so the box is pushed out by the empty part. */
html[data-turnpos="corner"] .turn {
  --turn-x: 32px;
  right: calc(max(var(--turn-x), env(safe-area-inset-right)) - var(--tw) * 54.68 / 203.36);
  bottom: calc(max(var(--turn-x), env(safe-area-inset-bottom)) - var(--tw) * 2 / 203.36);
}
@media (max-width: 800px) { html[data-turnpos="corner"] .turn { --turn-x: 20px; } }

/* ---------- "list" nav (Jordan, Nov 29) ----------
   No bar, no blur, no background. The logo stays top left (sticky, darken). Login and the
   section links stack top right, fixed, their right edge --turn-x in from the window edge,
   the same as the planet and tent. On phones a three-line button replaces the list. */
.dock__menu { display: none; }
html[data-nav="list"] .dock-fade { display: none; }
html[data-nav="list"] .dock { background: none; border-radius: 0; margin-left: 0; margin-right: 0; pointer-events: none; mix-blend-mode: darken; }
/* the sticky nav is its own layer, so the blend sits on it: logo, links and Login all darken onto the page */
html[data-nav="list"][data-theme="dark"] .dock { mix-blend-mode: lighten; }
html[data-nav="list"].menu-open .dock { mix-blend-mode: normal; }
html[data-nav="list"] .dock__box { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; min-height: 76px; }
html[data-nav="list"] .dock__mark { pointer-events: auto; }
/* Jordan, Nov 29: the list starts level with the logo and sticks with it. It rides in the
   sticky nav, its top on the logo's top, its right edge --turn-x in from the window's right
   edge (the nav box spans the content; --win-r is the distance from its right edge to the window's). */
html[data-nav="list"] .dock { top: 32px; }
html[data-nav="list"] .dock__box { align-items: flex-start; position: relative; }
html[data-nav="list"] .dock__right {
  --turn-x: 100px;   /* side list margin: 32 → 56 → 100 (Jordan, Nov 29: "maybe 80% more") */
  position: absolute; z-index: 96; pointer-events: auto;
  top: 0; right: calc(max(var(--turn-x), env(safe-area-inset-right)) - var(--win-r));
  flex-direction: column; align-items: flex-end; gap: 18px;
}
html[data-nav="list"] .dock__login { order: -1; }
html[data-nav="list"] .dock__links { flex-direction: column; align-items: flex-end; gap: 14px; padding: 0; }
/* links end where the Login text ends, inside its 4px edge and 10px padding (Jordan, Nov 29) */
html[data-nav="list"] .dock__links a { display: block; padding: 2px 14px 2px 0; }
@media (max-width: 800px) {
  html[data-nav="list"] .page--dock { --dock-h: 64px; }
  html[data-nav="list"] .dock { top: 24px; }
  html[data-nav="list"] .dock__box { flex-direction: row; align-items: flex-start; min-height: 52px; }
  html[data-nav="list"] .dock__menu {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    position: absolute; z-index: 97; pointer-events: auto; top: -12px; right: calc(max(20px, env(safe-area-inset-right)) - var(--win-r));
    width: 44px; height: 44px; padding: 0 8px; margin: 0 -8px 0 0; box-sizing: border-box;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  html[data-nav="list"] .dock__menu span { display: block; height: 3px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  html[data-nav="list"].menu-open .dock__menu span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  html[data-nav="list"].menu-open .dock__menu span:nth-child(2) { opacity: 0; }
  html[data-nav="list"].menu-open .dock__menu span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  /* the list opens under the button on a paper card so it reads over photos */
  html[data-nav="list"] .dock__right {
    --turn-x: 20px; display: none; width: auto;
    top: 40px; right: calc(max(9px, env(safe-area-inset-right)) - var(--win-r));
    padding: 16px 8px 16px 20px; gap: 16px; background: var(--field); border: 3px solid var(--ink); border-radius: 16px;
  }
  html[data-nav="list"].menu-open .dock__right { display: flex; }
  html[data-nav="list"] .dock__links { gap: 16px; font-size: 14px; }
  html[data-nav="list"] .dock__login { height: 40px; }
}

/* turn left of the logo (Jordan, Nov 29): inside the sticky nav, the drawing's top on the
   logo's top and its right edge a gap short of the logo. The drawing fills 54.68 to 148.68
   across and 17 to 172 down its 203.36 x 174 frame. Phones go back to the window corner. */
html[data-turnpos="logo"] .dock__box > .turn {
  position: absolute; right: auto; bottom: auto; --tgap: 28px;
  left: calc(-1 * var(--tgap) - var(--tw) * 148.68 / 203.36);
  top: calc(-1 * var(--tw) * 17 / 203.36);
  mix-blend-mode: normal;   /* the nav itself darkens onto the page */
}
@media (max-width: 1100px) { html[data-turnpos="logo"] .dock__box > .turn { --tw: 76px; width: 76px; --tgap: 16px; } }
@media (max-width: 800px) {
  html[data-turnpos="logo"] .dock__box > .turn {
    position: fixed; left: auto; top: auto; --tw: 72px; width: 72px;
    right: calc(20px - var(--tw) * 54.68 / 203.36); bottom: calc(20px - var(--tw) * 2 / 203.36);
  }
}

/* ---------- page grain (Jordan, Nov 29: "a subtle grain to the site bg") ----------
   fine: a 256 px speckle tile drawn at 128 px, so each speck is one device pixel on 2x screens.
   soft: the faint 50 px grain from before. plain: paper only. */
html[data-bg="fine"] body { background-image: url("../img/grain-fine.png"); background-size: 128px 128px; }
html[data-theme="dark"][data-bg="fine"] body { background-image: url("../img/grain-fine-dark.png"); }
html[data-bg="plain"] body { background-image: none; }

/* ---------- overprinted logo (Jordan, Nov 29: "as if it was overprinted") ----------
   The list nav multiplies onto the page like ink printed over it: the colours are the ink
   divided by the paper (#33291F / #EDECE8 = #372C22), so on bare paper it looks exactly as
   before, and over a photo the photo shows through the letters. Darken stays switchable. */
.dock__mark .dock__op { display: none; }
html[data-nav="list"]:is([data-logoblend="multiply"],[data-logoblend="riso"]):not([data-theme="dark"]) .dock { --ink: #372C22; mix-blend-mode: multiply; }
html[data-nav="list"]:is([data-logoblend="multiply"],[data-logoblend="riso"]):not([data-theme="dark"]) .dock__mark .dock__ink { display: none; }
html[data-nav="list"]:is([data-logoblend="multiply"],[data-logoblend="riso"]):not([data-theme="dark"]) .dock__mark .dock__op { display: block; }
html[data-nav="list"]:is([data-logoblend="multiply"],[data-logoblend="riso"]).menu-open .dock { mix-blend-mode: normal; }

/* the side list on a project page: the section you're reading turns orange */
.dock__links a.is-on { color: #EE930B; }
/* the old corner tent gives way to the planet and tent wherever the turn is shown */
body:has(.turn) .tent-icon { display: none; }

/* ---------- back arrow left of the project title (Jordan, Nov 29) ---------- */
.cs__titlerow { position: relative; }
.cs__back {
  position: absolute; right: 100%; top: 0.18em; margin-right: 28px;
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  color: var(--ink); font-size: 48px;
}
.cs__back svg { width: 20px; height: 32px; }
.cs__back:hover { color: #EE930B; }
@media (max-width: 1100px) { .cs__back { margin-right: 10px; } }
@media (max-width: 800px) {
  .cs__titlerow { display: flex; align-items: flex-start; gap: 6px; }
  .cs__back { position: static; flex: none; margin: 0 0 0 -12px; width: 36px; height: 38px; }
  .cs__back svg { width: 16px; height: 26px; }
}

/* the logo and the planet and tent land here: where the nav locks to the top, past the slideshow */
.dock-start { display: block; height: 0; scroll-margin-top: 32px; }
@media (max-width: 800px) { .dock-start { scroll-margin-top: 24px; } }
html[data-nav="list"] .turn--link { pointer-events: auto; cursor: pointer; }

/* ---------- Login as an outline (Jordan, Nov 29) ----------
   dark text on the page, a see-through paper fill, a 3px stroke in the text colour */
html[data-login="outline"] .dock__login {
  background: color-mix(in srgb, var(--field) 35%, transparent);
  color: var(--ink); border: 3px solid var(--ink);
}
html[data-login="outline"] .dock__login:hover { background: var(--ink); color: var(--field); }
html[data-login="outline"] .dock__login:hover .dot { background: #EE930B; }

/* ---------- one photo radius (Jordan, Nov 29) ----------
   The slideshow corners come in a little (39px at 1440 before, now 28px) and every photo
   below uses the same radius: the project masonry, the project pages, the projects list.
   clip-path rounds the halftone canvas too. "cut" and "square" stay switchable. */
:root { --photo-r: 28px; }
@media (max-width: 800px) { :root { --photo-r: 18px; } }
html[data-corners="round"] .pill img { border-radius: var(--photo-r); }
html[data-corners="round"] .proj__ph,
html[data-corners="round"] .projects .proj__box,
html[data-corners="round"] .cs .box,
html[data-corners="round"] .work-grid .box { clip-path: inset(0 round var(--photo-r)); }

/* ---------- process steps as cards (Jordan, Nov 29) ----------
   Dark rounded cards with the paper colour for text and icons, the icons larger, three
   across on desktop, two on tablets, one on phones. A fine light grain sits on the ink. */
.step__mask { display: none; }
html[data-process="cards"] .process { grid-template-columns: repeat(3, 1fr); gap: 16px; }
html[data-process="cards"] .step {
  position: relative; gap: 10px; padding: 24px 24px 28px; border-radius: 24px;
  background-color: var(--ink); background-image: url("../img/grain-fine-dark.png"); background-size: 128px 128px;
  color: var(--field);
}
html[data-process="cards"] .step__icon { display: none !important; }
html[data-process="cards"] .step__mask {
  display: block; width: 104px; height: 104px; margin: 0 0 20px -6px; background: var(--field);
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;   /* the image itself is set on the element, so its path reads from the page */
}
html[data-process="cards"] .step .num {
  position: absolute; top: 26px; right: 24px; display: flex; align-items: center; gap: 6px;
  color: color-mix(in srgb, var(--field) 70%, transparent);
}
html[data-process="cards"] .step .num::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #EE930B; }
html[data-process="cards"] .step h3 { color: var(--field); }
html[data-process="cards"] .step .label { color: color-mix(in srgb, var(--field) 62%, transparent); }
html[data-process="cards"] .step .b14 { color: color-mix(in srgb, var(--field) 84%, transparent); margin: 6px 0 0; }
@media (max-width: 1100px) { html[data-process="cards"] .process { grid-template-columns: repeat(2, 1fr); row-gap: 16px; } }
@media (max-width: 800px) {
  html[data-process="cards"] .process { grid-template-columns: 1fr; gap: 12px; }
  html[data-process="cards"] .step { padding: 20px 20px 24px; border-radius: 20px; }
  html[data-process="cards"] .step__mask { width: 80px; height: 80px; margin-bottom: 14px; }
}
html[data-theme="dark"][data-process="cards"] .step { background-color: #2A2A28; }

/* side list links glide down the page on every page, like home (Jordan, Nov 29) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- card icons cut through to the page (Jordan, Nov 29) ----------
   Each card is masked by a full layer with its icon taken out (exclude), so the lines show
   whatever is behind the card: the exact paper colour and its grain. The icon's place on the
   card (18, 24 at 104px; 14, 20 at 80px on phones) matches the paper-colour version. */
.step--talk { --icon: url("../img/process-flat/talk.svg"); }
.step--schematic { --icon: url("../img/process-flat/schematic.svg"); }
.step--design { --icon: url("../img/process-flat/design.svg"); }
.step--drawings { --icon: url("../img/process-flat/drawings.svg"); }
.step--permit { --icon: url("../img/process-flat/permit.svg"); }
.step--build { --icon: url("../img/process-flat/build.svg"); }
html[data-process="cards"][data-procicon="cutout"] .step {
  -webkit-mask-image: linear-gradient(#000 0 0), var(--icon); mask-image: linear-gradient(#000 0 0), var(--icon);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%, 104px 104px; mask-size: 100% 100%, 104px 104px;
  -webkit-mask-position: 0 0, 18px 24px; mask-position: 0 0, 18px 24px;
  -webkit-mask-composite: xor; mask-composite: exclude;
}
html[data-process="cards"][data-procicon="cutout"] .step__mask { visibility: hidden; }
@media (max-width: 800px) {
  html[data-process="cards"][data-procicon="cutout"] .step {
    -webkit-mask-size: 100% 100%, 80px 80px; mask-size: 100% 100%, 80px 80px;
    -webkit-mask-position: 0 0, 14px 20px; mask-position: 0 0, 14px 20px;
  }
}

/* ---------- Login fixed top right on every page (Jordan, Nov 29) ----------
   Only the section links ride with the page. They sit one Login height plus the 18px gap
   lower, so once the nav locks they read Login, then the links, as before. Phones keep
   Login in the three-line menu. */
@media (min-width: 801px) {
  html[data-nav="list"] .dock__login { position: fixed; z-index: 97; top: 32px; right: max(100px, env(safe-area-inset-right)); }
  html[data-nav="list"] .dock__right { padding-top: 58px; }
}

/* ---------- project pages with the slideshow (Jordan, Nov 29) ----------
   Logo, planet and tent and Login stay fixed at the top the whole time; the section links
   start under the slideshow and then stick under Login (32 + 40 + 18 = 90px). */
.cs-links, .page--cs .dock-hero { display: none; }
html[data-nav="list"][data-cshero="strip"] .page--cs-strip .dock-hero { display: block; }
@media (min-width: 801px) {
  html[data-nav="list"][data-cshero="strip"] .page--cs-strip .dock {
    position: fixed; z-index: 30; top: 32px; left: var(--win-l); right: var(--win-r); margin: 0;
  }
  html[data-nav="list"][data-cshero="strip"] .page--cs-strip .dock__links { display: none; }
  html[data-nav="list"][data-cshero="strip"] .page--cs-strip .dock__right { padding-top: 0; }
  html[data-nav="list"][data-cshero="strip"] .cs-links {
    display: block; position: sticky; z-index: 29; top: 90px; height: 0; pointer-events: none;
  }
  html[data-nav="list"][data-cshero="strip"]:is([data-logoblend="multiply"],[data-logoblend="riso"]):not([data-theme="dark"]) .cs-links { --ink: #372C22; mix-blend-mode: multiply; }
  .cs-links__list {
    position: absolute; top: 0; right: calc(max(100px, env(safe-area-inset-right)) - var(--win-r));
    display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: auto;
    font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  }
  .cs-links__list a { display: block; padding: 2px 14px 2px 0; }
  .cs-links__list a:hover, .cs-links__list a.is-on { color: #EE930B; }
}
/* phones: the nav stays at the top over the slideshow, links in the three-line menu */
@media (max-width: 800px) {
  html[data-nav="list"][data-cshero="strip"] .page--cs-strip .dock { position: fixed; z-index: 30; top: 24px; left: var(--win-l); right: var(--win-r); margin: 0; }
}

/* ---------- side links and Login type (Jordan, Nov 29: "2 points above", semibold) ---------- */
html:is([data-navtype="big"],[data-navtype="semi"]) .dock__links, html:is([data-navtype="big"],[data-navtype="semi"]) .cs-links__list { font-size: 16px; font-weight: 400; }
html[data-navtype="semi"] .dock__links, html[data-navtype="semi"] .cs-links__list { font-weight: 600; }

/* ---------- Login as the orange dot and bold text, no pill (Jordan, Nov 29) ----------
   Same face as the links, a step bolder. The links now end flush with the Login text. */
html[data-login="text"] .dock__login {
  height: auto; padding: 2px 0; gap: 9px; border: 0; border-radius: 0; background: none;
  font-weight: 700; color: var(--ink);
}
html[data-login="text"]:is([data-navtype="big"],[data-navtype="semi"]) .dock__login { font-size: 16px; }
html[data-login="text"] .dock__login .dot { width: 9px; height: 9px; }
html[data-login="text"] .dock__login:hover { background: none; color: #EE930B; }
html[data-login="text"] .dock__login:hover .dot { background: #EE930B; }
html[data-login="text"][data-nav="list"] .dock__links a,
html[data-login="text"] .cs-links__list a { padding-right: 0; }
@media (min-width: 801px) {
  html[data-login="text"][data-nav="list"] .dock__right { padding-top: 42px; }
  html[data-login="text"][data-nav="list"][data-cshero="strip"] .cs-links { top: 74px; }
}
@media (max-width: 800px) { html[data-login="text"][data-nav="list"] .dock__login { height: auto; } }

/* ---------- home, stagger (Jordan, Nov 29) ----------
   Desktop only. The nav becomes a layer as tall as the page, with the turn, the logo and the
   side list each sticky inside it. The script starts each one far enough down that their
   bottoms sit 20% of the window (120 to 240px) above its bottom on load; each locks at its own point:
   the turn at the 32px top margin, the list a gap under Login, the logo scrolls off (or locks
   level with the turn). Each blends onto the page by itself, since the layer can't. */
@media (min-width: 801px) {
  html[data-nav="list"][data-dockmode="stagger"] .page--dock { position: relative; }
  html[data-nav="list"][data-dockmode="stagger"] .page--dock .dock {
    position: absolute; z-index: auto; top: 0; bottom: 0; height: auto; margin: 0;
    left: max(var(--pad-l), env(safe-area-inset-left)); right: max(var(--pad-r), env(safe-area-inset-right));
    mix-blend-mode: normal; pointer-events: none;
  }
  html[data-nav="list"][data-dockmode="stagger"] .page--dock .dock__box { height: 100%; min-height: 0; align-items: flex-start; gap: 0; }
  html[data-nav="list"][data-dockmode="stagger"] .page--dock .dock__box > * { z-index: 30; mix-blend-mode: darken; }
  html[data-nav="list"][data-dockmode="stagger"][data-theme="dark"] .page--dock .dock__box > * { mix-blend-mode: lighten; }
  html[data-nav="list"][data-dockmode="stagger"]:is([data-logoblend="multiply"],[data-logoblend="riso"]):not([data-theme="dark"]) .page--dock .dock__box > * { mix-blend-mode: multiply; }
  html[data-nav="list"][data-dockmode="stagger"][data-turnpos="logo"] .page--dock .dock__box > .turn {
    position: -webkit-sticky; position: sticky; left: auto; flex: none;
    margin-left: calc(-1 * (var(--tgap) + var(--tw) * 148.68 / 203.36));
    margin-right: calc(var(--tgap) - var(--tw) * 54.68 / 203.36);
  }
  html[data-nav="list"][data-dockmode="stagger"] .page--dock .dock__mark { position: relative; }
  html[data-nav="list"][data-dockmode="stagger"][data-logostick="stick"] .page--dock .dock__mark { position: -webkit-sticky; position: sticky; }
  html[data-nav="list"][data-dockmode="stagger"] .page--dock .dock__right {
    position: -webkit-sticky; position: sticky; margin-left: auto; padding-top: 0; right: auto;
    margin-right: calc(max(var(--turn-x), env(safe-area-inset-right)) - var(--win-r));
  }
  html[data-nav="list"][data-dockmode="stagger"] .page--dock .dock-start { position: absolute; left: 0; }
}

/* ---------- second overprint look (Jordan, Nov 29: "another approach") ----------
   riso: printed in two colours slightly out of register. An orange pass sits under the ink
   pass, nudged down and right, so a thin orange edge shows on one side of each letter; both
   multiply onto the page like the multiply look. Multiply stays switchable. */
.dock__mark { position: relative; }
html[data-nav="list"][data-logoblend="riso"]:not([data-theme="dark"]) .dock__mark::before {
  content: ""; position: absolute; inset: 0; background: #EE930B; pointer-events: none;
  -webkit-mask: url("../img/wordmark-thick.svg") 0 0 / 100% 100% no-repeat; mask: url("../img/wordmark-thick.svg") 0 0 / 100% 100% no-repeat;
  transform: translate(2px, 1.5px);
}
html[data-nav="list"][data-logoblend="riso"]:not([data-theme="dark"]) .dock__mark img { position: relative; mix-blend-mode: multiply; }

/* ---------- softer corners (Jordan, Nov 29: "a lot less rounded") ----------
   10px on every photo and on the process cards (8px on phones). "round" (28px) stays switchable. */
:root { --soft-r: 10px; }
@media (max-width: 800px) { :root { --soft-r: 8px; } }
html[data-corners="soft"] .pill img { border-radius: var(--soft-r); }
html[data-corners="soft"] .proj__ph,
html[data-corners="soft"] .projects .proj__box,
html[data-corners="soft"] .cs .box,
html[data-corners="soft"] .work-grid .box { clip-path: inset(0 round var(--soft-r)); }
html[data-corners="soft"][data-process="cards"] .step { border-radius: var(--soft-r); }

/* ---------- thinner card icon lines, same radius (Jordan, Nov 29) ---------- */
.step__mask { -webkit-mask-image: var(--icon); mask-image: var(--icon); }
html[data-procline="thin"] .step--talk { --icon: url("../img/process-thin/talk.svg"); }
html[data-procline="thin"] .step--schematic { --icon: url("../img/process-thin/schematic.svg"); }
html[data-procline="thin"] .step--design { --icon: url("../img/process-thin/design.svg"); }
html[data-procline="thin"] .step--drawings { --icon: url("../img/process-thin/drawings.svg"); }
html[data-procline="thin"] .step--permit { --icon: url("../img/process-thin/permit.svg"); }
html[data-procline="thin"] .step--build { --icon: url("../img/process-thin/build.svg"); }

/* ---------- cards: icon left, text beside it, number bottom left (Jordan, Nov 29) ----------
   The icon comes down from 104 to 80px (64 on phones) and sits in a left column; the number
   sits under it at the card's bottom left. */
@media (min-width: 801px) {
  html[data-process="cards"][data-proclayout="side"] .step { padding: 24px 24px 28px 120px; min-height: 176px; box-sizing: border-box; }
  html[data-process="cards"][data-proclayout="side"] .step__mask { position: absolute; left: 22px; top: 22px; width: 80px; height: 80px; margin: 0; }
  html[data-process="cards"][data-proclayout="side"][data-procicon="cutout"] .step {
    -webkit-mask-size: 100% 100%, 80px 80px; mask-size: 100% 100%, 80px 80px;
    -webkit-mask-position: 0 0, 22px 22px; mask-position: 0 0, 22px 22px;
  }
}
@media (max-width: 800px) {
  html[data-process="cards"][data-proclayout="side"] .step { padding: 20px 20px 24px 96px; min-height: 140px; box-sizing: border-box; }
  html[data-process="cards"][data-proclayout="side"] .step__mask { position: absolute; left: 18px; top: 18px; width: 64px; height: 64px; margin: 0; }
  html[data-process="cards"][data-proclayout="side"][data-procicon="cutout"] .step {
    -webkit-mask-size: 100% 100%, 64px 64px; mask-size: 100% 100%, 64px 64px;
    -webkit-mask-position: 0 0, 18px 18px; mask-position: 0 0, 18px 18px;
  }
}
html[data-process="cards"][data-proclayout="side"] .step .num { top: auto; right: auto; left: 24px; bottom: 26px; }
@media (max-width: 800px) { html[data-process="cards"][data-proclayout="side"] .step .num { left: 20px; bottom: 22px; } }
@media (max-width: 800px) { html[data-nav="list"][data-logoblend="riso"]:not([data-theme="dark"]) .dock__mark::before { transform: translate(1.2px, 1px); } }

/* ---------- menu mirrored on the right (Jordan, Nov 29: "bringing it over quite a lot") ----------
   Wider than 1100px: the page margins are even again, and the side menu starts past the content's
   right edge by the same 28px the turn sits left of it. Everything in the menu is left-aligned and
   Login's dot moves after the word, so the L lines up with the links. Login stays fixed at the top;
   with no left or right set it keeps its place in the menu's column. "edge" stays switchable. */
@media (min-width: 801px) {
  html[data-nav="list"][data-menuside="mirror"] { --pad-r: var(--pad-l); --lgap: 28px; }
  html[data-nav="list"][data-menuside="mirror"] .dock__right { left: calc(100% + var(--lgap)); right: auto; align-items: flex-start; }
  html[data-nav="list"][data-menuside="mirror"] .dock__links { align-items: flex-start; }
  html[data-nav="list"][data-menuside="mirror"] .dock__links a { padding-right: 0; }
  html[data-nav="list"][data-menuside="mirror"] .dock__login { left: auto; right: auto; }
  html[data-nav="list"][data-menuside="mirror"] .dock__login .dot { order: 2; }
  html[data-nav="list"][data-menuside="mirror"][data-dockmode="stagger"] .page--dock .dock__right {
    left: auto; width: 0; margin-right: calc(-1 * var(--lgap)); padding-left: var(--lgap); white-space: nowrap;
  }
  html[data-nav="list"][data-menuside="mirror"] .cs-links__list { left: calc(100% + var(--lgap)); right: auto; align-items: flex-start; white-space: nowrap; }
}
/* Responsive pass (Jordan, Nov 30: "the links overlap at certain widths"). From 801 to 1100px the
   menu used to stay right-aligned inside a 160px margin and ran over the content. Now the mirrored
   menu runs down to 801px: even 128px margins, and the menu sits 16px past the content, the same
   gap the smaller planet and tent keep on the left. */
@media (min-width: 801px) and (max-width: 1100px) {
  html[data-nav="list"][data-menuside="mirror"] { --pad: 128px; --pad-l: 128px; --pad-r: 128px; --lgap: 16px; }
  /* "edge": the menu 32px from the window's edge so it clears the content */
  html[data-nav="list"][data-menuside="edge"] .dock__login { right: max(32px, env(safe-area-inset-right)); }
  html[data-nav="list"][data-menuside="edge"] .dock-nav, html[data-nav="list"][data-menuside="edge"] .dock__right { --turn-x: 32px; }
  html[data-nav="list"][data-menuside="edge"] .cs-links__list { right: calc(max(32px, env(safe-area-inset-right)) - var(--win-r)); }
}

/* ---------- cards: icon top right, text wrapping round it, number bottom right (Jordan, Nov 29) ----------
   The (hidden) paper-colour icon floats top right and holds the space; the cut-out icon is
   placed on the same spot. Lines that run past the icon use the full card width. */
html[data-process="cards"][data-proclayout="wrap"] .step { display: flow-root; padding: 24px 24px 54px; }
html[data-process="cards"][data-proclayout="wrap"] .step__mask { float: right; width: 80px; height: 80px; margin: 0 0 10px 18px; }
html[data-process="cards"][data-proclayout="wrap"] .step__name { margin-bottom: 10px; }
html[data-process="cards"][data-proclayout="wrap"] .step .num { top: auto; left: auto; right: 24px; bottom: 26px; }
html[data-process="cards"][data-proclayout="wrap"][data-procicon="cutout"] .step {
  -webkit-mask-size: 100% 100%, 80px 80px; mask-size: 100% 100%, 80px 80px;
  -webkit-mask-position: 0 0, right 24px top 24px; mask-position: 0 0, right 24px top 24px;
}
@media (max-width: 800px) {
  html[data-process="cards"][data-proclayout="wrap"] .step { padding: 20px 20px 48px; }
  html[data-process="cards"][data-proclayout="wrap"] .step__mask { width: 64px; height: 64px; margin: 0 0 8px 14px; }
  html[data-process="cards"][data-proclayout="wrap"] .step .num { right: 20px; bottom: 22px; }
  html[data-process="cards"][data-proclayout="wrap"][data-procicon="cutout"] .step {
    -webkit-mask-size: 100% 100%, 64px 64px; mask-size: 100% 100%, 64px 64px;
    -webkit-mask-position: 0 0, right 20px top 20px; mask-position: 0 0, right 20px top 20px;
  }
}

/* ---------- responsive pass (Jordan, Nov 30) ----------
   Project photos keep their set heights while a column is at least 352px wide (its width at
   1440px) and shrink in proportion below that, so the masonry keeps its rhythm at every width.
   From 801 to 1240px the masonry runs in two columns (dealt by script), the process cards and
   the work index two across; from 801 to 896px the process cards stack. */
.projects__col { container-type: inline-size; }
.projects .proj__ph, .projects .proj > img, .projects .proj__box { height: min(calc(var(--h, 300) * 1px), calc(var(--h, 300) * 100cqw / 352)); }
.projects--2 { grid-template-columns: repeat(2, 1fr); }
.projects--2 > .projects__col:not(.projects__col--2) { display: none; }
@media (min-width: 801px) and (max-width: 1240px) {
  html[data-process="cards"] .process { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 801px) and (max-width: 896px) {
  html[data-process="cards"] .process { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- process cards on the projects grid (Jordan, Nov 30) ----------
   Same columns and the same 32px gutter as the projects masonry at every width: three across,
   two from 801 to 1240px, one on phones. "tight" keeps the 16px gaps. */
html[data-process="cards"][data-procgrid="match"] .process { grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (min-width: 801px) and (max-width: 1240px) {
  html[data-process="cards"][data-procgrid="match"] .process { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 800px) {
  html[data-process="cards"][data-procgrid="match"] .process { grid-template-columns: 1fr; gap: var(--gap); }
}

/* ---------- projects photos in ink monochrome, colour on hover (Jordan, Nov 30) ----------
   The photo goes grey, then an ink layer screens over it: black turns ink, white stays white,
   and the whole box still multiplies onto the page, so the white becomes the paper.
   Dark mode mirrors it: grey multiplied by the light ink, screened onto the dark page. */
html[data-projphotos="mono"] .projects .proj__ph { isolation: isolate; }
html[data-projphotos="mono"] .projects .proj__ph img { filter: grayscale(1) contrast(1.05); transition: filter .35s ease; }
html[data-projphotos="mono"] .projects .proj__ph::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--ink); mix-blend-mode: screen; transition: opacity .35s ease;
}
html[data-projphotos="mono"][data-theme="dark"] .projects .proj__ph { mix-blend-mode: screen; }
html[data-projphotos="mono"][data-theme="dark"] .projects .proj__ph::after { mix-blend-mode: multiply; }
@media (hover: hover) {
  html[data-projphotos="mono"] .projects .proj:hover .proj__ph img,
  html[data-projphotos="mono"] .projects .proj:focus-visible .proj__ph img { filter: none; }
  html[data-projphotos="mono"] .projects .proj:hover .proj__ph::after,
  html[data-projphotos="mono"] .projects .proj:focus-visible .proj__ph::after { opacity: 0; }
}

/* ---------- dark mode button, bottom left (Jordan, Nov 30) ----------
   A small half-filled circle; the filled half swaps sides in dark mode. */
.theme-corner { display: none; }
html[data-themebtn="corner"] .theme-corner {
  display: block; position: fixed; z-index: 98; left: max(24px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom));
  width: 32px; height: 32px; padding: 7px; margin: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
}
.theme-corner__icon {
  display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%); transition: transform .3s ease;
}
html[data-theme="dark"] .theme-corner__icon { transform: rotate(180deg); }
.theme-corner:hover { color: #EE930B; }
.theme-corner .theme-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 800px) { html[data-themebtn="corner"] .theme-corner { left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); } }

/* ---------- card text: phase name first, short subtitle (Jordan, Nov 30) ---------- */
.step__name--verb { display: none; }
html[data-proctext="verb"] .step__name--verb { display: flex; }
html[data-proctext="verb"] .step__name--phase { display: none; }

/* ---------- cards: icon and number on the left, all text to the right (Jordan, Nov 30) ----------
   The icon sits top left at 72px (56 on phones), the number just under it, and the name,
   subtitle and body share one column beside them. */
html[data-process="cards"][data-proclayout="left"] .step { padding: 24px 24px 28px 120px; min-height: 160px; box-sizing: border-box; }
html[data-process="cards"][data-proclayout="left"] .step__mask { position: absolute; left: 24px; top: 24px; width: 72px; height: 72px; margin: 0; }
html[data-process="cards"][data-proclayout="left"] .step .num { top: 114px; right: auto; bottom: auto; left: 26px; }
html[data-process="cards"][data-proclayout="left"] .step__name { margin-bottom: 4px; }
html[data-process="cards"][data-proclayout="left"][data-procicon="cutout"] .step {
  -webkit-mask-size: 100% 100%, 72px 72px; mask-size: 100% 100%, 72px 72px;
  -webkit-mask-position: 0 0, 24px 24px; mask-position: 0 0, 24px 24px;
}
@media (max-width: 800px) {
  html[data-process="cards"][data-proclayout="left"] .step { padding: 20px 20px 24px 96px; min-height: 132px; }
  html[data-process="cards"][data-proclayout="left"] .step__mask { left: 20px; top: 20px; width: 56px; height: 56px; }
  html[data-process="cards"][data-proclayout="left"] .step .num { top: 90px; left: 22px; }
  html[data-process="cards"][data-proclayout="left"][data-procicon="cutout"] .step {
    -webkit-mask-size: 100% 100%, 56px 56px; mask-size: 100% 100%, 56px 56px;
    -webkit-mask-position: 0 0, 20px 20px; mask-position: 0 0, 20px 20px;
  }
}

/* ---------- slideshow: monochrome, the active photo in colour with a caption (Jordan, Nov 30) ----------
   Each pill holds the photo twice: a monochrome copy (grey, darks taken to the ink colour)
   and the colour copy on top. The strip script runs the colour copy and the caption on the
   pill's own clock, so they show only while it rests in the active spot. Opacity only, so it
   all stays on the compositor. */
.pill__ph { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: max(16px, calc(var(--pw, 769px) * 39.08 / 769.365)); }
html[data-corners="round"] .pill__ph { border-radius: var(--photo-r); }
html[data-corners="soft"] .pill__ph { border-radius: var(--soft-r); }
.pill .pill__ph img { border-radius: 0; }
.pill__mono, .pill__tint { display: none; }
.pill__color { position: relative; z-index: 2; }
.pill__cap { display: none; }
html[data-stripcolor="mono"] .pill__mono { display: block; position: absolute; inset: 0; filter: grayscale(1) contrast(1.05); }
html[data-stripcolor="mono"] .pill__tint { display: block; position: absolute; inset: 0; z-index: 1; background: var(--ink); mix-blend-mode: screen; pointer-events: none; }
html[data-stripcolor="mono"] .pill__color { opacity: 0; }
html[data-stripcolor="mono"] .pills__track:not(.is-run) .pill.is-active .pill__color { opacity: 1; }
html[data-stripcolor="mono"][data-theme="dark"] .pill__tint { display: none; }
html[data-stripcolor="mono"] .pill__cap {
  display: flex; justify-content: space-between; gap: 16px;
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  font-family: var(--mono); font-size: 11px; line-height: 1.3; letter-spacing: .02em;
  color: var(--ink-2); opacity: 0; pointer-events: none;
}
html[data-stripcolor="mono"] .pills__track:not(.is-run) .pill.is-active .pill__cap { opacity: 1; }
@media (max-width: 800px) { html[data-stripcolor="mono"] .pill__cap { font-size: 10px; top: calc(100% + 8px); } }

/* ---------- dark mode: brown page, cards keep their light-mode colour (Jordan, Nov 30) ----------
   The page takes the cards' dark brown, a step darker; text and lines the light paper colour.
   The cards stay #33291F with paper-colour text and icons, so they read the same in both modes
   (the cut-through icon would show the dark page, so the icon is drawn in paper colour here). */
html[data-theme="dark"][data-darkbg="brown"] {
  --field: #271F17; --ink: #EDECE8; --ink-2: #B5AC9F; --ink-soft: #4A3F34;
}
html[data-theme="dark"][data-darkbg="brown"] .btn,
html[data-theme="dark"][data-darkbg="brown"] ::selection { color: #271F17; }
html[data-theme="dark"][data-process="cards"] .step { --field: #EDECE8; background-color: #33291F; }
html[data-theme="dark"][data-process="cards"][data-procicon="cutout"] .step { -webkit-mask-image: none; mask-image: none; }
html[data-theme="dark"][data-process="cards"][data-procicon="cutout"] .step__mask { visibility: visible; }

/* ---------- headings in Mincho everywhere (Jordan, Nov 30) ----------
   Section headings, process card titles and the like take the project cards' Mincho at 400;
   process card titles match the project card titles (30px), and "Start a project" matches
   the section headings beside it. */
html[data-headfont="mincho"] { --sans: var(--serif); }
html[data-headfont="mincho"] :is(.h48, .h36, .h24, .contact-title) { font-weight: 400; }
html[data-headfont="mincho"] .step .h24 { font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
html[data-headfont="mincho"] :is(#services, #process) .head a.more {
  font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; text-transform: none;
}
@media (max-width: 800px) {
  html[data-headfont="mincho"] .step .h24 { font-size: 26px; }
  html[data-headfont="mincho"] :is(#services, #process) .head a.more { font-size: 28px; }
}

/* ---------- project pages: details under the title, no title block (Jordan, Nov 30) ---------- */
.cs-facts { display: none; }
html[data-csinfo="inline"] .rail { display: none; }
html[data-csinfo="inline"] .cs { grid-template-columns: minmax(0, 1fr); }
html[data-csinfo="inline"] .cs-facts {
  display: grid; grid-template-columns: repeat(6, minmax(0, auto)); justify-content: space-between; gap: 16px 32px; margin: 0;
}
.cs-facts > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cs-facts dd { margin: 0; }
@media (max-width: 1100px) { html[data-csinfo="inline"] .cs-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { html[data-csinfo="inline"] .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; } }

/* ---------- project pages: the logo scrolls off the top, like home (Jordan, Nov 30) ----------
   The bar stays fixed (the turn and Login keep their places); the logo alone moves up one
   pixel per pixel scrolled, run by the scroll position off the main thread where the browser
   can, and by CS_LOGO_JS elsewhere. */
@keyframes cs-logo-off { to { transform: translate3d(0, -400px, 0); } }
@supports (animation-timeline: scroll()) {
  @media (min-width: 801px) {
    html[data-nav="list"][data-cshero="strip"][data-cslogo="scroll"] .page--cs-strip .dock__mark {
      animation: cs-logo-off linear both; animation-timeline: scroll(root block); animation-range: 0 400px;
    }
  }
}

/* ---------- section headings: one size, all caps (Jordan, Nov 30) ----------
   "Our design-build process", "Projects" and the contact "Start a project" all take the
   36px heading size (28px on phones), in capitals; the small "Start a project →" link beside
   the process heading goes back to the mono label. */
html[data-secthead="caps"] .head .h36,
html[data-secthead="caps"] .contact-title { font-size: 36px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; margin-top: 0; }
html[data-secthead="caps"][data-headfont="mincho"] :is(#services, #process) .head a.more {
  font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 800px) {
  html[data-secthead="caps"] .head .h36,
  html[data-secthead="caps"] .contact-title { font-size: 28px; }
  html[data-secthead="caps"][data-headfont="mincho"] :is(#services, #process) .head a.more { font-size: 11px; }
}

/* ---------- footer (Jordan, Nov 30) ----------
   No dotted logo, and the page ends with the footer line level with the middle of the dark
   mode button (its centre sits 40px up from the window bottom, 30px on phones; the label
   line is 14.3px tall). */
html[data-footmark="off"] .foot__mark { display: none; }
html[data-footend="toggle"] .page { padding-bottom: calc(40px - 7.15px + env(safe-area-inset-bottom)); }
@media (max-width: 800px) {
  html[data-footend="toggle"] .page { padding-bottom: calc(30px - 7.15px + env(safe-area-inset-bottom)); }
}

/* ---------- home slideshow: each photo opens its project (Jordan, Nov 30) ---------- */
a.pill__ph { display: block; cursor: pointer; }
a.pill__ph:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- home order: Services and Team (Jordan, Nov 30) ----------
   Four services in a row; the team as four portrait cards, name in the heading face,
   role and credentials in mono under it. */
.services--4 { grid-template-columns: repeat(4, 1fr); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.member { display: flex; flex-direction: column; gap: 8px; }
.member__ph { aspect-ratio: 4 / 5; height: auto; margin-bottom: 8px; }
.member .label { color: var(--ink-2); }
html[data-headfont="mincho"] .member .h24 { font-weight: 400; }
@media (max-width: 1100px) { .services--4, .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .services--4 { grid-template-columns: 1fr; } .team { grid-template-columns: repeat(2, 1fr); } }

/* ---------- home statement (Jordan, Nov 30) ----------
   Three lines on what Spacecamp is, under the logo and above Projects; fades in on first scroll. */
.lede { padding: 8px 0 72px; }
.lede__text { margin: 0; font-family: var(--body); font-size: 40px; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); max-width: 30em; }
.lede__text span { display: block; }
/* Nov 30, Jordan: mincho, sentence case, each line on one line (it scales with the window) */
html[data-ledefont="mincho"] .lede__text { font-family: var(--serif); font-size: clamp(20px, 2.3vw, 34px); line-height: 1.4; letter-spacing: 0; text-transform: none; max-width: none; }
html[data-ledefont="mincho"] .lede__text span { white-space: nowrap; }
.lede.will-fade { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.lede.will-fade.is-in { opacity: 1; transform: none; }
@media (max-width: 1100px) { .lede__text { font-size: 32px; } }
@media (max-width: 800px) { .lede { padding: 0 0 48px; } .lede__text { font-size: 24px; } .lede__text span { display: inline; } html[data-ledefont="mincho"] .lede__text { font-size: 21px; } html[data-ledefont="mincho"] .lede__text span { white-space: normal; } }

/* ---------- scroll reveal (Jordan, Nov 30) ----------
   Fade in and rise 14px over 0.6 s as a block scrolls into view; the script staggers
   neighbours by 60 ms and removes the classes once it has played. */
html[data-reveal="on"] .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html[data-reveal="on"] .rv.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html[data-reveal="on"] .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- no overscroll bounce (Jordan, Nov 30) ---------- */
html, body { overscroll-behavior: none; }

/* ---------- dark mode grain, softer (Jordan, Nov 30) ----------
   Same speck pattern, specks drawn darker (#A8A8A8 instead of #EBEBEB) and 15% fainter. */
html[data-theme="dark"][data-darkgrain="soft"][data-bg="fine"] body { background-image: url("../img/grain-fine-dark-soft.png"); }
html[data-theme="dark"][data-darkgrain="soft"][data-process="cards"] .step { background-image: url("../img/grain-fine-dark-soft.png"); }

/* Process as a list (Nov 30, Jordan picked it): Design and Build brackets, outlined phase cards,
   amber pills for the two cost check-ins, small arrows between. */
.plist { display: none; }
html[data-process="list"] .process { display: none; }
html[data-process="list"] .plist { display: flex; flex-direction: column; gap: 0; }
.pl-group { display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.pl-bracket { position: relative; }
.pl-bracket::before { content: ""; position: absolute; left: 30px; top: 8px; bottom: 34px; width: 12px; border: 1.5px solid var(--ink2, #675C4F); border-right: 0; border-radius: 6px 0 0 6px; }
.pl-group:last-child .pl-bracket::before { bottom: 8px; }
.pl-bracket span { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2, #675C4F); background: var(--field); padding: 6px 0; }
.pl-group:not(:last-child) .pl-bracket span { margin-top: -13px; }
.pl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pl-steps > li { position: relative; display: flex; align-items: center; gap: 28px; }
.pl-steps > li + li { margin-top: 28px; }
.pl-steps > li + li::before, .pl-group:not(:last-child) .pl-steps > li:last-child::after {
  content: ""; position: absolute; left: 50%; top: -22px; width: 10px; height: 16px; transform: translateX(-50%);
  background: var(--ink); -webkit-mask: var(--pl-arrow) center / contain no-repeat; mask: var(--pl-arrow) center / contain no-repeat; }
.pl-group:not(:last-child) .pl-steps > li:last-child::after { top: auto; bottom: -22px; }
.pl-group:not(:last-child) .pl-steps { padding-bottom: 28px; }
.plist { --pl-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 0v14M1 10l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pl-card { border: 3px solid var(--ink); border-radius: 28px; padding: 22px 32px; }
.pl-ico { flex: none; width: 64px; height: 64px; background: var(--ink); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.pl-div { flex: none; align-self: stretch; width: 2px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.pl-card__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pl-card__name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.pl-ab { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .06em; vertical-align: 2px; }
.pl-card__t, .pl-pill__t { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.4; color: var(--ink); }
.pl-pill { border: 1.5px solid #C98A2E; border-radius: 999px; padding: 14px 32px; gap: 24px !important; }
.pl-pill__ab { flex: none; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.pl-pill .pl-div { align-self: center; height: 24px; }
.pl-pill__t { color: var(--ink2, #675C4F); }
@media (max-width: 800px) {
  .pl-group { grid-template-columns: 28px 1fr; gap: 8px; }
  .pl-bracket::before { left: 14px; width: 8px; }
  .pl-bracket span { left: -2px; font-size: 10px; }
  .pl-steps > .pl-card { padding: 16px 18px; border-radius: 20px; gap: 14px; align-items: flex-start; }
  .pl-ico { width: 40px; height: 40px; }
  .pl-card .pl-div { display: none; }
  .pl-card__name { font-size: 17px; }
  .pl-card__t, .pl-pill__t { font-size: 15px; }
  .pl-steps > .pl-pill { border-radius: 20px; padding: 12px 18px; gap: 6px; align-items: flex-start; flex-direction: column; }
  .pl-pill .pl-div { display: none; }
}

/* Nov 30 (Jordan): no captions on the slideshow on project pages; the home slideshow keeps them */
html:not([data-cscap="on"]) .page--cs .pill__cap { display: none; }

/* ---------- project pages: only sections with content (Jordan, Nov 30) ----------
   Empty sections (no plans, no build photos, no press...) are written with data-empty and hidden
   with their side-list, menu and contents links; the "all" switch brings the placeholders back.
   Section numbers count only what shows. */
html:not([data-cssections="all"]) [data-empty] { display: none !important; }
.cs__main { counter-reset: cssec; }
.cs__main section.sec[id] { counter-increment: cssec; }
.cs__main .sec__num::before { content: counter(cssec, decimal-leading-zero); }
.toc { counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc .n::before { content: counter(toc, decimal-leading-zero); }

/* ---------- project pages: Designer / Builder chips in place of the Role row (Jordan, Nov 30) ---------- */
.cs-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cs-roles .chip {
  font: 500 14px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 9px 16px 8px;
}
html[data-csrole="row"] .cs-roles { display: none; }
html:not([data-csrole="row"]) .cs-facts .cs-facts__role { display: none; }
@media (min-width: 1101px) {
  html[data-csinfo="inline"]:not([data-csrole="row"]) .cs-facts { grid-template-columns: repeat(5, minmax(0, auto)); }
}

/* ---------- Projects page photos in ink monochrome too (Jordan, Nov 30: "Yes, monochrome too") ----------
   Same treatment as the home grid; "color" brings full colour back. */
html[data-workphotos="mono"] .work-grid .proj__ph { isolation: isolate; }
html[data-workphotos="mono"] .work-grid .proj__ph img { filter: grayscale(1) contrast(1.05); transition: filter .35s ease; }
html[data-workphotos="mono"] .work-grid .proj__ph::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--ink); mix-blend-mode: screen; transition: opacity .35s ease;
}
html[data-workphotos="mono"][data-theme="dark"] .work-grid .proj__ph { mix-blend-mode: screen; }
html[data-workphotos="mono"][data-theme="dark"] .work-grid .proj__ph::after { mix-blend-mode: multiply; }
@media (hover: hover) {
  html[data-workphotos="mono"] .work-grid .proj:hover .proj__ph img,
  html[data-workphotos="mono"] .work-grid .proj:focus-visible .proj__ph img { filter: none; }
  html[data-workphotos="mono"] .work-grid .proj:hover .proj__ph::after,
  html[data-workphotos="mono"] .work-grid .proj:focus-visible .proj__ph::after { opacity: 0; }
}
/* empty facts ([Client], [Year]...) hide too; the row closes up */
@media (min-width: 801px) {
  html[data-csinfo="inline"]:not([data-cssections="all"]) .cs-facts { display: flex; flex-wrap: wrap; gap: 16px 64px; }
}

/* ---------- process list, dark compact cards (Jordan, Nov 30 19:21) ----------
   Dark grainy cards like the old card layout, tighter padding, no divider between icon and text,
   larger phase codes; the Design / Build brackets move to the right and their labels sit in a break
   in the line, so the page grain shows behind them. "light" keeps the outlined version. */
html[data-plstyle="dark"] .pl-group { grid-template-columns: 1fr 40px; gap: 16px; }
html[data-plstyle="dark"] .pl-steps { order: 1; }
html[data-plstyle="dark"] .pl-bracket { order: 2; display: flex; flex-direction: column; align-items: flex-start; padding: 8px 0 34px; }
html[data-plstyle="dark"] .pl-group:last-child .pl-bracket { padding-bottom: 8px; }
html[data-plstyle="dark"] .pl-bracket::before,
html[data-plstyle="dark"] .pl-bracket::after {
  content: ""; position: static; flex: 1 1 0; min-height: 12px; width: 12px;
  border: 1.5px solid var(--ink-2, #675C4F); border-left: 0;
}
html[data-plstyle="dark"] .pl-bracket::before { border-bottom: 0; border-radius: 0 6px 0 0; }
html[data-plstyle="dark"] .pl-bracket::after { border-top: 0; border-radius: 0 0 6px 0; }
html[data-plstyle="dark"] .pl-bracket span {
  position: static; transform: none; margin: 0 0 0 3px !important; padding: 10px 0;
  line-height: 16px; background: none; color: var(--ink-2, #675C4F);
}
html[data-plstyle="dark"] .pl-card {
  border: 0; border-radius: 24px; padding: 16px 24px; gap: 20px;
  background-color: #33291F; background-image: url("../img/grain-fine-dark.png"); background-size: 128px 128px;
}
html[data-plstyle="dark"] .pl-card .pl-div { display: none; }
html[data-plstyle="dark"] .pl-card .pl-ico { width: 52px; height: 52px; background: #EDECE8; }
html[data-plstyle="dark"] .pl-card__text { gap: 4px; }
html[data-plstyle="dark"] .pl-card__name { color: #EDECE8; font-size: 20px; }
html[data-plstyle="dark"] .pl-card .pl-ab { font-size: 24px; font-weight: 600; letter-spacing: .04em; vertical-align: -1px; margin-right: 2px; }
html[data-plstyle="dark"] .pl-card__t { color: color-mix(in srgb, #EDECE8 78%, transparent); font-size: 15px; }
html[data-plstyle="dark"] .pl-steps > li + li { margin-top: 26px; }
@media (max-width: 800px) {
  html[data-plstyle="dark"] .pl-group { grid-template-columns: 1fr 24px; gap: 8px; }
  html[data-plstyle="dark"] .pl-bracket::before, html[data-plstyle="dark"] .pl-bracket::after { width: 8px; }
  html[data-plstyle="dark"] .pl-bracket span { font-size: 10px; line-height: 12px; margin-left: 2px !important; }
  html[data-plstyle="dark"] .pl-steps > .pl-card { padding: 14px 16px; border-radius: 18px; gap: 12px; }
  html[data-plstyle="dark"] .pl-card .pl-ico { width: 36px; height: 36px; }
  html[data-plstyle="dark"] .pl-card__name { font-size: 16px; }
  html[data-plstyle="dark"] .pl-card .pl-ab { font-size: 19px; }
  html[data-plstyle="dark"] .pl-card__t { font-size: 14px; }
}

/* ---------- slideshow: one height, each photo its own width (Jordan, Nov 30 19:22) ----------
   The script sets --ph and each pill's width (from the photo, or --pw for "crop"). */
.pills__track { height: var(--ph, calc(var(--pw, 769px) * 432.31 / 769.365)); }
.pill { height: var(--ph, auto); aspect-ratio: auto; }
.pill img { object-fit: cover; }
/* project pages: less room between the slideshow and the title */
@media (min-width: 801px) {
  html[data-csstrip="short"] .page--cs .dock-hero { padding-bottom: 8px; }
  html[data-csstrip="short"][data-nav="list"][data-cshero="strip"] .page--cs .cs-links { margin-bottom: calc(-1 * var(--gap)); }
}

/* ---------- phones: page list on home's first screen (Jordan, Nov 30 19:24) ----------
   It sits over the statement's spot. On the first scroll it slides up and fades, the menu
   button fades in, and the statement comes in after. "button" keeps the menu button only. */
.mob-list { display: none; }
@media (max-width: 800px) {
  html[data-mobnav="list"] .mob-list { display: block; position: relative; z-index: 5; height: 0; margin-bottom: calc(-1 * var(--gap)); }
  .mob-list__in {
    position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    font-family: var(--mono); font-weight: 500; font-size: 15px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
  }
  .mob-list__in a { display: block; padding: 3px 0; }
  .mob-list__login { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; }
  .mob-list__login .dot { width: 8px; height: 8px; border-radius: 50%; background: #EE930B; }
  html.mob-folded .mob-list__in { opacity: 0; transform: translateY(-40px); pointer-events: none; }
  html.mob-top .dock__menu { opacity: 0; pointer-events: none; transform: translateY(8px); }
  html[data-mobnav="list"] .dock__menu { transition: opacity .35s ease .2s, transform .35s ease .2s; }
  html.mob-top .lede.will-fade { opacity: 0 !important; }
  html.mob-folded .lede.will-fade { transition-delay: .35s; }
}

/* ---------- phones: planet and tent top left, the logo beside it (Jordan, Nov 30 19:22) ---------- */
@media (max-width: 800px) {
  html[data-mobturn="top"][data-turnpos="logo"] .dock__box > .turn {
    position: relative; left: auto; right: auto; top: auto; bottom: auto; flex: none;
    --tw: 56px; width: 56px;
    margin: calc(-1 * var(--tw) * 17 / 203.36) calc(12px - var(--tw) * 54.68 / 203.36) 0 calc(-1 * var(--tw) * 54.68 / 203.36);
  }
  html[data-mobturn="top"][data-nav="list"] .dock__box { display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; }
  html[data-mobturn="top"][data-nav="list"] .dock__mark { width: 150px; max-width: 150px; margin-top: 2px; }
}

/* ---------- process list, phases only (Jordan, Nov 30 19:28) ----------
   No ROM or cost study pills, no arrows, tighter spacing. "all" keeps them. */
html[data-plsteps="phases"] .pl-pill { display: none; }
html[data-plsteps="phases"] .pl-steps > li::before,
html[data-plsteps="phases"] .pl-steps > li::after { content: none !important; }
html[data-plsteps="phases"] .pl-steps > li + li { margin-top: 12px; }
html[data-plsteps="phases"] .pl-group:not(:last-child) .pl-steps { padding-bottom: 12px; }
html[data-plsteps="phases"] .pl-group:not(:last-child) .pl-bracket { padding-bottom: 20px; }
html[data-plsteps="phases"] .pl-group:not(:last-child) .pl-bracket::before { bottom: 20px; }
@media (max-width: 800px) {
  html[data-plsteps="phases"] .pl-steps > li + li { margin-top: 10px; }
}

/* process list dark cards, Jordan Nov 30 19:29: no dash after the code; body a bit larger, in a warm tan apart from the paper-colour names */
html[data-plstyle="dark"] .pl-dash { display: none; }
html[data-plstyle="dark"] .pl-card .pl-ab { margin-right: 6px; }
html[data-plstyle="dark"] .pl-card__t { font-size: 17px; line-height: 1.4; color: #BFAE93; }
@media (max-width: 800px) { html[data-plstyle="dark"] .pl-card__t { font-size: 15px; } }

/* process intro, Jordan Nov 30 19:30: between the hero statement and body text in size */
.proc-intro { margin: 0 0 8px; font-family: var(--body); font-size: 26px; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink); max-width: 38em; }
html[data-procintro="off"] .proc-intro { display: none; }
@media (max-width: 800px) { .proc-intro { font-size: 20px; } }

/* contact block without lines, Jordan Nov 30 19:30 */
html[data-contactlines="none"] .rule--contact,
html[data-contactlines="none"] .contact__vr { display: none; }
html[data-contactlines="none"] .contact { grid-template-columns: 360px minmax(0, 1fr); column-gap: calc(var(--gap) * 2); }
@media (max-width: 800px) { html[data-contactlines="none"] .contact { grid-template-columns: 1fr; } }

/* Process first, then "Our other services" with its own intro (Jordan Nov 30 19:31); svcorder=before restores the old order and heading */
.svcproc { display: flex; flex-direction: column; gap: var(--gap); }
.svc-h--old { display: none; }
html[data-svcorder="before"] .svcproc > #services { order: -2; }
html[data-svcorder="before"] .svcproc > .rule { order: -1; }
html[data-svcorder="before"] .svc-h--new, html[data-svcorder="before"] .svc-intro { display: none; }
html[data-svcorder="before"] .svc-h--old { display: inline; }
