:root {
  --ink: #171716;
  --muted: #6c6b65;
  --paper: #f4f3ef;
  --white: #fffefa;
  --line: rgba(23, 23, 22, .16);
  --lime: #d9f663;
  --blue: #6073d6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; }
a { color: inherit; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 99; padding: 10px 14px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 16px; }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(244,243,239,.88); backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 20; }
.wordmark { font-size: 14px; font-weight: 750; letter-spacing: -.04em; text-decoration: none; width: max-content; }
.wordmark-mark { color: var(--blue); margin-left: 2px; }
nav { display: flex; gap: 28px; }
nav a, .header-link { font-size: 13px; text-decoration: none; color: var(--muted); }
nav a:hover, nav a:focus, nav a.active { color: var(--ink); }
.header-link { justify-self: end; padding-bottom: 3px; border-bottom: 1px solid var(--ink); color: var(--ink); }
.section-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.hero { min-height: calc(100svh - 76px); display: flex; flex-direction: column; padding: clamp(82px, 13vh, 148px) 0 36px; }
.eyebrow, .section-number { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.hero h1 { max-width: 1030px; margin: 28px 0 34px; font-size: clamp(3.1rem, 7.25vw, 7rem); font-weight: 480; letter-spacing: -.075em; line-height: .95; }
.hero-lower { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.hero-copy { max-width: 510px; margin: 0; color: #4b4b47; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.46; }
.text-link { flex: 0 0 auto; font-size: 14px; text-underline-offset: 4px; }
.text-link span { margin-left: 7px; }
.hero-field { position: relative; overflow: hidden; flex: 1; min-height: 190px; margin-top: clamp(40px, 8vh, 96px); border-radius: 18px; background: #171716; }
.hero-field::before { content: ''; position: absolute; inset: 0; opacity: .65; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to right, transparent, black 16%, black 84%, transparent); }
.signal { position: absolute; top: 50%; border-radius: 999px; transform: translateY(-50%); }
.signal-one { left: 9%; width: 14px; height: 14px; background: var(--lime); box-shadow: 0 0 0 11px rgba(217,246,99,.13), 0 0 40px 9px rgba(217,246,99,.25); animation: breathe 4s ease-in-out infinite; }
.signal-two { left: 29%; width: 42%; height: 1px; background: linear-gradient(90deg, var(--lime), #c8d2ff 50%, #fffefa); transform-origin: left; animation: extend 4s ease-in-out infinite; }
.signal-three { right: 12%; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.12); box-shadow: 0 0 0 12px rgba(255,255,255,.06); }
.field-labels { position: absolute; bottom: 20px; left: 26px; right: 26px; display: flex; justify-content: space-between; color: rgba(255,255,255,.54); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
@keyframes breathe { 50% { transform: translateY(-50%) scale(1.22); } }
@keyframes extend { 0%, 100% { transform: translateY(-50%) scaleX(.72); opacity: .4; } 50% { transform: translateY(-50%) scaleX(1); opacity: 1; } }
.approach { padding: 165px 0 130px; }
.approach-grid { display: grid; grid-template-columns: 1.15fr .65fr; gap: clamp(48px, 10vw, 160px); margin-top: 47px; }
h2 { font-size: clamp(2.5rem, 4.2vw, 4.5rem); font-weight: 480; line-height: .98; letter-spacing: -.065em; margin: 0; }
.approach-grid > div { padding-top: 10px; color: #464640; line-height: 1.55; }
.approach-grid > div p { margin: 0 0 19px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; margin: 100px 0 0; list-style: none; }
.principles li { padding-top: 18px; border-top: 1px solid var(--ink); }
.principles span { display: block; margin-bottom: 28px; font-size: 12px; color: var(--muted); }
.principles strong { display: block; font-size: 19px; letter-spacing: -.04em; }
.principles p { color: var(--muted); margin: 10px 0 0; font-size: 14px; line-height: 1.45; max-width: 290px; }
.system-band { padding: 132px 0 152px; background: var(--ink); color: var(--white); }
.system-band .section-number { color: #b8b8b0; }
.band-heading { display: grid; grid-template-columns: 1.1fr .55fr; gap: clamp(44px, 10vw, 160px); margin-top: 45px; }
.band-heading h2 { max-width: 710px; }
.band-heading p { color: #c8c8c1; line-height: 1.53; margin: 9px 0 0; }
.system-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 105px; border-top: 1px solid rgba(255,255,255,.38); }
.flow-item { min-height: 235px; padding: 20px 22px 14px 0; border-right: 1px solid rgba(255,255,255,.25); display: flex; flex-direction: column; justify-content: space-between; }
.flow-item + .flow-item { padding-left: 22px; }
.flow-item:last-child { border-right: 0; }
.flow-item.supporting { background: rgba(255,255,255,.045); }
.flow-index { font-size: 11px; color: #a3a39b; }
.flow-item a { color: var(--white); text-decoration: none; }
.flow-item strong { display: block; margin-bottom: 9px; font-size: 21px; letter-spacing: -.04em; }
.flow-item small { display: block; max-width: 150px; color: #c5c5be; font-size: 13px; line-height: 1.3; }
.flow-item a:hover strong { color: var(--lime); }

/* Foundations list + proof callout (homepage section 02) */
.role-tag { display: inline-block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #a3a39b; border: 1px solid rgba(255,255,255,.28); padding: 3px 9px; border-radius: 999px; }
.role-tag.alt { color: var(--blue); border-color: rgba(96,115,214,.55); background: rgba(96,115,214,.08); }
.foundations { list-style: none; margin: 96px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.38); }
.foundation { border-bottom: 1px solid rgba(255,255,255,.16); }
.foundation a { display: grid; grid-template-columns: 230px minmax(0,1fr) auto; column-gap: 34px; row-gap: 9px; align-items: center; padding: 28px 0; color: var(--white); text-decoration: none; transition: padding .22s ease, background .22s ease; }
.foundation a:hover, .foundation a:focus-visible { padding-left: 16px; padding-right: 16px; background: rgba(255,255,255,.05); }
.foundation .role-tag { grid-column: 1; grid-row: 1; align-self: end; }
.foundation strong { grid-column: 1; grid-row: 2; align-self: start; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 480; letter-spacing: -.05em; }
.foundation a:hover strong, .foundation a:focus-visible strong { color: var(--lime); }
.foundation p { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: 560px; color: #c5c5be; font-size: 15px; line-height: 1.5; }
.foundation b { grid-column: 3; grid-row: 1 / span 2; font-size: 24px; font-weight: 400; color: #a3a39b; }
.proof { margin-top: 44px; display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 28px; padding: clamp(28px, 4vw, 44px); background: var(--paper); color: var(--ink); border-radius: 4px; }
.proof-label { padding-top: 6px; }
.proof-body h3 { margin: 0 0 16px; font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 480; letter-spacing: -.05em; line-height: 1.02; }
.proof-body p { margin: 0 0 20px; max-width: 640px; color: #464640; font-size: 16px; line-height: 1.55; }
.proof-body .text-link { color: var(--ink); text-underline-offset: 4px; }
.whatelse { margin: 46px 0 0; max-width: 800px; color: #c8c8c1; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.5; }
.work { padding: 160px 0 150px; }
.work-intro { display: grid; grid-template-columns: .65fr 1.15fr; gap: 40px; align-items: start; }
.work-intro h2 { max-width: 690px; }
.project-list { margin-top: 105px; border-top: 1px solid var(--ink); }
.project-row { min-height: 132px; display: grid; grid-template-columns: 94px 1fr auto; align-items: center; gap: 15px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .22s ease, background .22s ease; }
.project-row:hover { padding-left: 14px; padding-right: 14px; background: var(--white); }
.project-row > span { font-size: 12px; color: var(--muted); }
.project-row h3 { font-size: clamp(1.7rem, 3vw, 2.65rem); font-weight: 480; letter-spacing: -.06em; margin: 0 0 6px; }
.project-row p { color: var(--muted); margin: 0; font-size: 14px; }
.project-row b { font-size: 28px; font-weight: 400; }
.closing { padding: 160px 0; border-top: 1px solid var(--line); }
.closing h2 { max-width: 800px; margin: 46px 0 35px; }
.closing > p:not(.section-number) { max-width: 510px; color: #494943; font-size: 17px; line-height: 1.53; }
.closing > p.lab-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.button-link { display: inline-flex; gap: 24px; align-items: center; margin-top: 19px; padding: 14px 17px; background: var(--ink); color: var(--white); font-size: 14px; text-decoration: none; border-radius: 3px; }
.button-link:hover { background: var(--blue); }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 26px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer a { text-underline-offset: 3px; }
/* Hidden only when JS is present to reveal it again — never strand content invisible. */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }

/* Project pages */
.project-hero { padding: clamp(90px, 14vh, 170px) 0 72px; border-bottom: 1px solid var(--line); }
.project-kicker { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.project-hero h1 { max-width: 920px; margin: 30px 0 37px; font-size: clamp(3.4rem, 8vw, 7.9rem); font-weight: 480; line-height: .91; letter-spacing: -.08em; }
.project-summary { display: grid; grid-template-columns: 1.1fr .55fr; gap: clamp(40px, 10vw, 150px); align-items: start; }
.project-summary p { max-width: 690px; margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.37; letter-spacing: -.025em; }
.project-summary small { display: block; padding-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.project-content { padding: 132px 0 150px; }
.project-content-grid { display: grid; grid-template-columns: .62fr 1.1fr; gap: clamp(48px, 10vw, 160px); }
.project-content h2 { font-size: clamp(2.35rem, 4vw, 4.2rem); }
.project-body { max-width: 590px; }
.project-body p { color: #464640; font-size: 17px; line-height: 1.58; margin: 0 0 22px; }
.contributions { margin: 80px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.contributions li { display: grid; grid-template-columns: 115px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contributions span { color: var(--muted); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.contributions p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.4; }
.project-writing { margin-top: 96px; padding-top: 30px; border-top: 1px solid var(--ink); }
.project-writing > .section-label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.project-writing > h2 { max-width: 620px; margin: 0 0 8px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 480; line-height: 1.05; letter-spacing: -.05em; }
.project-writing-list { margin: 0; padding: 0; list-style: none; }
.project-writing-list li { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 6px clamp(28px, 5vw, 70px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.project-writing-meta { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: start; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.project-writing-meta time { letter-spacing: 0; text-transform: none; }
.project-writing-list a { grid-column: 2; font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 480; line-height: 1.12; letter-spacing: -.04em; text-decoration: none; }
.project-writing-list a:hover, .project-writing-list a:focus-visible { color: var(--blue); }
.project-writing-list p { grid-column: 2; margin: 0; max-width: 640px; color: #464640; font-size: 14.5px; line-height: 1.55; }
.project-connection { margin-top: 130px; padding: 40px; background: var(--white); border: 1px solid var(--line); }
.project-connection p { max-width: 700px; margin: 0; font-size: clamp(1.4rem, 2.5vw, 2.25rem); line-height: 1.13; letter-spacing: -.055em; }
.project-connection a { display: inline-block; margin-top: 26px; color: var(--muted); font-size: 14px; text-underline-offset: 4px; }
.project-next { padding: 82px 0; background: var(--ink); color: var(--white); }
.project-next-inner { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.project-next p { margin: 0 0 17px; color: #a3a39b; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.project-next h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
.project-next a { display: inline-flex; padding: 14px 16px; border: 1px solid rgba(255,255,255,.55); color: var(--white); text-decoration: none; font-size: 14px; }
.project-next a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* Project pages — richer vocabulary for depth */
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; }
.status-line .role-tag { color: var(--muted); border-color: var(--line); }
.status-line .role-tag.alt { color: var(--blue); border-color: rgba(96,115,214,.5); background: rgba(96,115,214,.06); }
.status-line .status-text { max-width: 660px; }
.prose { max-width: 645px; }
.prose p { color: #464640; font-size: 17px; line-height: 1.62; margin: 0 0 22px; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead-in { color: var(--ink); font-size: clamp(1.15rem, 1.7vw, 1.38rem); line-height: 1.42; letter-spacing: -.02em; }
.mechanism { margin-top: 112px; }
.mechanism .section-label, .compare .section-label, .diagram .section-label { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.mechanism > h2 { max-width: 780px; }
.mechanism .mech-intro { max-width: 645px; margin: 22px 0 0; color: #464640; font-size: 17px; line-height: 1.6; }
.mechanism .prose { margin-top: 44px; max-width: 720px; }
.steps { list-style: none; counter-reset: step; margin: 52px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 60px minmax(0,1fr); column-gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps li::before { grid-column: 1; grid-row: 1; counter-increment: step; content: counter(step, decimal-leading-zero); color: var(--muted); font-size: 12px; padding-top: 6px; }
.steps h3 { grid-column: 2; grid-row: 1; margin: 0 0 8px; font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 480; letter-spacing: -.03em; }
.steps h3 .step-tag { margin-left: 11px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.steps p { grid-column: 2; grid-row: 2; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 660px; }
.diagram { margin: 112px 0 0; }
.stack { margin: 40px 0 0; display: flex; flex-direction: column; gap: 9px; }
.stack-row { padding: 18px 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.stack-row.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stack-row .stack-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.stack-row.dark .stack-label { color: #a3a39b; }
.stack-row strong { font-size: 16px; font-weight: 480; letter-spacing: -.02em; }
.stack-row p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.stack-row.dark p { color: #c5c5be; }
.stack-clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.stack-clients .stack-row { margin: 0; }
.stack-arrow { text-align: center; color: #9a9a92; font-size: 12px; letter-spacing: .12em; }
.diagram figcaption { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 660px; }
.compare { margin: 112px 0 0; }
.compare-list { margin: 34px 0 0; border-top: 1px solid var(--ink); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 60px); }
.compare-head { padding: 12px 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.compare-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.compare-row .from { color: var(--muted); font-size: 15px; line-height: 1.5; }
.compare-row .to { color: var(--ink); font-size: 15px; line-height: 1.5; }
.boundary { margin-top: 96px; padding: 30px 34px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 3px; }
.boundary .section-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.boundary p { margin: 0 0 12px; max-width: 730px; color: #464640; font-size: 15.5px; line-height: 1.6; }
.boundary p:last-child { margin-bottom: 0; }
.figure { margin: 52px 0 0; }
.figure .frame { width: 100%; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--white); }
.figure iframe { display: block; width: 100%; height: 540px; border: 0; }
.figure figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 660px; }

/* Updates / changelog pattern for product pages — ready; add entries when real news exists (see notes/site.md) */
.updates { margin-top: 96px; }
.updates .section-label { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.updates h2 { max-width: 780px; }
.update-list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.update-list li { display: grid; grid-template-columns: 130px minmax(0,1fr); column-gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.update-list time { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 4px; }
.update-list h3 { margin: 0 0 6px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 480; letter-spacing: -.03em; }
.update-list p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 660px; }

/* v3 — v1 visual language with the v2 editorial structure */
.motion-flow { grid-template-columns: repeat(3, 1fr); }
.motion-flow .flow-item { min-height: 270px; }
.motion-flow .flow-item strong { font-size: clamp(1.55rem, 2.4vw, 2.35rem); }
.motion-flow .flow-item p { max-width: 270px; margin: 18px 0 0; color: #c5c5be; font-size: 14px; line-height: 1.5; }
.availability { padding: 145px 0; border-bottom: 1px solid var(--line); }
.availability-grid { display: grid; grid-template-columns: .58fr 1.12fr; gap: clamp(48px, 10vw, 160px); margin-top: 46px; }
.availability-grid h2 { max-width: 560px; }
.rich-copy { max-width: 680px; color: #464640; font-size: 17px; line-height: 1.62; }
.rich-copy p { margin: 0 0 22px; }
.rich-copy p:last-child { margin-bottom: 0; }
.rich-copy ul, .rich-copy ol { margin: 0; padding-left: 1.25em; }
.rich-copy li { margin: 0 0 12px; padding-left: .3em; }
.state-card { margin-top: 38px; padding: 30px 34px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.state-card .section-label { display: block; margin-bottom: 13px; color: var(--blue); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.open-section { padding: 145px 0; background: #ecebe6; }
.open-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin-top: 68px; background: var(--line); border: 1px solid var(--line); }
.open-item { min-height: 235px; padding: 30px; background: var(--paper); }
.open-item span { display: block; margin-bottom: 34px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.open-item h3 { margin: 0 0 14px; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 480; letter-spacing: -.04em; }
.open-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.status-card { display: grid; grid-template-columns: 180px 1fr; gap: 30px; margin-top: 58px; padding: 30px 34px; border: 1px solid var(--line); background: var(--white); }
.status-card .section-label { color: var(--blue); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.status-card .rich-copy { max-width: 720px; font-size: 15.5px; }
.project-block + .project-block { margin-top: 112px; }
.project-block > .section-label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.project-block > h2 { max-width: 850px; margin-bottom: 30px; }
.project-block .rich-copy { max-width: 740px; }
.project-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 45px 0 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.project-points li { min-height: 225px; padding: 25px; background: var(--paper); }
.project-points span { display: block; margin-bottom: 28px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.project-points h3 { margin: 0 0 10px; font-size: 20px; font-weight: 480; letter-spacing: -.035em; }
.project-points p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.documentation-doors, .coupled-project { margin-top: 112px; }
.documentation-doors > .section-label, .coupled-project > .section-label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.documentation-doors > h2, .coupled-project > h2 { max-width: 850px; margin-bottom: 26px; }
.documentation-doors > .rich-copy, .coupled-project > .rich-copy { max-width: 740px; }
.documentation-door-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 42px; border: 1px solid var(--line); background: var(--line); }
.documentation-door-grid.one { grid-template-columns: 1fr; }
.documentation-door { position: relative; min-height: 210px; padding: 28px 58px 28px 28px; color: var(--ink); background: var(--paper); text-decoration: none; }
.documentation-door.primary { background: var(--ink); color: var(--white); }
.documentation-door span { display: block; margin-bottom: 45px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.documentation-door.primary span { color: #aaa9a2; }
.documentation-door strong { display: block; max-width: 430px; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 480; line-height: 1.25; letter-spacing: -.035em; }
.documentation-door b { position: absolute; right: 27px; bottom: 25px; font-size: 23px; font-weight: 400; }
.documentation-door:hover { background: #e9e8e2; }
.documentation-door.primary:hover { color: var(--ink); background: var(--lime); }
.coupled-project { padding: clamp(34px, 5vw, 58px); border: 1px solid var(--line); background: #ecebe6; }
.coupled-project .button-link { margin-top: 28px; }
.footer-contact { color: var(--ink); }
.footer-contact a { color: inherit; }

/* Journal */
.journal-preview { padding: 145px 0; border-top: 1px solid var(--line); }
.journal-preview-heading { display: grid; grid-template-columns: .58fr 1.12fr; gap: clamp(48px, 10vw, 160px); }
.journal-preview-heading h2 { max-width: 720px; }
.journal-preview-heading .rich-copy { max-width: 620px; margin-top: 25px; }
.journal-preview-heading .text-link { display: inline-block; margin-top: 24px; }
.journal-card-list { margin-top: 72px; border-top: 1px solid var(--ink); }
.journal-card { display: grid; grid-template-columns: 155px minmax(230px, .85fr) minmax(280px, 1.15fr); grid-template-rows: auto auto; gap: 10px clamp(28px, 5vw, 70px); padding: 30px 0; border-bottom: 1px solid var(--line); }
.journal-card-meta { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: start; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.journal-card-meta time { letter-spacing: 0; text-transform: none; }
.scaffold-label { padding: 3px 7px; border: 1px solid rgba(96,115,214,.45); border-radius: 999px; color: var(--blue); }
.journal-card h3 { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: clamp(1.45rem, 2.4vw, 2.15rem); font-weight: 480; line-height: 1.05; letter-spacing: -.05em; }
.journal-card h3 a { text-decoration: none; }
.journal-card h3 a:hover, .journal-card h3 a:focus-visible { color: var(--blue); }
.journal-card > p { grid-column: 3; grid-row: 1; margin: 0; max-width: 540px; color: #464640; font-size: 15px; line-height: 1.55; }
.journal-byline { grid-column: 3; grid-row: 2; align-self: end; color: var(--muted); font-size: 12px; }

.journal-hero { padding: clamp(58px, 8vh, 88px) 0 72px; border-bottom: 1px solid var(--line); }
.journal-hero h1 { max-width: 900px; margin: 0 0 34px; font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 480; line-height: .98; letter-spacing: -.06em; }
.journal-hero-lower { display: grid; grid-template-columns: 1fr .52fr; gap: clamp(48px, 10vw, 150px); align-items: start; }
.journal-hero-lower > p:first-child { max-width: 660px; margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.38; letter-spacing: -.025em; }
.journal-scaffold-explainer { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.journal-scaffold-explainer strong { color: var(--blue); font-weight: 550; }
.journal-index { padding: 125px 0 150px; }
.journal-index-heading { display: grid; grid-template-columns: .58fr 1.12fr; gap: clamp(48px, 10vw, 160px); align-items: start; }
.journal-index .journal-card-list { margin-top: 68px; }

/* ---------- shared identity band (ported from site) ----------
   The drawn marks and the ink opening are the site's standard top treatment. Journal
   pages carry it so an article looks like it belongs to Lab429 before a word is read. */
body.top-ink-header .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  min-height: 96px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  grid-template-columns: 1fr auto auto;
  column-gap: clamp(20px, 3vw, 42px);
}
body.top-ink-header .site-header nav a { color: #b6b6ae; font-size: 12.5px; }
body.top-ink-header .site-header nav a:hover, body.top-ink-header .site-header nav a.active { color: var(--white); }
body.top-ink-header .site-header .header-link { color: var(--white); border-bottom-color: rgba(255, 255, 255, .7); }

/* solid shapes take the text colour, cut-outs take the ground behind them */
.top-mark { display: block; --mark-bg: var(--ink); color: var(--white); }
.top-mark svg { display: block; width: auto; height: 100%; }
.top-mark svg path, .top-mark svg rect { fill: currentColor; }
.top-mark svg [style*="fill:white"] { fill: var(--mark-bg) !important; }
.top-mark-wordmark { height: 40px; }
.top-mark-triangles { height: clamp(38px, 4vw, 52px); }

.top-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.top-hero .section-shell { position: relative; z-index: 2; }
.top-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 40%, transparent);
}
.top-rule { display: flex; align-items: center; margin-bottom: 26px; }
.top-rule-line { flex: 1; height: 2px; background: rgba(255, 255, 250, .8); }
.top-card-brand { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); }
.top-card-brand-name { margin: 0; color: #cfcfc7; font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }

/* the Journal's version of the band: identity only, so the article's own title
   can open quietly in the reading column below it */
.top-hero-journal { padding: clamp(126px, 15vh, 152px) 0 clamp(30px, 4vh, 44px); }
.top-journal-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.top-journal-label { margin: 0; color: #cfcfc7; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }

.article-hero { padding: clamp(56px, 8vh, 84px) 0 54px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; gap: 18px; color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.article-meta time { letter-spacing: 0; text-transform: none; }
/* An article opens at reading scale, not at poster scale: the display sizes that suit a
   product page fight a long argument for attention. */
.article-hero h1 { max-width: 860px; margin: 22px 0 26px; font-size: clamp(2.25rem, 3.5vw, 3.05rem); font-weight: 500; line-height: 1.07; letter-spacing: -.045em; }
.article-deck { max-width: 700px; margin: 0; color: #464640; font-family: var(--serif); font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.5; }
.article-byline { margin: 30px 0 0; color: var(--muted); font-size: 13px; }
.article-byline strong { color: var(--ink); font-weight: 550; }
.article-updated { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
.article-layout { display: grid; grid-template-columns: 155px minmax(0, 720px); gap: clamp(45px, 9vw, 130px); justify-content: start; padding-top: 95px; padding-bottom: 150px; }
.article-rail { padding-top: 6px; }
.article-rail a { color: var(--muted); font-size: 13px; text-underline-offset: 4px; }
.article-prose { min-width: 0; font-family: var(--serif); color: #343431; font-size: clamp(1.08rem, 1.45vw, 1.22rem); line-height: 1.72; }
.article-prose > *:first-child { margin-top: 0; }
.article-prose p { margin: 0 0 1.45em; }
.article-prose h2, .article-prose h3, .article-prose h4 { font-family: var(--sans); color: var(--ink); font-weight: 480; line-height: 1.08; letter-spacing: -.05em; }
.article-prose h2 { margin: 2.5em 0 .7em; font-size: clamp(1.45rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -.035em; }
.article-prose h3 { margin: 2.1em 0 .6em; font-size: clamp(1.15rem, 1.5vw, 1.32rem); font-weight: 500; letter-spacing: -.025em; }
.article-prose h4 { margin: 1.8em 0 .55em; font-size: 1.05rem; font-weight: 550; letter-spacing: -.015em; }
.article-prose ul, .article-prose ol { margin: 0 0 1.55em; padding-left: 1.3em; }
.article-prose li { margin-bottom: .55em; padding-left: .25em; }
.article-prose blockquote { margin: 2em 0; padding: 4px 0 4px clamp(20px, 3vw, 30px); border-left: 2px solid var(--blue); color: #2f2f2c; font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.58; }
.article-prose blockquote p { margin: 0 0 .7em; }
.article-prose blockquote > *:last-child { margin-bottom: 0; }
.article-prose blockquote ul, .article-prose blockquote ol { margin-bottom: .7em; }
.article-callout { margin: 2.4em 0; padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 3px; font-family: var(--sans); font-size: 15.5px; line-height: 1.6; }
.article-callout h3 { margin: 0 0 .8em; font-size: 1.15rem; letter-spacing: -.03em; }
.article-callout p { margin: 0 0 .9em; }
.article-callout ul, .article-callout ol { margin: 0 0 .9em; padding-left: 1.2em; }
.article-callout li { margin-bottom: .5em; }
.article-callout > *:last-child { margin-bottom: 0; }
.article-table { margin: 2.2em 0; overflow-x: auto; }
.article-table table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.article-table th { padding: 0 18px 12px 0; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; text-align: left; vertical-align: bottom; }
.article-table td { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line); color: #464640; vertical-align: top; }
.article-table th:last-child, .article-table td:last-child { padding-right: 0; }
.article-table code { white-space: nowrap; }
.article-prose hr { margin: 3em 0; border: 0; border-top: 1px solid var(--line); }
/* Code is set apart quietly — a panel and a rule, not an inverted block. A long article
   can carry twenty of these, and inverted blocks turn the page into a zebra. */
.article-prose pre { overflow-x: auto; margin: 1.9em 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: #2c2c29; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px; line-height: 1.6; }
.article-prose :not(pre) > code { padding: 2px 5px; border-radius: 3px; background: rgba(23,23,22,.07); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
.article-prose figure { margin: 2.4em 0; }
.article-prose figcaption { margin-top: 12px; color: var(--muted); font-family: var(--sans); font-size: 13px; line-height: 1.5; }
.article-prose img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.article-scaffold-note { margin: 0 0 2.4em; padding: 18px 20px; border: 1px solid rgba(96,115,214,.38); border-left: 3px solid var(--blue); background: rgba(96,115,214,.05); font-family: var(--sans); color: var(--muted); font-size: 13px; line-height: 1.55; }
.article-scaffold-note strong { color: var(--blue); font-weight: 550; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; min-height: 65px; }
  .site-header nav { display: none; }
  .section-shell { width: min(100% - 40px, 700px); }
  .hero { min-height: calc(100svh - 65px); padding-top: 72px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.4rem); }
  .hero-lower, .project-summary, .band-heading, .work-intro, .approach-grid, .project-content-grid { grid-template-columns: 1fr; display: grid; gap: 25px; }
  .hero-lower { align-items: start; }
  .principles { grid-template-columns: 1fr; gap: 38px; margin-top: 74px; }
  .system-flow { grid-template-columns: repeat(2, 1fr); margin-top: 70px; }
  .foundations { margin-top: 66px; }
  .foundation a { grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 6px; padding: 22px 0; }
  .foundation .role-tag { grid-column: 1; grid-row: 1; justify-self: start; }
  .foundation strong { grid-column: 1; grid-row: 2; }
  .foundation p { grid-column: 1; grid-row: 3; max-width: none; margin-top: 6px; }
  .foundation b { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .proof { grid-template-columns: 1fr; gap: 16px; }
  .whatelse { margin-top: 36px; }
  .flow-item:nth-child(2) { border-right: 0; }
  .flow-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.25); }
  .flow-item:nth-child(5) { grid-column: span 2; border-right: 0; }
  .work { padding: 115px 0; }
  .project-list { margin-top: 70px; }
  .project-row { min-height: 108px; grid-template-columns: 48px 1fr auto; }
  .closing, .approach { padding: 110px 0; }
  .project-hero { padding-top: 90px; }
  .project-hero h1 { font-size: clamp(3.5rem, 13vw, 6rem); }
  .project-content { padding: 100px 0; }
  .project-connection { margin-top: 85px; padding: 28px; }
  .mechanism, .diagram, .compare { margin-top: 80px; }
  .stack-clients { grid-template-columns: repeat(2, 1fr); }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .compare-row .from::before { content: var(--compare-from-label, "Common framing — "); color: #9a9a92; }
  .compare-row .to::before { content: var(--compare-to-label, "Our distinction — "); color: var(--blue); }
  .boundary { margin-top: 72px; padding: 26px 24px; }
  .project-writing { margin-top: 72px; }
  .project-writing-list li { grid-template-columns: 125px 1fr; gap: 10px 28px; }
  .updates { margin-top: 72px; }
  .update-list li { grid-template-columns: 1fr; row-gap: 6px; }
  .availability-grid, .status-card { grid-template-columns: 1fr; gap: 24px; }
  .open-grid, .project-points { grid-template-columns: 1fr; }
  .documentation-door-grid { grid-template-columns: 1fr; }
  .motion-flow { grid-template-columns: 1fr; }
  .motion-flow .flow-item { min-height: 175px; border-right: 0; border-top: 1px solid rgba(255,255,255,.25); padding-left: 0; }
  .motion-flow .flow-item:first-child { border-top: 0; }
  .availability, .open-section { padding: 105px 0; }
  .journal-preview { padding: 105px 0; }
  .journal-preview-heading, .journal-index-heading, .journal-hero-lower { grid-template-columns: 1fr; gap: 28px; }
  .journal-card { grid-template-columns: 125px 1fr; gap: 16px 28px; }
  .journal-card-meta { grid-column: 1; grid-row: 1 / span 3; }
  .journal-card h3 { grid-column: 2; grid-row: 1; }
  .journal-card > p { grid-column: 2; grid-row: 2; }
  .journal-byline { grid-column: 2; grid-row: 3; }
  .journal-hero { padding-top: 54px; }
  .journal-index { padding: 100px 0; }
  .article-layout { grid-template-columns: 1fr; gap: 42px; padding-top: 70px; padding-bottom: 105px; }
  .article-rail { order: 2; padding-top: 18px; border-top: 1px solid var(--line); }
}
@media (max-width: 500px) {
  .header-link { font-size: 12px; }
  .hero-field { min-height: 145px; }
  .field-labels { font-size: 9px; left: 14px; right: 14px; }
  .signal-three { width: 44px; height: 44px; right: 9%; }
  .system-band { padding: 100px 0; }
  .system-flow { grid-template-columns: 1fr; }
  .flow-item, .flow-item:nth-child(2), .flow-item:nth-child(5) { grid-column: auto; border-right: 0; border-top: 1px solid rgba(255,255,255,.25); padding-left: 0; min-height: 155px; }
  .flow-item:first-child { border-top: 0; }
  .project-row p { line-height: 1.35; }
  .site-footer { padding: 22px 20px; flex-wrap: wrap; }
  .site-footer span:nth-child(2) { display: none; }
  .project-kicker { display: block; }
  .project-kicker span { display: block; margin-top: 9px; }
  .project-next-inner { display: block; }
  .project-next a { margin-top: 26px; }
  .journal-card { grid-template-columns: 1fr; gap: 10px; }
  .journal-card-meta { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .journal-card h3 { grid-column: 1; grid-row: 2; margin-top: 8px; }
  .journal-card > p { grid-column: 1; grid-row: 3; }
  .journal-byline { grid-column: 1; grid-row: 4; margin-top: 8px; }
  .journal-card-list { margin-top: 52px; }
  .project-writing-list li { grid-template-columns: 1fr; gap: 10px; }
  .project-writing-meta { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .project-writing-list a { grid-column: 1; grid-row: 2; }
  .project-writing-list p { grid-column: 1; grid-row: 3; }
  .article-meta { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .js-reveal .reveal { opacity: 1; transform: none; } }
