/* ==========================================================================
   W. Josh Cramer · Portfolio
   One stylesheet for every page.

   1. Tokens          5. Home page
   2. Base            6. Portfolio page
   3. Layout helpers  7. Case studies
   4. Shared parts    8. Scripts (contact form, image viewer)

   The pages carry no inline styles except two data values
   (bar widths in the Realm and Standardizing case studies).
   ========================================================================== */


/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Neutrals */
  --ink: #24201D;
  --muted: #5C524B;
  --paper: #FBF7F0;
  --surface: #FFFFFF;
  --line: #EADFD0;
  --sand: #F3EADC;
  --faint: #A39686;
  --before: #8C7E70;  /* "before" marks in charts: 3:1 on white */

  /* The three phases: a strong color, a text-safe darker color, and a soft tint */
  --assess: #E08A1E;   --assess-text: #8A450A;   --assess-soft: #FDF0DD;   --assess-band: #FCF2E4;
  --design: #2F5BD3;   --design-text: #1D46B8;   --design-soft: #E4EBFC;   --design-band: #EDF1FB;
  --measure: #1E9A6E;  --measure-text: #0E6B4A;  --measure-soft: #DFF3EA;  --measure-band: #E9F5EE;

  /* Accents */
  --highlight: #FFD86B;
  --band: #1E4D3A;
  --on-dark-muted: #D9CFC4;

  /* Type: fonts every device already has, so nothing downloads and nothing can fail to load.
     Charter on Mac and iPhone, Sitka or Cambria on Windows, Georgia elsewhere. */
  --font-display: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif;

  /* Shapes */
  --radius: 14px;
  --pill: 999px;
  --wrap: 1160px;
}


/* ==========================================================================
   2. Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--design-text); }
:focus-visible { outline: 3px solid var(--design-text); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .section-green :focus-visible { outline-color: var(--highlight); }
[id] { scroll-margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Page wrapper */
.page { width: 100%; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.65; }
.page--home { font-size: 19px; line-height: 1.6; }
.page--portfolio { line-height: 1.6; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #FFFFFF; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 80px 32px; }
.wrap--col { display: flex; flex-direction: column; }
.wrap--row { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.wrap--72 { padding-block: 72px; }

.col { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 16px; }
.gap-4 { gap: 4px; }   .gap-6 { gap: 6px; }   .gap-10 { gap: 10px; }  .gap-12 { gap: 12px; }
.gap-14 { gap: 14px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }  .gap-28 { gap: 28px; }
.gap-36 { gap: 36px; } .gap-80 { gap: 80px; }

.m-0 { margin: 0; }
.bold { font-weight: 700; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.text-ink { color: var(--ink); }
.muted-text { color: var(--muted); }
.muted { margin: 0; color: var(--muted); }
.text-17 { font-size: 17px; }
.obj-center { object-position: center; }

/* Section backgrounds */
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-green { background: var(--band); color: #FFFFFF; }
.page-intro { background: var(--surface); border-bottom: 1px solid var(--line); }

/* Phase bands: a faint tint of each phase color behind its part of the page */
.band { --band-bg: var(--paper); background: var(--band-bg); box-shadow: 0 0 0 100vmax var(--band-bg); clip-path: inset(0 -100vmax); }
.band--assess { --band-bg: var(--assess-band); }
.band--design { --band-bg: var(--design-band); }
.band--measure { --band-bg: var(--measure-band); }


/* ==========================================================================
   4. Shared parts
   ========================================================================== */

/* ---------- Header and navigation ---------- */
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 22px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: flex; gap: 3px; }
.brand-bar--assess, .brand-bar--design, .brand-bar--measure { width: 9px; height: 22px; border-radius: 3px; }
.brand-bar--assess { background: var(--assess); }
.brand-bar--design { background: var(--design); }
.brand-bar--measure { background: var(--measure); }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 24px; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-weight: 700; font-size: 16px; }
.nav-link { color: var(--ink); text-decoration: none; }
.nav-link--current { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-cta { color: var(--ink); text-decoration: none; font-weight: 700; border: 2px solid var(--ink); border-radius: var(--pill); padding: 6px 16px; }
.nav-cta:hover { background: var(--ink); color: #FFFFFF; }

/* "Case studies" dropdown (js/nav.js adds Escape and click-outside) */
.nav-drop { position: relative; }
.nav-drop-toggle { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.nav-drop-toggle::-webkit-details-marker { display: none; }
.nav-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 4px; transition: transform 0.15s ease; }
.nav-drop[open] .nav-caret { transform: translateY(2px) rotate(-135deg); }
.nav-link--current.nav-drop-toggle { text-decoration: none; box-shadow: inset 0 -2px 0 var(--ink); }
.drop-panel { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 20; list-style: none; margin: 0; padding: 8px; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(36, 32, 29, 0.14); }
.drop-link { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.drop-link:hover { background: var(--paper); color: var(--ink); }
.drop-link[aria-current="page"] { background: var(--paper); }
.drop-meta { font-size: 14px; font-weight: 400; color: var(--muted); }
.drop-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.drop-all .drop-link { font-size: 15px; color: var(--muted); }
.menu-link--sub { padding-left: 28px; font-weight: 400; font-size: 16px; }
.menu-link--sub[aria-current="page"] { background: var(--paper); }

/* Phones: a Menu button instead of the full nav */
.nav-mobile { display: none; }
.nav-mobile summary { list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.menu { position: relative; }
.menu-button { cursor: pointer; font-weight: 700; font-size: 16px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: var(--pill); min-height: 44px; display: flex; align-items: center; }
.menu-panel { position: absolute; right: 0; top: 54px; z-index: 10; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-width: 210px; box-shadow: 0 12px 30px rgba(36, 32, 29, 0.14); font-weight: 700; font-size: 17px; }
.menu-link { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; display: block; }
.menu-link:hover { background: var(--paper); }
@media (max-width: 720px) {
  .nav-desktop { display: none !important; }
  .nav-mobile { display: block; }
}

/* ---------- Buttons and links ---------- */
.btn-dark { background: var(--ink); color: #FFFFFF; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: var(--pill); min-height: 44px; display: inline-flex; align-items: center; }
.btn-dark:hover { background: #000000; color: #FFFFFF; }
.btn-text { color: var(--ink); font-weight: 700; padding: 13px 8px; min-height: 44px; display: inline-flex; align-items: center; }
.btn-outline { align-self: flex-start; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: var(--pill); min-height: 44px; display: inline-flex; align-items: center; }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-highlight { background: var(--highlight); color: var(--ink); text-decoration: none; font-weight: 700; padding: 14px 28px; border-radius: var(--pill); min-height: 44px; display: inline-flex; align-items: center; }
.link-strong { font-size: 16px; font-weight: 700; }
.link-lg { font-weight: 700; font-size: 18px; }
.back-link { font-weight: 700; font-size: 16px; }

/* Links styled as navigation or buttons keep their color on hover */
.text-ink:hover, .nav-link:hover, .nav-link--current:hover, .brand:hover, .work-link:hover,
.btn-text:hover, .btn-highlight:hover, .menu-link:hover { color: var(--ink); }

/* ---------- Phase pills and tags ---------- */
.pill-set { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill--assess, .pill--design, .pill--measure { padding: 4px 12px; border-radius: var(--pill); }
.pill--assess-lg, .pill--design-lg, .pill--measure-lg { font-size: 13px; font-weight: 700; letter-spacing: 1px; padding: 4px 12px; border-radius: var(--pill); }
.pill--assess, .pill--assess-lg { background: var(--assess-soft); color: var(--assess-text); }
.pill--design, .pill--design-lg { background: var(--design-soft); color: var(--design-text); }
.pill--measure, .pill--measure-lg { background: var(--measure-soft); color: var(--measure-text); }

/* Section tags sit on a white chip so they stay readable on the tinted bands */
.tag--assess, .tag--design, .tag--measure, .tag--build { align-self: flex-start; font-weight: 700; font-size: 13px; letter-spacing: 1px; padding: 4px 12px; border-radius: var(--pill); background: var(--surface); }
.tag--assess { color: var(--assess-text); box-shadow: inset 0 0 0 1.5px var(--assess); }
.tag--design { color: var(--design-text); box-shadow: inset 0 0 0 1.5px var(--design); }
.tag--measure { color: var(--measure-text); box-shadow: inset 0 0 0 1.5px var(--measure); }
.tag--build { color: var(--ink); background: var(--sand); border: 1px dashed var(--ink); padding: 3px 12px; }

/* ---------- Text pieces ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.caption { font-size: 15px; color: var(--muted); }
.fine { margin: 0; font-size: 14px; color: var(--muted); }
.fine-right { font-size: 15px; color: var(--muted); text-align: right; }
.note-muted { margin: 0; font-size: 15px; color: var(--muted); }
.small-muted { font-size: 14px; color: var(--muted); }
.list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.list--tight { gap: 6px; }

/* ---------- Headings ---------- */
.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 3.8vw, 34px); line-height: 1.15; }
.section-heading { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.5vw, 42px); line-height: 1.1; }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.section-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.subhead { margin: 0; font-family: var(--font-display); font-size: 19px; }
.subhead--spaced { margin-top: 8px; }

/* ---------- Proof rows (Portfolio page) ---------- */
/* One full-width row per sample: screenshot on one side, the result it proves on the other.
   Rows alternate sides; on phones the screenshot sits on top. */
.proof-rows { display: flex; flex-direction: column; gap: 28px; }
.proof-row--assess, .proof-row--design, .proof-row--measure, .proof-row--build { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.proof-row--assess { border-left-color: var(--assess); }
.proof-row--design { border-left-color: var(--design); }
.proof-row--measure { border-left-color: var(--measure); }
.proof-shot { display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--paper); border-right: 1px solid var(--line); }
.proof-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(36, 32, 29, 0.10); background: var(--surface); }
.proof-row--assess:nth-child(even) .proof-shot, .proof-row--design:nth-child(even) .proof-shot, .proof-row--measure:nth-child(even) .proof-shot { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.proof-body { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.proof-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.proof-row--assess .proof-kicker { color: var(--assess-text); }
.proof-row--design .proof-kicker { color: var(--design-text); }
.proof-row--measure .proof-kicker { color: var(--measure-text); }
.proof-claim { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.proof-text { margin: 0; font-size: 16px; color: var(--muted); max-width: 560px; }
.proof-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; font-size: 16px; font-weight: 700; }
@media (max-width: 760px) {
  .proof-row--assess, .proof-row--design, .proof-row--measure, .proof-row--build { grid-template-columns: 1fr; }
  .proof-row--assess:nth-child(even) .proof-shot, .proof-row--design:nth-child(even) .proof-shot, .proof-row--measure:nth-child(even) .proof-shot { order: 0; border-left: 0; }
  .proof-shot { padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-body { padding: 22px; }
}

/* "Read the full story" and "Show more" toggles */
details > summary::-webkit-details-marker { display: none; }
.story-details { font-size: 16px; }
.story-toggle { cursor: pointer; font-weight: 700; color: var(--muted); min-height: 44px; display: flex; align-items: center; gap: 6px; }
.story-body { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.more { margin-top: 4px; }
.more-toggle { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; padding: 10px 20px; min-height: 44px; border: 2px solid var(--ink); border-radius: var(--pill); }
.more-open { display: none; }
details[open] .more-closed { display: none; }
details[open] .more-open { display: inline; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat-card { flex: 1 1 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 3.8vw, 34px); color: var(--measure-text); line-height: 1.15; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--surface); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 80px 32px 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.footer-copy { display: flex; flex-direction: column; gap: 12px; }
.footer-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; max-width: 640px; color: var(--surface); }
.footer-note { max-width: var(--wrap); margin: 0 auto; padding: 0 32px 32px; font-size: 14px; color: var(--on-dark-muted); }
.looking-for { margin: 0; color: var(--on-dark-muted); font-size: 17px; line-height: 1.5; max-width: 560px; }
.looking-for strong { color: #FFFFFF; }
.on-dark-text { margin: 0; color: var(--on-dark-muted); }
.link-on-dark { align-self: flex-start; color: var(--highlight); font-weight: 700; }
.link-on-dark-white { color: #FFFFFF; font-weight: 700; }
.link-on-dark:hover { color: #FFFFFF; }
.link-on-dark-white:hover { color: var(--highlight); }


/* ==========================================================================
   5. Home page
   ========================================================================== */

/* Hero */
.hero-inner { padding: 48px 32px 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 560px; display: flex; flex-direction: column; gap: 26px; }
.hero-hello { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.3; }
.highlight { background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 92%, transparent 92%); padding: 0 4px; }
.hero-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6vw, 64px); line-height: 1.06; letter-spacing: -1px; max-width: 760px; }
.hero-lead { margin: 0; color: var(--muted); max-width: 560px; }
.hero-meta { list-style: none; margin: -8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 700; }
.hero-meta li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 5px 14px; }
.hero-photo { flex: 0 1 380px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.headshot { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; transform: rotate(2deg); box-shadow: 0 18px 40px rgba(36, 32, 29, 0.18); border: 10px solid #FFFFFF; }
.hand-note { margin: 8px 0 0; font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--muted); transform: rotate(-2deg); text-align: center; }
.hand-note-arrow { font-family: var(--font-body); font-style: normal; }

/* Bulldozer quote band */
.band-quote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(34px, 5.5vw, 52px); line-height: 1.15; max-width: 960px; }
.band-sub { margin: 0; font-size: 20px; color: #D3E3DA; max-width: 720px; }

/* Results strip */
.proof-strip { padding-block: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.proof-number { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 56px); line-height: 1; display: block; }
.proof-label { display: block; margin: 8px 0 0; color: var(--muted); }
.proof-link { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border-radius: 8px; }
.proof-cue { margin-top: 10px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.proof-link:hover { color: var(--ink); }
.proof-link:hover .proof-cue { color: var(--design-text); }

/* Section headings */
.h2-home { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; }
.h2-narrow { max-width: 560px; }
.h2-on-dark { color: #FFFFFF; }
.h2-stories { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; }

/* Three phases */
.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.phase-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; border-top: 10px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.phase-card--assess { border-top-color: var(--assess); }
.phase-card--design { border-top-color: var(--design); }
.phase-card--measure { border-top-color: var(--measure); }
.phase-head { display: flex; align-items: center; gap: 12px; }
.phase-label { font-weight: 700; font-size: 15px; letter-spacing: 1.5px; }
.phase-label--assess { color: var(--assess-text); }
.phase-label--design { color: var(--design-text); }
.phase-label--measure { color: var(--measure-text); }
.phase-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; }

/* Three stories */
.story { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.story--reverse { flex-wrap: wrap-reverse; }
.story-media { flex: 1 1 520px; }
.story-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.story-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 3.8vw, 34px); line-height: 1.12; }
.story-stat { font-family: var(--font-display); font-size: clamp(27px, 3.8vw, 34px); }
.story-stat-row { display: flex; align-items: center; gap: 14px; line-height: 1.4; }
.story-stat-row .story-stat { flex-shrink: 0; line-height: 1; white-space: nowrap; }
.story-stat-row .muted-text { position: relative; top: 0.15em; } /* Charter numbers sit low in their box; nudge the caption to their visual middle */
.story-caption { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.story-frame { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 14px 36px rgba(36, 32, 29, 0.12); }
.story-frame > img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* Hand-drawn squiggle between the stories */
.story-divider { display: flex; justify-content: center; margin: -24px 0; color: var(--faint); }
.story-divider--measure { color: var(--measure); }
.story-divider--design { color: var(--design); }
.story-divider--assess { color: var(--assess); }
.story-divider svg { display: block; max-width: 70%; height: auto; }

/* Story 3: before-and-after flow */
.flow-compare { padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.flow-label { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.flow-label--after { color: var(--measure-text); }
.flow-step { padding: 6px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; background: var(--paper); border: 1px solid var(--line); }
.flow-step--slow { background: var(--assess-soft); border-color: #E8C79A; font-weight: 700; }
.flow-arrow { text-align: center; color: var(--muted); font-size: 12px; line-height: 1; }
.flow-total { margin: 10px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.flow-total--after { color: var(--measure-text); }

/* Things I've made */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.work-link { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.work-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border-top: 8px solid var(--ink); }
.work-img--assess { border-top-color: var(--assess); }
.work-img--build { object-position: top; }
.work-tag { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--ink); }
.work-tag--assess { color: var(--assess-text); }
.work-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.work-text { color: var(--muted); font-size: 17px; }

/* Testimonials, each with a large quote mark in a phase color */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.quote { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.35; }
.quote::before { content: "“" / ""; display: block; font-family: var(--font-display); font-size: 72px; line-height: 0.8; height: 36px; color: var(--assess); }
blockquote.quote:nth-of-type(2)::before { color: var(--design); }
blockquote.quote:nth-of-type(3)::before { color: var(--measure); }
.quote-source { margin-top: 12px; font-family: var(--font-body); font-size: 16px; color: var(--muted); }
.quote-feature { margin: 0; padding: 0 0 36px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.quote-feature blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; }
.quote-feature figcaption { font-size: 16px; color: var(--muted); }

/* About, with the career arc */
.about-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.about-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.arc { flex: 1 1 100%; margin-top: 8px; }
.arc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.arc li { position: relative; padding: 28px 24px 0 0; border-top: 6px solid var(--c); }
.arc li::before { content: ""; position: absolute; top: -13px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 5px solid var(--c); }
.arc-step--assess { --c: var(--assess); --c2: var(--assess-text); }
.arc-step--design { --c: var(--design); --c2: var(--design-text); }
.arc-step--measure { --c: var(--measure); --c2: var(--measure-text); }
.arc-yr { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--c2); }
.arc h3 { margin: 4px 0 6px; font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.arc p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.5; }
.arc-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 16px; color: var(--muted); }
@media (max-width: 720px) {
  .arc ol { grid-template-columns: 1fr; }
  .arc li { border-top: 0; border-left: 6px solid var(--c); padding: 0 0 28px 24px; margin-left: 7px; }
  .arc li::before { top: 0; left: -13px; }
}

/* Contact */
.contact-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }


/* ==========================================================================
   6. Portfolio page
   ========================================================================== */
.page-intro-inner { padding: 72px 32px 40px; gap: 18px; }
.page-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6vw, 60px); line-height: 1.08; letter-spacing: -1px; }
.page-lead { margin: 0; font-size: 20px; color: var(--muted); max-width: 760px; }

/* Jump links to each phase */
.jump-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.jump { text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 18px; border-radius: var(--pill); min-height: 44px; display: flex; align-items: center; border: 2px solid; }
.jump--assess { border-color: var(--assess); background: var(--assess-soft); color: var(--assess-text); }
.jump--design { border-color: var(--design); background: var(--design-soft); color: var(--design-text); }
.jump--build { border: 2px dashed var(--ink); background: var(--sand); color: var(--ink); }
.jump--measure { border-color: var(--measure); background: var(--measure-soft); color: var(--measure-text); }
.jump:hover { filter: brightness(0.96); }
.jump--assess:hover { color: var(--assess-text); }
.jump--design:hover { color: var(--design-text); }
.jump--build:hover { color: var(--ink); }
.jump--measure:hover { color: var(--measure-text); }

.portfolio-section { max-width: var(--wrap); margin: 0 auto; padding: 72px 32px 24px; display: flex; flex-direction: column; gap: 28px; }
.portfolio-section.band { padding-bottom: 72px; }

/* Decentralized MVP diagram (drawn in HTML instead of an image) */
.mvp-diagram { height: 210px; border-bottom: 1px solid var(--line); background: var(--paper); padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 700; text-align: center; }
.mvp-top { background: var(--ink); color: #FFFFFF; border-radius: 6px; padding: 8px 14px; width: 70%; }
.mvp-row { display: flex; gap: 12px; width: 90%; }
.mvp-mid { flex: 1; background: var(--design-text); color: #FFFFFF; border-radius: 6px; padding: 8px; }
.mvp-future { border: 2px dashed var(--faint); color: var(--muted); border-radius: 6px; padding: 6px 14px; width: 70%; }


/* ==========================================================================
   7. Case studies
   ========================================================================== */
.case-intro { max-width: 1000px; margin: 0 auto; padding: 48px 32px 56px; display: flex; flex-direction: column; gap: 20px; }
.case-eyebrow { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.case-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.5vw, 52px); line-height: 1.08; letter-spacing: -1px; }
.case-lead { margin: 0; font-size: 20px; color: var(--muted); }

/* Summary box: problem and role on the left, headline results on the right */
.summary { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.summary-main { flex: 2 1 420px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.summary-meta { display: flex; flex-wrap: wrap; gap: 24px; font-size: 16px; }
.summary-results { flex: 1 1 240px; padding: 24px; background: var(--ink); color: var(--surface); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.summary-number { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1.1; }
.summary-label { font-size: 15px; color: var(--on-dark-muted); }

/* Body, grouped into phase bands */
.case-body { max-width: 1000px; margin: 0 auto; padding: 0 32px 56px; display: flex; flex-direction: column; }
.case-body > .band { padding-block: 56px; display: flex; flex-direction: column; gap: 56px; }
.case-section { display: flex; flex-direction: column; gap: 18px; }
.reflect-section { margin-top: 56px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--ink); border-radius: var(--radius); }
.reflect-section[hidden] { display: none; }
.case-nav { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.case-nav-title { margin: 0; flex: 1 1 100%; font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.other-cases { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.other-case { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.other-case:hover { border-color: var(--ink); color: var(--ink); }
.other-meta { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.other-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.25; }
.other-cue { margin-top: auto; font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split-text { flex: 1.3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Figures */
.figure { flex: 1 1 380px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.figure--full { flex: 1 1 100%; }
.figure-img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.figcap { font-size: 16px; color: var(--muted); }
.figcap-title { font-family: var(--font-display); color: var(--ink); }
.panel { flex: 1 1 380px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.panel--18 { padding: 18px; gap: 10px; }
.panel--22 { padding: 22px; gap: 14px; }
.panel--24 { padding: 24px; gap: 16px; }
.panel-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.sample-img { width: 100%; height: 260px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; }
.sample-img--left { object-position: top left; }
.method-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: 16px; color: var(--muted); }

/* Results */
.result-tile { flex: 1 1 180px; background: var(--paper); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.result-number { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--measure-text); }
.callout-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.callout-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.15; }

/* Realm: setup bar chart */
.bar-label { display: flex; justify-content: space-between; font-size: 15px; }
.bar { height: 18px; border-radius: 4px; }
.bar--full { width: 100%; background: var(--ink); }
.bar--track { width: 100%; background: var(--sand); display: flex; }
.bar--assess { background: var(--assess-text); }

/* Realm: planning series and lifecycle map */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.4; }
.diagram-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
/* Frontline: learn, practice, sign-off strip */
.pf-row { display: flex; align-items: stretch; gap: 10px; }
.pf-step { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.pf-step--practice { flex: 1.5; background: var(--design-soft); border-color: var(--design); }
.pf-step--gate { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pf-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pf-step--practice .pf-label { color: var(--design-text); }
.pf-note { font-size: 14px; color: var(--muted); }
.pf-step--gate .pf-label, .pf-step--gate .pf-note { color: var(--on-dark-muted); }
.pf-arrow { align-self: center; color: var(--muted); font-size: 20px; line-height: 1; }
@media (max-width: 720px) {
  .pf-row { flex-direction: column; }
  .pf-arrow { transform: rotate(90deg); }
}
/* Frontline: the other programs, two with real samples */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.practice-flow { margin: 0; }
.program-grid > .panel { flex: none; }
.program-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--muted); }
.series { display: flex; flex-direction: column; gap: 8px; }
.series-step { display: flex; gap: 12px; align-items: flex-start; }
.series-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--assess-soft); color: var(--assess-text); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.team-asks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.team-ask { background: var(--paper); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.team-ask b { display: block; font-size: 13px; letter-spacing: 0.5px; color: var(--ink); }
.lifecycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lc-stage { display: flex; flex-direction: column; gap: 5px; }
.lc-head { background: var(--ink); color: #FFFFFF; border-radius: 6px; padding: 7px 9px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.lc-team { background: var(--design-soft); color: var(--design-text); border-radius: 5px; padding: 5px 9px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.lc-gap { border: 2px dashed #B42318; background: #FBEDEA; color: #8F1B12; border-radius: 6px; padding: 6px 9px; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
@media (max-width: 560px) {
  .lifecycle { grid-template-columns: 1fr; }
}

/* Realm: 16-day campaign strip */
.campaign { margin: 0; gap: 14px; }
.days { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.day { height: 26px; border-radius: 4px; background: var(--design-soft); color: var(--design-text); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.days-scale { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.choice { background: var(--paper); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.choice b { display: block; font-size: 13px; letter-spacing: 0.5px; color: var(--design-text); }
.stat-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 560px) {
  .day { font-size: 0; height: 18px; }
}

/* Measuring: four Kirkpatrick levels */
.kirk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kirk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; }
.kirk-level { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--measure-text); }
.kirk-num { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; }

/* Measuring: legacy dashboard */
.dash-tile { flex: 1 1 120px; background: var(--paper); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dash-tile--missing { background: none; border: 2px dashed var(--faint); padding: 12px; }
.dash-num { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.dash-num--missing { color: var(--muted); }
.dash-num--ok { color: var(--measure-text); }
.dash-level { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.dash-warning { margin: 0; font-size: 15px; font-weight: 700; }

/* Frontline to manager: simulation timeline */
.sim-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.sim-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; }
.sim-time { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--design-text); font-variant-numeric: tabular-nums; }

/* Standardizing: legacy process and comment audit */
.process-chain { gap: 8px; align-items: stretch; text-align: center; font-size: 16px; font-weight: 700; }
.process-chain-title { font-family: var(--font-display); font-size: 16px; margin-bottom: 6px; }
.flow-box { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.flow-arrow-sm { color: var(--muted); line-height: 1; }
.process-bottleneck { background: var(--ink); color: #FFFFFF; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; }
.process-bottleneck-note { font-weight: 400; font-size: 14px; color: var(--on-dark-muted); }
/* Return arrow from the last step back to the first: the chain repeats with every release */
.process-loop { position: relative; display: flex; flex-direction: column; gap: 8px; margin-left: 30px; }
.process-loop::before { content: ""; position: absolute; left: -22px; top: 22px; bottom: 22px; width: 22px; border: 2px solid var(--assess); border-right: 0; border-radius: 12px 0 0 12px; }
.process-loop::after { content: ""; position: absolute; left: -8px; top: 17px; border: 6px solid transparent; border-left: 8px solid var(--assess); border-right: 0; }
.process-loop-note { margin: 4px 0 0; font-size: 15px; color: var(--assess-text); }
.process-card { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.process-title { margin: 0; font-family: var(--font-display); font-size: 18px; }
.audit-row { display: flex; justify-content: space-between; align-items: baseline; }
.audit-row--top { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.audit-row--bottom { border-top: 1px solid var(--line); padding-top: 10px; }
.audit-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; }
.audit-num--design { color: var(--design-text); }
.audit-bar { height: 10px; background: var(--sand); border-radius: 5px; display: flex; overflow: hidden; }
.audit-bar-fill { min-width: 3px; background: var(--design-text); }


/* Realm: time to value on the 20-day strip */
.chart-fig { margin: 0; }
.stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .stat-grid--3 { grid-template-columns: 1fr; } }
.ttv-chart { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); column-gap: 4px; row-gap: 8px; margin-top: 6px; }
.ttv-arrow { grid-row: 1; grid-column: 4 / 19; position: relative; height: 32px; }
.ttv-gap { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-weight: 700; color: var(--measure-text); font-size: 15px; }
.ttv-pin { position: absolute; bottom: -8px; width: 12px; height: 12px; border-radius: 50%; transform: translateX(-50%); }
.ttv-pin::after { content: ""; position: absolute; left: 5px; top: 12px; width: 2px; height: 8px; background: inherit; }
.ttv-pin--now { left: calc((100% - 56px) / 30); background: var(--measure); }
.ttv-pin--before { left: calc(100% - (100% - 56px) / 30); background: var(--before); }
.ttv-line { position: absolute; bottom: -3px; height: 2.5px; background: var(--measure); left: calc((100% - 56px) / 30 + 12px); right: calc((100% - 56px) / 30 + 10px); }
.ttv-line::before { content: ""; position: absolute; left: -2px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right: 9px solid var(--measure); border-left: 0; }
.ttv-day { grid-row: 2; height: 28px; border-radius: 4px; background: var(--sand); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.ttv-day--after { background: var(--surface); }
.ttv-day--now { background: var(--measure); border-color: var(--measure); color: var(--surface); }
.ttv-day--before { background: var(--surface); border: 2px dashed var(--before); color: var(--ink); }
.ttv-now { grid-row: 3; grid-column: 2 / 9; font-weight: 700; font-size: 15px; }
.ttv-before { grid-row: 3; grid-column: 9 / -1; justify-self: end; text-align: right; font-size: 15px; color: var(--muted); }
.ttv-bracket { grid-row: 4; grid-column: 1 / 17; height: 8px; border: 1.5px solid var(--before); border-top: 0; }
.ttv-bracket-label { grid-row: 5; grid-column: 1 / 17; text-align: center; font-size: 14px; color: var(--muted); margin-top: -4px; }
@media (max-width: 560px) {
  .ttv-chart { column-gap: 2px; }
  .ttv-pin--now { left: calc((100% - 28px) / 30); }
  .ttv-pin--before { left: calc(100% - (100% - 28px) / 30); }
  .ttv-line { left: calc((100% - 28px) / 30 + 12px); right: calc((100% - 28px) / 30 + 10px); }
  .ttv-day { height: 22px; font-size: 0; border-radius: 3px; }
  .ttv-day--before { border-width: 1.5px; }
  .ttv-now { grid-column: 1 / 9; }
  .ttv-now, .ttv-before { font-size: 14px; }
}

/* Realm: tasks-of-six dots */
.dot-row { display: flex; gap: 6px; margin: 2px 0 8px; }
.dot-row i { width: 16px; height: 16px; border-radius: 50%; background: var(--measure); }
.dot-row i.off { background: transparent; border: 2px solid var(--before); }

/* Measuring: before-and-after dumbbells */
.db-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.db-legend span { display: inline-flex; align-items: center; gap: 6px; }
.db-key { width: 12px; height: 12px; border-radius: 50%; background: var(--before); }
.db-key--after { background: var(--measure); }
.db-row { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr) 140px; align-items: center; column-gap: 16px; min-height: 40px; }
.db-label { font-size: 15px; }
.db-value { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-track { position: relative; height: 28px; background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100%; border-right: 1px solid var(--line); }
.db-link { position: absolute; top: 50%; height: 2px; background: var(--before); left: var(--a); width: calc(var(--b) - var(--a)); }
.db-dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--before); border: 2px solid var(--surface); box-sizing: content-box; }
.db-dot--after { background: var(--measure); }
.db-range { position: absolute; top: 50%; height: 12px; border-radius: 6px; transform: translateY(-50%); background: var(--before); margin-left: -6px; padding-right: 12px; }
.db-range--after { background: var(--measure); }
.db-axis { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr) 140px; column-gap: 16px; font-size: 13px; color: var(--muted); }
.db-ticks { position: relative; height: 18px; grid-column: 2; }
.db-ticks span { position: absolute; transform: translateX(-50%); }
.db-sub { margin: 12px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
@media (max-width: 900px) {
  .db-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding-top: 6px; }
  .db-label { grid-column: 1; grid-row: 1; }
  .db-value { grid-column: 2; grid-row: 1; }
  .db-track { grid-column: 1 / -1; grid-row: 2; }
  .db-axis { grid-template-columns: 1fr; }
  .db-ticks { grid-column: 1; }
}

/* Standardizing: old value crossed out beside the new one */
.stat-old { font-size: 0.7em; color: var(--muted); text-decoration-thickness: 2px; margin-right: 10px; font-weight: 400; }

/* ==========================================================================
   8. Scripts
   ========================================================================== */

/* ---------- Contact form (js/contact.js) ---------- */
.contact-form { flex: 1.2 1 360px; display: flex; flex-direction: column; gap: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 700; margin-top: 8px; }
.field-input { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); padding: 12px 14px; border-radius: 12px; border: 0; min-height: 48px; width: 100%; }
.field-input:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
.btn-submit { align-self: flex-start; margin-top: 14px; background: var(--highlight); color: var(--ink); font: inherit; font-weight: 700; border: 0; padding: 14px 28px; border-radius: var(--pill); min-height: 48px; cursor: pointer; }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 6px 0 0; min-height: 1.5em; color: var(--on-dark-muted); }
.form-status.is-success { color: var(--highlight); font-weight: 700; }
.form-status.is-error { color: #FFB4A8; font-weight: 700; }

/* ---------- Image viewer (js/lightbox.js) ---------- */
img.zoomable, a[href$=".jpg"], a[href$=".png"] { cursor: zoom-in; }
html.lightbox-open { overflow: hidden; }
.lightbox { border: 0; padding: 0; margin: auto; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 17, 15, 0.88); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-img { display: block; max-width: min(1200px, 92vw); max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #FFFFFF; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.lightbox-caption { color: #F3EADC; font-size: 15px; line-height: 1.5; max-width: 70ch; text-align: center; }
.lightbox-caption a, .lightbox-caption .figcap-title { color: #FFFFFF; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #FFFFFF; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.lightbox-close:hover { background: var(--highlight); }
.lightbox-close:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; }


/* ==========================================================================
   9. Quieter pass (Nov 2026)
   Takes out the patterns that read as AI-made and adds the small details
   AI tends to skip. Everything here overrides the sections above, so the
   whole block can be removed to go back.
   ========================================================================== */

/* ---------- Shapes: one card style, smaller corners, fewer shadows ---------- */
:root { --radius: 6px; }

/* Phase labels: colored words, not pills */
.pill-set, .pill-row { gap: 0; font-size: 14px; letter-spacing: 0; }
.pill--assess, .pill--design, .pill--measure,
.pill--assess-lg, .pill--design-lg, .pill--measure-lg,
.tag--assess, .tag--design, .tag--measure, .tag--build {
  background: none; box-shadow: none; padding: 0; border-radius: 0;
  font-size: 14px; letter-spacing: 0; font-weight: 700;
}
.pill-set > * + *::before, .pill-row > * + *::before { content: "·"; margin: 0 8px; color: var(--faint); font-weight: 400; }
.tag--build { color: var(--ink); border: 0; }

/* Labels in sentence case, normal spacing */
.eyebrow, .proof-kicker, .other-meta, .pf-label, .kirk-level, .dash-level { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* Portfolio jump links: plain links in the phase color */
.jump-links { gap: 8px 24px; }
.jump, .jump--assess, .jump--design, .jump--measure, .jump--build {
  border: 0; background: none; padding: 0; min-height: 44px; border-radius: 0;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.jump--build { text-decoration-style: dotted; }
.jump:hover { filter: none; text-decoration-thickness: 3px; }

/* Home hero: straight photo, plain caption, facts on one line */
.hero-meta-line { margin: -8px 0 0; font-size: 15px; color: var(--muted); }
/* The tilted, framed photo stays: it is the one personal touch in the hero, and the white
   frame hides the studio backdrop. To try it straight, swap in the commented line below. */
.headshot { border-radius: 4px; box-shadow: 0 10px 28px rgba(36, 32, 29, 0.16); }
/* .headshot { transform: none; border: 0; border-radius: 4px; box-shadow: none; } */
.hand-note { transform: none; font-family: var(--font-body); font-style: normal; font-size: 15px; text-align: center; max-width: 380px; margin-top: 18px; }

/* Story screenshots: a thin frame, no floating shadow */
.story-frame { border-radius: var(--radius); padding: 8px; box-shadow: none; }
.story-frame > img { border-radius: 3px; }

/* Portfolio rows: no boxed card, no colored edge. The phase band already says which phase. */
.proof-rows { gap: 0; }
.proof-row--assess, .proof-row--design, .proof-row--measure, .proof-row--build {
  background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 32px 0;
}
.proof-row--assess:nth-child(even) .proof-shot, .proof-row--design:nth-child(even) .proof-shot, .proof-row--measure:nth-child(even) .proof-shot { border-left: 0; }
.proof-body { padding: 0; }
.proof-shot { background: none; padding: 0; border-right: 0 !important; border-bottom: 0 !important; }
.proof-row--assess, .proof-row--design, .proof-row--measure, .proof-row--build { column-gap: 40px; }
@media (max-width: 900px) { .proof-row--assess, .proof-row--design, .proof-row--measure, .proof-row--build { row-gap: 20px; } }
.proof-shot img { border-radius: 3px; box-shadow: 0 1px 2px rgba(36, 32, 29, 0.08); }

/* Case studies: summary results read as text, not a black panel */
.summary-results { background: var(--sand); color: var(--ink); border-left: 1px solid var(--line); }
.summary-label { color: var(--muted); }
.reflect-section { border-left: 1px solid var(--line); }
.drop-panel, .menu-panel { box-shadow: 0 8px 24px rgba(36, 32, 29, 0.12); }

/* ---------- Details AI skips ---------- */

/* Headlines break into even lines; paragraphs avoid a lonely last word */
h1, h2, h3, .hero-title, .story-title, .proof-claim, .band-quote { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* Numbers line up and don't jump when they change */
.stat-number, .story-stat, .summary-number, .proof-number, .kirk-num, .result-number, .db-value { font-variant-numeric: tabular-nums lining-nums; }

/* Opening quote marks hang outside the text edge, the way print does it */
.band-quote, .quote-feature blockquote { text-indent: -0.42em; hanging-punctuation: first; }
@supports (hanging-punctuation: first) { .band-quote, .quote-feature blockquote { text-indent: 0; } }

/* Links: one underline style everywhere */
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Buttons respond when pressed */
.btn-dark, .btn-outline, .btn-highlight, .nav-cta, .more-toggle, .menu-button, button[type="submit"] { transition: transform 120ms ease, background-color 150ms ease, color 150ms ease; }
.btn-dark:active, .btn-outline:active, .btn-highlight:active, .nav-cta:active, .more-toggle:active, .menu-button:active, button[type="submit"]:active { transform: scale(0.97); }

/* Menus open with a short fade instead of popping in */
@keyframes quiet-in { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes quiet-in-right { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav-drop[open] .drop-panel { animation: quiet-in 140ms ease-out; }
.menu[open] .menu-panel { animation: quiet-in-right 140ms ease-out; }

/* Image viewer fades up */
@keyframes viewer-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.lightbox[open] { animation: viewer-in 160ms ease-out; }
.lightbox::backdrop { animation: quiet-fade 160ms ease-out; }
@keyframes quiet-fade { from { opacity: 0; } to { opacity: 1; } }

/* Contact form: sending state and a confirmation note (js/contact.js) */
button[type="submit"][aria-busy="true"] { opacity: 0.7; cursor: progress; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; width: min(420px, calc(100vw - 32px));
  transform: translate(-50%, 0); padding: 14px 18px; border-radius: 8px;
  background: var(--ink); color: #FFFFFF; font-size: 16px; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(36, 32, 29, 0.25);
  animation: toast-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast strong { color: var(--highlight); }
.toast.is-leaving { animation: toast-out 180ms ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 8px); } }

/* Case study label: name and phases share one line */
.case-labels { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; }
.case-labels .case-eyebrow { margin: 0; font-size: 14px; letter-spacing: 0; }

/* Former manager's one-line reference, under the hero buttons */
.hero-quote { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); max-width: 460px; }
.hero-quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.3; text-wrap: balance; }
.hero-quote figcaption { margin-top: 6px; font-size: 15px; color: var(--muted); }
