/* YNHI brake discs — demo site. Dark precision-engineering look; brand blue #0671ba from the logo. */
:root {
  --bg: #07090d;
  --bg2: #0d1117;
  --panel: #111720;
  --ink: #e8edf3;
  --mute: #8d97a5;
  --line: rgba(255,255,255,.09);
  --blue: #0671ba;
  --blue-hi: #2a9bf0;
  --navy: #1e2289;
  --red: #c40c24;
  --heat: #ff7a1a;
  --paper: #eef1f5;
  --ink-d: #0c1118;
  --mute-d: #586273;
  --line-d: rgba(12,17,24,.1);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.02em; line-height: 1.08; margin: 0; }

.demo-bar { position: relative; z-index: 60; background: #000; color: #9aa4b2; font: 12px/1 var(--mono); letter-spacing: .06em; text-align: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(rgba(7,9,13,.85), rgba(7,9,13,0)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 6px 12px; box-shadow: 0 6px 24px rgba(6,113,186,.25); }
.brand img { width: 112px; height: auto; }
.menu { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; font-size: 14px; letter-spacing: .02em; }
.menu a { text-decoration: none; color: #c8d0da; padding: 6px 0; transition: color .2s; }
.menu a:hover { color: #fff; }
.menu .lang { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.menu .lang a { padding: 3px 10px; border-radius: 999px; font: 12px/1.4 var(--mono); }
.menu .lang a[aria-current] { background: var(--blue); color: #fff; }
.menu .lang a::after { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 40px; padding: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; margin: 5px auto; transition: transform .3s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(6,113,186,.35); }
.btn-primary:hover { background: #0a82d6; }
.btn-ghost { border-color: rgba(255,255,255,.22); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; margin-top: -84px; padding-top: 84px; min-height: 100vh; background:
  radial-gradient(900px 600px at 72% 46%, rgba(6,113,186,.16), transparent 60%),
  linear-gradient(180deg, #07090d 0%, #0a0e14 70%, #07090d 100%); touch-action: pan-y; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%); }
.hero-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; min-height: calc(100vh - 84px - 150px); gap: 24px; padding-top: 24px; }
.hero-copy { max-width: 560px; }
.eyebrow { font: 12px/1.4 var(--mono); letter-spacing: .16em; color: var(--blue-hi); text-transform: uppercase; margin: 0 0 22px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 78px); letter-spacing: -.035em; }
.hero h1 em, .hero h1 em .w { font-style: normal; color: transparent; background: linear-gradient(90deg, #dfe6ee, #8fb9dc 55%, #dfe6ee); -webkit-background-clip: text; background-clip: text; }
.lead { color: #aab4c1; font-size: 18px; max-width: 520px; margin: 26px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stage { position: relative; height: min(68vh, 640px); cursor: crosshair; }
.hud { position: absolute; right: 0; bottom: 4%; width: 190px; font: 11px/1.5 var(--mono); letter-spacing: .08em; color: #8d97a5; text-transform: uppercase; border-left: 1px solid rgba(42,155,240,.4); padding: 4px 0 4px 14px; }
.hud-state { color: #fff; font-size: 13px; letter-spacing: .14em; margin-bottom: 8px; }
.hud-state::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px var(--blue-hi); }
.hero.braking .hud-state::before { background: var(--heat); box-shadow: 0 0 12px var(--heat); }
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hud-row b { color: #dfe6ee; font-weight: 500; font-variant-numeric: tabular-nums; }
.hud-bar { flex: 0 0 84px; height: 3px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.hud-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue-hi), var(--heat)); transform-origin: 0 50%; transform: scaleX(var(--load, 0)); }
.hud-hint { margin-top: 10px; color: #5f6a79; }

.stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 26px 24px 34px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; font-size: .45em; color: var(--mute); margin-left: 4px; letter-spacing: 0; }
.stat span { display: block; margin-top: 10px; color: var(--mute); font-size: 13px; max-width: 220px; }

/* sections */
section { position: relative; }
main { overflow-x: clip; }
.about, .factory, .contact { padding: 130px 0; }
.sec-head { max-width: 780px; margin-bottom: 56px; }
.kicker { font: 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-hi); margin: 0 0 18px; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 52px); }
.sec-lead { color: var(--mute); max-width: 680px; margin: 20px 0 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { color: #b7c0cc; margin: 0 0 18px; }
.about-text strong { color: #fff; font-weight: 600; }
.markets { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.markets li { border: 1px solid rgba(42,155,240,.35); color: #cfe4f6; border-radius: 999px; padding: 6px 16px; font-size: 14px; }
.about-media { margin: 0; border-radius: 16px; overflow: hidden; contain: paint; }
.about-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.process { list-style: none; margin: 90px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: s; }
.process li { padding: 28px 24px 0 0; position: relative; }
.process li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--blue-hi); }
.process b { font: 12px/1 var(--mono); color: var(--mute); }
.process h3 { font-size: 20px; margin: 14px 0 8px; }
.process p { color: var(--mute); font-size: 14px; margin: 0; }

/* products — light section so the white product shots sit naturally */
.products-sec { background: var(--paper); color: var(--ink-d); padding: 130px 0; }
.products-sec .sec-lead { color: var(--mute-d); }
.products-sec .kicker { color: var(--blue); }
.products { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 16px; }
.product { background: #fff; border: 1px solid var(--line-d); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.product:nth-child(-n+3) { grid-column: span 5; }
.product:nth-child(n+4) { grid-column: span 3; }
.product img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 8px; transition: transform .7s var(--ease), filter .5s; }
.product:hover img { transform: scale(1.04) rotate(-4deg); }
.cap { padding: 4px 20px 22px; }
.cap h3 { font: 600 17px/1.3 var(--mono); letter-spacing: 0; }
.fit { color: var(--mute-d); font-size: 13px; margin: 6px 0 0; }
.cap dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0 0; font-size: 13px; border-top: 1px solid var(--line-d); padding-top: 12px; }
.cap dt { color: var(--mute-d); }
.cap dd { margin: 0; font-family: var(--mono); font-size: 12.5px; }
@media (hover: hover) { .products:hover .product:not(:hover) img { filter: grayscale(1) brightness(.85); opacity: .7; } }
.spec { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; background: var(--ink-d); color: var(--ink); border-radius: 18px; padding: 44px; }
.spec .kicker { color: var(--blue-hi); }
.spec h3 { font: 600 26px/1.2 var(--mono); }
.spec-copy p:last-child { color: var(--mute); }
.spec table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.spec th { color: var(--mute); }
.spec td { font-family: var(--mono); text-align: right; color: #fff; }

/* factory */
.photos { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.photos figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; contain: paint; }
.photos .wide { grid-row: span 2; }
.photos img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.photos figcaption { position: absolute; left: 16px; bottom: 14px; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(7,9,13,.7); padding: 8px 12px; border-radius: 999px; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.cert { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.cert b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.cert p { color: var(--mute); margin: 8px 0 0; font-size: 14px; }

/* faq */
.faq { padding: 130px 0; background: var(--bg2); border-block: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 550; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 24px/1 var(--sans); color: var(--blue-hi); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mute); margin: 14px 0 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.inquiry { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.inquiry p { margin: 0 0 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry label { display: block; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.inquiry input, .inquiry select, .inquiry textarea { width: 100%; background: #0a0e14; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; color: #fff; font: 15px/1.4 var(--sans); }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(42,155,240,.18); }
.form-note { color: #5f6a79; font-size: 13px; margin: 14px 0 0 !important; }
.contact-card { font-style: normal; display: grid; gap: 0; align-content: start; }
.contact-card p { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-card span { display: block; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.contact-card a { text-decoration: none; font-size: 20px; }
.contact-card a:hover { color: var(--blue-hi); }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--mute); font-size: 13px; }
.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { background: #fff; border-radius: 6px; padding: 4px 8px; width: 96px; }
.foot p { margin: 0; }
.foot-links { margin-left: auto !important; }

/* ===== 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 marquee { to { transform: translateX(-50%); } }

.motion .hero h1 .w { display: inline-block; opacity: 0; animation: rise .9s var(--ease) 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 .hud { animation: fadeUp .9s 2.2s both; }
.motion .stats { animation: fadeUp 1s 2s both; }

/* scroll reveal */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion [data-count].counted { text-shadow: 0 0 26px rgba(42,155,240,.45); transition: text-shadow .6s; }

/* marquee band of OE references */
.marquee { overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); padding: 22px 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: 36px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 600 clamp(26px, 3.6vw, 48px)/1 var(--mono); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1px #3b4552; white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee span:hover { color: var(--blue-hi); -webkit-text-stroke-color: var(--blue-hi); }
.marquee i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue-hi); flex: none; }

/* tilt + glow cards (pointer devices) */
.motion .tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease), border-color .3s, opacity .8s var(--ease); 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(340px circle at var(--gx, 50%) var(--gy, 50%), rgba(42,155,240,.16), transparent 60%); z-index: 2; }
.motion .tilt:hover::after { opacity: 1; }
.motion .product.tilt:hover { border-color: rgba(6,113,186,.5); }
.motion .cert.tilt:hover { border-color: rgba(42,155,240,.45); }

.motion .btn { translate: var(--bx, 0px) var(--by, 0px); transition: background .2s, color .2s, border-color .2s, translate .25s var(--ease); }

.menu > li:not(.lang) > a { position: relative; }
.menu > li:not(.lang) > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blue-hi); transform: scaleX(0); transition: transform .3s var(--ease); }
.menu > li:not(.lang) > a:hover::after { transform: scaleX(1); }

.motion .site-header { transition: background .3s, box-shadow .3s; }
.motion .site-header .nav { transition: height .3s; }
.motion .site-header.scrolled { background: rgba(7,9,13,.92); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.motion .site-header.scrolled .nav { height: 64px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; pointer-events: none; }

/* headings slide up out of a mask; images open like a curtain and settle from a slight zoom */
.motion .reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s .12s var(--ease), transform 1s .12s var(--ease); }
.motion .reveal.in h2 { clip-path: inset(-10% -5% -20% -5%); transform: none; }
.motion .about-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 var(--ease); }
.motion .about-media.reveal.in img, .motion .photos figure.reveal.in img { clip-path: inset(0); scale: 1; }
.process li::before { transform-origin: 0 50%; }
.motion .process li.reveal::before { transform: scaleX(0); transition: transform .9s var(--ease) calc(var(--d, 0ms) + 200ms); }
.motion .process li.reveal.in::before { transform: scaleX(1); }

/* responsive */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .product:nth-child(-n+3) { grid-column: span 2; }
  .product:nth-child(n+4) { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav { height: 68px; }
  .hero { margin-top: -68px; padding-top: 68px; }
  .menu-toggle { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: rgba(7,9,13,.97); padding: 8px 24px 24px; border-bottom: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu li { width: 100%; border-bottom: 1px solid var(--line); }
  .menu li a { display: block; padding: 14px 0; }
  .menu .lang { border: 0; margin-top: 14px; }
  .menu .lang a { display: inline-block; padding: 6px 14px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-top: 0; }
  .hero-stage { order: -1; height: min(86vw, 470px); }
  .hud { right: auto; left: 0; bottom: -4px; width: 200px; letter-spacing: .04em; }
  .hud-hint { display: none; }
  .hero-copy { padding: 18px 0 34px; }
  .lead { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 22px 16px 24px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about, .factory, .contact, .faq, .products-sec { padding: 84px 0; }
  .about-grid, .contact-grid, .spec, .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid { gap: 0; }
  .process { grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 56px; }
  .process li { padding-bottom: 28px; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product:nth-child(-n+3) { grid-column: span 2; }
  .product:nth-child(n+4) { grid-column: span 1; }
  .product:nth-child(n+4) .cap { padding: 0 12px 14px; }
  .product:nth-child(n+4) .cap h3 { font-size: 13px; }
  .spec { padding: 28px 22px; }
  .photos { grid-template-columns: 1fr; }
  .photos .wide { grid-row: auto; }
  .certs { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .inquiry { padding: 24px 20px; }
  .foot-links { margin-left: 0 !important; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 38px; }
  .btn { height: 48px; padding: 0 20px; font-size: 14px; }
  .stat b { font-size: 28px; }
}
