/* ==========================================================================
   Sinter Metal Technologies - site styles (all pages)
   Dark steel theme · mint accent · Inter
   ========================================================================== */

:root {
  --bg: #0a0d0e;
  --bg-alt: #0d1112;
  --card: #121717;
  --card-2: #151b1b;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f4f6f6;
  --text-dim: #9aa6a5;
  --text-dimmer: #6f7a79;
  --accent: #7fe0c2;
  --accent-2: #5fcf9f;
  --accent-dim: rgba(127,224,194,0.14);
  --radius: 10px;
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; width: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: clip; width: 100%; /* clip (not hidden) keeps the sticky header working */
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
select, input, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #08211a; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.dim { color: var(--text-dim); }

.eyebrow {
  color: var(--accent); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
.lede { color: var(--text-dim); font-size: 17px; line-height: 1.6; max-width: 640px; }
.lede.strong { color: var(--text); }
.foot { font-size: 12.5px; color: var(--text-dimmer); line-height: 1.55; margin-top: 14px; }

.arrow { display: inline-block; transition: transform .2s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 24px;
  font-size: 14px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border-strong); padding-bottom: 3px; width: fit-content;
  transition: border-color .2s, color .2s;
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 6px; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-solid { background: #fff; color: #0a0d0e; }
.btn-solid:hover { background: #e4e9e8; }
.btn-accent { background: var(--accent); color: #08211a; }
.btn-accent:hover { background: var(--accent-2); }
.btn-outline { border: 1px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 10px 16px; font-size: 10.5px; }
.btn-text { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.btn-text:hover { color: var(--accent); }
.play-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 8px; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,14,0.95);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled { background: rgba(10,13,14,0.98); }
.site-header.is-scrolled .header-inner { height: 66px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 50px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .logo-img { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > a, .dd-btn {
  position: relative; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap; padding: 8px 0; transition: color .2s;
}
.main-nav > a::after, .dd-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav > a:hover, .dd-btn:hover, .main-nav > a.on, .dd-btn.on { color: var(--text); }
.main-nav > a:hover::after, .main-nav > a.on::after, .dd-btn.on::after, .dd.open .dd-btn::after { transform: scaleX(1); }

.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; }
.dd-btn svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 14px); left: -18px; width: 320px;
  background: #0f1415; border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: block; padding: 12px 14px; border-radius: 7px; transition: background .15s; }
.dd-menu a:hover, .dd-menu a.on { background: rgba(255,255,255,0.05); }
.dd-menu b { display: block; font-size: 13.5px; font-weight: 600; }
.dd-menu span { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.header-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 40px; height: 40px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .2s; }
.site-header.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Home hero (video)
   ========================================================================== */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; overflow: hidden; padding: 72px 0 64px; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0;
}
.hero-video.is-active { opacity: 1; }
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(10,13,14,0) 13%, rgba(10,13,14,0) 87%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,13,14,0.62) 0%, rgba(10,13,14,0.42) 42%, rgba(10,13,14,0.2) 75%, rgba(10,13,14,0.08) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 600px; }
.hero-copy h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.06; margin-bottom: 22px; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.accent-dot { color: var(--accent); }
.hero-copy .eyebrow, .hero-sub { text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.hero-sub { color: var(--text-dim); font-size: 16px; max-width: 460px; line-height: 1.6; margin-bottom: 12px; }
.hero-sub.strong { color: var(--text); margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.hero-stats { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-stat { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 200px; }
.hero-stat-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.stat-line { flex: 1 1 auto; height: 1px; background: var(--text-dimmer); }
.callout-label { font-size: 9.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; opacity: .8; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.callout-value { font-size: 16px; font-weight: 600; white-space: nowrap; opacity: .8; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.hero-stat-tl { top: 40px; left: 32px; }
.hero-stat-tr { top: 40px; right: 32px; align-items: flex-end; text-align: right; }
.hero-stat-br { bottom: 40px; right: 32px; align-items: flex-end; text-align: right; }

/* hero entrance */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.js .page-hero-inner > * { opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) forwards; }
.js .page-hero-inner > *:nth-child(2) { animation-delay: .06s; }
.js .page-hero-inner > *:nth-child(3) { animation-delay: .12s; }
.js .page-hero-inner > *:nth-child(4) { animation-delay: .18s; }
.js .page-hero-inner > *:nth-child(5) { animation-delay: .24s; }
html.sl-loading .hero-copy > *, html.sl-loading .page-hero-inner > * { animation-play-state: paused; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Sub-page hero
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding: 84px 0 76px; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(70% 120% at 85% 10%, rgba(127,224,194,0.07) 0%, transparent 60%),
    linear-gradient(180deg, #0f1415 0%, var(--bg) 100%);
}
.page-hero-art { position: absolute; inset: 0; pointer-events: none; color: #3b4744; opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 70%); mask-image: linear-gradient(90deg, transparent 25%, #000 70%); }
.page-hero-art svg { position: absolute; }
/* the two gears mesh: the small one has half the teeth, so it turns twice as fast the other way */
.page-hero-art .mesh { position: absolute; width: 900px; height: 700px; right: -140px; top: -170px; }
.page-hero-art .ga { animation: spin 150s linear infinite; will-change: transform; }
.page-hero-art .gb { animation: spin 75s linear infinite reverse; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-hero-inner { position: relative; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; max-width: 820px; margin-bottom: 20px; }
.crumbs { font-size: 12px; color: var(--text-dimmer); margin-bottom: 26px; letter-spacing: .02em; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; }
.page-hero .chips { margin-top: 28px; }

/* ==========================================================================
   Sections & layout
   ========================================================================== */
.section { padding: 92px 0; border-bottom: 1px solid var(--border); }
.section.alt { background: var(--bg-alt); }
.section.tight { padding: 64px 0; }
.sec-head { max-width: 680px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.sec-head .lede, .sec-head p.dim { margin-top: 16px; }
.sec-head p.dim { font-size: 15px; max-width: 460px; }
.sec-head p.dim + p.dim { margin-top: 12px; }
.sec-head + * { margin-top: 44px; }
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-row .link-arrow { margin-top: 0; }
.sec-row + * { margin-top: 44px; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.9fr); gap: 64px; align-items: start; }
.split > .sec-head { position: sticky; top: calc(var(--header-h) + 28px); }
.split > .sec-head + * { margin-top: 0; }
.stack > * + * { margin-top: 24px; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid > * { min-width: 0; }

/* Cards */
.card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .25s, transform .35s var(--ease), background .25s;
}
.card:hover { border-color: var(--border-strong); }
a.card:hover, .card.lift:hover { border-color: rgba(127,224,194,.45); transform: translateY(-3px); }
.card h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.card .tag { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card .no { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.card .big { font-size: 34px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.card small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.card .ph, .card .photo { margin: -8px -8px 10px; }
.card.pending { border-style: dashed; background: transparent; }
.card.pending h3 { color: var(--text-dim); }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.panel h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.equip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 32px; margin-top: 18px; }
.equip li { font-size: 13.5px; color: var(--text-dim); padding: 12px 0 12px 18px; border-top: 1px solid var(--border); position: relative; }
.equip li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 7px 14px; white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
a.chip:hover, button.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.on { color: var(--accent); border-color: rgba(127,224,194,.5); background: var(--accent-dim); }
.chip .mono { color: var(--accent); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 5px 11px; vertical-align: middle; margin-left: 10px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.p { color: var(--accent); background: var(--accent-dim); }
.status.c { color: var(--text-dim); background: rgba(255,255,255,.06); }

/* ==========================================================================
   Photos & placeholders
   ========================================================================== */
.ph, .photo { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.ph {
  display: grid; place-items: center; color: #71837d;
  background: radial-gradient(circle at 38% 30%, #262d2d, #131818 58%, #0b0e0e 90%);
  box-shadow: inset 0 0 0 1px var(--border), inset 0 0 30px rgba(0,0,0,.5);
  transition: color .4s;
}
.ph svg { width: 56%; height: 56%; transition: transform .8s var(--ease); }
.ph::after { content: "Photo"; position: absolute; left: 10px; bottom: 9px; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dimmer); opacity: .7; }
.card:hover .ph, .ind:hover .ph, .grp:hover .ph { color: var(--accent); }
.card:hover .ph svg, .ind:hover .ph svg, .grp:hover .ph svg { transform: rotate(8deg) scale(1.04); }
.ph.wide { aspect-ratio: 16 / 10; }
.photo { background: #131818 center/cover no-repeat; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,13,0.05) 40%, rgba(8,10,10,0.7) 100%); box-shadow: inset 0 0 30px 6px rgba(0,0,0,0.45); }
.photo.tall { aspect-ratio: auto; height: 240px; }
.photo.short { aspect-ratio: auto; height: 150px; }
.photo > i { position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a:hover > .photo > i, .ind:hover .photo > i, .quality-card:hover .photo > i, a:hover > .photo > img, .ind:hover .photo > img, .quality-card:hover .photo > img { transform: scale(1.06); }

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats-bar { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-item { display: flex; flex-direction: column; gap: 6px; padding: 0 26px; border-left: 1px solid var(--border); min-width: 0; }
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-icon { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.4; margin-bottom: 4px; }
.stat-label { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.stat-value { font-size: 27px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; font-feature-settings: "tnum"; }
.stat-sub { font-size: 12px; color: var(--text-dimmer); white-space: nowrap; }

/* ==========================================================================
   Technology comparison
   ========================================================================== */
.tech-carousel-wrap { position: relative; }
.tech-next, .tech-prev {
  display: none; position: absolute; top: 120px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong); align-items: center; justify-content: center; font-size: 20px; line-height: 1;
  background: rgba(18,23,23,0.94); z-index: 5;
}
.tech-prev { left: 10px; } .tech-next { right: 10px; }
.tech-table { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tech-col { display: flex; flex-direction: column; min-width: 0; padding: 26px 20px 22px; border-left: 1px solid var(--border); transition: background .3s; }
.tech-col:first-child { border-left: none; }
.tech-col:hover { background: var(--card-2); }
.tech-col-title { font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 18px; white-space: nowrap; }
.tech-part-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; margin-bottom: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.tech-part-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tech-col:hover .tech-part-photo img { transform: scale(1.06); }
.tech-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin-bottom: 18px; min-height: 58px; }
.tech-spec-row { display: flex; align-items: center; justify-content: space-between; height: 36px; border-top: 1px solid var(--border); }
.tech-spec-label { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }
.dots { display: flex; align-items: center; gap: 6px; }
.dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: background .3s, transform .3s var(--ease); }
.in .dots i.on, .no-js .dots i.on { background: var(--accent); }
.dots i:nth-child(2) { transition-delay: .08s; } .dots i:nth-child(3) { transition-delay: .16s; }
.dots i:nth-child(4) { transition-delay: .24s; } .dots i:nth-child(5) { transition-delay: .32s; }

/* ==========================================================================
   Firsts (developed in-house)
   ========================================================================== */
.firsts { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-top: 1px solid var(--border-strong); }
.first { padding: 26px 22px 6px 0; position: relative; }
.first + .first { padding-left: 22px; border-left: 1px solid var(--border); }
.first::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 1px; background: var(--accent); }
.first + .first::before { left: 22px; }
.first .no { font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 14px; }
.first b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.first span { font-size: 13px; color: var(--text-dim); line-height: 1.55; display: block; }

/* ==========================================================================
   Rail (horizontal cards)
   ========================================================================== */
.rail-wrap { position: relative; min-width: 0; }
.rail { display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; /* sideways only: the row never shifts up or down */ scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
/* exactly four whole cards per view (two on phones), so none is ever cut at the edge */
.app-card { flex: 0 0 calc((100% - 54px) / 4); min-width: 0; scroll-snap-align: start; }
.app-card .photo { margin-bottom: 14px; border-radius: var(--radius); }
.app-card h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; transition: color .2s; }
.app-card:hover h3 { color: var(--accent); }
.app-card p { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.rail-nav { display: flex; gap: 8px; margin-top: 22px; }
.rail-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; background: var(--card); transition: border-color .2s, color .2s; }
.rail-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Quality cards */
.quality-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.quality-card .photo { margin-bottom: 14px; border-radius: var(--radius); }
.quality-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.quality-card p { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

/* ==========================================================================
   Numbered decision list
   ========================================================================== */
.decide { counter-reset: d; border-top: 1px solid var(--border); }
.decide li { counter-increment: d; display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.decide li::before { content: counter(d, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.decide b { display: block; font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.decide span { display: block; font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ==========================================================================
   Process flow
   ========================================================================== */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; counter-reset: f; position: relative; }
.flow > div { counter-increment: f; position: relative; padding: 58px 28px 0 0; }
.flow > div::before {
  content: counter(f); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); background: var(--bg);
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; z-index: 1;
}
.section.alt .flow > div::before { background: var(--bg-alt); }
.flow > div::after { content: ""; position: absolute; top: 19px; left: 38px; right: 0; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(127,224,194,.15)); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .3s; }
.flow > div.in::after, .no-js .flow > div::after { transform: scaleX(1); }
.flow > div:last-child::after { display: none; }
.flow h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.flow p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.flow + .sec-head { margin-top: 76px; }

/* ==========================================================================
   Tables
   ========================================================================== */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 13.5px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); background: rgba(255,255,255,.02); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--text-dim); }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.025); }
th.hl, td.hl { color: var(--accent); background: rgba(127,224,194,.05); }
td.hl { font-weight: 500; }
td.pending-cell { color: var(--text-dimmer); font-style: italic; }
.swipe { display: none; font-size: 11px; color: var(--text-dimmer); margin-bottom: 8px; }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { --tl-dot-top: 8px; --tl-dot-size: 9px; --tl-gutter: 28px; --tl-axis: calc(var(--tl-dot-size) / 2); --tl-line-width: 1px; position: relative; padding-left: var(--tl-gutter); isolation: isolate; }
.tl { --tl-fill: 0px; position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 0 0 30px; }
.tl::before { content: ""; position: absolute; z-index: 1; left: calc(var(--tl-axis) - var(--tl-gutter)); top: var(--tl-dot-top); transform: translateX(-50%); box-sizing: border-box; width: var(--tl-dot-size); height: var(--tl-dot-size); border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); }
/* Connections share the marker axis and end at the next circle's upper edge. */
.tl:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--tl-axis) - var(--tl-gutter) - var(--tl-line-width) / 2); top: calc(var(--tl-dot-top) + var(--tl-dot-size)); width: var(--tl-line-width); height: calc(100% - var(--tl-dot-size)); background: linear-gradient(to bottom, var(--accent) 0, var(--accent) var(--tl-fill), var(--border-strong) var(--tl-fill), var(--border-strong) 100%); pointer-events: none; }
.tl:first-child::before, .tl.is-reached::before { background: var(--accent); }
.no-js .tl { --tl-fill: 100%; }
.no-js .tl::before { background: var(--accent); }
.tl b { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--accent); padding-top: 2px; }
.tl p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }
.tl strong { color: var(--text); font-weight: 600; }
.tl.pending b, .tl.pending p { color: var(--text-dimmer); }

/* ==========================================================================
   Bars, KPIs, chart
   ========================================================================== */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar { display: grid; grid-template-columns: 150px 1fr 96px; gap: 14px; align-items: center; font-size: 13px; }
.bar > span:first-child { color: var(--text-dim); }
.bar > span:last-child { font-family: var(--mono); font-size: 12.5px; text-align: right; white-space: nowrap; }
.track { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .15s; }
.fill.muted { background: rgba(255,255,255,.22); }
.in .fill, .no-js .fill { transform: scaleX(1); }
.track.ladder { overflow: visible; }
.mark { position: absolute; top: -5px; bottom: -5px; width: 0; border-left: 1px dashed var(--text-dim); }
.cmp { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.cmp h3 { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.kpis > div { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpis > div + div { border-left: 1px solid var(--border); }
.kpis small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.kpis b { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.kpis span { font-size: 12px; color: var(--text-dimmer); }
.chart svg { width: 100%; height: auto; font-family: var(--mono); font-size: 11px; }
.chart rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease); }
.chart rect:nth-of-type(2) { transition-delay: .12s; } .chart rect:nth-of-type(3) { transition-delay: .24s; } .chart rect:nth-of-type(4) { transition-delay: .36s; }
.chart .val { opacity: 0; transition: opacity .5s .9s; }
.in .chart rect, .chart.in rect, .no-js .chart rect { transform: none; }
.in .chart .val, .chart.in .val, .no-js .chart .val { opacity: 1; }

/* ==========================================================================
   Strategic product groups
   ========================================================================== */
.grp { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; padding: 84px 0; border-bottom: 1px solid var(--border); align-items: start; }
.grp:last-child { border-bottom: none; }
.grp-no { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .08em; display: inline-flex; align-items: center; gap: 12px; }
.grp h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 18px 0 14px; }
.grp .punch { font-size: 19px; line-height: 1.45; color: var(--text); margin-bottom: 16px; }
.grp .body { font-size: 15px; color: var(--text-dim); line-height: 1.65; margin-bottom: 16px; }
.grp ul { margin: 0 0 18px; }
.grp li { position: relative; padding: 9px 0 9px 22px; font-size: 14.5px; color: var(--text-dim); border-top: 1px solid var(--border); }
.grp li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.grp li b { color: var(--text); font-weight: 600; }
.grp .btn { margin-top: 8px; }
.grp-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 28px); }
.grp-side .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.grp-side .ph svg { width: 40%; height: 70%; }

/* ==========================================================================
   Industries
   ========================================================================== */
.ind { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 40px; padding: 30px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); align-items: center; transition: border-color .25s; }
.ind + .ind { margin-top: 18px; }
.ind:hover { border-color: var(--border-strong); }
.ind .photo, .ind .ph { aspect-ratio: 4 / 3; border-radius: 8px; }
.ind h2 { font-size: 27px; line-height: 1.2; margin-bottom: 8px; }
.ind .tagline { font-size: 17px; margin-bottom: 10px; }
.ind .dim { font-size: 14.5px; line-height: 1.65; max-width: 640px; }
.ind .foot { margin: 18px 0 10px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.ind .eyebrow { margin-bottom: 10px; white-space: normal; }

/* ==========================================================================
   Resources: icons, FAQ, glossary
   ========================================================================== */
.resource-item svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.4; margin-bottom: 6px; }
.resource-item { min-height: 168px; }
.resource-item .go { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--text-dim); padding-top: 12px; transition: color .2s; }
.resource-item:hover .go { color: var(--accent); }

details { border-bottom: 1px solid var(--border); }
details:first-child { border-top: 1px solid var(--border); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: 17px; font-weight: 300; color: var(--text-dim); transition: transform .3s var(--ease), border-color .2s, color .2s; }
details[open] summary::after { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
details p { font-size: 15px; color: var(--text-dim); line-height: 1.7; max-width: 700px; padding: 0 50px 24px 0; animation: rise .45s var(--ease); }

.gloss { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 40px; }
.gloss > div { padding: 18px 0; border-top: 1px solid var(--border); }
.gloss dt { font-size: 14.5px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.gloss dd { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { min-width: 0; }
.field > label, .field-label { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.field select, .field input[type=text], .field input[type=email], .field textarea {
  width: 100%; background: var(--card-2); border: 1px solid var(--border-strong); border-radius: 6px;
  color: var(--text); font-size: 14px; padding: 12px 13px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field ::placeholder { color: var(--text-dimmer); }

.checker { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 20px; align-items: end; }
.checker .btn { width: 100%; padding: 13px 16px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; }
.ticks span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.ticks span::before { content: ""; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.result { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.result > div { background: #0f1414; padding: 18px 20px; }
.result.flash > div { animation: flash .7s var(--ease); }
@keyframes flash { from { background: rgba(127,224,194,.16); } }
.result small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.result b { font-size: 17px; font-weight: 600; color: var(--accent); }
.result p { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.result p + p { color: var(--text-dim); margin-top: 6px; }

.contact-form { display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles label { position: relative; cursor: pointer; }
.roles input { position: absolute; opacity: 0; }
.roles span { display: block; font-size: 13px; padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-dim); transition: all .2s; }
.roles input:checked + span { color: var(--accent); border-color: rgba(127,224,194,.55); background: var(--accent-dim); }
.roles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.send { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
.send .note { font-size: 12.5px; color: var(--text-dimmer); max-width: 380px; line-height: 1.5; }
.form-msg { font-size: 13.5px; border-radius: 8px; padding: 14px 16px; line-height: 1.5; }
.form-msg.err { color: #ffb37a; background: rgba(255,150,70,.08); border: 1px solid rgba(255,150,70,.25); }
.form-msg.ok { color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(127,224,194,.3); }
.contact-head { margin: 34px 0 20px; padding-top: 30px; border-top: 1px solid var(--border); }
.contact-head h3 { font-size: 21px; font-weight: 400; margin-bottom: 6px; }
.contact-head p { font-size: 14px; }

/* Contact page */
.addr { font-style: normal; font-size: 14.5px; color: var(--text-dim); line-height: 1.7; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 44px 1fr; gap: 8px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; }
.kv dt { color: var(--text-dimmer); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.kv dd { color: var(--text); line-height: 1.7; }
.kv a:hover { color: var(--accent); }
.mail { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.mail a { font-size: 14px; color: var(--accent); word-break: break-all; }
.mail a:hover { text-decoration: underline; }
.copy { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border-strong); border-radius: 5px; padding: 5px 9px; flex-shrink: 0; transition: all .2s; }
.copy:hover { color: var(--accent); border-color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #1a2221; border: 1px solid var(--border-strong); color: var(--text); font-size: 13px; padding: 11px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 80; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   CTA / persona cards
   ========================================================================== */
.cta-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.cta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cta-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-height: 230px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: var(--card); transition: border-color .25s, transform .35s var(--ease); }
.cta-card:hover { border-color: rgba(127,224,194,.45); transform: translateY(-3px); }
.cta-tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.cta-card h3 { font-size: 21px; margin-bottom: 8px; }
.cta-card p { font-size: 13.5px; color: var(--text-dim); max-width: 68%; line-height: 1.45; }
.cta-arrow-btn { margin-top: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .25s var(--ease); }
.cta-card:hover .cta-arrow-btn { border-color: var(--accent); background: var(--accent); color: #08211a; transform: translateX(4px); }
.cta-illustration { position: absolute; right: -12px; bottom: -8px; width: 240px; height: 240px; background-size: contain; background-repeat: no-repeat; background-position: bottom right; opacity: 0.4; pointer-events: none; transition: transform .8s var(--ease), opacity .4s; }
.cta-card:hover .cta-illustration { transform: scale(1.05); opacity: .55; }
.cta-tag, .cta-card h3, .cta-card p, .cta-arrow-btn { position: relative; z-index: 1; }
.cta-ill-1 { background-image: url('../assets/img/cta-1.webp'); }
.cta-ill-2 { background-image: url('../assets/img/cta-2.webp'); width: 290px; height: 290px; right: -18px; bottom: -14px; }
.cta-ill-3 { background-image: url('../assets/img/cta-3.webp'); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 64px 0 36px; background: #080a0b; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0,1fr)); gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.footer-brand .logo-img { height: 62px; }
.footer-brand p { font-size: 13.5px; color: var(--text-dim); margin-top: 16px; line-height: 1.6; max-width: 320px; }
.footer-brand .addr-line { font-size: 12.5px; color: var(--text-dimmer); }
.footer-brand a:hover { color: var(--accent); }
.footer-col h4 { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dimmer); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-dim); padding: 5px 0; transition: color .2s, transform .2s var(--ease); }
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; }
.footer-bottom span, .footer-bottom a { font-size: 12px; color: var(--text-dimmer); }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-bottom a:hover { color: var(--text); }
.social-icon { width: 32px; height: 32px; border: 1px solid var(--border-strong); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.social-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--text-dim); stroke-width: 1.4; }
.social-icon:hover { border-color: var(--accent); }

.mbar { display: none; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ==========================================================================
   Motion extras
   ========================================================================== */
/* headings rise word by word */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform .95s var(--ease); transition-delay: calc(var(--i) * 45ms + .1s); }
.rv.in .w > span { transform: none; }
.hero-copy h1 .w > span, .page-hero h1 .w > span { transition: none; animation: wordUp 1s var(--ease) forwards; animation-delay: calc(var(--i) * 65ms + .15s); }
html.sl-loading .w > span, html.sl-loading .page-hero-art .draw, html.sl-loading .stat-line { animation-play-state: paused; }
@keyframes wordUp { to { transform: none; } }
.js .hero-copy h1.is-split, .js .page-hero h1.is-split { opacity: 1; transform: none; animation: none; }

@keyframes growX { to { transform: none; } }

/* hero callout lines draw in */
.js .stat-line { transform: scaleX(0); transform-origin: left; animation: growX 1.3s var(--ease) .7s forwards; }
.js .hero-stat-tr .stat-line, .js .hero-stat-br .stat-line { transform-origin: right; }

/* photos wipe in and settle */
.js .rv .photo, .js .rv .ph, .js .tech-table.rv .tech-part-photo { clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease); transition-delay: calc(var(--rd, 0s) + .15s); }
.js .rv.in .photo, .js .rv.in .ph, .js .tech-table.rv.in .tech-part-photo { clip-path: inset(0 0 0 0); }
.js .rv .photo > i, .js .rv .photo > img { transform: scale(1.2); transition: transform 1.6s var(--ease); transition-delay: calc(var(--rd, 0s) + .15s); }
.js .rv.in .photo > i, .js .rv.in .photo > img { transform: none; }
.js .rv.in:hover .photo > i, .js .rv.in:hover .photo > img { transform: scale(1.06); transition-delay: 0s; }
.js .tech-table.rv .tech-col:nth-child(2) .tech-part-photo { transition-delay: .25s; }
.js .tech-table.rv .tech-col:nth-child(3) .tech-part-photo { transition-delay: .35s; }
.js .tech-table.rv .tech-col:nth-child(4) .tech-part-photo { transition-delay: .45s; }
.js .tech-table.rv .tech-col:nth-child(5) .tech-part-photo { transition-delay: .55s; }

/* line drawings draw themselves */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.rv .draw { transition: stroke-dashoffset 2.2s var(--ease); transition-delay: calc(var(--rd, 0s) + .5s); }
.rv.in .draw { stroke-dashoffset: 0; }
.page-hero-art .draw { animation: drawIn 3.2s var(--ease) .2s forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* pointer spotlight on cards */
.panel, .ind { position: relative; }
.card::before, .panel::before, .cta-card::before, .ind::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(127,224,194,0.085), transparent 65%);
}
.card:hover::before, .panel:hover::before, .cta-card:hover::before, .ind:hover::before { opacity: 1; }

/* button sheen */
.btn-solid, .btn-accent { position: relative; overflow: hidden; }
.btn-solid::after, .btn-accent::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-130%) skewX(-18deg); pointer-events: none; }
.btn-solid:hover::after, .btn-accent:hover::after { transform: translateX(330%) skewX(-18deg); transition: transform .8s var(--ease); }

/* Keep markers aligned while the timeline rows fade in. */
.js .tl.rv { transform: none; }

/* small accents grow in */
.js .first.rv::before { width: 0; transition: width .9s var(--ease); transition-delay: calc(var(--rd, 0s) + .35s); }
.js .first.rv.in::before { width: 44px; }
.js .flow > div.rv::before { transform: scale(.3); opacity: 0; transition: transform .7s var(--ease), opacity .5s; transition-delay: var(--rd, 0s); }
.js .flow > div.rv.in::before { transform: none; opacity: 1; }
.js .tbl-wrap.rv tbody tr { opacity: 0; transform: translateX(-12px); transition: opacity .6s, transform .7s var(--ease), background .15s; }
.js .tbl-wrap.rv.in tbody tr { opacity: 1; transform: none; }
.js .tbl-wrap.rv tbody tr:nth-child(1) { transition-delay: .15s; } .js .tbl-wrap.rv tbody tr:nth-child(2) { transition-delay: .22s; }
.js .tbl-wrap.rv tbody tr:nth-child(3) { transition-delay: .29s; } .js .tbl-wrap.rv tbody tr:nth-child(4) { transition-delay: .36s; }
.js .tbl-wrap.rv tbody tr:nth-child(5) { transition-delay: .43s; } .js .tbl-wrap.rv tbody tr:nth-child(6) { transition-delay: .5s; }
.js .tbl-wrap.rv tbody tr:nth-child(7) { transition-delay: .57s; } .js .tbl-wrap.rv tbody tr:nth-child(8) { transition-delay: .64s; }
.js .rv .chip { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease), color .2s, border-color .2s, background .2s; transition-delay: .35s; }
.js .rv.in .chip { opacity: 1; transform: none; }

/* marquee band (home) */
.marquee { overflow: hidden; padding: 38px 0; border-bottom: 1px solid var(--border); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(38px, 6vw, 80px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; color: var(--accent); transition: color .4s; }
.marquee span:hover { color: var(--text); }
.marquee i { flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Ambient background (echoes the loading screen: brushed steel, a low forge
   glow and a few drifting embers, kept faint so it never competes with content)
   ========================================================================== */
html { background: var(--bg); }
body { background: transparent; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    url("../assets/img/steel.webp") 0 0 / 64px 512px repeat,
    radial-gradient(120% 64% at 50% 118%, rgba(255,110,30,0.17) 0%, rgba(160,50,10,0.07) 40%, transparent 70%),
    radial-gradient(80% 50% at 50% -12%, rgba(170,190,200,0.07) 0%, transparent 60%),
    linear-gradient(172deg, transparent 22%, rgba(190,205,215,0.03) 34%, rgba(220,230,235,0.05) 38%, rgba(190,205,215,0.022) 44%, transparent 56%);
}
.bg-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.section.alt, .stats-bar { background: rgba(255,255,255,0.022); }
.page-hero { background: radial-gradient(70% 120% at 85% 10%, rgba(127,224,194,0.07) 0%, transparent 60%), linear-gradient(180deg, rgba(20,27,28,0.9) 0%, rgba(10,13,14,0) 100%); }
.site-footer { background: rgba(6,8,9,0.82); }

/* back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(18,23,23,0.96); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, transform .4s var(--ease), visibility .3s, border-color .2s, background .2s, color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.to-top:hover { border-color: var(--accent); background: var(--accent); color: #08211a; }
.to-top:hover svg { transform: translateY(-2px); }
html.sl-loading .to-top { display: none; }

/* ==========================================================================
   Site search
   ========================================================================== */
.search-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-dim); border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.search-btn svg, .search-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.search-btn:hover { color: var(--accent); border-color: var(--border-strong); background: rgba(255,255,255,.03); }
.search { position: fixed; inset: 0; z-index: 90; background: rgba(5,7,8,0.78); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 20px; opacity: 0; transition: opacity .2s; }
.search[hidden] { display: none; }
.search.open { opacity: 1; }
.search-box { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: #0f1415; border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; transform: translateY(-14px) scale(.98); transition: transform .3s var(--ease); }
.search.open .search-box { transform: none; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 20px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.search-field input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 18px; padding: 16px 0; -webkit-appearance: none; appearance: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field input::placeholder { color: var(--text-dimmer); }
.search-close { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border-strong); border-radius: 5px; padding: 5px 9px; flex-shrink: 0; transition: color .2s, border-color .2s; }
.search-close:hover { color: var(--accent); border-color: var(--accent); }
.search-results { overflow-y: auto; overscroll-behavior: contain; }
.search-item { display: block; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .15s; }
.search-item:hover, .search-item.sel { background: rgba(127,224,194,.07); }
.search-item small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.search-item b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.search-item span { display: block; font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-top: 3px; }
.search mark { background: rgba(127,224,194,.22); color: var(--text); border-radius: 3px; padding: 0 2px; }
.search-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 20px; font-size: 12.5px; color: var(--text-dimmer); }
.search-hint .chip { padding: 5px 12px; }
/* the heading a search result points to */
.found { animation: found 2.4s var(--ease) 1; border-radius: var(--radius); }
@keyframes found { 0%, 60% { box-shadow: 0 0 0 2px var(--accent), 0 0 40px rgba(127,224,194,.25); } 100% { box-shadow: 0 0 0 2px rgba(127,224,194,0), 0 0 0 rgba(127,224,194,0); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .main-nav { gap: 16px; }
}
@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split > .sec-head { position: static; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .stat-item:nth-child(4) { border-left: none; padding-left: 0; }
  .tech-table { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tech-col:nth-child(4) { border-left: none; }
  .tech-col:nth-child(n+4) { border-top: 1px solid var(--border); }
  .firsts { grid-template-columns: repeat(2, minmax(0,1fr)); border-top: none; }
  .first, .first + .first { padding: 24px 20px 24px 0; border-left: none; border-top: 1px solid var(--border-strong); }
  .first + .first::before { left: 0; }
  .g5, .quality-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grp { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 64px 0; }
  .grp-side { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gloss { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.main-nav > a.nav-cta { display: none; }
/* Mobile navigation */
@media (max-width: 1180px) {
  :root { --header-h: 72px; }
  .hamburger { display: flex; }
  .logo-img { height: 40px; }
  .header-tools .btn { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0a0d0e; padding: 12px 32px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .site-header.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .site-header.is-scrolled .header-inner { height: var(--header-h); }
  .main-nav > a, .dd-btn { font-size: 14px; padding: 17px 0; border-bottom: 1px solid var(--border); width: 100%; text-align: left; justify-content: space-between; }
  .main-nav > a::after, .dd-btn::after { display: none; }
  .main-nav > a.on, .dd-btn.on { color: var(--accent); }
  .dd-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; background: none; padding: 0 0 0 14px; display: none; }
  .dd.open .dd-menu { display: block; }
  .dd-menu a { padding: 13px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav > a.nav-cta { display: inline-flex; margin-top: 26px; color: #08211a; border-bottom: none; justify-content: center; text-align: center; font-size: 12px; padding: 16px; }
  .main-nav { overscroll-behavior: contain; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .main-nav { padding: 12px 20px 40px; }
  body { font-size: 14.5px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 56px 0 52px; }
  .page-hero-art { opacity: .35; }
  .lede { font-size: 15.5px; }
  .hero { min-height: 560px; padding: 90px 0 70px; }
  .hero-video-overlay { background: rgba(10,13,14,0.5); }
  .hero-stat { width: 110px; gap: 4px; }
  .hero-stat-tl { top: 20px; left: 20px; } .hero-stat-tr { top: 20px; right: 20px; } .hero-stat-br { bottom: 20px; right: 20px; }
  .callout-label { font-size: 7px; opacity: .55; } .callout-value { font-size: 10px; opacity: .55; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .stat-item { border-left: none; padding: 0; }
  .g2, .g3, .g4, .g5, .quality-cards, .cta-grid, .equip, .gloss, .checker, .contact-form .row, .result { grid-template-columns: minmax(0, 1fr) !important; }
  .g4.keep2, .quality-cards { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .firsts { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow > div { padding: 0 0 30px 58px; min-height: 68px; }
  .flow > div::after { top: 38px; bottom: 0; left: 19px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(127,224,194,.15)); transform: scaleY(0); transform-origin: top; }
  .flow > div.in::after { transform: scaleY(1); }
  .tech-next, .tech-prev { display: flex; }
  .tech-table { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tech-table::-webkit-scrollbar { display: none; }
  .tech-col { flex: 0 0 100%; scroll-snap-align: start; border-left: none !important; border-top: none !important; }
  .app-card { flex: 0 0 calc((100% - 18px) / 2); }
  .ind { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
  .ind h2 { font-size: 23px; }
  .status { margin-left: 0; margin-top: 8px; }
  .tl { grid-template-columns: 1fr; gap: 4px; }
  .bar { grid-template-columns: 1fr auto; }
  .bar .track { grid-column: 1 / -1; order: 3; }
  .kpis { grid-template-columns: 1fr; }
  .kpis > div + div { border-left: none; border-top: 1px solid var(--border); }
  .swipe { display: block; }
  .panel { padding: 22px; }
  summary { font-size: 15.5px; }
  details p { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding-bottom: 96px; }
  .cta-card p { max-width: 80%; }
  .mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,13,14,.97); border-top: 1px solid var(--border); transform: translateY(100%); transition: transform .4s var(--ease); }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; padding: 13px 10px; }
  .toast { bottom: 84px; }
  .search { padding: 76px 12px 12px; }
  .search-field input { font-size: 16px; }
  .to-top { right: 14px; bottom: 78px; width: 42px; height: 42px; }
}
@media (max-width: 480px) {
  .logo-img { height: 34px; }
  .g4.keep2, .quality-cards { grid-template-columns: minmax(0, 1fr) !important; }
  .cta-illustration { opacity: .25; }
}

.legal h2 { font-size: 22px; font-weight: 500; margin: 32px 0 8px; }
.legal p { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal a, #careers .panel a { color: var(--accent); }
.legal a:hover, #careers .panel a:hover { text-decoration: underline; }

.cookie {
  position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 28px calc(14px + env(safe-area-inset-bottom));
  background: rgba(10,13,14,.97); border-top: 1px solid var(--border-strong);
}
.cookie p { color: var(--text-dim); font-size: 14px; line-height: 1.45; }
.cookie a { color: var(--accent); }
.cookie a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) {
  .cookie { flex-direction: column; align-items: stretch; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .cookie-actions { justify-content: flex-end; }
}
