/* TS Bearings demo — navy / steel / signal orange */
:root {
  --ink: #07122a;
  --navy: #0c1d42;
  --navy-2: #13295a;
  --brand: #1a428b;
  --blue: #006ccc;
  --sky: #99c9e8;
  --signal: #eb3c00;
  --steel: #c9d3e0;
  --paper: #f3f5f8;
  --white: #fff;
  --muted: #8a98b3;
  --line: rgba(153, 201, 232, .16);
  --radius: 14px;
  --wrap: 1200px;
  --sans: "Helvetica Neue", "Segoe UI", "PingFang SC", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--sans); color: #dfe6f2; background: var(--ink); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--white); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.2vw, 54px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--sky); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--signal); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: #b9c5da; max-width: 60ch; }

/* demo ribbon + header */
.demo-bar { background: #000; color: #9fb0cc; font: 12px/1 var(--mono); text-align: center; padding: 8px 12px; letter-spacing: .04em; position: relative; z-index: 60; }
.site-header { position: sticky; top: 0; z-index: 50; transition: background .35s, padding .35s, box-shadow .35s; padding: 18px 0; background: linear-gradient(rgba(7, 18, 42, .85), rgba(7, 18, 42, 0)); }
.site-header.scrolled { padding: 8px 0; background: rgba(7, 18, 42, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 3px 6px; transition: height .35s; }
.scrolled .brand img { height: 36px; }
.brand span { font: 600 13px/1.2 var(--sans); color: #fff; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.menu { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a { text-decoration: none; font-size: 14px; color: #c6d1e4; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--signal); transition: right .3s; }
.menu a:hover::after, .menu a[aria-current]::after { right: 0; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: #9fb0cc; font: 600 12px/1 var(--sans); padding: 8px 11px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s; will-change: transform; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: #ff4d10; }
.btn-ghost { border-color: rgba(255, 255, 255, .25); color: #fff; background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--sky); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* toast */
.toast { position: fixed; left: 50%; top: 92px; transform: translate(-50%, -14px); opacity: 0; pointer-events: none; z-index: 80; background: rgba(12, 29, 66, .96); border: 1px solid rgba(153, 201, 232, .35); color: #e8eef8; padding: 14px 20px; border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); font-size: 14px; max-width: min(460px, calc(100vw - 32px)); text-align: center; transition: opacity .3s, transform .3s; }
.toast b { color: var(--sky); display: block; font-size: 12px; letter-spacing: .14em; font-family: var(--mono); margin-bottom: 4px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* hero */
.hero { position: relative; min-height: calc(100vh - 30px); min-height: calc(100svh - 30px); margin-top: -82px; padding-top: 82px; display: flex; align-items: center; overflow: hidden; background: radial-gradient(120% 90% at 72% 40%, #13306b 0%, #0a1838 46%, var(--ink) 80%); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(80% 70% at 70% 45%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(80% 70% at 70% 45%, #000 30%, transparent 80%); opacity: .55; z-index: -2; }
.hero canvas.rig { position: absolute; inset: 0; z-index: -1; cursor: crosshair; touch-action: pan-y; }
.hero-copy { position: relative; max-width: 560px; padding: 40px 0 120px; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero h1 { font-size: clamp(40px, 5.6vw, 78px); font-weight: 650; margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.readout { position: absolute; right: max(16px, calc((100vw - var(--wrap)) / 2)); bottom: 34px; display: grid; grid-template-columns: repeat(4, auto); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 18, 42, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--mono); pointer-events: none; }
.readout div { padding: 10px 16px; border-left: 1px solid var(--line); }
.readout div:first-child { border-left: 0; }
.readout small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.readout b { color: #fff; font-size: 15px; font-weight: 600; }
.readout .live b { color: var(--signal); }
.hero-stage { display: none; }
.hint { position: absolute; left: max(16px, calc((100vw - var(--wrap)) / 2)); bottom: 38px; font: 12px/1.4 var(--mono); color: var(--muted); letter-spacing: .06em; pointer-events: none; }
.hint i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* stats + marquee */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--navy); }
.stat { padding: 34px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 46px); color: #fff; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.stat b i { font-style: normal; color: var(--signal); }
.stat span { font-size: 14px; color: var(--muted); }
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink); padding: 16px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: slide 46s linear infinite; font: 600 14px/1 var(--mono); letter-spacing: .1em; color: #5f7397; white-space: nowrap; }
.marquee-track i { color: var(--signal); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec-light { background: var(--paper); color: #33405a; }
.sec-light h2, .sec-light h3 { color: var(--ink); }
.sec-light .eyebrow { color: var(--brand); }
.sec-light .lead { color: #4c5a75; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { margin-top: 18px; }

/* anatomy / story */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.story-media { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 772 / 464; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid #d7dee9; }
.facts li { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid #d7dee9; font-size: 15px; }
.facts li b { color: var(--ink); font-weight: 600; }

/* product lines */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.line-card { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--navy-2), var(--navy)); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; transition: filter .35s, opacity .35s; }
.line-card .ph { aspect-ratio: 772 / 464; background: #fff; overflow: hidden; }
.line-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.line-card:hover .ph img { transform: scale(1.05); }
.line-card .tx { padding: 28px 30px 32px; }
.line-card h3 { font-size: 26px; margin-bottom: 10px; }
.line-card p { color: #a9b6cc; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { font: 600 12px/1 var(--mono); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--sky); }
.more { display: inline-flex; gap: 8px; margin-top: 18px; color: #fff; font-weight: 600; font-size: 14px; }
.more::after { content: "→"; color: var(--signal); transition: transform .3s; }
.line-card:hover .more::after { transform: translateX(5px); }

/* capability */
.capab { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cap { background: var(--navy); padding: 34px 28px 38px; position: relative; overflow: hidden; }
.cap .no { font: 600 12px/1 var(--mono); color: var(--signal); letter-spacing: .14em; }
.cap h3 { margin: 18px 0 10px; }
.cap p { color: #9eacc4; font-size: 15px; margin: 0; }

/* certs */
.certs { display: grid; grid-template-columns: 1.1fr 2fr; gap: 28px; align-items: stretch; }
.iatf { border-radius: 18px; padding: 40px 36px; background: linear-gradient(150deg, var(--brand), #0d2558); color: #dce6f7; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; position: relative; overflow: hidden; }
.iatf::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 28px solid rgba(153, 201, 232, .12); }
.iatf b { font-size: clamp(38px, 4vw, 54px); color: #fff; letter-spacing: -.02em; line-height: 1; display: block; margin: 16px 0 6px; }
.patents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.patent { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #dfe5ee; display: flex; flex-direction: column; transition: filter .35s, opacity .35s; }
.patent .ph { aspect-ratio: 3 / 4; overflow: hidden; background: #f4f4f2; }
.patent .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.patent .tx { padding: 14px 16px 18px; font-size: 13px; color: #4c5a75; }
.patent .tx b { display: block; color: var(--ink); font-size: 14px; line-height: 1.35; margin-bottom: 6px; }
.patent code { font: 600 12px/1.3 var(--mono); color: var(--brand); }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.faq { border: 1px solid var(--line); border-radius: 14px; background: rgba(19, 41, 90, .45); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 56px 22px 24px; font-weight: 600; color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--signal); font-size: 22px; font-weight: 400; transition: transform .3s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 24px 22px; margin: 0; color: #a9b6cc; font-size: 15px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 70px); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid #d7dee9; display: grid; grid-template-columns: 110px 1fr; gap: 14px; font-size: 15px; }
.contact-list li span { font: 600 11px/1.8 var(--mono); letter-spacing: .14em; color: #7d8aa3; text-transform: uppercase; }
.contact-list a { color: var(--brand); text-decoration: none; font-weight: 600; }
form.inq { background: #fff; border-radius: 18px; padding: clamp(24px, 4vw, 40px); border: 1px solid #dfe5ee; box-shadow: 0 30px 60px -30px rgba(12, 29, 66, .35); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inq label { display: grid; gap: 6px; font-size: 13px; color: #56637d; font-weight: 600; }
.inq .full { grid-column: 1 / -1; }
.inq input, .inq textarea, .inq select { font: inherit; font-weight: 400; color: var(--ink); border: 1px solid #cfd8e4; border-radius: 10px; padding: 12px 14px; background: #f8fafc; width: 100%; }
.inq input:focus, .inq textarea:focus, .inq select:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.inq textarea { min-height: 120px; resize: vertical; }
.inq .btn { justify-self: start; }
.inq small { color: #7d8aa3; font-size: 12px; align-self: center; }

/* catalogue page */
.page-hero { padding: 150px 0 70px; background: radial-gradient(90% 120% at 80% 0%, #13306b, var(--ink) 70%); margin-top: -82px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(38px, 5vw, 66px); margin: 18px 0; }
.page-hero canvas { position: absolute; right: -40px; top: 40px; width: 520px; height: 520px; opacity: .55; pointer-events: none; }
.finder { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.finder input { font: 15px var(--mono); padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(153, 201, 232, .35); background: rgba(7, 18, 42, .6); color: #fff; width: min(420px, 100%); }
.finder input:focus { outline: 2px solid var(--signal); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { font: 600 13px/1 var(--sans); padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: #b9c5da; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.spec-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid #dfe5ee; background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.spec th { text-align: left; font: 600 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #7d8aa3; padding: 16px 18px; background: #f3f6fa; border-bottom: 1px solid #dfe5ee; }
.spec td { padding: 16px 18px; border-bottom: 1px solid #edf1f6; color: #33405a; vertical-align: top; }
.spec td.num { font-family: var(--mono); color: var(--ink); font-weight: 600; white-space: nowrap; }
.spec td.oe { font-family: var(--mono); font-size: 13px; }
.spec tr.hide { display: none; }
.spec tbody tr { transition: background .2s; }
.spec tbody tr:hover { background: #f6f9fd; }
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.model { background: #fff; border: 1px solid #dfe5ee; border-radius: 16px; overflow: hidden; transition: filter .35s, opacity .35s; position: relative; }
.model .ph { aspect-ratio: 772 / 464; overflow: hidden; }
.model .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.model:hover .ph img { transform: scale(1.06); }
.model .tx { padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.model b { font: 600 15px/1 var(--mono); color: var(--ink); }
.model span { font-size: 12px; color: #7d8aa3; }
.model.hide { display: none; }
.empty { display: none; padding: 30px; text-align: center; color: #7d8aa3; }

/* footer */
.foot { background: #040b1c; padding: 60px 0 40px; font-size: 14px; color: #7d8aa3; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot b { color: #fff; display: block; margin-bottom: 12px; font-size: 15px; }
.foot a { color: #b9c5da; text-decoration: none; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; }

/* ===== Motion layer ===== */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); z-index: 90; }
.motion .hero h1 .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.45em); animation: wordIn .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(1.25s + var(--i) * 70ms); }
.motion .hero .eyebrow, .motion .hero .lead, .motion .hero-cta, .motion .readout, .motion .hint { opacity: 0; animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.motion .hero .eyebrow { animation-delay: 1.05s; }
.motion .hero .lead { animation-delay: 1.9s; }
.motion .hero-cta { animation-delay: 2.1s; }
.motion .readout, .motion .hint { animation-delay: 2.5s; }
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.motion .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .mask { overflow: hidden; display: block; }
.motion .mask > span { display: block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .1s; }
.motion .in .mask > span, .motion .mask.in > span { transform: none; }
.motion .curtain { position: relative; overflow: hidden; }
.motion .curtain::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform-origin: 100% 50%; transition: transform 1.1s cubic-bezier(.7, 0, .2, 1) .15s; z-index: 2; }
.sec-light .motion .curtain::after, .motion .sec-light .curtain::after { background: #dfe5ee; }
.motion .curtain img { transform: scale(1.18); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1) .2s; }
.motion .in .curtain::after, .motion .curtain.in::after { transform: scaleX(0); }
.motion .in .curtain img, .motion .curtain.in img { transform: scale(1); }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(153, 201, 232, .16), transparent 60%); }
.glow:hover::before { opacity: 1; }
.tilt { transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .35s, opacity .35s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.dim-group:hover > .dim-item:not(:hover) { filter: grayscale(.85) brightness(.82); opacity: .6; }
.stat b.counted { animation: settle .5s ease; }
@keyframes settle { 50% { color: var(--sky); } }

/* responsive */
@media (max-width: 1080px) {
  .menu { display: none; }
  .capab { grid-template-columns: 1fr 1fr; }
  .patents { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: 1fr; }
  .models { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .nav { gap: 12px; }
  .nav .btn { display: none; }
  .brand span { display: none; }
  .lang { margin-left: auto; }
  .hero { min-height: auto; align-items: flex-start; padding-top: 100px; flex-direction: column; }
  .hero-copy { padding: 22px 0 0; }
  .hero h1 { font-size: 40px; }
  .hero-stage { display: block; width: 100%; height: 86vw; min-height: 320px; max-height: 460px; }
  .readout { position: relative; right: auto; bottom: auto; margin: 0 16px 26px; grid-template-columns: repeat(2, 1fr); }
  .readout div:nth-child(3) { border-left: 0; }
  .readout div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hint { position: relative; left: auto; bottom: auto; margin: 0 16px 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec-head, .story, .lines, .faq-grid, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .sec-head { gap: 16px; margin-bottom: 36px; }
  .capab, .patents { grid-template-columns: 1fr 1fr; }
  .cap { padding: 24px 18px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  form.inq { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr 1fr; }
  .page-hero canvas { width: 320px; height: 320px; right: -130px; top: 40px; opacity: .3; }
  .hero-cta { margin-bottom: 8px; }
}
@media (max-width: 420px) {
  .capab { grid-template-columns: 1fr; }
}
