/* Sunrich Brake demo — shared styles for /, /ru/ */
:root {
  --bg: #091215;
  --surface: #0e1a1e;
  --surface-2: #132328;
  --line: #1e3238;
  --text: #edf2f2;
  --muted: #8fa3a7;
  --gold: #dab96a;
  --gold-hi: #ecd08a;
  --ink: #0a1316;
  --petrol: #1f414b;
  --cyan: #2aa6c2;
  --heat: #ff6a1f;
  --radius: 3px;
  --wrap: 1240px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-d: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1.4 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-d); }
h2 { font-size: clamp(30px, 4.2vw, 52px); margin: 16px 0 18px; }
h2 em, h1 em { font-style: normal; color: var(--gold); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
section { padding: 112px 0; position: relative; }
.sec-head { margin-bottom: 56px; max-width: 760px; }
.mono { font-family: var(--mono); }

/* demo ribbon */
.demo-bar { background: #050a0c; color: #9fb0b3; font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.demo-bar strong { color: var(--gold); font-weight: 600; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9,18,21,.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand img { width: 132px; }
.menu { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a { position: relative; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #c3d0d2; padding: 6px 0; transition: color .2s; }
.menu a:hover { color: #fff; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.menu a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.lang a { text-decoration: none; padding: 4px 8px; color: var(--muted); border-radius: var(--radius); }
.lang a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: var(--radius); font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border-color: #36505a; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 12px; }
.menu-toggle { display: none; background: none; border: 1px solid #2f474e; color: var(--text); width: 44px; height: 40px; border-radius: var(--radius); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* hero */
.hero { padding: 0; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 620px at 72% 52%, rgba(31,65,75,.55), transparent 70%),
    linear-gradient(180deg, #0a1518, var(--bg)); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(218,185,106,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(218,185,106,.05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 80% at 70% 50%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 70% 50%, #000, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; min-height: calc(100vh - 110px); min-height: calc(100svh - 110px); align-items: center; }
.hero-copy { position: relative; z-index: 3; padding: 72px 24px 72px 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); margin: 24px 0 24px; text-transform: none; }
.hero .lead { margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cert { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-cert b { color: var(--text); font-weight: 600; }

/* rotor stage (canvas + HUD) */
.rotor-stage { position: relative; z-index: 2; height: 100%; min-height: 560px; cursor: crosshair; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.rotor-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rotor-stage noscript img, .rotor-fallback { position: absolute; inset: 12% 8%; width: 84%; height: 76%; object-fit: cover; border-radius: 50%; opacity: .7; }
.hud { position: absolute; left: 4%; bottom: 7%; z-index: 3; display: grid; gap: 10px; width: 210px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.hud .tag { color: var(--gold); }
.hud .row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px; }
.hud .row b { font: 600 22px/1 var(--mono); color: var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.hud .bar { grid-column: 1 / -1; height: 2px; background: #1d3036; position: relative; overflow: hidden; }
.hud .bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--v, 0)); background: linear-gradient(90deg, var(--gold), var(--heat)); }
.hud-hint { position: absolute; right: 4%; top: 9%; z-index: 3; display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #cbd6d7; pointer-events: none; }
.hud-hint::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: 0 0 0 4px rgba(218,185,106,.12); }
.rotor-stage.braking .hud-hint::before { background: var(--heat); border-color: var(--heat); }
.mu-chip { position: absolute; right: 5%; bottom: 9%; z-index: 3; text-align: right; pointer-events: none; }
.mu-chip b { display: block; font: 700 clamp(34px, 3.6vw, 48px)/1 var(--font-d); color: var(--gold); }
.mu-chip span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 38px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(34px, 4vw, 54px)/1 var(--font-d); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; color: var(--gold); }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; letter-spacing: .04em; }

/* marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 700 clamp(26px, 3.6vw, 46px)/1 var(--font-d); letter-spacing: .04em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #3d565d; white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee span:hover { color: var(--gold); -webkit-text-stroke-color: var(--gold); }
.marquee i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); flex: none; }

/* products */
.range-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pad { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pad figure { margin: 0; background: #f3f4f2; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; }
.pad figure img { width: 82%; height: 92%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pad:hover figure img { transform: scale(1.05); }
.pad-body { padding: 20px 22px 22px; }
.code { font: 600 12px/1 var(--mono); color: var(--gold); letter-spacing: .08em; }
.pad h3 { margin: 10px 0 6px; font-size: 19px; }
.pad p { margin: 0; font-size: 13.5px; color: var(--muted); }
.range-note { margin-top: 22px; font-size: 13px; color: var(--muted); }

.lines { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
.line-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); min-height: 300px; display: flex; align-items: flex-end; }
.line-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.line-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(6,12,14,.95) 8%, rgba(6,12,14,.2) 70%); }
.line-card .cap { position: relative; z-index: 2; padding: 28px; }
.line-card .cap::before { content: ""; display: block; width: 0; height: 2px; background: var(--gold); margin-bottom: 14px; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.line-card:hover .cap::before { width: 52px; }
.line-card:hover img { transform: scale(1.04); }
.line-card h3 { font: 700 26px/1.1 var(--font-d); }
.line-card p { margin: 8px 0 0; color: #c2cfd1; font-size: 14.5px; max-width: 460px; }
@media (hover: hover) { .lines:hover .line-card:not(:hover) img { filter: grayscale(.7) brightness(.45); } }

/* friction formulas */
.formula { background: var(--surface); }
.formula-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.materials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 0; }
.materials div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.materials b { display: block; font: 700 18px/1.2 var(--font-d); letter-spacing: .04em; }
.materials span { font-size: 12.5px; color: var(--muted); }
.spec { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec li b { font: 700 30px/1 var(--font-d); color: var(--gold); font-variant-numeric: tabular-nums; }
.spec li span { font-size: 15px; color: #cdd8d9; }
.formula-media { position: relative; }
.formula-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.formula-media .badge { position: absolute; left: -20px; bottom: -24px; background: var(--gold); color: var(--ink); padding: 18px 22px; border-radius: var(--radius); max-width: 240px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.formula-media .badge b { display: block; font: 700 32px/1 var(--font-d); margin-bottom: 4px; }

/* factory */
.factory-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photos figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.photos figure:first-child { grid-column: 1 / -1; }
.photos img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.photos figure:first-child img { aspect-ratio: 16 / 8; }
.photos figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.lab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 56px; }
.lab figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.lab img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 2px; }
.lab figcaption { font-size: 12.5px; color: var(--muted); margin: 10px 4px 2px; }

/* certifications */
.certs { background: var(--surface); }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 1.1fr; gap: 18px; align-items: stretch; }
.cert { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.cert img { width: 100%; aspect-ratio: 526 / 745; object-fit: cover; background: #fff; border-radius: 2px; }
.cert figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.cert figcaption b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.cert-list { display: flex; flex-direction: column; gap: 12px; }
.cert-list div { border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--bg); padding: 16px 18px; border-radius: var(--radius); }
.cert-list b { display: block; font-size: 15px; margin-bottom: 4px; }
.cert-list span { font-size: 13px; color: var(--muted); }
.cert-list .mono { font-size: 12px; color: #c5d0d2; word-break: break-all; }
.marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.marks em { font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #2f474e; padding: 3px 8px; border-radius: 100px; color: #c5d0d2; }

/* shows */
.shows { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.show { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: linear-gradient(135deg, rgba(31,65,75,.35), transparent 60%); }
.show .code { display: block; margin-bottom: 14px; }
.show h3 { font: 700 26px/1.15 var(--font-d); }
.show p { margin: 10px 0 0; color: var(--muted); }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--gold); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #c4d0d2; margin: 0 0 20px; font-size: 15px; }

/* contact */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-size: 17px; }
.contact-list a:hover { color: var(--gold); }
form.inquiry { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); border: 1px solid #2a4148; color: var(--text); border-radius: var(--radius); padding: 12px 14px; font: 15px/1.4 var(--font); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
form.inquiry .btn { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { width: 110px; opacity: .85; }

/* responsive */
@media (max-width: 1080px) {
  .range-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .cert-list { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: #0a1417; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav { gap: 14px; }
  .nav-tools { margin-left: auto; }
  .nav-tools .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .rotor-stage { order: -1; min-height: 0; height: min(96vw, 520px); margin: 0 -28px; }
  .hero-copy { padding: 8px 0 56px; }
  .hud { width: 150px; left: 16px; bottom: 6px; gap: 6px; }
  .hud .row b { font-size: 17px; }
  .mu-chip { right: 16px; bottom: 6px; }
  .hud-hint { right: 16px; top: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lines, .formula-grid, .factory-grid, .faq-grid, .contact-grid, .shows { grid-template-columns: 1fr; gap: 44px; }
  .lines, .shows { gap: 18px; }
  .formula-media .badge { left: 12px; bottom: -18px; }
  .lab { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .rotor-stage { margin: 0 -16px; }
  .range-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .materials { grid-template-columns: 1fr 1fr; }
  .spec li { grid-template-columns: 96px 1fr; }
  .lab { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  form.inquiry { grid-template-columns: 1fr; padding: 22px; }
  .stat { padding: 26px 16px; }
  .lang a { padding: 4px 6px; }
  .brand img { width: 112px; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hud .row:nth-of-type(3), .hud .bar:nth-of-type(2) { display: none; }
}

/* ===== Motion layer — active with html.motion (always set by site.js) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(.55em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }

.motion .hero h1 .w { display: inline-block; opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 900ms); }
.motion .hero .eyebrow { animation: fadeUp .8s .7s both; }
.motion .hero .lead { animation: fadeUp .9s 1.5s both; }
.motion .hero .cta-row { animation: fadeUp .9s 1.7s both; }
.motion .hero-cert { animation: fadeUp .9s 1.9s both; }
.motion .hud, .motion .mu-chip, .motion .hud-hint { animation: fadeIn 1s 2.2s both; }

/* scroll reveal */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s .12s cubic-bezier(.2,.7,.2,1), transform 1s .12s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.in h2 { clip-path: inset(-10% -5% -20% -5%); transform: none; }
.motion .formula-media.reveal img, .motion .photos figure.reveal img { clip-path: inset(100% 0 0 0); scale: 1.15; transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), scale 1.8s cubic-bezier(.2,.7,.2,1); }
.motion .formula-media.reveal.in img, .motion .photos figure.reveal.in img { clip-path: inset(0); scale: 1; }

/* count-up numbers glow gold when done */
.motion [data-count] { transition: text-shadow .6s; }
.motion [data-count].counted { text-shadow: 0 0 28px rgba(218,185,106,.35); }
.stat b { transition: color .3s; }
.stat:hover b { color: var(--gold); }

/* tilt + glow cards (pointer devices) */
.motion .tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, opacity .8s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.motion .tilt.reveal:not(.in) { transform: perspective(900px) translateY(28px); }
.motion .tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(218,185,106,.16), transparent 60%); z-index: 3; }
.motion .tilt:hover::after { opacity: 1; }
.motion .tilt:hover { border-color: rgba(218,185,106,.5); }
.lab figure, .cert, .materials div, .show { position: relative; }

/* buttons: subtle magnetic pull */
.motion .btn { translate: var(--bx, 0px) var(--by, 0px); transition: background .2s, color .2s, border-color .2s, translate .25s cubic-bezier(.2,.7,.2,1); }

/* header shrink + scroll progress */
.motion .site-header { transition: background .3s, box-shadow .3s; }
.motion .site-header .nav { transition: height .3s; }
.motion .site-header.scrolled { background: rgba(9,18,21,.94); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.motion .site-header.scrolled .nav { height: 62px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--heat)); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; pointer-events: none; }
@media (max-width: 900px) { .motion .site-header.scrolled .nav { height: 76px; } .marquee { padding: 16px 0; } }
@media (max-width: 640px) {
  .hud { display: none; }
  .mu-chip b { font-size: 28px; }
}
.materials b { overflow-wrap: anywhere; hyphens: auto; }
.fm-img { overflow: hidden; border-radius: var(--radius); }
