/* Layout idea: one left-aligned column, one big serif hello, mono for everything functional, words highlight on hover, lines print in as they scroll into view. */
  :root {
    --bg: #fefdfb;
    --panel: #ffffff;
    --primary: #111111cc;
    --ink: #000000;
    --muted-strong: #111111a6;
    --muted: #11111166;
    --accent: #ffd500;
    --accent-fill: #ffd50066;
    --accent-soft: #fded97;
    --hairline: #00000014;
    --grid-line: #0000001a;
    --dot: #eaeaea;
    --shade: #0000000d;
    --font-serif: "Source Serif 4", "Source Serif Pro", ui-serif, Georgia, serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    /* the bio and the list titles share this */
    --lede: clamp(20px, 2vw, 24px); --lede-lh: 1.4;
    --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px;
    --radius-sm: 10px; --radius-lg: 28px; --radius-pill: 999px;
    color-scheme: light;
  }
  * { box-sizing: border-box; }
  html { background: var(--bg); }
  body { margin: 0; background: var(--bg); color: var(--primary); font-family: var(--font-mono); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  h1, h2, h3, p, ul, blockquote, figure { margin: 0; padding: 0; }
  ul { list-style: none; }
  h1, h2, h3 { text-wrap: balance; font-family: var(--font-serif); font-weight: 400; color: var(--primary); }
  [hidden] { display: none !important; }
  .page { max-width: 868px; margin: 0 auto; padding: 20px 74px 0;
    min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; }
  /* content grows to fill short pages, so the footer lands at the bottom, never mid-screen */
  .page > main, .page > article { flex: 1 0 auto; margin-bottom: var(--space-6); }

  /* hover: the words highlight like a marker pen, never the whole row */
  .mk { padding: 1px 5px; margin: 0 -5px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .12s ease; }
  .item:hover .mk, .item:focus-visible .mk { background-color: var(--accent-fill); }
  .tlink { text-decoration: underline; text-decoration-color: var(--grid-line); text-underline-offset: 4px; padding: 1px 5px; margin: 0 -5px; border-radius: 3px; transition: background-color .12s ease; }
  a.tlink { cursor: pointer; }
  span.tlink { cursor: default; }
  .tlink:hover, .tlink:focus-visible { background-color: var(--accent-fill); }
  .link, footer a, .back { border-radius: 8px; transition: background-color .12s ease; }
  .link:hover, footer a:hover, .back:hover, .link:focus-visible, footer a:focus-visible, .back:focus-visible { background-color: var(--accent-fill); }

  /* hero */
  .hero { padding: 104px 0 var(--space-6); }
  .hero h1 { font-size: clamp(56px, 11vw, 108px); line-height: 1; letter-spacing: -0.02em; }
  .hero .lede { margin-top: var(--space-5); max-width: 30em; font-family: var(--font-serif); font-size: var(--lede); line-height: var(--lede-lh); letter-spacing: -0.01em; }
  .hero .offer { margin-top: var(--space-4); max-width: 640px; font-size: 15px; line-height: 1.7; }
  .hero .lede a { text-decoration: underline; text-decoration-color: var(--grid-line); text-underline-offset: 4px; border-radius: 4px; transition: background-color .12s ease; }
  .hero .lede a:hover, .hero .lede a:focus-visible { background-color: var(--accent-fill); }
  .hero .credits { margin-top: 18px; font-size: 13px; color: var(--primary); }
  .hero .credits .lbl { display: inline-block; margin-right: 12px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-strong); }
  .actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .btn { display: inline-block; padding: 10px 20px; border-radius: var(--radius-pill); border: 1px solid var(--grid-line); font-weight: 500; font-size: 14px; transition: background-color .12s ease; }
  .btn:hover, .btn:focus-visible { background-color: var(--accent-fill); }
  .link { font-size: 14px; padding: 10px 14px; }

  /* sections */
  section { padding-top: var(--space-4); }
  .head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
  .head h2 { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
  .count { font-size: 13px; color: var(--muted-strong); font-variant-numeric: tabular-nums; }
  .sep { padding: var(--space-6) 0; color: var(--muted); font-size: 15px; letter-spacing: .1em; user-select: none; }

  /* split sheet shot */
  .stage { position: relative; margin-bottom: 68px; }
  .head + .stage { margin-top: var(--space-5); }   /* only needs the gap when a heading sits above it */
  .stage::before { content: ""; position: absolute; left: -28px; right: 32px; top: 34px; bottom: -32px; background: var(--shade); border-radius: var(--radius-lg); }
  .frame { position: relative; display: block; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 16px; }
  .dots { display: flex; gap: 8px; padding-bottom: 14px; }
  .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); display: block; }
  .frame img { display: block; width: 100%; border-radius: var(--radius-sm); }
  .ph { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 300px; border: 1px dashed var(--grid-line); border-radius: var(--radius-sm); color: var(--muted-strong); font-size: 13px; line-height: 1.8; padding: var(--space-4); }
  .ss-copy { max-width: 720px; font-size: 16px; line-height: 1.9; }   /* same width as the hero intro */
  .after-shot { padding-top: var(--space-6); }

  /* lists: a rule under the heading only, nothing between items */
  .rows, .tech { padding-top: 6px; }
  .rows { counter-reset: n; }
  .rows li { counter-increment: n; }
  .item { display: block; position: relative; padding: 16px 12px 16px 58px; margin: 0 -12px; border-radius: var(--radius-sm); }
  .rows .item::before { content: counter(n, decimal-leading-zero); position: absolute; left: 12px; top: 23px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
  /* same size and behaviour as the hero bio */
  .item h3 { font-size: var(--lede); line-height: var(--lede-lh); letter-spacing: -0.01em; }
  .item .kind { display: inline-block; margin-left: 14px; vertical-align: 2px; font-family: var(--font-mono);
    font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .item p { margin-top: 7px; max-width: 48em; color: var(--muted-strong); font-size: 14px; }
  .item[data-tip] { cursor: default; }
  .tech .item { display: block; padding: 12px; font-family: var(--font-serif); font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #tip { position: fixed; left: 0; top: 0; z-index: 10; pointer-events: none; padding: 6px 12px; border-radius: 4px; background: var(--accent-soft); color: var(--ink); font-family: var(--font-mono); font-size: 14px; line-height: 1.3; white-space: nowrap; opacity: 0; transition: opacity .1s ease; }
  #tip.on { opacity: 1; }

  footer { margin-top: 0; padding: var(--space-5) 0 var(--space-6); border-top: 1px solid var(--hairline); display: flex; gap: var(--space-5); flex-wrap: wrap; justify-content: space-between; align-items: baseline; font-size: 14px; }
  footer .links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
  footer a { padding: 4px 8px; }
  footer .updated { font-size: 13px; color: var(--muted-strong); font-variant-numeric: tabular-nums; }

  /* article page */
  .article { max-width: 680px; padding: var(--space-6) 0 0; }
  .back { display: inline-block; font-size: 14px; padding: 4px 8px; margin-left: -8px; }
  .article h1 { margin-top: var(--space-5); font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
  .article .meta { margin-top: var(--space-4); font-size: 13px; color: var(--muted-strong); font-variant-numeric: tabular-nums; padding-bottom: var(--space-5); border-bottom: 1px solid var(--hairline); }
  .prose { padding-top: var(--space-5); font-family: var(--font-serif); font-size: 19px; line-height: 1.6; display: flex; flex-direction: column; gap: 1.1em; }
  .prose h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; margin-top: .6em; }
  .prose blockquote { font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; padding: .8em 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .prose a { text-decoration: underline; text-decoration-color: var(--grid-line); text-underline-offset: 4px; border-radius: 4px; transition: background-color .12s ease; }
  .prose a:hover { background-color: var(--accent-fill); }
  .more { margin-top: var(--space-6); }
  .more .head { padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
  .more ul { padding-top: 6px; }
  .more-item { display: flex; justify-content: space-between; gap: var(--space-4); align-items: baseline; padding: 12px; margin: 0 -12px; border-radius: var(--radius-sm); font-family: var(--font-serif); font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
  .more-item .date { flex: none; font-family: var(--font-mono); font-size: 13px; color: var(--muted-strong); font-variant-numeric: tabular-nums; }
  .prose figure { margin: .5em 0; }
  .prose img, .prose video { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
  .prose figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--muted-strong); }
  .endnav { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--hairline); }

  /* Top of Mind: two things side by side, given more room than a list row. */
  .tom { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--space-4) var(--space-5); padding-top: var(--space-4); }
  .tom-item { display: block; padding: 16px 12px 18px; margin: 0 -12px; border-radius: var(--radius-sm); }
  .tom-item h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
  .tom-item p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted-strong); }
  .tom-item:hover .mk, .tom-item:focus-visible .mk { background-color: var(--accent-fill); }
  .tom-item[data-tip] { cursor: default; }

  /* padlock on anything behind the Cloudflare Access gate */
  .lock { margin-left: 9px; position: relative; top: 1px; color: var(--muted); flex: none; }
  .item:hover .lock, .tom-item:hover .lock { color: var(--primary); }

  @media (max-width: 760px) {
    .page { padding: 20px 20px 0; }
    .item { padding-left: 44px; }
    .rows .item::before { top: 21px; }
    .hero { padding: var(--space-6) 0 var(--space-5); }
    .sep { padding: var(--space-5) 0; }
    .prose { font-size: 18px; }
  }

/* ============================================================
   Pages under /building/ and /work/. Same tokens, wider column for images.
   ============================================================ */
/* Case-study layer. Sits on top of style.css and uses the same tokens.
   Wider container than the home page: text stays at 680px, images run wider. */

.page.wide { max-width: 868px; }
.cs { padding: var(--space-5) 0 0; }
.cs > .back { font-size: 26px; line-height: 1; padding: 6px 10px; margin: 0 0 var(--space-5) -10px; }
.cs > p, .cs > h1, .cs > .cs-eyebrow, .cs > .cs-project,
.cs section > p, .cs section > h3, .cs section > ul, .cs section > ol,
.cs section > blockquote { max-width: 680px; }
.cs-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-strong); }
.cs h1 { margin-top: 0; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
.cs-project { margin-top: 14px; font-family: var(--font-serif); font-size: 22px; color: var(--muted-strong); letter-spacing: -0.01em; }
.cs-meta { max-width: 680px; align-items: start; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--hairline); display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-4) var(--space-3); }
.cs-meta dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-strong); }
.cs-meta dd { margin: 6px 0 0; font-family: var(--font-serif); font-size: 17px; line-height: 1.35; }

.cs section { padding-top: var(--space-6); }
.cs section > h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-mono); color: var(--muted-strong); padding-bottom: var(--space-4); }
.cs h3 { margin-top: var(--space-4); font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; }
/* headings get the full column so a long one stays on a single line */
.cs > h3, .cs section > h3 { max-width: 720px; }
.cs figure + h3, .cs .cs-stats + h3 { margin-top: var(--space-5); }
.cs p { font-family: var(--font-serif); font-size: 19px; line-height: 1.6; margin-top: 1em; }
.cs p.cs-lead { font-size: 26px; line-height: 1.35; letter-spacing: -0.01em; margin-top: 1.1em; }
.cs ul, .cs ol { margin-top: 1em; padding-left: 1.3em; font-family: var(--font-serif); font-size: 19px; line-height: 1.6; }
.cs ul { list-style: disc; } .cs ol { list-style: decimal; }
.cs li { margin-top: .4em; }
.cs blockquote { margin-top: 1.4em; padding: .2em 0 .2em 22px; border-left: 2px solid var(--accent); font-family: var(--font-serif); font-size: 24px; line-height: 1.35; letter-spacing: -0.01em; }
.cs blockquote cite { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 13px; font-style: normal; color: var(--muted-strong); }
.cs blockquote.callout { border-left: none; padding: var(--space-4); background: var(--accent-fill); border-radius: var(--radius-sm); font-size: 19px; line-height: 1.6; }

.cs-stats { max-width: 680px; margin-top: var(--space-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5) var(--space-4); }
.cs-stat { padding: 0; }
.cs-stat .n { font-family: var(--font-serif); font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; background: var(--accent-fill); padding: 1px 8px; margin-left: -8px; border-radius: 4px; display: inline-block; }
.cs-stat .n.dot { width: 13px; height: 13px; padding: 0; margin: 10px 0; border-radius: 50%; background: var(--accent); }
.cs-stat h4 { margin-top: 14px; font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.cs-stat p { font-family: var(--font-mono); font-size: 14px; line-height: 1.55; color: var(--muted-strong); margin-top: 10px; }

.cs :is(p, li, blockquote, figcaption, dd) a { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 4px; border-radius: 4px; box-decoration-break: clone; transition: background-color .12s ease; }
.cs :is(p, li, blockquote, figcaption, dd) a:hover,
.cs :is(p, li, blockquote, figcaption, dd) a:focus-visible { background-color: var(--accent-fill); }
/* ways to get in touch, side by side */
.cs ul.contact { max-width: 680px; margin-top: var(--space-5); padding-left: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: var(--space-5) var(--space-4); }
.cs ul.contact > li { margin-top: 0; }
.cs .opt-label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs .opt-go { display: inline; margin-top: 12px; font-family: var(--font-serif); font-size: 24px;
  line-height: 1.25; letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: var(--muted);
  text-underline-offset: 5px; padding: 1px 5px; margin-left: -5px; margin-right: -5px; border-radius: 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .12s ease; }
.cs ul.contact .opt-label + .opt-go { display: inline-block; margin-top: 12px; }
.cs .opt-go:hover, .cs .opt-go:focus-visible { background-color: var(--accent-fill); }
.cs ul.contact p { margin-top: 12px; max-width: none; font-family: var(--font-mono); font-size: 14px;
  line-height: 1.6; color: var(--muted-strong); }
/* scroll reveal. .reveal-on is set in <head> only when motion is welcome,
   so with JS off, or reduced motion on, none of this applies. */
.reveal-on :where(.hero, .stage, main > section, .sep, .rows > li,
  .cs-meta, .cs figure, .cs-stats, .cs blockquote, .cs h3,
  ul.press > li, ul.gallery > li, ul.contact > li, .endnav) {
  opacity: 0; transform: translateY(12px); will-change: opacity, transform;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .6, .2, 1);
}
.reveal-on .in { opacity: 1; transform: none; will-change: auto; }
/* items in a row arrive one after another rather than all at once */
.reveal-on :where(.rows > li, ul.press > li, ul.gallery > li, ul.contact > li):nth-child(2) { transition-delay: .05s; }
.reveal-on :where(.rows > li, ul.press > li, ul.gallery > li, ul.contact > li):nth-child(3) { transition-delay: .1s; }
.reveal-on :where(.rows > li, ul.press > li, ul.gallery > li, ul.contact > li):nth-child(4) { transition-delay: .15s; }
.reveal-on :where(.rows > li, ul.press > li, ul.gallery > li, ul.contact > li):nth-child(n+5) { transition-delay: .2s; }
/* press cards and thumbnail galleries */
.cs ul.press, .cs ul.gallery { max-width: 680px; margin-top: var(--space-5); padding-left: 0; list-style: none; display: grid; }
.cs ul.press { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5) var(--space-4); }
.cs ul.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.cs ul.gallery > li.wide { grid-column: 1 / -1; }
.cs ul.press > li, .cs ul.gallery > li { margin-top: 0; }
.cs .press-card img, .cs .press-card .ph-thumb { aspect-ratio: 16 / 10; }
.cs ul.gallery .ph-thumb { aspect-ratio: 1 / 1; }
.cs ul.gallery video { height: auto; }
.cs ul.press video, .cs ul.gallery video,
.cs ul.press img, .cs ul.gallery img { display: block; width: 100%; height: auto; flex: none; object-fit: cover; object-position: center; border-radius: var(--radius-sm); background: var(--panel); }
.cs .press-card h4 { margin-top: 14px; font-family: var(--font-serif); font-weight: 400; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.cs .press-card { display: flex; flex-direction: column; }
.cs .press-card a { align-self: flex-start; margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--muted-strong); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 4px; border-radius: 4px; transition: background-color .12s ease; }
.cs .press-card a:hover, .cs .press-card a:focus-visible { background-color: var(--accent-fill); color: var(--primary); }
.cs .ph-thumb { display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-3); border: 1px dashed var(--grid-line); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--muted-strong); }
.cs .ph-thumb b { font-weight: 500; color: var(--primary); }
.cs figure { max-width: 680px; margin-top: var(--space-5); }
.cs figure img, .cs figure video { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--panel); }
.cs figure.phone img, .cs figure.phone video { max-width: 420px; }
.cs figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted-strong); }
.cs figcaption .note { display: block; margin-top: 4px; color: var(--muted); }
.cs .ph-box { max-width: 680px; display: block; min-height: 200px; padding: var(--space-4); border: 1px dashed var(--grid-line); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.7; color: var(--muted-strong); }
.cs .ph-box b { font-family: var(--font-mono); font-weight: 500; color: var(--primary); }

.cs-table { max-width: 680px; margin-top: var(--space-5); overflow-x: auto; }
.cs-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.cs-table th, .cs-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.cs-table th { font-weight: 500; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-strong); border-bottom-color: var(--grid-line); }

.cs-next { max-width: 680px; display: block; margin-top: var(--space-6); padding: var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-lg); transition: background-color .12s ease; }
.cs-next:hover, .cs-next:focus-visible { background-color: var(--accent-fill); }
.cs-next .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-strong); }
.cs-next .t { display: block; margin-top: 10px; font-family: var(--font-serif); font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; }
.cs-next .s { display: block; margin-top: 6px; font-size: 14px; color: var(--muted-strong); }

@media (max-width: 860px) {
    .cs h1 { font-size: 34px; }
  .cs p, .cs ul, .cs ol { font-size: 18px; }
  .cs p.cs-lead { font-size: 22px; }
  .cs blockquote { font-size: 20px; }
  .cs blockquote.callout { font-size: 18px; }
}
