:root {
  --paper: #f6f1e7;
  --paper-deep: #dfe7df;
  --ink: #14231e;
  --ink-soft: #43514b;
  --muted: #647069;
  --line: rgba(20, 35, 30, .16);
  --highlight: #d8ca91;
  --copper: #e17a56;
  --copper-deep: #9f4c35;
  --panel-dark: #0f1d19;
  --panel-raised: #172923;
  --on-dark: #f5f0e6;
  --on-dark-muted: #b9c4bd;
  --shell: min(1200px, calc(100vw - 48px));
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--highlight); color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); background: var(--ink); color: #fff; padding: 10px 14px; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 20; top: 0; width: 100%; padding: 18px 0; color: var(--on-dark); transition: background .3s, border-color .3s, color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(246, 241, 231, .95); border-color: var(--line); color: var(--ink); backdrop-filter: blur(15px); }
.nav-wrap, .brand, .nav { display: flex; align-items: center; }
.nav-wrap { justify-content: space-between; }
.brand { gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; background: var(--copper); color: var(--panel-dark); border-radius: 50%; font-family: var(--serif); font-size: 13px; }
.brand-name { font-size: 15px; }
.nav { gap: 28px; font-size: 13px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:not(.nav-cta) { position: relative; color: var(--on-dark-muted); }
.site-header.scrolled .nav a:not(.nav-cta) { color: var(--ink-soft); }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .25s; }
.nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { border: 1px solid var(--copper); padding: 10px 15px; border-radius: 100px; background: var(--copper); transition: background .2s, border-color .2s, color .2s; }
.nav-cta:hover { border-color: var(--on-dark); background: var(--on-dark); color: var(--panel-dark); }
.site-header.scrolled .nav-cta:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; border: 0; background: none; padding: 8px; }

.hero { min-height: 100vh; padding: 155px 0 32px; display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.12); background: var(--panel-dark); color: var(--on-dark); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .5fr); gap: 7vw; align-items: center; flex: 1; }
.eyebrow, .section-index { margin: 0 0 28px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 27px; height: 1px; background: var(--copper); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 32px; max-width: 900px; font-family: var(--serif); font-weight: 400; font-size: clamp(66px, 7.3vw, 116px); line-height: .89; letter-spacing: -.055em; }
h1 em, h2 em { font-weight: 400; color: var(--copper); }
.hero-intro { max-width: 650px; color: var(--on-dark-muted); font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.38; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 42px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; padding: 16px 21px; border-radius: 100px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--copper); color: var(--panel-dark); }
.button-dark:hover { background: var(--highlight); }
.hero .text-link { color: var(--on-dark); }
.text-link { font-size: 13px; font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hero-aside { justify-self: end; width: 100%; max-width: 385px; }
.orbit-card { position: relative; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: var(--panel-raised); color: var(--on-dark); overflow: hidden; }
.orbit-card::before, .orbit-card::after { content: ""; position: absolute; inset: 17%; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.orbit-card::after { inset: 29%; border-style: dashed; border-color: rgba(255,255,255,.18); }
.orbit-lines i { position: absolute; z-index: 1; left: 50%; top: 50%; width: 41%; height: 1px; background: rgba(255,255,255,.14); transform-origin: left center; }
.orbit-lines i:nth-child(1) { transform: rotate(0deg); }
.orbit-lines i:nth-child(2) { transform: rotate(60deg); }
.orbit-lines i:nth-child(3) { transform: rotate(120deg); }
.orbit-lines i:nth-child(4) { transform: rotate(180deg); }
.orbit-lines i:nth-child(5) { transform: rotate(240deg); }
.orbit-lines i:nth-child(6) { transform: rotate(300deg); }
.orbit-core { position: absolute; inset: 34%; z-index: 2; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(15,29,25,.22); border-radius: 50%; background: var(--copper); color: var(--panel-dark); text-align: center; box-shadow: 0 0 0 9px rgba(225,122,86,.09); }
.orbit-core strong { font-family: var(--serif); font-size: 39px; font-weight: 400; line-height: .9; }
.orbit-core small { width: 72%; margin-top: 9px; font-size: 6px; font-weight: 800; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.orbit-label { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; padding: 5px 7px; background: var(--panel-raised); font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.orbit-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 3px rgba(225,122,86,.12); }
.orbit-label-a { top: 16%; left: 16%; }
.orbit-label-b { right: 5%; top: 48%; transform: translateY(-50%); }
.orbit-label-c { bottom: 14%; left: 19%; }
.orbit-label-d { top: 16%; right: 20%; }
.orbit-label-e { right: 17%; bottom: 14%; }
.orbit-label-f { top: 48%; left: 5%; transform: translateY(-50%); }
.availability { display: flex; gap: 9px; align-items: center; margin-top: 20px; color: var(--on-dark-muted); font-size: 11px; }
.availability span { width: 8px; height: 8px; border-radius: 50%; background: #6f9b63; box-shadow: 0 0 0 4px rgba(111,155,99,.13); }
.hero-foot { display: flex; align-items: end; justify-content: space-between; padding-top: 50px; }
.hero-foot p { margin: 0; font-family: var(--serif); font-style: italic; color: var(--on-dark-muted); }
.hero-disciplines { display: flex; gap: 20px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-disciplines span + span::before { content: "·"; margin-right: 20px; color: var(--copper); }

.section { padding: 132px 0; }
.section-index { color: var(--copper-deep); }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 11vw; }
.section-heading h2, .section-top h2, .contact h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.04; }
.section-heading h2 { font-size: clamp(46px, 5vw, 74px); }
.about-copy { padding-top: 46px; }
.about-copy p { color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.about-copy .lead { color: var(--ink); font-family: var(--serif); font-size: 27px; line-height: 1.4; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 55px; padding-top: 25px; border-top: 1px solid var(--line); }
.principles strong, .principles span { display: block; }
.principles strong { margin-bottom: 10px; font-family: var(--serif); font-size: 20px; }
.principles span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.services { background: var(--paper-deep); }
.section-top { display: grid; grid-template-columns: 1fr 360px; align-items: end; gap: 80px; margin-bottom: 70px; }
.section-top h2 { font-size: clamp(48px, 5.5vw, 80px); }
.section-top > p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.service { display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-number { padding-top: 7px; color: var(--copper-deep); font-family: var(--serif); font-size: 12px; }
.service h3 { margin-bottom: 10px; font-family: var(--serif); font-size: clamp(25px, 3vw, 38px); font-weight: 400; letter-spacing: -.025em; }
.service p { max-width: 630px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.work { background: var(--panel-dark); color: var(--on-dark); }
.section-top.light > p, .work .section-index { color: var(--on-dark-muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.project-card { padding: 15px; border: 1px solid rgba(255,255,255,.16); }
.project-featured { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; }
.project-featured-body { padding: 24px 25px 24px 38px; }
.project-featured .project-visual { margin-bottom: 0; }
.project-visual { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; margin-bottom: 25px; background: #1b2c26; object-fit: contain; }
.project-meta { display: flex; justify-content: space-between; margin-bottom: 14px; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.project-card h3 { margin-bottom: 12px; font-family: var(--serif); font-weight: 400; font-size: 29px; }
.project-card p { max-width: 650px; color: var(--on-dark-muted); font-size: 13px; line-height: 1.65; }
.project-card.project-featured h3 { font-size: clamp(34px, 4vw, 52px); }
.project-card.project-featured p { max-width: 420px; font-size: 14px; }
.project-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 5px; padding: 0; list-style: none; }
.project-card li { padding: 7px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 100px; color: var(--on-dark); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.work-note { margin: 30px 0 0; color: #87948d; font-size: 11px; }

.writing { background: var(--paper); }
.article-row { display: grid; grid-template-columns: 190px 1fr auto; gap: 30px; padding: 31px 0; border-top: 1px solid var(--line); }
.article-row:last-child { border-bottom: 1px solid var(--line); }
.article-link { position: relative; margin-bottom: 22px; padding: 30px 24px; border: 1px solid rgba(20,35,30,.28); border-left: 4px solid var(--copper); background: #f8f2e8; color: var(--ink); text-decoration: none !important; box-shadow: 6px 6px 0 rgba(20,35,30,.09); transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.article-link :where(.article-date, h3, p, span) { text-decoration: none !important; }
.article-link:hover { border-color: rgba(159,76,53,.55); border-left-color: var(--copper); background: #f3e8da; box-shadow: 8px 8px 0 rgba(20,35,30,.12); transform: translateY(-2px); }
.article-link:hover h3 { color: var(--copper-deep); }
.article-date { display: grid; align-content: start; gap: 8px; padding-top: 5px; color: var(--copper-deep); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.article-date time { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.article-row h3 { margin-bottom: 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 35px); letter-spacing: -.02em; }
.article-row p { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-row > span { padding-top: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.article-link > span { align-self: start; min-width: 70px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); text-align: center; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.article-link:hover > span { border-color: var(--copper); background: var(--copper); color: var(--panel-dark); }

.contact { padding: 125px 0 30px; background: var(--copper); }
.contact .section-index { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 8vw; align-items: start; }
.contact h2 { max-width: 790px; font-size: clamp(52px, 7vw, 100px); }
.contact-action { padding-bottom: 8px; }
.contact-action p { font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.contact-form { display: grid; gap: 17px; margin: 30px 0 4px; padding: 26px; border: 1px solid rgba(20,35,30,.25); border-radius: 3px; background: var(--paper); box-shadow: 9px 9px 0 rgba(20,35,30,.14); }
.contact-form label { display: grid; gap: 7px; }
.contact-form label > span { color: var(--ink-soft); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.contact-form label > span small { margin-left: 5px; color: var(--muted); font-size: 8px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(20,35,30,.28); border-radius: 0; background: #fffdf8; color: var(--ink); font: inherit; font-size: 14px; }
.contact-form input { height: 47px; padding: 0 13px; }
.contact-form textarea { min-height: 132px; padding: 12px 13px; line-height: 1.5; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--copper-deep); outline-offset: 2px; border-color: transparent; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-submit { display: flex; align-items: center; gap: 16px; }
.form-submit .button { flex: 0 0 auto; border: 0; cursor: pointer; }
.form-submit small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.form-honey { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }
.button-light { margin-top: 20px; background: var(--paper); color: var(--ink); }
.button-light:hover { background: #fff; }
.footer { display: grid; grid-template-columns: 1fr 1fr auto; margin-top: 125px; padding-top: 25px; border-top: 1px solid rgba(20,35,30,.3); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.footer p { margin: 0; }.footer p:nth-child(2) { text-align: center; }.footer a { text-decoration: none; }

.thanks-page { min-height: 100vh; background: var(--panel-dark); color: var(--on-dark); }
.thanks-shell { display: grid; align-content: space-between; width: min(760px, calc(100vw - 48px)); min-height: 100vh; margin-inline: auto; padding: 34px 0 72px; }
.thanks-page .brand { color: var(--on-dark); }
.thanks-card { padding: clamp(34px, 7vw, 70px); background: var(--paper); color: var(--ink); box-shadow: 14px 14px 0 rgba(225,122,86,.7); }
.thanks-card .eyebrow { color: var(--copper-deep); }
.thanks-card h1 { max-width: 650px; margin: 20px 0; font-size: clamp(48px, 8vw, 82px); line-height: .98; }
.thanks-card > p:not(.eyebrow) { max-width: 560px; margin-bottom: 30px; color: var(--ink-soft); font-family: var(--serif); font-size: 20px; line-height: 1.55; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Long-form notes */
.article-page { background: var(--paper); color: var(--ink); }
.article-nav { background: var(--panel-dark); color: var(--on-dark); border-bottom: 1px solid rgba(255,255,255,.12); }
.article-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.article-back { color: var(--on-dark-muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.article-back:hover { color: var(--on-dark); }
.article-shell { width: min(780px, calc(100vw - 48px)); margin-inline: auto; }
.article-hero { padding: 105px 0 95px; background: var(--panel-dark); color: var(--on-dark); }
.article-hero .eyebrow { color: var(--on-dark-muted); }
.article-hero h1 { max-width: none; margin-bottom: 30px; font-size: clamp(54px, 6vw, 84px); line-height: .98; }
.article-subtitle { max-width: 650px; color: var(--on-dark-muted); font-family: var(--serif); font-size: clamp(20px, 2.5vw, 27px); line-height: 1.45; }
.article-byline { margin: 32px 0 0; color: var(--on-dark-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.article-body { padding-block: 90px 110px; font-family: var(--serif); font-size: 19px; line-height: 1.72; }
.article-body > p { margin-bottom: 22px; }
.article-body h2 { margin: 82px 0 24px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
.article-body h3 { margin: 0 0 12px; font-family: var(--sans); font-size: 14px; line-height: 1.35; letter-spacing: .02em; }
.article-body li { margin-bottom: 10px; }
.article-summary { margin-bottom: 70px; padding: 30px 32px; border-left: 4px solid var(--copper); background: #eee8dc; font-size: 17px; line-height: 1.65; }
.article-summary p:last-child { margin-bottom: 0; }
.article-label { margin: 0 0 14px; color: var(--copper-deep); font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.article-lede { color: var(--ink); font-size: 25px; line-height: 1.5; }
.article-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 35px 0; font-family: var(--sans); }
.article-card { padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.32); }
.article-card h3 { color: var(--copper-deep); text-transform: uppercase; letter-spacing: .1em; }
.article-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.decision-model { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 35px 0; font-family: var(--sans); }
.decision-model section { padding: 25px; border: 1px solid var(--line); }
.decision-model section:last-child { border-color: rgba(159,76,53,.5); background: rgba(225,122,86,.08); }
.decision-model ol { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.article-quote { margin: 45px 0 !important; padding-left: 25px; border-left: 3px solid var(--copper); color: var(--copper-deep); font-size: 28px; line-height: 1.45; }
.article-parts { margin-block: 30px; border-top: 1px solid var(--line); }
.article-parts section { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.article-parts section > span { color: var(--copper-deep); font-family: var(--sans); font-size: 11px; font-weight: 700; }
.article-parts p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.article-table-wrap { margin: 35px 0; overflow-x: auto; font-family: var(--sans); }
.article-table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; line-height: 1.5; }
.article-table-wrap th, .article-table-wrap td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-table-wrap th { background: #e9e3d7; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.article-checklist, .article-anti-list { margin: 30px 0; padding: 0; list-style: none; font-family: var(--sans); font-size: 14px; line-height: 1.6; }
.article-checklist li, .article-anti-list li { position: relative; margin: 0; padding: 15px 12px 15px 42px; border-bottom: 1px solid var(--line); }
.article-checklist li:first-child, .article-anti-list li:first-child { border-top: 1px solid var(--line); }
.article-checklist li::before { content: ""; position: absolute; top: 18px; left: 10px; width: 13px; height: 13px; border: 2px solid var(--copper); }
.article-anti-list li::before { content: "×"; position: absolute; top: 11px; left: 10px; color: var(--copper-deep); font-size: 24px; }
.article-stages { display: grid; gap: 16px; margin: 35px 0; }
.article-stages section { display: grid; grid-template-columns: 70px 190px 1fr; gap: 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.article-stages section:last-child { border-bottom: 1px solid var(--line); }
.article-stages span { color: var(--copper-deep); font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-stages p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.article-closing { margin-top: 85px; }
.article-closing > p:last-child { padding: 25px; background: #eee8dc; color: var(--ink-soft); font-family: var(--sans); font-size: 13px; line-height: 1.65; }
.article-site-footer { padding: 28px 0; background: var(--copper); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-site-footer .shell { display: flex; justify-content: space-between; gap: 25px; }
.article-site-footer p { margin: 0; }
.article-site-footer a { text-decoration: none; }

/* Agent framework note */
.framework-list { display: grid; gap: 18px; margin: 35px 0; font-family: var(--sans); }
.framework-card { padding: 25px; border: 1px solid var(--line); background: rgba(255,255,255,.32); }
.framework-card.selected { border-left: 4px solid var(--copper); background: rgba(225,122,86,.08); }
.framework-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.framework-head h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 400; }
.framework-head span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.framework-card > p { margin: 0 0 18px; color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 1.55; }
.framework-tradeoffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.framework-tradeoffs h4 { margin: 0 0 8px; color: var(--copper-deep); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.framework-tradeoffs ul { margin: 0; padding-left: 17px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.architecture-flow { display: grid; gap: 12px; margin: 35px 0; font-family: var(--sans); }
.architecture-flow-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.architecture-flow-row:nth-child(2) { grid-template-columns: 1fr; }
.architecture-node { display: grid; place-items: center; min-height: 74px; padding: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.32); color: var(--ink-soft); font-size: 12px; font-weight: 700; line-height: 1.4; text-align: center; }
.architecture-node.primary { border-color: var(--copper); background: rgba(225,122,86,.1); color: var(--ink); }
.architecture-flow-note { margin: 8px 0 0; color: var(--muted); font-family: var(--sans); font-size: 12px; line-height: 1.55; }

/* Legacy modernization note */
.drawio-figure { margin: 38px 0; border: 1px solid var(--line); background: #eee8dc; font-family: var(--sans); }
.drawio-canvas { padding: 18px; overflow-x: auto; }
.drawio-canvas img { display: block; width: 100%; min-width: 760px; height: auto; background: #fff; }
.drawio-figure figcaption { padding: 0 18px 18px; }
.diagram-source-link { margin-left: 8px; color: var(--copper-deep); font-weight: 700; text-underline-offset: 3px; }
.article-code-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 35px 0; }
.article-code-label { margin-bottom: 8px; color: var(--muted); font-family: var(--sans); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.article-code { height: calc(100% - 26px); margin: 0; padding: 18px; overflow-x: auto; background: var(--panel-dark); color: var(--on-dark-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; line-height: 1.55; white-space: pre; }
.article-code-wide { height: auto; margin: 0 0 28px; }
.article-note { margin: -18px 0 30px; color: var(--muted); font-family: var(--sans); font-size: 12px; line-height: 1.65; }
.article-phases { display: grid; gap: 12px; margin: 32px 0; font-family: var(--sans); }
.article-phase { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.3); }
.article-phase > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--copper); color: var(--copper-deep); font-size: 11px; font-weight: 800; }
.article-phase h3 { margin-bottom: 5px; color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 400; }
.article-phase small { display: block; margin-bottom: 9px; color: var(--copper-deep); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.article-phase p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 15px; line-height: 1.55; }
.article-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 32px 0; font-family: var(--sans); }
.article-metric { padding: 20px; border-top: 3px solid var(--copper); background: #eee8dc; }
.article-metric strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--serif); font-size: 23px; font-weight: 400; }
.article-metric span { color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 720px); }
  .nav-toggle { display: block; position: relative; z-index: 2; width: 40px; height: 40px; cursor: pointer; }
  .nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px; background: var(--paper); font-family: var(--serif); font-size: 34px; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; color: var(--ink); }
  .js .nav.open a:not(.nav-cta) { color: var(--ink-soft); }
  .site-header.nav-open { color: var(--ink); }
  .nav-cta { font-family: var(--sans); font-size: 13px; }
  .hero { min-height: auto; padding-top: 135px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .hero-foot { margin-top: 75px; align-items: start; }
  .hero-disciplines { flex-direction: column; gap: 8px; align-items: end; }
  .hero-disciplines span + span::before { display: none; }
  .section { padding: 90px 0; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .about-copy { padding-top: 0; }
  .section-top { grid-template-columns: 1fr; gap: 25px; margin-bottom: 50px; }
  .section-top > p { max-width: 560px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured { display: block; grid-column: auto; }
  .project-featured-body { padding: 0; }
  .project-featured .project-visual { margin-bottom: 25px; }
  .contact-action { max-width: 550px; }
  .article-stages section { grid-template-columns: 60px 1fr; }
  .article-stages p { grid-column: 2; }
}

@media (max-width: 580px) {
  .hero { padding-top: 120px; }
  .eyebrow { gap: 8px; font-size: 9px; letter-spacing: .12em; white-space: nowrap; }
  .eyebrow span { flex: 0 0 24px; width: 24px; }
  h1 { font-size: clamp(55px, 16vw, 78px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-foot { display: block; }
  .hero-disciplines { margin-top: 25px; align-items: start; }
  .principles { grid-template-columns: 1fr; }
  .service { grid-template-columns: 34px 1fr; }
  .article-row { grid-template-columns: 1fr; gap: 10px; }
  .article-row > span { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { align-items: flex-start; flex-direction: column; }
  .footer { grid-template-columns: 1fr auto; row-gap: 16px; }
  .footer p:nth-child(2) { grid-row: 2; grid-column: 1 / -1; text-align: left; }
  .article-nav-inner { min-height: 68px; }
  .article-nav .brand-name { display: none; }
  .article-shell { width: min(100% - 32px, 780px); }
  .article-hero { padding: 78px 0 70px; }
  .article-hero h1 { font-size: clamp(47px, 13vw, 68px); }
  .article-body { padding-block: 60px 80px; font-size: 17px; }
  .article-body h2 { margin-top: 62px; }
  .article-summary { padding: 23px 20px; }
  .article-two-col, .decision-model, .framework-tradeoffs, .architecture-flow-row, .article-code-cols, .article-metrics { grid-template-columns: 1fr; }
  .article-quote { font-size: 23px; }
  .article-stages section { grid-template-columns: 1fr; gap: 8px; }
  .article-stages p { grid-column: auto; }
  .article-site-footer .shell { flex-direction: column; }
}
