/* The oak is the page canvas, not a border around the hero. */
body.design-site[data-mode="e"]{
 position:relative;isolation:isolate;
 --oak-veil:rgba(251,241,222,.38);
 --surface:#fffaf2;--surface-ink:#282019;--surface-dim:#554238;
}
html[data-material-theme="dunkel"] body.design-site[data-mode="e"]{
 color-scheme:dark;--bg:#1f1b18;--head:#25201c;--paper:#2b2520;--ink:#fff5e9;--dim:#d2c2b1;
 --red:#ffad92;--gold:#ffdf9a;--line:#68594c;--control-border:#9b806d;--chip:#352a23;--active:#4b3329;
 --oak-veil:rgba(22,16,13,.44);--surface:#251e1a;--surface-ink:#fff4e8;--surface-dim:#d9c8b7;
}
body.design-site[data-mode="e"]::before{
 content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
 background:linear-gradient(var(--oak-veil),var(--oak-veil)),url("/leo-assets/material-oak-figured.webp") center center/cover no-repeat;
}
.material-surface{min-height:clamp(335px,39vw,550px);display:grid;align-items:center;padding:clamp(54px,8vw,130px) 0}
.material-surface .material-surface-copy{
 width:min(100%,650px);margin:0;padding:clamp(20px,4vw,48px);
 background:var(--surface);color:var(--surface-ink);text-align:left;
 border-radius:clamp(17px,3vw,34px);
}
.pairing .material-surface-copy p{color:var(--surface-dim);margin-inline:0}
body[data-mode="e"] .material-pair{margin-top:0}
body[data-mode="e"] .material-pair article,
body[data-mode="e"] :is(.content-section,.next-project,.material-teaser,.page-intro,.service-proof,.inner-hero,.legal,.case-hero,.case-body){
 padding:clamp(18px,3vw,38px);background:var(--surface);color:var(--surface-ink);border-radius:clamp(16px,2.4vw,28px);
}
body[data-mode="e"] :is(.content-section,.next-project,.material-teaser,.page-intro,.service-proof,.inner-hero,.legal,.case-hero,.case-body){margin-block-end:clamp(16px,3.8vw,54px)}
body[data-mode="e"] .material-pair article p{color:var(--surface-dim)}
body[data-mode="e"] .material-pair article:nth-child(2){margin-top:clamp(0px,4vw,40px)}
@media(max-width:650px){
 .material-surface{min-height:360px;padding:70px 0}
 .material-surface .material-surface-copy{width:min(94%,650px)}
 body[data-mode="e"] .material-pair{grid-template-columns:1fr;gap:14px}
 body[data-mode="e"] .material-pair article:nth-child(2){margin-top:0}
}

/* Nested curves share their padding with the inner radius calculation. */
body.design-site[data-mode="e"] [data-radius-shell]{
 --nested-inset:clamp(16px,2.6vw,34px);
 --inner-curve:clamp(17px,2.4vw,27px);
 --outer-curve:calc(var(--nested-inset) + var(--inner-curve));
 padding:var(--nested-inset);
 border-radius:var(--outer-curve);
}
body.design-site[data-mode="e"] [data-radius-shell] > .smooth{border-radius:max(0px,calc(var(--outer-curve) - var(--nested-inset)))}
/* Keep the wood visible around a readable, solid footer surface. */
body[data-mode="e"] .footer{
 background:var(--surface);color:var(--surface-ink);padding:22px clamp(16px,2.6vw,34px);
 border:0;border-radius:clamp(16px,2.4vw,28px);
}
body[data-mode="e"] .footer p{color:var(--surface-dim)}
body[data-mode="e"] .footer a{color:var(--surface-ink);text-decoration:underline;text-underline-offset:4px;min-height:44px}
body[data-mode="e"] :is(.footer,.drawer-panel) a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.material-alternate{display:inline-flex;align-items:center;min-height:44px;font-weight:720;color:var(--ink);text-decoration:underline;text-underline-offset:4px}
body.design-site[data-mode="e"]::before{inset:-36px 0 -116px;transform:translateY(var(--oak-shift,0px))}
@media(prefers-reduced-motion:reduce){body.design-site[data-mode="e"]::before{transform:none}}
