/* OlegFed design system — editorial engineering identity.
 * Applied after page styles to preserve existing calculation engines and UI.
 * No external fonts or runtime dependencies. */
:root[data-theme="light"]{
 --brand-page:#f5f8fb;--brand-panel:#fff;--brand-soft:#edf4f8;
 --brand-ink:#112d43;--brand-copy:#4f6879;--brand-line:#cedee8;
 --brand-primary:#0c3453;--brand-accent:#24749d;
 --brand-shadow:0 18px 45px rgba(13,48,72,.065);
 --bg:var(--brand-page);--panel:var(--brand-panel);--line:var(--brand-line);
 --text:var(--brand-ink);--muted:var(--brand-copy);--a:#146f99;--v:#4b7fa4;
 color-scheme:light;
}
:root[data-theme="dark"]{
 --brand-page:#081925;--brand-panel:#102737;--brand-soft:#142f42;
 --brand-ink:#eff6fa;--brand-copy:#b4cad6;--brand-line:#385265;
 --brand-primary:#3d91bf;--brand-accent:#7cd2e9;
 --brand-shadow:0 18px 45px rgba(0,0,0,.22);
 --bg:var(--brand-page);--panel:var(--brand-panel);--line:var(--brand-line);
 --text:var(--brand-ink);--muted:var(--brand-copy);--a:#83d7e8;--v:#89add1;
 color-scheme:dark;
}
html[data-theme] body{background:var(--brand-page);color:var(--brand-ink);font-family:Inter,"Segoe UI",Arial,sans-serif}
html[data-theme] a:focus-visible,
html[data-theme] button:focus-visible,
html[data-theme] input:focus-visible,
html[data-theme] select:focus-visible{outline:3px solid var(--brand-accent);outline-offset:3px}
html[data-theme] .wrap{width:min(1320px,calc(100% - 64px))}
html[data-theme] .section{padding:86px 0}
html[data-theme] .eyebrow{color:var(--brand-accent);font-weight:750;letter-spacing:.14em}
html[data-theme] h2{font-size:clamp(2.05rem,3.65vw,3.65rem);letter-spacing:-.045em}
html[data-theme] h3{letter-spacing:-.035em}
html[data-theme] .heading p{max-width:470px;color:var(--brand-copy)}
html[data-theme] .muted{color:var(--brand-copy)}
/* Compact wordmark navigation — real working site links; no sign-in fiction. */
html[data-theme] .header{
 z-index:120;background:color-mix(in srgb,var(--brand-panel) 91%,transparent);
 border-bottom:1px solid var(--brand-line);
 box-shadow:0 8px 22px rgba(16,54,75,.035);backdrop-filter:blur(18px);
}
html[data-theme] .header-inner{height:80px;gap:20px}
html[data-theme] .header .brand{
 display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;
 width:184px;min-width:184px;gap:0;line-height:1;text-decoration:none;
}
html[data-theme] .header .brand-header-wordmark{
 display:block;width:184px;height:64px;max-width:100%;
 /* Crop only blank margins; preserve the original artwork and its proportions. */
 object-fit:cover;object-position:center 54%;border-radius:7px;background:#fff;
}
html[data-theme] .header .nav{gap:clamp(10px,1.35vw,23px);color:var(--brand-copy)}
html[data-theme] .header .nav a{font:650 12px/1.4 "Segoe UI",Arial,sans-serif;white-space:nowrap;transition:color .18s}
html[data-theme] .header .nav a:hover,
html[data-theme] .header .nav a[aria-current]{color:var(--brand-accent)}
html[data-theme] .header .nav .nav-cta{
 border:1px solid var(--brand-primary);border-radius:11px;
 padding:11px 15px;background:var(--brand-primary);color:#fff;
 box-shadow:0 4px 12px rgba(4,41,68,.11);
}
html[data-theme="dark"] .header .nav .nav-cta{background:#2a769d;border-color:#4a98bb;color:#fff}
html[data-theme] .header .nav .nav-cta:hover{background:#17557b;color:#fff;border-color:#17557b}
html[data-theme] .theme-toggle,html[data-theme] .language-switch button{
 border-radius:10px;background:var(--brand-soft);color:var(--brand-ink);
}
html[data-theme] .language-switch{border-radius:11px;border-color:var(--brand-line);background:var(--brand-soft)}
html[data-theme] .language-switch button{background:transparent}
html[data-theme] .language-switch button[aria-pressed="true"]{background:var(--brand-primary);color:#fff}
html[data-theme] .header .hamburger{
 background:var(--brand-soft);border:1px solid var(--brand-line);
 border-radius:10px;color:var(--brand-ink);min-width:44px;min-height:44px;place-items:center;
}
html[data-theme] .header .nav.open{
 background:var(--brand-panel);border-bottom:1px solid var(--brand-line);
 box-shadow:0 24px 38px rgba(8,39,59,.14);z-index:125;
}
/* Homepage master composition */
html[data-theme] .hero.brand-hero{
 position:relative;isolation:isolate;overflow:hidden;
 padding:68px 0 66px;border-bottom:1px solid var(--brand-line);
 background:radial-gradient(ellipse at 89% 10%,rgba(72,158,205,.13),transparent 46%),var(--brand-page);
}
html[data-theme] .hero.brand-hero:before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background-image:linear-gradient(rgba(29,111,157,.042) 1px,transparent 1px),linear-gradient(90deg,rgba(29,111,157,.042) 1px,transparent 1px);
 background-size:66px 66px;mask-image:linear-gradient(to bottom,#0007,transparent 82%);
}
html[data-theme] .brand-hero-layout{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);
 gap:clamp(32px,4vw,72px);align-items:center;min-height:535px;
}
html[data-theme] .brand-hero-copy{position:relative;min-width:0}
html[data-theme] .brand-kicker{
 display:flex;align-items:center;gap:11px;margin-bottom:19px;
 font:750 11px/1.4 "Segoe UI",Arial,sans-serif;
 letter-spacing:.17em;color:var(--brand-accent);
}
.brand-kicker-dot{width:7px;height:7px;border-radius:50%;background:#3a90bf;box-shadow:0 0 0 5px rgba(51,138,182,.13)}
html[data-theme] .brand-hero-wordmark{
 display:block;width:100%;max-width:650px;height:auto;aspect-ratio:1170/295;
 object-fit:contain;object-position:left center;margin:0 0 3px;
}
html[data-theme] .brand-disciplines-label{
 display:flex;align-items:center;gap:13px;flex-wrap:wrap;
 color:var(--brand-ink);margin:3px 0 15px;
 font:750 13px/1.7 "Segoe UI",Arial,sans-serif;letter-spacing:.24em;
}
.brand-disciplines-label i{width:1px;height:16px;background:#3e9cc2;display:block}
html[data-theme] .brand-acronym-tagline{
 max-width:620px;color:var(--brand-copy);font-size:clamp(13px,1.15vw,16px);
 font-weight:550;line-height:1.7;letter-spacing:.014em;margin:0 0 24px;
}
html[data-theme] .brand-hero-copy .brand-hero-title{
 max-width:640px;margin:25px 0 15px;line-height:1.15;
 font-size:clamp(29px,2.65vw,42px);letter-spacing:-.052em;color:var(--brand-ink);
 font-weight:770;
}
html[data-theme] .brand-hero-title span{color:var(--brand-accent)}
html[data-theme] .brand-hero-lead{
 color:var(--brand-copy);max-width:645px;
 font-size:clamp(14px,1.18vw,16px);line-height:1.85;margin:0;
}
html[data-theme] .brand-hero-actions{margin:26px 0 0;gap:11px}
html[data-theme] .btn{border-radius:11px;min-height:48px;padding:13px 19px;
 font-size:13px;font-weight:730;box-shadow:none;transition:transform .18s,background .18s,border-color .18s}
html[data-theme] .btn:hover{transform:translateY(-2px)}
html[data-theme] .btn.primary{background:#0b3554;border-color:#0b3554;color:#fff}
html[data-theme] .btn.primary:hover{background:#176289;border-color:#176289}
html[data-theme] .btn.secondary{background:var(--brand-panel);border-color:var(--brand-line);color:var(--brand-ink)}
html[data-theme] .btn.secondary:hover{border-color:var(--brand-accent);color:var(--brand-accent)}
html[data-theme] .brand-hero-facts{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 margin-top:31px;padding-top:18px;border-top:1px solid var(--brand-line);gap:13px;
}
.brand-hero-facts span{display:flex;flex-direction:column;gap:1px}
html[data-theme] .brand-hero-facts strong{font-size:13px;font-weight:770;color:var(--brand-ink)}
html[data-theme] .brand-hero-facts small{font:500 11px/1.5 "Segoe UI",Arial,sans-serif;color:var(--brand-copy)}
html[data-theme] .brand-hero-visual{
 position:relative;overflow:hidden;min-width:0;aspect-ratio:1.14;
 border-radius:24px;border:1px solid #c7d9e6;background:#e6f0f7;
 box-shadow:0 30px 60px rgba(17,64,94,.13);
}
html[data-theme] .brand-hero-landscape{
 display:block;width:100%;height:100%;object-fit:cover;object-position:54% center;
}
html[data-theme] .brand-visual-caption{
 position:absolute;bottom:19px;left:18px;right:18px;
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 border:1px solid rgba(240,247,250,.46);border-radius:11px;
 background:rgba(11,47,71,.78);backdrop-filter:blur(10px);
 color:#e8f6fc;padding:10px 13px;
 font:600 9px/1.4 "Segoe UI",Arial,sans-serif;letter-spacing:.085em;
}
.brand-visual-caption strong{font-size:10px;font-weight:800;color:#c7edfa}
:root[data-theme="dark"] .brand-hero-wordmark{
 background:#eff6fa;border:1px solid #bfd5e1;padding:13px 14px;border-radius:14px;
 box-shadow:0 10px 32px rgba(0,0,0,.12);
}
:root[data-theme="dark"] .brand-hero-visual{border-color:#4d6f84}
:root[data-theme="dark"] .brand-hero .btn.secondary{background:#183346}
/* Typography encodes the brand's seven-word acronym. */
html[data-theme] .brand-acronym{background:var(--brand-panel);border-bottom:1px solid var(--brand-line)}
.brand-acronym-inner{display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;align-items:center;padding:21px 0}
.brand-acronym-lead{border-right:1px solid var(--brand-line);padding-right:20px}
html[data-theme] .brand-acronym-lead>span{font-size:12px;color:var(--brand-accent);font-weight:800;letter-spacing:.14em}
html[data-theme] .brand-acronym-lead p{font:500 12px/1.5 "Segoe UI",Arial,sans-serif;color:var(--brand-copy);margin:3px 0 0}
.brand-acronym-track{display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px}
html[data-theme] .brand-acronym-track span{font:650 clamp(12px,1.1vw,15px)/1.55 "Segoe UI",Arial,sans-serif;color:var(--brand-copy)}
html[data-theme] .brand-acronym-track b{font-size:1.24em;color:var(--brand-accent);font-weight:900}
/* Four disciplines from the selected identity, each pointing to a real page section. */
html[data-theme] .brand-pillars{padding:62px 0 68px;background:var(--brand-page)}
.brand-pillars-top{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:27px}
html[data-theme] .brand-pillars-top h2{font-size:clamp(23px,2.6vw,34px);margin:0;max-width:800px}
html[data-theme] .brand-pillars-top h2 span{color:var(--brand-accent)}
.brand-pillar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
html[data-theme] .brand-pillar{
 position:relative;min-width:0;min-height:222px;display:flex;flex-direction:column;align-items:flex-start;
 padding:24px 23px 21px;border:1px solid var(--brand-line);border-radius:16px;
 background:var(--brand-panel);box-shadow:var(--brand-shadow);
 transition:transform .2s,border-color .2s,box-shadow .2s;
}
html[data-theme] .brand-pillar:hover{transform:translateY(-4px);border-color:#529ac0;box-shadow:0 21px 42px rgba(12,71,105,.13)}
.brand-pillar-art{color:var(--brand-accent);width:80px;height:70px;margin-bottom:15px}
.brand-pillar-art svg{width:80px;height:70px;display:block}
html[data-theme] .brand-pillar strong{color:var(--brand-ink);font-size:16px;line-height:1.3;font-weight:780}
html[data-theme] .brand-pillar p{max-width:280px;font:500 12px/1.65 "Segoe UI",Arial,sans-serif;color:var(--brand-copy);margin:7px 0 22px}
html[data-theme] .brand-pillar-arrow{position:absolute;right:19px;bottom:17px;font-size:20px;color:var(--brand-accent)}
/* Engineering tools, portfolio, long-form explanations — one consistent language. */
html[data-theme] .ticker{background:var(--brand-panel);border-top:1px solid var(--brand-line);border-bottom:1px solid var(--brand-line)}
html[data-theme] .ticker .wrap{padding:19px 0;color:var(--brand-copy)}
html[data-theme] .ticker b{color:var(--brand-accent)}
html[data-theme] :is(.services,.tech,.faq){background:var(--brand-panel)}
html[data-theme] :is(.cases,.process,.portfolio-teaser){background:var(--brand-page)}
html[data-theme] :is(.card,.case,.work-card,.contact-card,.console){
 background:var(--brand-panel);border-color:var(--brand-line);color:var(--brand-ink);
 box-shadow:var(--brand-shadow);border-radius:16px;
}
html[data-theme] :is(.card,.case,.work-card,.contact-card) :is(p,.art-caption){color:var(--brand-copy)}
html[data-theme] :is(.card,.case,.work-card,.contact-card):hover{border-color:#72a8c4}
html[data-theme] .card .number{color:var(--brand-accent);font-weight:700}
html[data-theme] .card .tags span{color:var(--brand-copy);border-color:var(--brand-line);background:var(--brand-soft)}
html[data-theme] .product-art{background:linear-gradient(160deg,rgba(59,135,180,.08),transparent 76%);border-color:var(--brand-line)}
html[data-theme] :is(.case.feature,.case.wide){background:var(--brand-panel);border-color:var(--brand-line)}
html[data-theme] :is(.case-link,.text-link){color:var(--brand-accent)}
html[data-theme] .steps .step{background:var(--brand-soft);border-color:var(--brand-line)}
html[data-theme] .step strong{color:var(--brand-ink)}
html[data-theme] .process-item{border-color:var(--brand-line)}
html[data-theme] .process-item small{color:var(--brand-accent)}
html[data-theme] .process-item h3{color:var(--brand-ink)}
html[data-theme] :is(.tech .intro,.process-item p,.principle p,.faq details p){color:var(--brand-copy)}
html[data-theme] .principle{border-color:var(--brand-line)}
html[data-theme] .principle strong{color:var(--brand-ink)}
html[data-theme] .faq details{border-color:var(--brand-line)}
html[data-theme] .faq summary{color:var(--brand-ink)}
html[data-theme] .contact{
 background:radial-gradient(circle at 5% 50%,rgba(55,149,196,.10),transparent 45%),var(--brand-soft);
}
html[data-theme] .contact h2{color:var(--brand-ink)}
html[data-theme] .contact p{color:var(--brand-copy)}
html[data-theme] .contact-card h3{color:var(--brand-ink)}
html[data-theme] .messenger-link{border-color:var(--brand-line);background:var(--brand-soft)}
html[data-theme] .messenger-copy strong{color:var(--brand-ink)}
html[data-theme] .messenger-icon{background:#e1eef6;color:#1e779a}
html[data-theme="dark"] .messenger-icon{background:#19415a;color:#99dce9}
html[data-theme] .messenger-copy small{color:var(--brand-copy)}
html[data-theme] .messenger-arrow{color:var(--brand-accent)}
html[data-theme] .contact-foot{border-color:var(--brand-line);color:var(--brand-copy)}
html[data-theme] .footer{background:var(--brand-panel);border-color:var(--brand-line);color:var(--brand-copy)}
html[data-theme] .footer strong{color:var(--brand-ink)}
html[data-theme] .footer strong span{color:var(--brand-accent)}
html[data-theme] .footer-actions a{color:var(--brand-accent)}
/* All live calculator directory cards retain their existing working links. */
html[data-theme] .calculations-section{
 background:linear-gradient(135deg,var(--brand-soft),var(--brand-page));
 border-color:var(--brand-line);
}
html[data-theme] .calc-groups-nav a{
 background:var(--brand-panel);color:var(--brand-copy);
 border-color:var(--brand-line);border-radius:10px;padding:11px 14px;
}
html[data-theme] .calc-groups-nav a:hover{color:var(--brand-accent);border-color:var(--brand-accent)}
html[data-theme] .calc-group{border-color:var(--brand-line)}
html[data-theme] .calc-group h3{color:var(--brand-ink)}
html[data-theme] .calc-group-num{color:var(--brand-accent)}
html[data-theme] .calc-group-header p{color:var(--brand-copy)}
html[data-theme] .calc-group .calculation-card,
html[data-theme] .calc-group .calculation-card-featured,
html[data-theme] .calc-roadmap-item{
 border-radius:15px;background:var(--brand-panel);border-color:var(--brand-line);
 box-shadow:var(--brand-shadow);color:var(--brand-ink);
}
html[data-theme] .calc-group .calculation-card:hover,
html[data-theme] .calc-roadmap-live:hover{background:var(--brand-soft);border-color:#59a0bd}
html[data-theme] .calc-group .calculation-card-featured{
 background:linear-gradient(125deg,var(--brand-panel),var(--brand-soft));border-color:#81b3cb;
}
html[data-theme] .calc-group .calculation-copy p,
html[data-theme] .calc-roadmap-item p{color:var(--brand-copy)}
html[data-theme] .calc-group .calculation-tags span{
 background:var(--brand-soft);border:1px solid var(--brand-line);color:var(--brand-copy)
}
html[data-theme] .calc-group .calculation-meta,
html[data-theme] .calc-soon{color:var(--brand-copy)}
html[data-theme] :is(.calc-group .calculation-live,.calc-live-tag,.calc-open-link){color:var(--brand-accent);border-color:var(--brand-line)}
html[data-theme] .calc-group .calculation-symbol{color:var(--brand-accent)}
html[data-theme] .calc-group .calculation-open{color:var(--brand-accent);border-color:var(--brand-line)}
/* Portfolio + collaboration listings */
html[data-theme] .portfolio-teaser .work-card{background:var(--brand-panel);border-color:var(--brand-line)}
html[data-theme] .work-copy h3,
html[data-theme] .partner-name{color:var(--brand-ink)}
html[data-theme] :is(.partner-field,.partner-visit,.work-meta){color:var(--brand-copy)}
html[data-theme] .partner-row{border-color:var(--brand-line)}
html[data-theme] .partner-row:hover{background:var(--brand-soft)}
html[data-theme] .partner-visit b{color:var(--brand-accent)}
/* Calculator page chroma follows the logo without touching formula semantics. */
:root[data-theme="light"] .shield-page{
 --sp-bg:#f5f8fb;--sp-panel:#fff;--sp-soft:#edf4f8;
 --sp-text:#112d43;--sp-muted:#506b7d;--sp-line:#cbdde7;--sp-accent:#176f9a;
 --sp-blue:#317aa4;--sp-input:#f9fcff;
}
:root[data-theme="light"] .wall-page{
 --wall-bg:#f5f8fb;--wall-panel:#fff;--wall-soft:#edf4f8;--wall-border:#cbdde7;
 --wall-text:#112d43;--wall-muted:#506b7d;--wall-accent:#176f9a;
}
html[data-theme] :is(.shield-panel,.wall-panel,.wall-graphic,.wall-input-panel,.wall-results){border-radius:15px}
/* Editorial responsive behaviour. */
@media(max-width:1250px){
 html[data-theme] .header .nav{display:none}
 html[data-theme] .header .nav.open{display:flex;position:absolute;top:80px;left:0;right:0;flex-direction:column;align-items:stretch;padding:17px 24px}
 html[data-theme] .header .nav.open a{font-size:14px;padding:11px}
 html[data-theme] .header .hamburger{display:grid}
}
@media(max-width:1080px){
 html[data-theme] .brand-hero-layout{grid-template-columns:minmax(0,1fr);gap:28px}
 html[data-theme] .brand-hero-copy{max-width:760px}
 html[data-theme] .brand-hero-visual{max-width:920px;aspect-ratio:1.8;margin:auto;width:100%}
 .brand-pillar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .brand-pillars-top{align-items:flex-start;flex-direction:column;gap:8px}
 .brand-acronym-inner{grid-template-columns:1fr;gap:12px}
 .brand-acronym-lead{border:0;padding:0}
}
@media(max-width:700px){
 html[data-theme] .wrap{width:calc(100% - 32px)}
 html[data-theme] .header .wrap{width:calc(100% - 26px)}
 html[data-theme] .header-inner{height:72px;gap:9px}
 html[data-theme] .header .nav.open{top:72px}
 html[data-theme] .header .brand{width:144px;min-width:108px}
 html[data-theme] .header .brand-header-wordmark{width:100%;height:auto;aspect-ratio:23/8}
 html[data-theme] .hero.brand-hero{padding:35px 0 43px}
 html[data-theme] .brand-kicker{font-size:9px;letter-spacing:.08em;margin-bottom:9px}
 html[data-theme] .brand-hero-layout{gap:23px;min-height:0}
 html[data-theme] .brand-hero-wordmark{margin:0 0 4px}
 html[data-theme] .brand-disciplines-label{font-size:10px;letter-spacing:.11em;gap:8px;margin:0 0 9px}
 .brand-disciplines-label i{height:12px}
 html[data-theme] .brand-acronym-tagline{font-size:12px;margin-bottom:15px}
 html[data-theme] .brand-hero-copy .brand-hero-title{font-size:clamp(26px,7.6vw,38px);margin:17px 0 13px}
 html[data-theme] .brand-hero-lead{font-size:14px}
 html[data-theme] .brand-hero-actions{display:grid;grid-template-columns:1fr;gap:9px}
 html[data-theme] .brand-hero-actions .btn{width:100%;justify-content:space-between;text-align:left}
 html[data-theme] .brand-hero-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:21px}
 html[data-theme] .brand-hero-facts strong{font-size:11px}
 html[data-theme] .brand-hero-facts small{font-size:9px}
 html[data-theme] .brand-hero-visual{aspect-ratio:1.18;border-radius:17px}
 html[data-theme] .brand-visual-caption{bottom:9px;left:9px;right:9px;gap:5px;padding:8px}
 html[data-theme] .brand-visual-caption span{font-size:8px}
 html[data-theme] .brand-visual-caption strong{font-size:8px}
 html[data-theme] .brand-acronym-inner{padding:17px 0}
 html[data-theme] .brand-acronym-track{gap:6px 11px}
 html[data-theme] .brand-acronym-track span{font-size:12px}
 html[data-theme] .brand-pillars{padding:45px 0 48px}
 .brand-pillar-grid{grid-template-columns:1fr 1fr;gap:10px}
 html[data-theme] .brand-pillar{min-height:215px;padding:17px 14px}
 .brand-pillar-art{margin-bottom:9px;width:60px;height:56px}
 .brand-pillar-art svg{width:60px;height:56px}
 html[data-theme] .brand-pillar strong{font-size:13px}
 html[data-theme] .brand-pillar p{font-size:11px;line-height:1.48;padding-right:5px}
 html[data-theme] .brand-pillar-arrow{right:11px;bottom:8px;font-size:16px}
 html[data-theme] .section{padding:64px 0}
 html[data-theme] .ticker .wrap{justify-content:center}
}
@media(max-width:390px){
 html[data-theme] .brand-disciplines-label{font-size:9px;gap:5px}
 html[data-theme] .brand-hero-facts{grid-template-columns:1fr 1fr}
 .brand-pillar-grid{grid-template-columns:1fr}
 html[data-theme] .brand-pillar{min-height:152px}
 html[data-theme] .brand-hero-visual{aspect-ratio:1.3}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme] .brand-pillar,html[data-theme] .btn{transition:none}
}

/* Readable formulas in all engineering disciplines.
   Static MathML needs no external library; toolkit TeX is set with local MathJax. */
.tunnel-method .tunnel-equation[data-tex]{
 display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;
 white-space:normal;overflow-wrap:normal;
 text-align:left;padding:18px 20px;
 border-radius:12px;border:1px solid var(--tt-border,var(--brand-line));
 background:var(--tt-soft,var(--brand-soft));color:var(--tt-text,var(--brand-ink));
 font:500 clamp(14px,1.65vw,18px)/1.8 "Cambria Math",Cambria,"Times New Roman",serif;
 scrollbar-width:thin;
}
.tunnel-method .tunnel-equation.math-rendered{
 padding:18px 20px;white-space:normal;
}
.tunnel-method .tunnel-equation mjx-container{
 display:block!important;max-width:none!important;
 width:max-content!important;margin:0!important;color:inherit;
 font-size:115%!important;
}
.tunnel-method .tunnel-equation svg{
 max-width:none!important;overflow:visible;
}
.tunnel-method .tunnel-equation.math-fallback{
 white-space:pre-wrap;overflow-wrap:anywhere;
 font-family:"Cambria Math",Cambria,"Times New Roman",serif;
}
html[data-theme] .method-grid math,
html[data-theme] .shield-formulas math,
html[data-theme] .wall-formula math,
html[data-theme] .tunnel-method math{
 color:inherit;font-family:"Cambria Math","STIX Two Math",Cambria,serif;
 font-size:clamp(17px,1.65vw,22px);
}
html[data-theme] .shield-formulas,
html[data-theme] .wall-formula{overflow-x:auto;scrollbar-width:thin}
@media(max-width:700px){
 .tunnel-method .tunnel-equation[data-tex]{padding:14px 12px;font-size:15px}
 .tunnel-method .tunnel-equation mjx-container{font-size:105%!important}
 html[data-theme] .wall-formula math,html[data-theme] .shield-formulas math{font-size:17px}
}

/* Task-focused catalogue and calculation-linked spatial view. */
html[data-theme] .hero.brand-hero{padding:56px 0}
html[data-theme] .brand-hero-layout{display:block;min-height:0}
html[data-theme] .brand-hero-copy{max-width:900px;margin-inline:auto;text-align:center}
html[data-theme] .brand-hero-copy .brand-hero-title{max-width:none;font-size:clamp(34px,3.8vw,56px);line-height:1.08;margin:22px 0;letter-spacing:-.045em}
html[data-theme] .brand-hero-lead{font-size:16px;line-height:1.75;max-width:720px;margin-inline:auto}
html[data-theme] .brand-hero-copy .brand-kicker{justify-content:center}
html[data-theme] .brand-hero-visual{aspect-ratio:1.82;background:#fff;border-radius:20px;box-shadow:var(--brand-shadow);min-height:0}
html[data-theme] .brand-hero-landscape{width:100%;height:100%;object-fit:contain;transform:none}
html[data-theme] .brand-hero-visual .brand-visual-caption{bottom:10px}
html[data-theme] .brand-hero-actions{display:flex;flex-wrap:wrap;justify-content:center}
html[data-theme] .brand-hero-actions .btn{padding:14px 18px;min-height:48px}
html[data-theme] .brand-hero-facts{max-width:720px;margin:24px auto 0}
html[data-theme] .calculations-section{padding-top:64px}
html[data-theme] .calc-groups-nav{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0 40px}
html[data-theme] .calc-groups-nav a{padding:12px 17px;min-height:44px;border-radius:8px;font-size:13px}
html[data-theme] .calc-group{padding:30px 0 38px;scroll-margin-top:96px}
html[data-theme] .calc-group-header{margin-bottom:22px}
html[data-theme] .calc-group-header h3{font-size:clamp(23px,2.3vw,32px);line-height:1.2}
html[data-theme] .calculation-card{border-radius:14px;transition:transform .18s,border-color .18s,box-shadow .18s}
html[data-theme] .calculation-card:hover{transform:translateY(-3px);box-shadow:var(--brand-shadow)}
html[data-theme] .calculation-card .calculation-symbol{height:170px;min-height:0}
html[data-theme] .calculation-card .lining-card-art{height:170px;padding:0}
html[data-theme] .lining-card-art img{height:100%;width:100%;object-fit:contain}
html[data-theme] .calc-group .calculation-copy h3{font-size:23px;line-height:1.2}
html[data-theme] .calc-group .calculation-copy p{font-size:14px;line-height:1.7}
html[data-theme] .calc-roadmap-item{border-radius:12px}
html[data-theme] .calc-group .calculation-card-featured{background:var(--brand-soft);grid-column:auto}
html[data-theme] .tunnel-lining-link{position:relative;overflow:hidden;padding-right:180px;min-height:140px}
html[data-theme] .tunnel-lining-link img{position:absolute;right:2px;top:0;width:180px;height:140px;object-fit:contain;opacity:.9}
html[data-theme] .tunnel-quick a{border-color:var(--brand-line);border-radius:14px}
html[data-theme] .excavation-layout{grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:24px;align-items:start}
html[data-theme] .excavation-inputs{min-width:0}
html[data-theme] .excavation-results{min-width:0}
html[data-theme] .visual-heading{gap:14px;flex-wrap:wrap}
html[data-theme] .visual-heading h2{font-size:23px}
html[data-theme] .visual-heading select{max-width:100%;width:100%}
html[data-theme] .visual-heading label{max-width:100%;min-width:0}
.excavation-model{margin:18px 0 22px;border:1px solid var(--brand-line);border-radius:13px;overflow:hidden;background:var(--brand-panel);scroll-margin-top:100px}
.model-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 12px}
html[data-theme] .model-heading h2{font-size:22px;line-height:1.3;letter-spacing:-.025em;margin:6px 0 0}
.model-heading .eyebrow{font-size:9px}
.model-mode{font-size:11px;color:var(--brand-accent);padding:5px 8px;border:1px solid var(--brand-line);border-radius:5px;white-space:nowrap}
.model-mode.is-stale{color:#ad7021;background:#d29e2020}
.model-stats{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:0 20px 15px;font-size:12px;color:var(--brand-copy);font-variant-numeric:tabular-nums}
.model-stats strong{color:var(--brand-ink);font-weight:650}
.model-viewport{position:relative;height:420px;background:radial-gradient(ellipse at 50% 45%,var(--brand-panel),var(--brand-soft));border-block:1px solid var(--brand-line);overflow:hidden}
#model-fallback,#excavation-canvas{position:absolute;inset:0;width:100%;height:100%}
#model-fallback svg{width:100%;height:100%}
#excavation-canvas{opacity:0;touch-action:pan-y;cursor:grab}
#excavation-canvas:active{cursor:grabbing}
.has-webgl #excavation-canvas{opacity:1}
.has-webgl #model-fallback{visibility:hidden}
.model-scale{position:absolute;bottom:15px;right:15px;width:155px;font-size:10px;color:var(--brand-copy);background:var(--brand-panel);padding:8px 10px;border:1px solid var(--brand-line);border-radius:6px;pointer-events:none;font-variant-numeric:tabular-nums}
.model-scale div{height:5px;border-radius:2px;background:linear-gradient(90deg,#507ea1,#39b9c4,#c9c965,#dd984c,#ce5f52);margin:5px 0}
.model-scale strong{float:right;font-weight:600}
.model-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px}
.model-controls>div{display:flex;gap:5px;flex-wrap:wrap}
.model-controls button{border:1px solid var(--brand-line);background:var(--brand-soft);color:var(--brand-ink);border-radius:6px;min-height:36px;min-width:36px;padding:5px 10px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;cursor:pointer}
.model-controls button:hover{border-color:var(--brand-accent)}
.model-controls label{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--brand-copy);cursor:pointer}
.model-controls input{width:16px;height:16px;accent-color:var(--brand-accent)}
.model-hint,.model-note{margin:0;padding:0 16px 12px;font-size:11px;line-height:1.6;color:var(--brand-copy)}
.model-note{border-top:1px solid var(--brand-line);padding-top:12px;background:var(--brand-soft)}
@media(min-width:1100px){html[data-theme] #calc-tunnels>.calculations-panel{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){
 html[data-theme] .brand-hero-layout{grid-template-columns:1fr;gap:24px}
 html[data-theme] .brand-hero-visual{max-width:760px;aspect-ratio:2}
 html[data-theme] .brand-hero-copy{max-width:720px}
 html[data-theme] .excavation-layout{grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:16px}
 .model-heading{align-items:flex-start;flex-direction:column}.model-viewport{height:340px}
}
@media(max-width:760px){
 html[data-theme] .hero.brand-hero{padding:32px 0}
 html[data-theme] .brand-hero-copy{text-align:left}
 html[data-theme] .brand-hero-copy .brand-kicker{justify-content:flex-start}
 html[data-theme] .brand-hero-copy .brand-hero-title{font-size:36px;margin:14px 0}
 html[data-theme] .brand-hero-lead{font-size:14px}
 html[data-theme] .brand-hero-visual{aspect-ratio:1.9;border-radius:12px}
 html[data-theme] .brand-hero-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-theme] .brand-hero-actions{display:grid;grid-template-columns:1fr}
 html[data-theme] .brand-hero-actions .btn{width:100%;justify-content:space-between}
 html[data-theme] .calculations-section{padding-top:40px}
 html[data-theme] .calc-groups-nav{gap:6px;margin:20px 0}
 html[data-theme] .calc-groups-nav a{font-size:12px;padding:10px 12px}
 html[data-theme] .calc-group{padding:24px 0}
 html[data-theme] .excavation-layout{grid-template-columns:1fr}
 html[data-theme] .excavation-inputs{position:static;max-height:none}
 html[data-theme] .tunnel-lining-link{padding-right:140px}
 html[data-theme] .tunnel-lining-link img{width:140px}
 .model-viewport{height:320px}.model-heading{padding:16px 14px 10px}
 .model-stats{padding:0 14px 12px;font-size:11px;gap:7px}
 .model-controls{gap:10px;padding:12px}.model-controls button{min-height:42px;min-width:42px}
 .model-scale{width:135px;bottom:10px;right:10px;font-size:9px}
}
@media(prefers-reduced-motion:reduce){html[data-theme] .calculation-card{transition:none}html[data-theme] .calculation-card:hover{transform:none}}
html[data-theme] #calc-tunnels .calculation-card{display:flex;flex-direction:column;gap:18px;padding:24px}
html[data-theme] #calc-tunnels .calculation-symbol{width:100%;height:150px;min-height:150px;max-width:none;display:flex;align-items:center;justify-content:center}
html[data-theme] #calc-tunnels .calculation-symbol svg{width:140px;height:140px}
html[data-theme] #calc-tunnels .lining-card-art img{width:230px;max-width:100%;height:150px}
html[data-theme] #calc-tunnels .calculation-copy{display:flex;flex-direction:column;flex:1}
html[data-theme] #calc-tunnels .calculation-open{margin-top:auto;padding-top:18px}
html[data-theme] #calc-tunnels .calculation-tags{margin-bottom:18px}
html[data-theme] .excavation-inputs .panel-heading h2{font-size:24px;line-height:1.2;letter-spacing:-.025em}
html[data-theme] .excavation-results .result-section h2{font-size:23px;line-height:1.3}
html[data-theme] .model-controls label{display:inline-flex;align-items:center;gap:6px}
@media(max-width:760px){html[data-theme] #calc-tunnels .calculation-card{padding:20px;gap:14px}}
html[data-theme] .model-controls label{flex-direction:row}
@media(max-width:1000px){html[data-theme] .excavation-layout{grid-template-columns:1fr}html[data-theme] .excavation-inputs{position:static;max-height:none}}
