/* Devnua light visual system. Semantic roles preserve the established palette. */
:root {
  --surface-page: var(--paper);
  --surface-panel: #fff;
  --surface-tint: #f1ecf5;
  --border-subtle: #e3dce9;
  --content-max: 1240px;
  --page-gutter: clamp(20px, 4vw, 56px);
  --text-measure: 62ch;
  --type-hero: clamp(44px, 5.7vw, 80px);
  --type-title: clamp(36px, 4.5vw, 62px);
  --type-section: clamp(30px, 3.3vw, 44px);
  --type-subhead: clamp(22px, 2vw, 28px);
  --type-body: 1rem;
  --type-small: .875rem;
  --type-caption: .75rem;
  --space-unit: 8px;
  --space-component: 24px;
  --space-content: 48px;
  --space-section: clamp(56px, 6.5vw, 88px);
  --radius-control: 999px;
  --radius-field: 10px;
  --radius-surface: 16px;
  --shadow-panel: 0 16px 48px -32px #2d16412b;
  --motion-fast: 160ms;
}
/* Type and alignment */
body { background: var(--surface-page); line-height: 1.7; }
.wrap, .nav-wrap { width: min(var(--content-max), calc(100% - var(--page-gutter) * 2)); }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { letter-spacing: -.05em; line-height: 1.08; }
h2 { font-size: var(--type-section); letter-spacing: -.04em; line-height: 1.16; }
h3 { font-size: var(--type-subhead); letter-spacing: -.025em; line-height: 1.25; }
.page-intro h1, .legacy-content h1 { font-size: var(--type-title); max-width: 25ch; }
.page-intro { padding-block: var(--space-section) var(--space-content); }
.lede, .page-intro .lede { max-width: var(--text-measure); font-size: 18px; line-height: 1.75; }
.section { padding-block: var(--space-section); }
.section-head { margin-bottom: var(--space-content); }
.eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: .1em; margin-bottom: 20px; }
.fine-print { font-size: var(--type-small); }
.design-hero { gap: clamp(32px, 4vw, 64px); padding-block: 64px; min-height: 0; }
.design-hero h1 { font-size: var(--type-hero); font-weight: 650; letter-spacing: -.055em; line-height: 1.06; }
.hero-description { font-size: 18px; line-height: 1.7; }
.hero-actions { gap: 16px 24px; }
.hero-actions .text-link { font-size: 13px; }
/* Navigation and controls */
.nav-wrap { height: 76px; }
.site-top { background: rgba(248,247,244,.98); border-color: var(--border-subtle); }
.site-top nav { gap: 24px; }
.site-top nav>a:not(.nav-button):after { bottom: 4px; }
.button, .nav-button { border-radius: var(--radius-control); min-height: 48px; padding: 12px 24px; font-size: 14px; line-height: 1.5; font-weight: 600; background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: none; transition: background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast); }
.button:hover, .nav-button:hover { background: var(--deep); border-color: var(--deep); transform: none; box-shadow: 0 4px 12px #2d164114; }
.button:active, .nav-button:active { box-shadow: inset 0 2px 4px #0002; }
.button.light { background: #fff; color: var(--deep); border-color: #fff; }
.button.light:hover { background: var(--lilac); border-color: var(--lilac); }
.text-link { font-size: 14px; border-bottom: 1px solid #b5a1c6; gap: 12px; transition: color var(--motion-fast), border-color var(--motion-fast); }
.text-link:hover, .text-link:focus-visible { gap: 12px; color: var(--purple); border-color: var(--purple); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.workbench :focus-visible { outline-color: var(--purple); }
input, select, textarea { border-radius: var(--radius-field); padding: 12px 14px; font-size: 16px; background: var(--surface-panel); }
label { font-size: 14px; }
.contact-grid form { border-radius: var(--radius-surface); box-shadow: var(--shadow-panel); }
/* Light working interface: retain all content, states and functionality. */
.workbench { background: var(--surface-tint); color: var(--ink); border: 1px solid var(--border-subtle); border-radius: var(--radius-surface); box-shadow: var(--shadow-panel); padding: 24px; }
.bench-brand { color: var(--purple); font-size: 11px; }
.illustrative { color: var(--muted); background: #fff; border-color: #d5c7e0; font-size: 11px; }
.bench-title { padding-block: 24px; }
.bench-title p { font-size: 26px; font-weight: 600; line-height: 1.25; }
.bench-title>span { color: var(--muted); }
.bench-tabs { background: #e7dfee; padding: 4px; border-radius: 12px; gap: 4px; }
.bench-tabs button { border-radius: 8px; color: var(--muted); font-size: 13px; padding: 10px 6px; }
.bench-tabs button:hover { background: #f9f6fc; color: var(--purple); }
.bench-tabs button[aria-pressed=true] { background: #fff; color: var(--purple); box-shadow: 0 1px 4px #2d16410d; }
.bench-paper { border: 1px solid var(--border-subtle); border-radius: 12px; padding: 24px; }
.bench-paper h2 { font-size: 23px; letter-spacing: -.03em; line-height: 1.3; }
.paper-description { font-size: 14px; line-height: 1.7; }
.bench-fields>div { font-size: 14px; }
.bench-fields dt { font-size: 12px; }
.bench-callout { background: var(--surface-tint); border-radius: 8px; }
.bench-bottom { color: var(--muted); font-size: 11px; gap: 12px; flex-wrap: wrap; }
.bench-bottom span+span:before { display: none; }
/* Section rhythm: light editorial surfaces, selective brand contrast. */
.sector-strip { background: transparent; border-block: 1px solid var(--line); }
.sector-strip .wrap { padding-block: 24px; }
.audience-grid h3 { font-size: 25px; }
.audience-grid p, .people-section .benefit-grid p { font-size: 16px; line-height: 1.75; }
.people-section .benefit-grid h3 { font-size: 24px; }
.example-teaser { background: var(--surface-tint); border: 1px solid var(--border-subtle); padding: 40px; border-radius: var(--radius-surface); }
.service-signature { background: var(--surface-tint); color: var(--ink); border: 1px solid var(--border-subtle); }
.service-signature>span, .service-signature>div { color: var(--muted); font-size: 11px; }
.service-signature strong { color: var(--purple); }
.service-signature p { font-weight: 600; }
.editorial-rows h3, .editorial-matrix article h3 { font-size: var(--type-subhead); }
.editorial-rows p { font-size: 16px; line-height: 1.75; }
.editorial-matrix { gap: 0 64px; }
.process-sequence article:before { font-size: 14px; font-weight: 650; }
.dark-section h2 { font-size: var(--type-section); }
.closing h2 { font-size: clamp(34px,4vw,56px); }
.closing-symbol { display: none; }
.footer-top>div>a:not(.footer-wordmark), .copy-button { font-size: 14px; }
.footer-top>div>a:not(.footer-wordmark) { margin-bottom: 0; }
.footer-base { font-size: 12px; }
/* Detailed workflow and retained specialty pages */
.demo-workspace { border-radius: var(--radius-surface); border-color: var(--border-subtle); box-shadow: var(--shadow-panel); }
.demo-workspace aside { background: var(--surface-tint); border-color: var(--border-subtle); }
.scenario-choices { border: 0; gap: 8px; }
.scenario-choices button { border: 1px solid var(--border-subtle); background: #fff; border-radius: var(--radius-control); padding: 10px 18px; }
.scenario-choices button[aria-pressed=true] { border-color: var(--purple); background: var(--surface-tint); }
.step-buttons button { border-radius: 10px; }
#demo-output>p, .record-list li { font-size: 15px; }
.record-list strong, .output-top span, .demo-side-note { font-size: 12px; }
.review-callout { font-size: 14px; line-height: 1.7; border-radius: 8px; }
.legacy-content h2 { font-size: var(--type-section); }
.legacy-content h3 { font-size: var(--type-subhead); }
.legacy-content .work-sample { background: var(--surface-tint); border-radius: var(--radius-surface); }
@media(max-width: 1000px) and (min-width: 821px) {
  .site-top nav { gap: 16px; font-size: 12px; }
  .nav-button { padding-inline: 18px; }
  .design-hero { grid-template-columns: 1fr 1fr; }
  .workbench { padding: 18px; }
  .bench-paper { padding: 18px; }
}
@media(max-width: 820px) {
  .nav-wrap { height: 68px; }
  .site-top nav { top: 68px; padding: 20px var(--page-gutter) 24px; border-radius: 0 0 16px 16px; }
  .site-top nav .nav-button { padding: 12px 24px; }
  .menu-toggle { min-width: 80px; border-radius: 999px; padding: 10px 12px; }
  .menu-toggle:hover { background: var(--surface-tint); }
  .design-hero { grid-template-columns: 1fr; gap: 36px; padding-block: 48px; }
  .design-hero h1 { font-size: clamp(44px,8.4vw,68px); }
  .hero-copy, .workbench { max-width: none; }
  .hero-description { max-width: 54ch; }
  .bench-fields>div { grid-template-columns: 120px 1fr; }
  .page-intro { padding-block: 56px 40px; }
  .editorial-matrix { gap: 0 32px; }
}
@media(max-width: 520px) {
  :root { --space-content: 32px; --space-section: 56px; --type-section: 32px; }
  .nav-wrap { height: 64px; }
  .site-top nav { top: 64px; }
  .design-hero { padding-block: 32px 40px; gap: 32px; }
  .design-hero h1 { font-size: clamp(40px,10.8vw,56px); }
  .hero-description, .lede, .page-intro .lede { font-size: 16px; }
  .hero-actions { gap: 12px 20px; }
  .hero-actions .text-link { font-size: 12px; }
  .button, .nav-button { font-size: 13px; padding: 12px 20px; }
  .workbench { padding: 16px; }
  .bench-title p { font-size: 23px; }
  .bench-tabs button { font-size: 12px; }
  .bench-paper { padding: 18px; }
  .bench-paper h2 { font-size: 21px; }
  .bench-fields>div { grid-template-columns: 1fr; }
  .page-intro { padding-block: 40px 32px; }
  .page-intro h1, .legacy-content h1 { font-size: clamp(34px,8.6vw,44px); }
  .example-teaser { padding: 28px 24px; }
  .editorial-matrix { grid-template-columns: 1fr; }
  .service-signature { min-height: 220px; }
  .record-list li { grid-template-columns: 1fr; }
  .footer-top { gap: 32px 24px; }
}
@media(prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

/* Approved image: preserve artwork without cropping or reinterpretation. */
.ecosystem-visual{margin:0;min-width:0;width:100%;align-self:center;}
.ecosystem-visual>a{display:block;border-radius:var(--radius-surface);overflow:hidden;border:1px solid var(--border-subtle);}
.ecosystem-visual img{display:block;width:100%;height:auto;object-fit:contain;}
.ecosystem-visual figcaption{margin-top:12px;text-align:right;}
.ecosystem-visual figcaption .text-link{font-size:12px;}
@media(min-width:821px){.design-hero{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;}}
