/* Shogun Agents — a restrained technical identity. No external assets. */
:root {
  color-scheme: dark;
  --bg: #0f0704;
  --surface: #190d08;
  --raised: #24130c;
  --line: #543729;
  --text: #f5eee2;
  --muted: #c3b4a8;
  --subtle: #af9b89;
  --accent: #e8d088;
  --accent-dark: #0f0704;
  --signature: #d04c1d;
  --gold: #e8d088;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .42; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 560; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.25rem); line-height: 1.16; letter-spacing: -.045em; text-wrap: balance; }
h3 { line-height: 1.3; }
p { text-wrap: pretty; }
.container { width: min(100% - 96px, 1232px); margin-inline: auto; }
.mono, .eyebrow { font-family: var(--mono); }
.eyebrow { font-size: .8125rem; line-height: 1.65; letter-spacing: .065em; font-weight: 400; color: var(--accent); }
.accent { color: var(--accent); }
.icon { width: 24px; height: 24px; flex: 0 0 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; top: 12px; left: 12px; transform: translateY(-180%); padding: 10px 20px; background: var(--accent); color: var(--bg); z-index: 30; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(15,7,4,.93); backdrop-filter: blur(18px); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.25rem; letter-spacing: -.04em; text-decoration: none; font-weight: 650; flex: 0 0 auto; }
.brand .icon-mark { width: 32px; height: 32px; stroke: none; fill: var(--accent); }
.brand-light { font-weight: 400; color: #ded1bd; }
.main-nav { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: .875rem; text-decoration: none; padding: 14px 0; position: relative; transition: color .18s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav a::after { content: ""; position: absolute; bottom: 5px; height: 2px; left: 0; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.languages { display: flex; padding-left: 20px; border-left: 1px solid var(--line); }
.languages a { display: grid; place-items: center; min-width: 36px; min-height: 38px; font: .8125rem var(--mono); text-decoration: none; color: var(--muted); }
.languages a[aria-current] { color: var(--accent); }
.languages a:hover { color: var(--text); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 6px; background: transparent; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; font-size: .875rem; }
.menu-icon { width: 16px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; position: relative; }
.menu-icon::after { position: absolute; content: ""; height: 1px; background: currentColor; width: 11px; right: 0; top: 4px; }
.hero { position: relative; overflow: clip; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 37%, rgba(208,76,29,.13), transparent 46%); }
.hero .container { position: relative; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 44px; }
.stage-tag { display: inline-flex; align-items: center; padding: 5px 12px; font-size: .8125rem; line-height: 1.6; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; padding: 50px 0 64px; }
h1 { font-size: clamp(3.3rem, 6.8vw, 6rem); line-height: 1.025; letter-spacing: -.065em; font-weight: 580; }
h1 > span { display: block; }
html[lang="en"] h1 { font-size: clamp(3.2rem, 6vw, 5.25rem); letter-spacing: -.06em; }
.hero-intro { max-width: 550px; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; margin-top: 30px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; font-size: .9375rem; line-height: 1.5; font-weight: 580; text-decoration: none; border: 1px solid transparent; border-radius: 5px; transition: background .18s, border-color .18s, box-shadow .18s; }
.button-primary { background: var(--accent); color: var(--bg); }
.button-primary:hover { background: #f5dda4; box-shadow: 0 0 0 4px rgba(208,76,29,.12); }
.button-secondary { background: transparent; border-color: #735340; color: var(--text); }
.button-secondary:hover, .button-quiet:hover { border-color: var(--muted); background: var(--surface); }
.button-quiet { border-color: var(--line); background: transparent; color: var(--muted); }
.hero-note { color: var(--subtle); font-size: .875rem; margin-top: 20px; }
.hero-diagram { position: relative; border: 1px solid #70503a; border-radius: 10px; padding: 24px; background: linear-gradient(135deg, rgba(61,31,16,.95), rgba(15,7,4,.98)); box-shadow: 0 24px 90px rgba(15,7,4,.5); }
.hero-diagram::before { position: absolute; content: ""; inset: -9px; border: 1px solid rgba(232,208,136,.12); border-radius: 16px; pointer-events: none; }
.diagram-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .75rem; color: var(--accent); }
.diagram-brackets { color: var(--subtle); font: .8125rem var(--mono); }
.hero-diagram h2 { font-size: 1.25rem; letter-spacing: -.025em; margin-top: 12px; }
.mini-flow { margin: 26px auto 22px; max-width: 335px; }
.mini-node { display: flex; gap: 12px; align-items: center; border: 1px solid #654431; border-radius: 5px; background: #301b10; padding: 12px 14px; font-size: .875rem; min-height: 48px; }
.mini-node .mono { color: var(--subtle); font-size: .75rem; }
.mini-node .icon { width: 18px; height: 18px; color: var(--subtle); margin-left: auto; }
.node-orchestrator { border-color: #a77843; background: #3b2414; }
.node-orchestrator .icon, .node-orchestrator .mono { color: var(--accent); }
.node-verify { background: #352211; border-color: #a2753e; }
.node-verify .icon { color: var(--accent); }
.connector { display: block; height: 23px; width: 1px; background: #a2753e; margin-inline: auto; }
.mini-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
.mini-pair::before { content: ""; position: absolute; width: 20px; height: 1px; top: 50%; left: calc(50% - 10px); background: #a2753e; }
.mini-pair .mini-node { padding: 12px 10px; gap: 8px; }
.pair-input, .pair-output { position: relative; height: 28px; }
.pair-input::before { content: ""; position: absolute; left: 25%; right: 50%; top: 0; height: 14px; border-right: 1px solid #a2753e; border-bottom: 1px solid #a2753e; }
.pair-input::after { content: ""; position: absolute; left: 25%; top: 14px; height: 14px; border-left: 1px solid #a2753e; }
.pair-output::before { content: ""; position: absolute; left: 50%; right: 25%; top: 0; height: 14px; border-right: 1px solid #a2753e; border-bottom: 1px solid #a2753e; }
.pair-output::after { content: ""; position: absolute; left: 50%; top: 14px; height: 14px; border-left: 1px solid #a2753e; }
.fork-connector { position: relative; height: 28px; }
.fork-connector::before { content: ""; position: absolute; left: 50%; top: 0; height: 14px; border-left: 1px solid #a2753e; }
.fork-connector::after { content: ""; position: absolute; left: 25%; right: 25%; top: 14px; height: 14px; border: 1px solid #a2753e; border-bottom: 0; }
.mini-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; font: .8125rem var(--mono); color: var(--subtle); }
.mini-outcomes span { border: 1px dashed #796047; padding: 8px; border-radius: 4px; }
.mini-outcomes .outcome-delivery { border-style: solid; border-color: #af8a4b; color: var(--accent); background: #392711; }
.diagram-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #543b2b; padding-top: 15px; color: #cbb78d; font: .75rem/1.6 var(--mono); letter-spacing: .02em; }
.hero-diagram figcaption { font-size: .75rem; color: var(--subtle); margin-top: 12px; }
.principles-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.principles-strip > span { display: flex; align-items: center; gap: 10px; }
.principles-strip .icon { width: 19px; height: 19px; color: #bf985a; }
.section { padding: 106px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 72px; margin-bottom: 44px; }
.section-heading .eyebrow, .deliverables-grid .eyebrow, .faq-grid .eyebrow, .projects-grid .eyebrow, .about-grid .eyebrow { margin-bottom: 20px; }
.section-intro { font-size: 1.0625rem; line-height: 1.8; color: var(--muted); }
.fine-note { color: var(--subtle); font-size: .875rem; line-height: 1.7; margin-top: 24px; }
.principle-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.principle-card { padding: 30px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; color: var(--accent); }
.card-top .mono { color: var(--subtle); font-size: .8125rem; }
.principle-card h3 { font-size: 1.3125rem; letter-spacing: -.02em; margin-bottom: 15px; }
.principle-card p { color: var(--muted); font-size: 1rem; }
.architecture-section { background: #130906; }
.architecture-shell { border: 1px solid #755039; border-radius: 8px; background: #1b0e09; overflow: hidden; }
.flow-column, .architecture-controls, .correction-action { display: none; }
.enhanced .architecture-shell { display: grid; grid-template-columns: 370px minmax(0,1fr); }
.enhanced .flow-column { display: block; padding: 25px; border-right: 1px solid var(--line); background: #130906; }
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-steps li { position: relative; }
.flow-steps li:not(:last-child)::after { content: ""; display: block; width: 1px; height: 12px; margin-left: 24px; background: #795b39; }
.flow-step { display: flex; align-items: center; width: 100%; text-align: left; gap: 14px; padding: 13px; border: 1px solid transparent; border-radius: 5px; background: transparent; transition: background .18s, border-color .18s; }
.flow-step:hover { background: #3b2317; }
.flow-step[aria-pressed="true"] { background: #43271a; border-color: #ba7847; }
.step-number { display: flex; justify-content: center; align-items: center; width: 24px; color: var(--subtle); font-size: .8125rem; flex: 0 0 auto; }
.flow-step strong { display: block; font-size: 1rem; font-weight: 560; color: #f0e4d0; }
.step-short { display: block; font-size: .8125rem; color: var(--subtle); margin-top: 1px; }
.flow-step[aria-pressed="true"] .step-number, .flow-step[aria-pressed="true"] strong { color: var(--accent); }
.step-indicator { margin-left: auto; width: 6px; height: 6px; border: 1px solid #b39a77; border-radius: 1px; transform: rotate(45deg); flex: 0 0 auto; }
.flow-step[aria-pressed="true"] .step-indicator { background: var(--accent); border-color: var(--accent); }
.correction-loop { margin: 20px 12px 0; font: .8125rem var(--mono); display: flex; align-items: center; gap: 12px; color: var(--subtle); }
.correction-loop > span:first-child { color: var(--accent); font-size: 1.625rem; line-height: 1; }
.detail-column { padding: 36px; min-width: 0; display: flex; flex-direction: column; }
.step-detail { border-bottom: 1px solid var(--line); padding-block: 28px; }
.enhanced .step-detail { border-bottom: 0; padding: 0; }
.detail-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .75rem; letter-spacing: .03em; color: var(--subtle); margin-bottom: 27px; }
.detail-top > span:first-child { color: var(--accent); }
.step-detail h3 { font-size: 1.8rem; letter-spacing: -.03em; max-width: 500px; margin-bottom: 18px; }
.detail-body { font-size: 1rem; color: var(--muted); }
.step-detail dl { margin: 28px 0 22px; }
.step-detail dl > div { display: grid; grid-template-columns: 82px 1fr; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); }
.step-detail dt { color: var(--accent); font: .8125rem/1.7 var(--mono); }
.step-detail dd { margin: 0; font-size: .9375rem; color: #dccdb8; }
.enhanced .architecture-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.enhanced .correction-action { display: inline-flex; align-self: flex-start; color: var(--accent); border: 0; border-bottom: 1px solid #b67b45; background: none; font-size: .875rem; padding: 6px 0; margin-top: 20px; }
.correction-message { border-left: 2px solid var(--accent); padding: 10px 16px; font-size: .875rem; color: #ecd2a1; background: #3b2413; margin-bottom: 16px; }
.diagram-disclaimer { max-width: 900px; }
.deliverables-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.deliverables-grid .section-intro { margin-top: 24px; }
.deliverable-features { list-style: none; padding: 0; margin: 32px 0 0; }
.deliverable-features li { display: flex; gap: 16px; margin-top: 23px; }
.feature-line { width: 17px; height: 2px; background: var(--accent); margin-top: 11px; flex: 0 0 auto; }
.deliverable-features h3 { font-size: 1rem; font-weight: 580; margin-bottom: 6px; }
.deliverable-features p { font-size: .9375rem; color: var(--muted); }
.sample-editor { overflow: hidden; border: 1px solid #79553b; border-radius: 8px; background: #1a0d07; }
.editor-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--line); gap: 12px; background: #351f12; }
.editor-header > span:first-child { color: #d5bd91; font-size: .75rem; }
.editor-decoration { display: flex; gap: 5px; }
.editor-decoration i { width: 4px; height: 12px; border: 1px solid #bc8b4d; }
.sample-tabs { display: none; gap: 0; border-bottom: 1px solid var(--line); padding-inline: 10px; }
.enhanced .sample-tabs { display: flex; }
.sample-tabs button { display: flex; align-items: center; gap: 8px; font: .875rem var(--mono); background: none; border: 0; border-bottom: 2px solid transparent; padding: 18px 12px; color: var(--subtle); min-height: 48px; }
.sample-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--text); background: #3b2516; }
.sample-tabs .icon { width: 16px; height: 16px; }
.sample-panel pre { margin: 0; padding: 25px; overflow-x: auto; font: .875rem/1.9 var(--mono); color: #ddcfb7; tab-size: 2; }
.sample-file-name { color: var(--accent); padding: 20px 25px 0; font-family: var(--mono); }
.sample-panel code { font: inherit; }
.sample-panel code .code-heading { color: var(--accent); }
.sample-panel code .code-list { color: #f2e0c3; }
.sample-panel { min-height: 505px; }
.editor-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 9px 20px; color: var(--subtle); font-size: .75rem; align-items: center; }
.copy-button { display: none; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); min-height: 40px; padding: 6px; font-size: .8125rem; }
.enhanced .copy-button { display: flex; }
.copy-button .icon { width: 16px; height: 16px; }
.copy-button:hover { color: var(--accent); }
.copy-status { min-height: 22px; color: var(--accent); font-size: .8125rem; margin-top: 8px; }
.sample-note { margin-top: 6px; }
.offers-section { background: #25130c; }
.offer-heading-aside .stage-tag { margin-bottom: 18px; color: #ddc79c; border-color: #93733e; }
.audience-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 32px; margin-top: 8px; }
.audience-toggle { display: none; gap: 3px; border: 1px solid #8a6546; padding: 4px; border-radius: 6px; }
.enhanced .audience-toggle { display: flex; }
.audience-toggle button { min-height: 44px; padding: 9px 23px; border: 0; border-radius: 3px; color: var(--muted); background: none; font-size: .9375rem; }
.audience-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--bg); font-weight: 580; }
.purpose { color: #d6c5ae; font-size: 1rem; }
.audience-note { color: var(--subtle); font-size: .875rem; margin: 18px 0 32px; }
.enhanced .no-js-label { display: none; }
.tier-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.tier { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: 28px; background: #2c170f; position: relative; }
.tier-pro { border-color: #a98149; background: linear-gradient(165deg, #482919, #2b170e 65%); }
.tier-pro::before { position: absolute; content: ""; height: 2px; background: var(--accent); top: -1px; left: 26px; right: 26px; }
.tier-type { font-size: .75rem; line-height: 1.7; color: var(--subtle); letter-spacing: .025em; }
.tier-pro .tier-type { color: #e8d088; }
.tier h3 { font-size: 2.75rem; font-weight: 500; letter-spacing: -.04em; margin: 22px 0 8px; }
.tier-scope { font-size: 1.0625rem; color: var(--text); margin-bottom: 16px; line-height: 1.5; }
.tier-description { font-size: 1rem; color: var(--muted); min-height: 106px; }
.tier ul { list-style: none; margin: 25px 0 32px; padding: 23px 0 0; border-top: 1px solid #755039; }
.tier li { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 12px; font-size: .9375rem; color: #e3d0b5; }
.tier li .icon { width: 17px; height: 17px; color: #e8d088; margin-top: 4px; }
.tier-note { margin-top: auto; padding-top: 22px; border-top: 1px solid #755039; color: var(--subtle); font-size: .875rem; line-height: 1.7; }
.offer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 36px; }
.offer-details > div { display: flex; gap: 17px; }
.offer-details .icon { width: 21px; height: 21px; color: #cba365; margin-top: 3px; }
.offer-details h3 { margin: 0 0 9px; font-size: .75rem; }
.offer-details p { color: var(--muted); font-size: .9375rem; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.projects-section { background: linear-gradient(115deg, #3c1e0e, #0f0704 55%); }
.projects-grid .fine-note { margin-top: 18px; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.25fr; gap: 90px; }
.faq-grid .section-intro { margin-top: 24px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; list-style: none; cursor: pointer; padding: 23px 0; min-height: 68px; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-plus { flex: 0 0 auto; width: 14px; height: 14px; position: relative; color: var(--subtle); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: currentColor; }
.faq-plus::before { width: 14px; height: 1px; top: 7px; }
.faq-plus::after { width: 1px; height: 14px; left: 7px; transition: transform .18s; }
details[open] .faq-plus::after { transform: rotate(90deg); }
details[open] summary { color: var(--accent); }
.faq-list details > p { padding: 0 36px 25px 0; font-size: 1rem; color: var(--muted); }
.about-section { padding-bottom: 66px; background: #1a0d07; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 48px; border-top: 1px solid #705038; margin-top: 66px; padding-top: 48px; }
.closing-row p { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.3; letter-spacing: -.035em; color: #f0d9a5; }
.closing-row .button { flex: 0 0 auto; }
.site-footer { padding: 42px 0 24px; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top nav { display: flex; gap: 26px; font-size: .875rem; color: var(--muted); flex-wrap: wrap; }
.footer-top nav a { text-decoration: none; padding-block: 10px; }
.footer-top nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 21px; margin-top: 30px; color: var(--subtle); font-size: .8125rem; }
.error-page { min-height: 100vh; display: grid; align-content: center; padding-block: 70px; }
.error-page h1 { color: var(--accent); font-size: 7rem; margin: 40px 0 20px; }
.error-page p { color: var(--muted); margin-top: 16px; font-size: 1.125rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .6s ease both; }
  .hero-diagram { animation: enter .8s .1s ease both; }
  @keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1150px) {
  .container { width: min(100% - 64px, 1232px); }
  .main-nav { gap: 18px; }
  .header-inner { gap: 22px; }
  .hero-grid { gap: 40px; }
  .section-heading { gap: 42px; }
  .deliverables-grid, .faq-grid, .projects-grid { gap: 48px; }
  .enhanced .architecture-shell { grid-template-columns: 330px minmax(0,1fr); }
  .detail-column { padding: 28px; }
  .tier { padding: 24px; }
  .principle-card { padding: 25px; }
  .languages { padding-left: 12px; }
}
@media (max-width: 940px) {
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 72px; padding-block: 12px; }
  .header-actions { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin-top: 12px; margin-left: 0; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .enhanced .main-nav { display: none; }
  .enhanced .menu-toggle { display: inline-flex; }
  .enhanced .menu-open .main-nav { display: flex; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); }
  h1 { font-size: clamp(3.3rem, 7.4vw, 5rem); }
  html[lang="en"] h1 { font-size: clamp(2.9rem, 6.5vw, 4.2rem); }
  .hero-meta { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 28px; }
  .hero-diagram { padding: 20px; }
  .mini-pair .mini-node { padding-inline: 8px; font-size: .8125rem; gap: 6px; }
  .mini-pair { gap: 14px; }
  .diagram-meta { font-size: .75rem; justify-content: flex-start; gap: 6px 16px; }
  .principles-strip { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .section { padding-block: 80px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-intro { max-width: 700px; }
  .principle-card { padding: 23px; }
  .principle-card h3 { font-size: 1.125rem; }
  .enhanced .architecture-shell { grid-template-columns: 285px minmax(0,1fr); }
  .enhanced .flow-column { padding: 18px; }
  .flow-step { gap: 10px; padding: 10px; }
  .step-short { font-size: .75rem; }
  .detail-column { padding: 25px; }
  .step-detail h3 { font-size: 1.6rem; }
  .detail-top { margin-bottom: 20px; }
  .deliverables-grid { grid-template-columns: 1fr 1.15fr; gap: 36px; }
  .sample-panel pre { padding: 22px; font-size: .8125rem; }
  .sample-panel { min-height: 465px; }
  .tier-grid { gap: 12px; }
  .tier { padding: 20px; }
  .tier-type { font-size: .75rem; }
  .tier-description { min-height: 145px; }
  .faq-grid { grid-template-columns: 1fr 1.3fr; gap: 35px; }
  .about-grid { gap: 40px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 94px; }
  .container { width: calc(100% - 40px); }
  .brand { font-size: 1.125rem; gap: 8px; }
  .brand .icon-mark { width: 28px; height: 28px; }
  .header-actions { gap: 10px; }
  .languages { padding: 0; border-left: 0; }
  .languages a { min-width: 30px; min-height: 44px; }
  .main-nav { gap: 4px 20px; justify-content: flex-start; }
  .main-nav a { font-size: 1rem; min-height: 44px; padding: 10px 0; }
  .hero-meta { padding-top: 30px; gap: 16px; flex-wrap: wrap; }
  .hero-meta .eyebrow { font-size: .75rem; }
  .hero-grid { display: block; padding: 34px 0 36px; }
  h1 { font-size: clamp(3.2rem, 10.8vw, 4.6rem); letter-spacing: -.055em; }
  html[lang="en"] h1 { font-size: clamp(2.85rem, 9.3vw, 4.3rem); letter-spacing: -.055em; }
  .hero-intro { font-size: 1rem; max-width: 530px; margin-top: 25px; }
  .button-row { margin-top: 26px; }
  .button { padding: 12px 18px; }
  .hero-note { font-size: .8125rem; }
  .hero-diagram { margin: 42px 5px 0; padding: 24px; }
  .mini-pair .mini-node { font-size: .875rem; padding: 12px; gap: 10px; }
  .mini-pair { gap: 20px; }
  .diagram-meta { font-size: .75rem; }
  .principles-strip { gap: 18px 12px; font-size: .8125rem; }
  .principles-strip > span { gap: 8px; }
  .section { padding: 66px 0; }
  h2 { font-size: clamp(2rem, 6.5vw, 2.8rem); }
  .section-heading { margin-bottom: 30px; }
  .section-heading .eyebrow, .deliverables-grid .eyebrow, .faq-grid .eyebrow, .projects-grid .eyebrow, .about-grid .eyebrow { margin-bottom: 16px; }
  .section-intro { font-size: 1rem; }
  .principle-grid { grid-template-columns: 1fr; gap: 14px; }
  .principle-card { padding: 26px; }
  .card-top { margin-bottom: 22px; }
  .principle-card h3 { font-size: 1.25rem; }
  .enhanced .architecture-shell { grid-template-columns: 1fr; }
  .enhanced .flow-column { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .flow-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .flow-steps li:not(:last-child)::after { display: none; }
  .flow-step { height: 100%; border-color: var(--line); padding: 12px 9px; gap: 8px; }
  .step-short { display: none; }
  .flow-step strong { font-size: .875rem; }
  .step-number { width: 20px; font-size: .75rem; }
  .correction-loop { font-size: .75rem; margin-top: 16px; }
  .detail-column { padding: 25px; }
  .step-detail h3 { font-size: 1.625rem; }
  .step-detail dl > div { grid-template-columns: 68px 1fr; gap: 12px; }
  .architecture-controls .button { font-size: .8125rem; padding-inline: 14px; }
  .deliverables-grid, .projects-grid, .faq-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .deliverables-grid .section-intro { margin-top: 20px; }
  .sample-panel pre { font-size: .8125rem; padding: 22px; }
  .sample-panel { min-height: 465px; }
  .editor-header { padding: 16px 20px; }
  .editor-header > span:first-child { font-size: .75rem; }
  .offer-heading-aside { margin-top: 0; }
  .audience-row { grid-template-columns: 1fr; gap: 18px; }
  .audience-toggle { justify-self: start; }
  .tier-grid { grid-template-columns: 1fr; gap: 18px; }
  .tier { padding: 28px; }
  .tier-description { min-height: 0; }
  .tier h3 { margin-top: 17px; }
  .tier ul { margin-bottom: 25px; }
  .tier-scope { font-size: 1.125rem; }
  .tier-type { font-size: .75rem; }
  .offer-details { grid-template-columns: 1fr; gap: 28px; }
  .projects-grid { gap: 24px; }
  .faq-grid { gap: 25px; }
  .faq-grid .section-intro { margin-top: 18px; }
  .faq-list summary { padding-block: 20px; gap: 20px; }
  .faq-list details > p { padding-right: 12px; }
  .about-grid { gap: 22px; }
  .closing-row { align-items: flex-start; flex-direction: column; gap: 26px; margin-top: 40px; padding-top: 32px; }
  .closing-row p { font-size: 1.7rem; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; font-size: .8125rem; margin-top: 24px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 1rem; }
  .brand .icon-mark { width: 25px; height: 25px; }
  .header-actions { gap: 5px; }
  .languages a { min-width: 28px; }
  .menu-toggle { padding-inline: 8px; gap: 7px; }
  .hero-diagram { padding: 18px; }
  html[lang="en"] h1 { font-size: 2.55rem; }
  .mini-pair .mini-node { padding-inline: 9px; font-size: .8125rem; gap: 7px; }
  .detail-column { padding: 20px; }
  .principles-strip { grid-template-columns: 1fr; }
  .tier { padding: 24px; }
  .sample-panel pre { padding: 18px; font-size: .75rem; }
  .editor-header { padding-inline: 16px; }
  .editor-header .mono { font-size: .75rem; }
  .editor-decoration { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --text: #111; --muted: #333; --subtle: #444; --line: #bbb; --accent: #8e3316; }
  body { background: white; color: #111; }
  .site-header { position: static; background: white; }
  .hero { background: white; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-diagram, .flow-column, .architecture-controls, .correction-action, .copy-button, .sample-tabs, .menu-toggle, .stage-tag { display: none !important; }
  .enhanced .architecture-shell { display: block; }
  .step-detail[hidden], .sample-panel[hidden], .purpose[hidden] { display: block !important; }
  .architecture-shell, .sample-editor, .principle-card, .tier, .tier-pro, .about-section, .offers-section, .projects-section { background: white; color: #111; }
  .sample-panel pre, .step-detail dd, .tier li, .tier-scope, .purpose, .closing-row p { color: #222; }
  .section { padding: 35px 0; }
  .container { width: 100%; }
  .section-heading, .deliverables-grid, .tier-grid, .faq-grid, .projects-grid, .about-grid { display: block; }
  .principle-card, .tier, .step-detail, details { break-inside: avoid; margin-bottom: 20px; }
}
