/* One layout system. Public editorial pages and the browser-only lab. */
:root {
  --ink: #1b2023;
  --muted: #616969;
  --paper: #f8f6f1;
  --surface: #fffefa;
  --line: #dedfd8;
  --night: #171c1f;
  --light-text: #f7f3e9;
  --light-muted: #c1c7c5;
  --accent: #8a3a36;
  --accent-light: #dda49a;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 115px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; vertical-align: middle; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p { overflow-wrap: break-word; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #39788c; outline-offset: 4px; }
main:focus { outline: none; }
::selection { background: #d9c4a0; color: #171c1f; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 16px; z-index: 120; padding: 12px 18px; background: white; color: #171c1f; border-radius: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 19px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: white; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; transition: background .16s, border-color .16s; }
.button:hover { background: #303a3e; }
.button--paper { background: var(--paper); border-color: var(--paper); color: var(--night); }
.button--paper:hover { background: #e6dfd1; border-color: #e6dfd1; }
.button--accent { background: var(--accent); border-color: var(--accent); }
.button--accent:hover { background: #692c29; border-color: #692c29; }
.button--secondary { color: var(--ink); background: transparent; border-color: #b8bfbc; }
.button--secondary:hover { background: #ecefe9; }
.button--quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button--quiet:hover { background: #eeeee8; color: var(--ink); }
.arrow-link, .text-action { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.arrow-link:hover, .text-action:hover { text-decoration: underline; text-underline-offset: 5px; }
.eyebrow, .hero-eyebrow, .workspace-kicker { display: block; font-size: 11px; font-weight: 650; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin-bottom: 15px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }

/* Public frame */
.public-shell { --section-space: clamp(56px, 6vw, 88px); background: var(--paper); }
.public-shell.accent-steel { --accent: #365e72; --accent-light: #98bcd1; }
.public-shell.accent-forest { --accent: #365c47; --accent-light: #a6c8b3; }
.public-shell.density-compact { --section-space: clamp(40px, 4.5vw, 64px); }
.public-container, .public-header__inner { width: min(calc(100% - clamp(40px, 8vw, 96px)), 1140px); margin-inline: auto; }
.public-header { position: relative; z-index: 30; color: var(--light-text); background: var(--night); border-bottom: 1px solid #ffffff1a; }
.public-header.is-sticky { position: sticky; top: 0; }
.public-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 100px; padding-block: 20px; }
.wordmark { display: inline-flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.wordmark__name { font: 500 29px/1.1 var(--serif); letter-spacing: -.04em; }
.wordmark__name i { color: var(--accent-light); font-style: normal; }
.wordmark__descriptor { color: #b3bdbb; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.public-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 27px; }
.public-nav a { padding: 9px 0; font-size: 13px; color: #c5ccca; border-bottom: 1px solid transparent; }
.public-nav a:hover, .public-nav a.is-active { color: #fffaf0; border-color: var(--accent-light); }
.header-compact .public-header__inner { min-height: 76px; padding-block: 16px; }
.header-compact .wordmark__descriptor { display: none; }
.mobile-menu-button, .mobile-menu { display: none; }
.hero { color: var(--light-text); background: var(--night); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 82px); align-items: center; padding-block: 64px 72px; }
.hero-eyebrow { display: flex; align-items: center; gap: 9px; color: #c8cfca; margin-bottom: 22px; font-size: 10px; }
.hero-eyebrow > span { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--accent-light); }
.hero h1 { max-width: 680px; font: 400 clamp(48px, 5.3vw, 74px)/1.055 var(--serif); letter-spacing: -.047em; }
.hero-intro { margin-top: 25px; max-width: 570px; color: #c4ccc8; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 25px; margin-top: 29px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 20px 35px; margin-top: 38px; padding-top: 23px; border-top: 1px solid #ffffff26; }
.hero-proof > div { display: flex; flex-direction: column; gap: 4px; }
.hero-proof strong { font: 400 23px/1.1 var(--serif); }
.hero-proof span { color: #acb8b3; font-size: 11px; }
.hero-portrait { width: 100%; max-width: 365px; justify-self: end; }
.hero-portrait__image { overflow: hidden; border-radius: 9px; background: #4d453b; }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; object-position: center 35%; }
.hero-portrait figcaption { padding: 19px 0 0; }
.hero-portrait figcaption > span { color: #9fabaa; font: 10px/1.6 var(--mono); }
.hero-portrait figcaption p { max-width: 290px; margin-top: 8px; font: italic 19px/1.4 var(--serif); color: #e0d6c4; }
.public-section { padding-block: var(--section-space); }
.public-section--paper { background: var(--paper); }
.public-section--ink { --line: #ffffff2b; --muted: #bdc5c1; color: var(--light-text); background: var(--night); }
.public-section--ink .eyebrow { color: var(--accent-light); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 50px; margin-bottom: 38px; }
.section-head > div { max-width: 720px; min-width: 0; }
.section-head h2, .display-title { font: 400 clamp(32px, 3.3vw, 46px)/1.15 var(--serif); letter-spacing: -.035em; }
.section-head > a { flex-shrink: 0; }
.home-practice { padding-bottom: 0; }
.practice-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-block: 28px 50px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.practice-list article > span { color: var(--accent); font: 11px/1.6 var(--mono); }
.practice-list h3 { margin: 12px 0; font: 400 25px/1.2 var(--serif); letter-spacing: -.02em; }
.practice-list p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.project-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 154px; gap: 32px; align-items: center; padding-block: 31px; border-top: 1px solid var(--line); }
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-row__title > span { color: var(--muted); font: 10px/1.6 var(--mono); }
.project-row h3 { margin-top: 10px; font: 400 27px/1.17 var(--serif); letter-spacing: -.025em; }
.project-row > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.project-row__end { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.project-status { color: var(--muted); font: 10px/1.6 var(--mono); }
.project-row__end > a, .public-resource > a { display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #b7bdb8; border-radius: 50%; transition: background .16s; }
.project-row__end > a:hover, .public-resource > a:hover { background: #e4e7de; border-color: var(--ink); }
.playbook-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.playbook-card { border-top: 1px solid #ffffff40; padding-top: 24px; }
.playbook-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #b6c1ba; font: 10px/1.6 var(--mono); }
.playbook-card h3 { margin-top: 20px; font: 400 32px/1.2 var(--serif); letter-spacing: -.025em; }
.playbook-card > p { max-width: 460px; margin-top: 16px; color: var(--light-muted); font-size: 14px; line-height: 1.8; }
.playbook-card ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 25px 0 0; padding: 0; }
.playbook-card li { padding: 6px 10px; color: #cbd3cd; border: 1px solid #ffffff26; border-radius: 4px; font-size: 11px; }
.home-now__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; }
.home-now__lead > p { margin-top: 20px; max-width: 380px; font-size: 14px; color: var(--muted); }
.home-now__lead > a { margin-top: 21px; }
.current-writing article { padding-block: 22px; border-top: 1px solid var(--line); }
.current-writing article:last-child { border-bottom: 1px solid var(--line); }
.current-writing article > div { display: flex; gap: 15px; justify-content: space-between; color: var(--muted); font: 10px/1.6 var(--mono); }
.current-writing small { font: inherit; }
.current-writing h3 { margin-top: 13px; font: 400 25px/1.2 var(--serif); }
.page-masthead { padding-block: 65px 64px; background: #eeede5; border-bottom: 1px solid var(--line); }
.page-masthead__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: end; gap: 36px 80px; }
.page-masthead h1 { max-width: 720px; font: 400 clamp(42px, 4.8vw, 64px)/1.07 var(--serif); letter-spacing: -.045em; }
.page-masthead__grid > p { color: var(--muted); font-size: 15px; line-height: 1.85; padding-bottom: 3px; }
.case-study { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 70px; padding-block: 38px 45px; border-top: 1px solid var(--line); scroll-margin-top: 125px; }
.case-study:first-child { padding-top: 0; border-top: 0; }
.case-study__meta, .case-study__title, .case-study__foot { grid-column: 1 / -1; }
.case-study__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font: 11px/1.6 var(--mono); }
.case-study__meta strong { font: inherit; color: var(--accent); }
.case-study h2 { font: 400 clamp(29px, 3vw, 40px)/1.15 var(--serif); letter-spacing: -.025em; }
.case-study__title > p { margin-top: 16px; max-width: 720px; color: var(--muted); font-size: 15px; }
.case-study__question { padding: 23px 25px; background: #eceee5; border-left: 2px solid #97a08e; border-radius: 0 5px 5px 0; }
.case-study__question > span { display: block; color: #506047; font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.case-study__question p { font: 400 24px/1.35 var(--serif); }
.case-study > ol { padding-left: 20px; margin: 0; align-self: center; font-size: 14px; color: var(--muted); }
.case-study > ol li { padding: 6px 0 6px 8px; }
.case-study > ol li::marker { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.case-study__foot { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.case-study__foot p { max-width: 590px; font-size: 12px; color: var(--muted); }
.case-study__foot .tag-list { justify-content: flex-end; max-width: 380px; }
.project-principles { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 70px; }
.principle-list p { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 20px; padding-block: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.principle-list strong { font-weight: 600; color: #eef0e5; }
.principle-list p > span { color: var(--light-muted); }
.writing-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 85px; }
.writing-empty h2 { max-width: 410px; font: 400 34px/1.2 var(--serif); letter-spacing: -.025em; }
.writing-empty > p { margin-top: 23px; color: var(--muted); font-size: 15px; }
.research-notes article { padding: 25px 0; border-top: 1px solid var(--line); }
.research-notes article > div { display: flex; justify-content: space-between; gap: 16px; font: 11px/1.6 var(--mono); color: var(--muted); }
.research-notes small { font: inherit; }
.research-notes h3 { margin: 14px 0; font: 400 27px/1.25 var(--serif); }
.research-notes p { font-size: 11px; color: var(--muted); }
.playbook-note { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 65px; }
.playbook-note p { font: 400 26px/1.5 var(--serif); }
.public-resource { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 44px; align-items: center; gap: 38px; padding-block: 32px; border-top: 1px solid var(--line); }
.public-resource:first-child { padding-top: 0; border-top: 0; }
.public-resource small { color: var(--muted); font: 10px/1.6 var(--mono); }
.public-resource h2 { margin: 11px 0 15px; font: 400 29px/1.2 var(--serif); letter-spacing: -.02em; }
.public-resource > p { font-size: 15px; color: var(--muted); }
.resource-roadmap { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding-top: 30px; margin-top: 10px; border-top: 1px solid var(--line); }
.resource-roadmap > span { color: var(--accent); font: 11px/1.6 var(--mono); }
.resource-roadmap p { font-size: 14px; color: var(--muted); max-width: 660px; }
.about-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.about-layout--profile { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 90px; }
.about-portrait img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; object-position: center 30%; border-radius: 8px; }
.about-portrait figcaption { font: 11px/1.6 var(--mono); color: var(--muted); margin-top: 16px; }
.about-story .about-lead { font: 400 clamp(24px, 2.4vw, 32px)/1.4 var(--serif); color: var(--ink); }
.about-story > p { margin-bottom: 23px; font-size: 15px; color: var(--muted); line-height: 1.85; }
.credentials > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 9px 23px; padding-block: 22px; border-top: 1px solid var(--line); }
.credentials > div > span { font: 10px/1.6 var(--mono); color: #aebcb2; padding-top: 4px; }
.credentials strong { font: 400 23px/1.3 var(--serif); }
.credentials small { grid-column: 2; color: #b4beb6; font-size: 12px; }
.public-footer { padding: 48px 0 74px; border-top: 1px solid var(--line); background: #eeede5; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, .8fr); gap: 45px; }
.footer-mark { font: 400 31px/1.1 var(--serif); letter-spacing: -.03em; }
.footer-mark span { color: var(--accent); }
.footer-grid p { max-width: 290px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 21px; align-content: start; font-size: 12px; }
.footer-nav a { padding-block: 4px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-index { display: flex; flex-direction: column; gap: 9px; color: var(--muted); font: 10px/1.6 var(--mono); text-align: right; }
.footer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 30px; padding-top: 26px; margin-top: 31px; border-top: 1px solid #d4d6cb; }
.footer-socials > span { color: var(--muted); font: 10px/1.6 var(--mono); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 600; }
.social-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.social-links .icon { width: 16px; height: 16px; flex-basis: 16px; }
.social-links .icon:last-child:not(:first-child) { width: 11px; height: 11px; flex-basis: 11px; opacity: .6; }
.not-found { padding-block: 50px 100px; }
.draft-ribbon { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 22px; padding: 9px 20px; background: #e5cf9f; color: #3d3423; font-size: 12px; }
.draft-ribbon button { background: transparent; padding: 4px 8px; border: 1px solid #887955; border-radius: 3px; font-size: 12px; }

/* Lab frame */
.lab-shell { --accent: #48604c; --line: #dde2db; --muted: #65716a; min-height: 100dvh; display: grid; grid-template-columns: 232px minmax(0, 1fr); background: #f4f5f0; font-size: 14px; }
.lab-sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; padding: 29px 17px 20px; background: #1d2926; color: #d5dfd5; z-index: 60; }
.lab-wordmark { display: flex; flex-direction: column; padding: 0 17px 26px; }
.lab-wordmark strong { font: 400 34px/1.1 var(--serif); color: #f1efe1; letter-spacing: -.04em; }
.lab-wordmark strong > span { color: #d1b28a; }
.lab-wordmark small { color: #9eafa3; font: 10px/1.6 var(--mono); margin-top: 7px; }
.lab-nav-group { margin-bottom: 15px; }
.lab-nav-group > span { display: block; margin: 0 12px 5px; color: #97aca0; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.lab-nav-group button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 39px; padding: 8px 12px; border: 0; background: transparent; border-radius: 5px; text-align: left; font-size: 12px; color: #c1d0c4; }
.lab-nav-group button:hover { background: #ffffff0b; color: white; }
.lab-nav-group button.is-active { background: #e7ebdf; color: #24382b; font-weight: 600; }
.lab-nav-group .icon { width: 17px; height: 17px; flex-basis: 17px; }
.lab-owner { display: flex; align-items: center; gap: 10px; padding: 20px 10px 0; margin-top: auto; border-top: 1px solid #ffffff1c; }
.owner-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.lab-owner > div { display: flex; flex-direction: column; gap: 3px; }
.lab-owner strong { font-size: 11px; font-weight: 600; }
.lab-owner small { font-size: 9px; color: #a2b4a8; }
.lab-body { min-width: 0; }
.lab-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 34px; min-height: 92px; border-bottom: 1px solid var(--line); background: #fcfcf7; }
.lab-topbar > div { display: flex; flex-direction: column; gap: 2px; }
.lab-breadcrumb { font-size: 10px; color: var(--muted); }
.lab-topbar strong { font-size: 15px; font-weight: 600; }
.global-search { display: flex; align-items: center; gap: 10px; width: min(45%, 370px); color: #839085; }
.global-search input { min-width: 0; width: 100%; background: transparent; border: 0; padding: 8px 0; font-size: 12px; color: var(--ink); }
.global-search kbd { padding: 0 5px; border: 1px solid var(--line); border-radius: 3px; font: 10px/1.7 var(--mono); }
.lab-prototype-note { background: #eaece3; padding: 9px 34px; color: #606b5b; font-size: 10px; }
.lab-main { padding: 35px 34px 90px; }
.workspace-page { max-width: 1200px; margin-inline: auto; }
.workspace-page--wide { max-width: 1500px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.workspace-heading > div { max-width: 660px; }
.workspace-kicker { color: #65765c; font-size: 9px; margin-bottom: 8px; }
.workspace-heading h1 { font: 400 36px/1.15 var(--serif); letter-spacing: -.025em; }
.workspace-heading p { color: var(--muted); font-size: 12px; margin-top: 10px; line-height: 1.8; }
.workspace-heading > .button { flex-shrink: 0; font-size: 12px; }
.lab-flow { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); align-items: start; gap: 16px; padding: 23px 0; margin-bottom: 28px; border-block: 1px solid var(--line); }
.lab-flow > div > span { font-size: 12px; font-weight: 600; }
.lab-flow p { color: var(--muted); font-size: 11px; margin-top: 8px; line-height: 1.8; }
.lab-flow > i { color: #9ba993; padding-top: 3px; }
.lab-flow .icon { width: 14px; height: 14px; }
.signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.signal-card { padding: 21px; border: 1px solid var(--line); border-radius: 7px; background: #fdfdf8; display: flex; flex-direction: column; }
.signal-card > span { font-size: 10px; color: var(--muted); }
.signal-card strong { font: 400 32px/1.2 var(--serif); margin: 9px 0 10px; }
.signal-card small { font-size: 10px; color: var(--muted); }
.signal-card--attention { background: #eeede0; border-color: #dbdbbf; }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.workspace-panel { background: #fdfdf8; border: 1px solid var(--line); border-radius: 7px; padding: 23px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.panel-heading > div > span { color: var(--muted); font: 9px/1.6 var(--mono); }
.panel-heading h2 { margin-top: 6px; font: 400 24px/1.2 var(--serif); }
.panel-heading button { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; padding: 8px 0; font-size: 10px; white-space: nowrap; }
.work-queue article { display: grid; grid-template-columns: 25px minmax(0, 1fr) 18px; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.queue-index { color: #9ba48f; font: 10px/1.6 var(--mono); padding-top: 3px; }
.work-queue small { color: var(--muted); font-size: 9px; }
.work-queue h3 { margin: 7px 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.work-queue p { color: var(--muted); font-size: 11px; line-height: 1.75; }
.queue-arrow { color: #899582; }
.recent-sources > button { display: flex; flex-direction: column; width: 100%; gap: 6px; padding: 16px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.recent-sources > button:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.source-type { color: var(--muted); font: 9px/1.6 var(--mono); }
.recent-sources strong { font-size: 12px; font-weight: 600; }
.recent-sources small { color: var(--muted); font-size: 10px; }
.research-strip > div:last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.research-strip article { padding-top: 18px; border-top: 1px solid var(--line); }
.research-strip article > span { color: #67775c; font: 10px/1.6 var(--mono); }
.research-strip h3 { font-size: 13px; font-weight: 600; margin: 12px 0; line-height: 1.5; }
.research-strip small { color: var(--muted); font-size: 10px; }
.mobile-lab-menu, .mobile-lab-nav, .lab-drawer-close, .lab-backdrop { display: none; }

/* Library and capture */
.library-toolbar { margin-bottom: 22px; }
.library-search { display: flex; align-items: center; gap: 12px; padding: 10px 15px; border: 1px solid #c9d1c4; background: #fdfdf8; border-radius: 5px; color: #7f8e7b; }
.library-search input { min-width: 0; width: 100%; padding: 3px 0; background: transparent; border: 0; color: var(--ink); font-size: 13px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.filter-list button { border: 1px solid transparent; border-radius: 5px; padding: 8px 12px; background: transparent; font-size: 11px; color: var(--muted); }
.filter-list button:hover { background: #e8ece3; }
.filter-list button.is-active { border-color: #bac8b5; background: #e6ebdd; color: #3e5337; }
.resource-browser { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.resource-browser.has-selection { grid-template-columns: minmax(0, 1fr) 310px; }
.resource-table-wrap { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fdfdf8; overflow: hidden; }
.resource-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.resource-table th { padding: 12px 13px; background: #eaeee5; text-align: left; color: #5e6f57; font-size: 9px; font-weight: 600; }
.resource-table th:first-child { width: 30%; }
.resource-table th:nth-child(2) { width: 15%; }
.resource-table th:nth-child(3) { width: 23%; }
.resource-table th:nth-child(4), .resource-table th:nth-child(5) { width: 16%; }
.resource-table td { padding: 17px 13px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); overflow-wrap: anywhere; }
.resource-table td small { display: block; margin-top: 6px; font-size: 9px; }
.resource-table tr.is-selected { background: #edf1e5; }
.resource-title { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 0; width: 100%; border: 0; background: transparent; text-align: left; color: var(--ink); font-size: 11px; line-height: 1.6; }
.resource-title strong { font-weight: 600; }
.resource-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.resource-title .icon { width: 14px; height: 14px; flex-basis: 14px; margin-top: 3px; }
.state-chip { display: inline-block; max-width: 100%; padding: 4px 7px; border-radius: 4px; font-size: 9px; font-weight: 600; line-height: 1.5; overflow-wrap: normal; }
.tone-good { color: #3f603c; background: #e7efdf; }
.tone-warn { color: #77602f; background: #f2ead5; }
.tone-neutral { color: #647060; background: #e8ece3; }
.resource-detail { padding: 23px; background: #fffef8; border: 1px solid #cbd4c4; border-radius: 7px; }
.resource-detail--empty { display: none; }
.resource-detail__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; font: 9px/1.6 var(--mono); color: var(--muted); }
.resource-detail__head button { display: grid; place-items: center; background: transparent; border: 0; width: 36px; height: 36px; }
.resource-detail h2 { font: 400 27px/1.2 var(--serif); margin-bottom: 19px; }
.resource-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.resource-detail dl > div { padding-block: 14px; border-top: 1px solid var(--line); }
.resource-detail dt { color: #6b7b61; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; }
.resource-detail dd { font-size: 12px; color: #525e4b; overflow-wrap: anywhere; white-space: pre-line; }
.resource-detail__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.resource-detail__actions .button { font-size: 11px; min-height: 42px; padding-inline: 12px; }
.source-warning { font-size: 11px; padding: 10px; background: #f4ecd7; color: #735e30; border-radius: 4px; }
.empty-cell { text-align: center; padding: 40px 20px !important; }
.security-strip, .manager-explainer { display: flex; flex-direction: column; gap: 7px; padding: 19px 22px; margin-bottom: 25px; border: 1px solid #dedbc2; background: #f0efe2; border-radius: 6px; color: #636044; font-size: 12px; line-height: 1.8; }
.security-strip strong, .manager-explainer strong { font-size: 12px; color: #595c42; }
.input-sheet { display: grid; grid-template-columns: 170px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fdfdf8; }
.input-sheet__index { padding: 25px 20px; background: #eaeee4; }
.input-sheet__index > span { display: block; color: #6d7c64; font: 9px/1.6 var(--mono); }
.input-sheet__index strong { display: block; font: 400 26px/1.2 var(--serif); margin-top: 10px; }
.input-sheet__index p { color: #73816a; font-size: 10px; margin-top: 22px; }
.input-sheet__fields { padding: 26px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 12px; }
.field--wide { grid-column: 1 / -1; }
.field > span:first-child { font-weight: 600; color: #485541; }
.field input:not([type="checkbox"]), .field textarea, .field select, .nav-editor input:not([type="checkbox"]) { width: 100%; min-width: 0; background: #fffef9; color: #273428; border: 1px solid #c8d1c1; border-radius: 4px; padding: 11px 12px; font-size: 13px; line-height: 1.6; }
.field textarea { min-height: 110px; resize: vertical; }
.field small { font-size: 10px; color: #75826b; line-height: 1.75; }
input::placeholder, textarea::placeholder { color: #889381; opacity: 1; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: #48604c; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.form-actions .button { font-size: 12px; }

/* Other lab views */
.project-board, .lab-playbooks, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
.project-board article, .lab-playbooks article, .settings-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 7px; background: #fdfdf8; }
.project-board article > div:first-child, .lab-playbook__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; color: #7c8a72; font: 9px/1.6 var(--mono); }
.project-board article > small { color: var(--muted); font-size: 10px; }
.project-board h2, .lab-playbooks h2 { font: 400 28px/1.2 var(--serif); margin: 10px 0 15px; }
.project-board article > p, .lab-playbooks article > p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.project-board .tag-list { margin-block: 20px; }
.project-board button { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 10px 0; font-size: 11px; color: #506946; }
.lab-playbooks ol { list-style: none; padding: 0; margin: 25px 0 0; }
.lab-playbooks li { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); padding: 13px 0; font-size: 12px; }
.lab-playbooks li > span { color: #8a9980; font: 10px/1.6 var(--mono); }
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pipeline > section { min-width: 0; border: 1px solid var(--line); background: #ecefe5; border-radius: 6px; padding: 16px; }
.pipeline__head { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.pipeline__head small { font: 10px/1.6 var(--mono); color: #7a8870; }
.pipeline article { background: #fdfdf8; padding: 19px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 10px; }
.pipeline article small, .pipeline article > span { color: var(--muted); font-size: 9px; }
.pipeline h3 { font-size: 13px; line-height: 1.6; font-weight: 600; margin: 10px 0 19px; }
.pipeline-empty { padding: 30px 8px; font-size: 11px; color: #8b9781; text-align: center; }
.publication-rule { display: flex; align-items: flex-start; gap: 18px; background: #e9eee1; border: 1px solid #d3dcc8; border-radius: 6px; padding: 22px; font-size: 12px; color: #596a4c; margin-bottom: 25px; }
.publication-rule strong { color: #3c5434; }
.candidate-list article, .history-list article { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px; border: 1px solid var(--line); border-radius: 6px; background: #fdfdf8; margin-bottom: 13px; }
.candidate-list article > div { min-width: 0; }
.candidate-list article span, .history-list article span { display: block; font-size: 10px; color: var(--muted); }
.candidate-list h2 { font: 400 26px/1.2 var(--serif); margin-top: 9px; }
.candidate-list p { margin-top: 12px; color: var(--muted); font-size: 12px; }
.candidate-list .button, .history-list .button { flex-shrink: 0; font-size: 11px; }
.workspace-empty { padding: 54px 28px; border: 1px dashed #c8d1bf; border-radius: 7px; background: #fafbf4; text-align: center; }
.workspace-empty > span { color: #87977a; font: 10px/1.6 var(--mono); }
.workspace-empty h2 { font: 400 28px/1.2 var(--serif); margin: 16px auto; max-width: 550px; }
.workspace-empty p { max-width: 480px; margin-inline: auto; color: var(--muted); font-size: 12px; }
.manager-tabs { display: flex; flex-wrap: wrap; gap: 2px 12px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.manager-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 12px 9px; background: transparent; font-size: 12px; color: var(--muted); }
.manager-tabs button.is-active { color: #324b2b; border-bottom-color: #607753; font-weight: 600; }
.manager-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 26px; align-items: start; }
.manager-layout > div { min-width: 0; }
.manager-form { padding: 26px; border: 1px solid var(--line); border-radius: 7px; background: #fdfdf8; }
.form-intro { margin-bottom: 25px; }
.form-intro h2 { font: 400 28px/1.2 var(--serif); margin-bottom: 13px; }
.form-intro p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.social-field-label { display: inline-flex; align-items: center; gap: 10px; }
.social-field-label .icon { width: 17px; height: 17px; flex-basis: 17px; }
.publish-controller { border-top: 2px solid #708560; padding-top: 20px; }
.publish-state { display: inline-block; background: #e7ecdf; color: #617453; font: 9px/1.7 var(--mono); padding: 5px 8px; border-radius: 3px; }
.publish-state.is-dirty { background: #eee7ce; color: #75652f; }
.publish-controller h2 { margin: 19px 0 14px; font: 400 28px/1.2 var(--serif); }
.publish-controller p { margin-bottom: 23px; font-size: 12px; color: var(--muted); }
.publish-controller .button { display: flex; width: 100%; margin-top: 10px; font-size: 12px; }
.nav-editor__row { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, .75fr); gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.nav-editor__row > span { color: #8d9a83; font: 10px/1.6 var(--mono); }
.nav-editor label small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 6px; }
.nav-editor__row .visibility-check { grid-column: 2; display: flex; align-items: center; gap: 8px; font-size: 11px; }
.nav-editor__row > div { display: flex; justify-content: flex-end; gap: 7px; }
.nav-editor__row button { min-width: 36px; min-height: 34px; border: 1px solid #cdd7c4; background: #edf1e7; border-radius: 4px; }
.nav-editor input[readonly] { color: #849179; background: #f1f3eb; }
.check-field > span:last-child { display: flex; align-items: center; gap: 8px; padding-block: 10px; }
.theme-preview { margin-top: 27px; padding: 20px; background: #eaece1; border-radius: 5px; }
.theme-preview > span { color: #7a886e; font: 9px/1.6 var(--mono); }
.theme-preview > div { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.theme-preview i { width: 27px; height: 27px; background: #1b2023; border-radius: 50%; }
.theme-preview i:nth-child(2) { background: #f8f6f1; border: 1px solid #c8cfc0; }
.theme-preview i:nth-child(3) { background: var(--accent); }
.theme-preview strong { margin-left: auto; font: 400 30px/1 var(--serif); }
.history-list article { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.history-list strong { display: block; font-size: 12px; margin-top: 7px; font-weight: 600; }
.settings-grid { margin-bottom: 24px; }
.settings-grid article > span { font: 9px/1.6 var(--mono); color: var(--muted); }
.settings-grid h2 { font: 400 27px/1.2 var(--serif); margin: 12px 0 17px; }
.settings-grid p { color: var(--muted); font-size: 12px; line-height: 1.8; }

/* Staging tools and feedback */
.preview-dock { position: fixed; right: 18px; bottom: 17px; z-index: 80; }
.preview-dock__trigger { display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 8px 12px; color: #e2e8df; background: #2a3730; border: 1px solid #77816e; border-radius: 5px; box-shadow: 0 3px 14px #00000018; font-size: 10px; }
.preview-dot { width: 5px; height: 5px; border-radius: 50%; background: #c8b589; }
.preview-dock__menu { display: none; position: absolute; bottom: 45px; right: 0; width: 215px; padding: 15px; background: #fcfcf5; color: var(--ink); border: 1px solid #c6cebf; border-radius: 6px; box-shadow: 0 6px 30px #00000020; }
.preview-dock.is-open .preview-dock__menu { display: block; }
.preview-dock__menu > span { display: block; font: 9px/1.6 var(--mono); color: #7b8770; margin: 0 6px 10px; }
.preview-dock__menu button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 7px; border: 0; border-radius: 4px; background: transparent; text-align: left; font-size: 12px; }
.preview-dock__menu button.is-active { background: #e6ebde; }
.toast-region { position: fixed; bottom: 67px; right: 20px; z-index: 110; display: flex; flex-direction: column; gap: 9px; max-width: min(410px, calc(100% - 40px)); }
.toast { padding: 14px 18px; background: #25332a; border: 1px solid #74836a; color: #ecf1e5; border-radius: 6px; box-shadow: 0 5px 20px #00000020; font-size: 12px; }

/* Medium screens: compact columns without inherited placement rules. */
@media (max-width: 1180px) {
  .hero-grid { gap: 46px; }
  .hero h1 { font-size: clamp(48px, 5.6vw, 64px); }
  .public-nav { gap: 18px; }
  .section-head { gap: 30px; }
  .section-head > div { max-width: 620px; }
  .section-head h2 { font-size: 38px; }
  .project-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px; gap: 26px; }
  .project-principles { gap: 45px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .principle-list p { grid-template-columns: 125px minmax(0, 1fr); font-size: 13px; }
  .about-layout, .about-layout--profile, .writing-stage, .home-now__grid { gap: 50px; }
  .lab-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .lab-main { padding: 28px 24px 85px; }
  .lab-topbar { padding-inline: 24px; }
  .lab-prototype-note { padding-inline: 24px; }
  .signal-card { padding: 17px; }
  .resource-browser.has-selection { grid-template-columns: minmax(0, 1fr); }
  .resource-browser.has-selection .resource-detail { grid-row: 1; }
  .resource-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .manager-layout { grid-template-columns: minmax(0, 1fr); }
  .publish-controller { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .publish-controller > span, .publish-controller > h2, .publish-controller > p { grid-column: 1 / -1; }
  .publish-controller > span { justify-self: start; }
  .publish-controller h2 { margin: 0; }
  .publish-controller p { margin-bottom: 0; }
  .publish-controller .button { margin: 0; }
  .input-sheet { grid-template-columns: 140px minmax(0, 1fr); }
  .input-sheet__index { padding: 23px 16px; }
  .desk-grid { gap: 18px; }
  .workspace-panel { padding: 19px; }
}
@media (max-width: 960px) {
  .public-header__inner { min-height: 86px; }
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 33px; padding-block: 49px 58px; }
  .hero h1 { font-size: 53px; }
  .hero-intro { font-size: 15px; }
  .hero-proof { gap: 17px 23px; }
  .hero-portrait figcaption p { font-size: 17px; }
  .section-head { align-items: start; flex-direction: column; gap: 15px; }
  .section-head > a { min-height: 34px; }
  .project-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 35px; }
  .project-row__end { grid-column: 1 / -1; justify-content: flex-end; gap: 20px; }
  .project-row h3 { font-size: 26px; }
  .page-masthead__grid { gap: 30px; }
  .page-masthead h1 { font-size: 50px; }
  .page-masthead__grid > p { font-size: 14px; }
  .project-principles { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .principle-list p { grid-template-columns: 165px minmax(0, 1fr); font-size: 14px; }
  .about-layout { gap: 38px; }
  .credentials > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .credentials small { grid-column: 1; }
  .case-study { gap: 25px 40px; }
  .case-study__foot { flex-direction: column; gap: 16px; }
  .case-study__foot .tag-list { justify-content: flex-start; }
  .lab-shell { display: block; }
  .lab-sidebar { display: none; position: fixed; width: 265px; inset: 0 auto 0 0; z-index: 100; }
  .lab-drawer-open { overflow: hidden; }
  .lab-drawer-open .lab-sidebar { display: flex; }
  .lab-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: #0d170f80; border: 0; width: 100%; height: 100dvh; }
  .lab-drawer-close { display: grid; place-items: center; position: absolute; right: 14px; top: 24px; width: 38px; height: 38px; color: #d5dfd5; background: transparent; border: 0; border-radius: 4px; }
  .mobile-lab-menu { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: transparent; flex-shrink: 0; }
  .mobile-lab-nav { display: flex; position: fixed; z-index: 70; bottom: 0; left: 0; right: 0; justify-content: space-around; border-top: 1px solid #cdd6c5; background: #f9fbf2; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
  .mobile-lab-nav button { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border: 0; border-radius: 5px; background: transparent; color: #75846a; font-size: 9px; }
  .mobile-lab-nav button.is-active { background: #e6ecdc; color: #38512e; }
  .mobile-lab-nav .icon { width: 18px; height: 18px; flex-basis: 18px; }
  .lab-main { padding-bottom: 125px; }
  body[data-workspace="lab"] .preview-dock { bottom: calc(75px + env(safe-area-inset-bottom)); }
  body[data-workspace="lab"] .toast-region { bottom: calc(122px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 90px; }
  .public-header__inner { min-height: 80px; padding-block: 17px; gap: 15px; }
  .wordmark__name { font-size: 27px; }
  .wordmark__descriptor { font-size: 8px; }
  .public-nav { display: none; }
  .mobile-menu-button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #ffffff38; border-radius: 4px; background: transparent; color: #ebece2; }
  .mobile-menu.is-open { display: grid; gap: 2px; padding: 7px 20px 20px; border-top: 1px solid #ffffff20; }
  .mobile-menu a { padding: 13px 5px; color: #c4cdc5; font-size: 14px; }
  .mobile-menu a.is-active { color: #f2d3b1; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 44px 47px; }
  .hero-copy { max-width: 620px; }
  .hero h1 { max-width: 600px; font-size: clamp(43px, 8.4vw, 59px); }
  .hero-intro { margin-top: 23px; max-width: 530px; font-size: 15px; line-height: 1.8; }
  .hero-actions { gap: 12px 21px; margin-top: 25px; }
  .hero-proof { gap: 24px; margin-top: 30px; padding-top: 22px; }
  .hero-portrait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 25px; max-width: 500px; justify-self: start; align-items: center; }
  .hero-portrait img { aspect-ratio: 1; }
  .hero-portrait figcaption { padding: 0; }
  .hero-portrait figcaption > span { font-size: 9px; }
  .hero-portrait figcaption p { font-size: 20px; margin-top: 12px; }
  .hero-portrait__image { border-radius: 6px; }
  .section-head { margin-bottom: 30px; }
  .section-head h2, .display-title { font-size: clamp(31px, 6.1vw, 40px); }
  .practice-list { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 26px 36px; }
  .practice-list article { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 20px; }
  .practice-list article > span { padding-top: 3px; grid-row: span 2; }
  .practice-list h3 { font-size: 23px; margin: 0; text-wrap: pretty; }
  .practice-list p { font-size: 13px; }
  .project-row { gap: 15px 25px; padding-block: 27px; }
  .project-row h3 { font-size: 25px; }
  .project-row > p { font-size: 13px; }
  .playbook-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .playbook-card h3 { font-size: 30px; }
  .playbook-card > p { max-width: none; }
  .home-now__grid, .writing-stage { grid-template-columns: minmax(0, 1fr); gap: 33px; }
  .home-now__lead > p { max-width: 500px; }
  .current-writing h3 { font-size: 26px; }
  .page-masthead { padding-block: 44px 42px; }
  .page-masthead__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-masthead h1 { font-size: clamp(41px, 8vw, 56px); }
  .page-masthead__grid > p { max-width: 520px; font-size: 15px; }
  .case-study { grid-template-columns: minmax(0, 1fr); gap: 23px; scroll-margin-top: 95px; padding-block: 33px; }
  .case-study__meta, .case-study__title, .case-study__foot { grid-column: 1; }
  .case-study h2 { font-size: 31px; }
  .case-study__question { padding: 20px 23px; }
  .case-study > ol { margin-left: 4px; }
  .principle-list p { grid-template-columns: 130px minmax(0, 1fr); gap: 18px; font-size: 13px; }
  .playbook-note { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .playbook-note p { font-size: 25px; }
  .public-resource { grid-template-columns: minmax(0, 1fr) 44px; gap: 18px 26px; }
  .public-resource > div { grid-column: 1; }
  .public-resource > p { grid-column: 1; }
  .public-resource > a { grid-column: 2; grid-row: 1 / span 2; }
  .public-resource h2 { font-size: 28px; }
  .resource-roadmap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .about-layout, .about-layout--profile { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .about-portrait { max-width: 340px; }
  .about-portrait img { aspect-ratio: 1; }
  .about-story .about-lead { font-size: 28px; }
  .credentials > div { grid-template-columns: 95px minmax(0, 1fr); gap: 8px 20px; }
  .credentials small { grid-column: 2; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 30px; }
  .footer-index { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 9px 23px; text-align: left; }
  .footer-socials { flex-direction: column; align-items: flex-start; gap: 12px; }
  .social-links { gap: 4px 20px; }
  .lab-main { padding-inline: 20px; padding-top: 26px; }
  .lab-topbar { padding: 13px 20px; min-height: 79px; gap: 20px; }
  .lab-prototype-note { padding: 10px 20px; font-size: 10px; }
  .global-search { display: none; }
  .workspace-heading { align-items: flex-start; gap: 16px; }
  .workspace-heading h1 { font-size: 33px; }
  .workspace-heading > .button { padding: 10px 13px; }
  .workspace-heading p { font-size: 12px; }
  .lab-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; padding-block: 22px; }
  .lab-flow > i { display: none; }
  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .signal-card { padding: 18px; }
  .desk-grid { grid-template-columns: minmax(0, 1fr); }
  .research-strip > div:last-child { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .input-sheet { grid-template-columns: minmax(0, 1fr); }
  .input-sheet__index { padding: 16px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
  .input-sheet__index strong { margin-top: 0; font-size: 22px; }
  .input-sheet__index p { margin-top: 0; }
  .input-sheet__fields { padding: 22px; }
  .form-grid { gap: 20px; }
  .project-board, .lab-playbooks, .settings-grid { gap: 17px; }
  .project-board article, .lab-playbooks article, .settings-grid article { padding: 22px; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .pipeline article { padding: 14px; }
  .resource-table { display: block; table-layout: auto; }
  .resource-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .resource-table tbody { display: block; }
  .resource-table tr { display: block; padding: 18px; border-bottom: 1px solid var(--line); }
  .resource-table tr:last-child { border-bottom: 0; }
  .resource-table td { display: flex; gap: 15px; justify-content: space-between; padding: 5px 0; border: 0; text-align: right; font-size: 12px; }
  .resource-table td::before { content: attr(data-label); color: #77876d; font-size: 10px; text-align: left; flex: 0 0 50px; padding-top: 2px; }
  .resource-table td:first-child { display: block; text-align: left; padding-bottom: 11px; }
  .resource-table td:first-child::before { display: none; }
  .resource-title { font-size: 14px; }
  .resource-title .icon { width: 18px; height: 18px; flex-basis: 18px; }
  .resource-table td small { font-size: 10px; }
  .resource-table .state-chip { font-size: 10px; }
  .resource-detail dl { grid-template-columns: minmax(0, 1fr); }
  .candidate-list article { flex-direction: column; align-items: flex-start; gap: 20px; }
  .candidate-list article > .button { width: 100%; }
  .manager-form { padding: 22px; }
  .manager-tabs { gap: 0 5px; }
  .manager-tabs button { font-size: 11px; padding-inline: 7px; }
  .settings-grid h2 { font-size: 25px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(40px, 10.6vw, 50px); }
  .hero-eyebrow { font-size: 9px; letter-spacing: .08em; gap: 7px; }
  .hero-proof { gap: 19px; justify-content: space-between; }
  .hero-proof span { font-size: 10px; }
  .hero-proof strong { font-size: 22px; }
  .hero-portrait { gap: 21px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-portrait figcaption p { font-size: 18px; }
  .hero-portrait figcaption > span { font-size: 8px; }
  .project-row { grid-template-columns: minmax(0, 1fr) 44px; column-gap: 18px; }
  .project-row__title { grid-column: 1; }
  .project-row > p { grid-column: 1 / -1; }
  .project-row__end { display: contents; }
  .project-row__end > a { grid-column: 2; grid-row: 1; align-self: center; }
  .project-status { grid-column: 1 / -1; grid-row: 3; }
  .project-row h3 { font-size: 28px; }
  .project-row > p { font-size: 14px; }
  .practice-list article { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .practice-list article > span { grid-row: auto; padding-top: 0; }
  .practice-list h3 { font-size: 25px; }
  .practice-list p { font-size: 14px; }
  .principle-list p { grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: 14px; }
  .public-resource { column-gap: 16px; }
  .public-resource .tag { font-size: 10px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .footer-nav { gap: 5px 22px; }
  .footer-index { gap: 7px 17px; font-size: 9px; }
  .credentials > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .credentials small { grid-column: 1; }
  .workspace-heading { flex-direction: column; }
  .workspace-heading > .button { width: 100%; }
  .form-grid, .project-board, .lab-playbooks, .settings-grid, .pipeline { grid-template-columns: minmax(0, 1fr); }
  .field input:not([type="checkbox"]), .field textarea, .field select, .nav-editor input:not([type="checkbox"]), .library-search input { font-size: 16px; }
  .field--wide { grid-column: 1; }
  .manager-form, .input-sheet__fields { padding: 19px; }
  .publish-controller { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nav-editor__row { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
  .nav-editor__row > label:not(.visibility-check) { grid-column: 2; }
  .nav-editor__row > div { grid-column: 2; justify-content: flex-start; }
  .history-list article { flex-direction: column; align-items: flex-start; gap: 15px; }
  .preview-dock { right: 12px; bottom: 12px; }
  .preview-dock__trigger { font-size: 9px; padding: 7px 10px; }
  .toast-region { right: 15px; max-width: calc(100% - 30px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body, .public-shell, .public-section, .public-header, .hero, .page-masthead, .public-footer { background: white !important; color: black !important; }
  .public-nav, .mobile-menu-button, .preview-dock, .toast-region, .mobile-lab-nav, .lab-sidebar, .lab-topbar, .lab-prototype-note { display: none !important; }
  .public-header { position: static !important; }
  .public-container { width: 100%; }
  .public-section { padding-block: 25px; }
  .lab-shell { display: block; }
  .hero-portrait { max-width: 200px; }
}
