/* ==========================================================================
   B · Ipari, sötét – bold industrial, technical spec-sheet aesthetic
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-alt: #111418;
  --map-bg: #101318;
  --map-grid: rgba(255, 255, 255, .05);
  --map-road: #1d232b;
  --surface: #14181d;
  --surface-2: #1b2027;
  --text: #f4f4f5;
  --text-2: #c4c8cf;
  --muted: #8a919c;
  --border: #262c34;
  --focus: #ffb020;
  --font-body: "Inter", system-ui, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --fw-head: 700;
  --ls-head: -0.03em;
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-btn: 2px;
  --shadow: 0 0 0 1px var(--border);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .9);
  --cta-bg: var(--brand);
  --cta-fg: #fff;
  --footer-bg: #07080a;
  --footer-fg: #9aa1ab;
  --aside-cta-bg: var(--brand);
  --aside-cta-fg: #fff;
  --calc-bg: #1b2027;
  --calc-fg: #f4f4f5;
  --chat-fab-bg: #f4f4f5;
  --chat-fab-fg: #0b0d10;
  --spec-font: var(--font-mono);
  --page-hero-bg: #0b0d10;
}
body { background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 64px 64px; }
::selection { background: var(--brand); color: #fff; }
.kicker { font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; color: var(--brand); }
.kicker::before { content: "//"; opacity: .7; }
.kicker-dot { display: none; }
h1, h2 { text-transform: uppercase; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .98; }
.btn { text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; font-weight: 700; }
.btn-primary { box-shadow: none; }
.btn-outline { --b-bd: #3a414b; }
.btn-ghost { --b-bg: rgba(255, 255, 255, .06); }
.chip { border-radius: 2px; background: transparent; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.site-header { --header-bg: #0b0d10; border-bottom: 1px solid var(--border); }
.nav-link { border-radius: 2px; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; font-family: var(--font-head); }
.dropdown { border-radius: 4px; background: #14181d; }
.dropdown-icon, .feature-icon, .contact-icon, .child-link-icon, .benefit-icon { border-radius: 2px; background: rgba(255, 46, 23, .12); }
.badge-eco { background: rgba(34, 197, 94, .14); color: #4ade80; border-radius: 2px; }

/* Industrial hero */
.ind-hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; padding: 120px 0 56px; overflow: hidden; border-bottom: 1px solid var(--border); }
.ind-hero-bg { position: absolute; inset: 0; z-index: -2; }
.ind-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.1) brightness(.55); transform: scale(1.04); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translate(-1%, -1%); } }
.ind-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 13, 16, .95) 0%, rgba(11, 13, 16, .7) 45%, rgba(11, 13, 16, .2)), linear-gradient(0deg, #0b0d10 0%, transparent 40%); }
.ind-hero-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: end; }
.ind-hero h1 { font-size: clamp(2.8rem, 7.6vw, 6.4rem); line-height: .92; margin-bottom: 24px; }
.ind-hero h1 em { font-style: normal; color: var(--brand); }
.ind-hero .hero-text { color: var(--text-2); max-width: 560px; }
.ind-hero .ai-search { background: rgba(20, 24, 29, .85); border-color: #3a414b; border-radius: 2px; backdrop-filter: blur(10px); }
.ind-hero .ai-search input { color: #fff; }
.spec-card { border: 1px solid #3a414b; background: rgba(11, 13, 16, .75); backdrop-filter: blur(12px); font-family: var(--font-mono); font-size: .82rem; }
.spec-card header { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #3a414b; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.spec-card header span:last-child { color: var(--brand); }
.spec-card dl { margin: 0; }
.spec-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px dashed #262c34; }
.spec-card dl div:last-child { border-bottom: 0; }
.spec-card dt { color: var(--muted); }
.spec-card dd { margin: 0; color: #fff; font-weight: 600; }
.marquee { overflow: hidden; border-bottom: 1px solid var(--border); background: var(--brand); color: #fff; }
.marquee-track { display: flex; gap: 48px; width: max-content; padding: 14px 0; animation: marquee 40s linear infinite; font-family: var(--font-head); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: "■"; font-size: .6rem; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ind-hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .ind-hero-grid { grid-template-columns: minmax(0, 1fr); } .ind-hero { min-height: 0; padding-top: 72px; } }
@media (max-width: 560px) { .ind-hero h1 { font-size: clamp(2.1rem, 10.5vw, 2.8rem); overflow-wrap: anywhere; } }

.stats { border-color: var(--border); }
.stat { border-color: var(--border); }
.stat dd { font-family: var(--font-mono); color: var(--brand); }

.category-card, .product-card, .feature, .step, .team-card, .post-card, .doc-card, .grant-card, .faq-item, .aside-card, .contact-card, .child-link, .about-facts div, .form-card, .spec-sheet, .search-result { background: var(--surface); border-color: var(--border); }
.category-card:hover, .product-card:hover { box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.category-card-icon { border-radius: 2px; }
.product-card-media, .product-gallery-main, .thumb, .search-thumb { background: #e9ebee; }
.product-card-title { font-family: var(--font-head); text-transform: uppercase; font-size: 1rem; letter-spacing: .01em; }
.product-card-specs { font-family: var(--font-mono); font-size: .74rem; }
.industry-card { border-radius: 4px; }
.industry-card::after { background: linear-gradient(180deg, rgba(11, 13, 16, .1), rgba(11, 13, 16, .92)); }
.industry-card h3 { text-transform: uppercase; }
.industry-card-icon { border-radius: 2px; background: var(--brand); }
.feature { position: relative; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 3px; background: var(--brand); }
.step-num { border-radius: 2px; background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.intro-badge { border-radius: 2px; }
.intro-media img { filter: grayscale(.15) contrast(1.05); }
.team-photo img { filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .6s var(--ease); }
.team-card:hover .team-photo img { filter: none; }
.certs-inner { border-radius: 4px; }
.page-hero { border-bottom: 1px solid var(--border); background-image: radial-gradient(circle at 85% 0%, rgba(255, 46, 23, .18), transparent 40%); }
.page-hero-media img { filter: grayscale(.2); }
.product-hero { background: var(--bg-alt); }
.spec-table dd { color: #fff; }
.tag-list li { border-radius: 2px; background: var(--surface-2); font-family: var(--font-mono); font-size: .78rem; }
.aside-cta .btn-primary { --b-bg: #0b0d10; --b-bd: #0b0d10; }
.cta-band::before { display: none; }
.cta-band { background-image: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(0, 0, 0, .06) 18px 36px); }
.cta-band .btn-primary { --b-bg: #0b0d10; --b-bd: #0b0d10; --b-fg: #fff; }
.calc-total { background: var(--brand) !important; }
.field input, .field select, .field textarea, .ai-fill textarea { background: #0e1115; border-color: #2c333c; border-radius: 2px; }
.ai-fill, .ai-banner, .ai-answer { border-radius: 4px; background: linear-gradient(135deg, rgba(255, 46, 23, .12), var(--surface) 60%); }
.chat-panel { border-radius: 6px; background: #14181d; }
.msg-bot .bubble { background: #1f252d; border-radius: 4px; }
.msg-user .bubble { border-radius: 4px; }
.chat-avatar, .chat-send { border-radius: 2px; }
.chat-form textarea { border-radius: 4px; background: #0e1115; }
.eu-infoblock { border-radius: 4px 4px 0 0; }
.seg { border-radius: 2px; }
.seg span { border-radius: 2px; }
.seg input:checked + span { background: var(--brand); color: #fff; }
.filter-bar, .filter-search, .filter-select { border-radius: 2px; }
.filter-search, .filter-select { background: #0e1115; }

/* ==========================================================================
   B · „Több húzás” – motion & interaction layer
   ========================================================================== */
.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 300; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(255, 46, 23, .7); pointer-events: none; }

/* Buttons: red sweep on hover, magnetic primary */
.btn-outline, .btn-ghost { position: relative; overflow: hidden; isolation: isolate; }
.btn-outline::before, .btn-ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); transform: translateX(-101%); transition: transform .45s var(--ease); }
.btn-outline:hover, .btn-ghost:hover { --b-fg: #fff; --b-bd: var(--brand); }
.btn-outline:hover::before, .btn-ghost:hover::before { transform: none; }
[data-magnetic] { transition: transform .25s var(--ease), background .2s, box-shadow .2s; will-change: transform; }

/* Hero */
.ind-hero { isolation: isolate; }
.ind-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: .6; }
.ind-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255, 46, 23, .9) 30%, #ff8a7a 50%, rgba(255, 46, 23, .9) 70%, transparent); box-shadow: 0 0 24px 4px rgba(255, 46, 23, .45); animation: scan 6.5s cubic-bezier(.6, 0, .4, 1) infinite; opacity: .75; }
@keyframes scan { 0% { transform: translateY(8vh); opacity: 0; } 8% { opacity: .8; } 50% { transform: translateY(78vh); opacity: .8; } 58%, 100% { transform: translateY(86vh); opacity: 0; } }
.ind-grain { position: absolute; inset: -50%; z-index: -1; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%22160%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.9%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -4%); } 60% { transform: translate(-3%, 5%); } 80% { transform: translate(5%, 2%); } 100% { transform: translate(0, 0); } }
/* The mask reaches above the tight line box so accented capitals (Ö, É, Ő, Ű) are not clipped. */
.ind-title .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: .22em .04em .06em; margin: -.22em -.04em -.06em; }
.ind-title .wd > span { display: inline-block; transform: translateY(105%); animation: wordUp .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.15s + var(--d) * 70ms); }
.ind-title .wd-accent > span { color: var(--brand); text-shadow: 0 0 40px rgba(255, 46, 23, .35); }
@keyframes wordUp { to { transform: none; } }
.ind-boot { opacity: 0; transform: translateY(14px); animation: boot .8s var(--ease) forwards; animation-delay: calc(.2s + var(--d, 0) * 90ms); }
@keyframes boot { to { opacity: 1; transform: none; } }
.spec-card { position: relative; }
.spec-card .cm { position: absolute; width: 14px; height: 14px; border-color: var(--brand); border-style: solid; border-width: 0; }
.spec-card .cm-tl { left: -6px; top: -6px; border-left-width: 2px; border-top-width: 2px; }
.spec-card .cm-tr { right: -6px; top: -6px; border-right-width: 2px; border-top-width: 2px; }
.spec-card .cm-bl { left: -6px; bottom: -6px; border-left-width: 2px; border-bottom-width: 2px; }
.spec-card .cm-br { right: -6px; bottom: -6px; border-right-width: 2px; border-bottom-width: 2px; }
.spec-card .live { animation: live 1.4s steps(2) infinite; }
@keyframes live { 50% { opacity: .35; } }
.spec-card footer { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #3a414b; color: #4ade80; font-size: .72rem; letter-spacing: .08em; }
.spec-card .bar { flex: 1; height: 4px; background: #262c34; overflow: hidden; }
.spec-card .bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), #ff8a7a); transform-origin: 0 50%; animation: load 2.6s var(--ease) .6s both; }
@keyframes load { from { transform: scaleX(0); } }
.ind-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.ind-scroll i { width: 1px; height: 42px; background: linear-gradient(var(--brand), transparent); position: relative; overflow: hidden; }
.ind-scroll i::after { content: ""; position: absolute; left: -1px; top: -12px; width: 3px; height: 12px; background: #fff; animation: drip 1.8s ease-in infinite; }
@keyframes drip { to { transform: translateY(56px); } }
.ind-hero-bg { will-change: transform; }
@media (max-width: 900px) { .ind-scroll { display: none; } }

/* Double marquee */
.marquee2 { border-bottom: 1px solid var(--border); overflow: hidden; }
.mq-row { overflow: hidden; }
.mq-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.mq-row span { display: inline-flex; align-items: center; gap: 40px; padding: 16px 20px 16px 0; white-space: nowrap; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: .02em; }
.mq-row span::after { content: "✕"; font-size: .7em; color: rgba(255, 255, 255, .6); }
.mq-row:first-child { background: var(--brand); color: #fff; }
.mq-outline span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); font-size: clamp(1.6rem, 4vw, 3rem); }
.mq-outline span::after { -webkit-text-stroke: 0; color: var(--brand); }
.mq-reverse .mq-track { animation-direction: reverse; animation-duration: 60s; }
.marquee2:hover .mq-track { animation-play-state: paused; }

/* Statement: title + readable text beside the photo with a pulled quote and the founding year */
.statement { padding: clamp(80px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.statement::before { content: ""; position: absolute; right: -10%; top: 10%; width: 60%; height: 80%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 46, 23, .12), transparent); filter: blur(10px); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.statement-title { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.02em; margin: 6px 0 26px; text-transform: uppercase; }
.statement-title::after { content: ""; display: block; width: 0; height: 4px; margin-top: 22px; background: var(--brand); box-shadow: 0 0 18px rgba(255, 46, 23, .6); transition: width 1s .25s cubic-bezier(.2, .8, .2, 1); }
.statement-title.is-in::after { width: 96px; }
.statement-body { display: grid; gap: 14px; margin-bottom: 30px; max-width: 54ch; }
.statement-body p { margin: 0; color: var(--text-2); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.7; }
.statement-body p:first-child { color: var(--text); font-size: clamp(1.08rem, 1.45vw, 1.28rem); }
.statement-media { position: relative; margin: 0; }
.statement-frame { display: block; aspect-ratio: 16 / 11; overflow: hidden; clip-path: inset(0 0 0 100%); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1); }
.statement-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.08) brightness(.9); transform: scale(1.12); transition: transform 2.2s cubic-bezier(.2, .8, .2, 1); }
.statement-media.is-in .statement-frame { clip-path: inset(0 0 0 0); }
.statement-media.is-in .statement-frame img { transform: scale(1); }
.statement-media .cm { position: absolute; width: 18px; height: 18px; border: 0 solid var(--brand); }
.statement-media .cm-tl { left: -10px; top: -10px; border-left-width: 2px; border-top-width: 2px; }
.statement-media .cm-tr { right: -10px; top: -10px; border-right-width: 2px; border-top-width: 2px; }
.statement-media .cm-bl { left: -10px; bottom: -10px; border-left-width: 2px; border-bottom-width: 2px; }
.statement-media .cm-br { right: -10px; bottom: -10px; border-right-width: 2px; border-bottom-width: 2px; }
.statement-badge { position: absolute; top: 22px; right: 22px; display: grid; justify-items: center; padding: 14px 16px; background: var(--brand); color: #fff; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; box-shadow: 0 18px 40px -12px rgba(255, 46, 23, .6); transform: scale(.6); opacity: 0; transition: transform .6s .9s cubic-bezier(.2, 1.4, .4, 1), opacity .4s .9s; }
.statement-badge strong { font-family: var(--font-head); font-size: 1.7rem; letter-spacing: -.02em; line-height: 1; }
.statement-badge small { font-size: .62rem; }
.statement-quote { position: absolute; left: clamp(-40px, -3vw, -16px); bottom: clamp(-34px, -3vw, -18px); max-width: min(78%, 460px); display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: rgba(17, 20, 24, .78); border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--brand); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-family: var(--font-head); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.35; color: #fff; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); transform: translateY(24px); opacity: 0; transition: transform .8s .7s cubic-bezier(.2, .8, .2, 1), opacity .6s .7s; }
.statement-quote .icon { flex: none; width: 26px; height: 26px; color: var(--brand); }
.statement-media.is-in .statement-badge { transform: none; opacity: 1; }
.statement-media.is-in .statement-quote { transform: none; opacity: 1; }
@media (max-width: 900px) {
  .statement-grid { grid-template-columns: 1fr; }
  .statement-media { margin: 0 6px; }
  .statement-quote { position: relative; left: auto; bottom: auto; max-width: none; margin: -26px 12px 0; }
  .statement-badge { top: 14px; right: 14px; padding: 10px 12px; }
  .statement-badge strong { font-size: 1.35rem; }
}
.reveal-img { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
.reveal-img.is-in { clip-path: inset(0 0 0 0); }

/* Category index with cursor-following image */
.cat-index { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.ci-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.ci-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1.4fr) 110px 48px; align-items: center; gap: 24px; padding: 28px 8px; border-bottom: 1px solid var(--border); text-decoration: none; isolation: isolate; overflow: hidden; }
.ci-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.ci-row:hover::before, .ci-row:focus-visible::before { transform: scaleY(1); }
.ci-num { font-family: var(--font-mono); color: var(--brand); font-size: .9rem; transition: color .3s; }
.ci-title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.05; transition: transform .45s var(--ease); }
.ci-lead { color: var(--muted); font-size: .92rem; transition: color .3s; }
.ci-count { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; transition: color .3s; }
.ci-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border); transition: transform .45s var(--ease), background .3s, border-color .3s; }
.ci-row:hover .ci-num, .ci-row:hover .ci-lead, .ci-row:hover .ci-count { color: #fff; }
.ci-row:hover .ci-title { transform: translateX(14px); }
.ci-row:hover .ci-arrow { transform: rotate(45deg); background: #0b0d10; border-color: #0b0d10; }
.ci-float { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-4deg); transition: opacity .3s, transform .35s var(--ease); overflow: hidden; box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .15); }
.ci-float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.ci-float img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .ci-row { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 14px; padding: 22px 4px; } .ci-lead, .ci-count { display: none; } .ci-arrow { width: 40px; height: 40px; } .ci-float { display: none; } }

/* Draggable blueprint rail */
.rail-section { padding: clamp(64px, 9vw, 120px) 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #3a414b; background: transparent; color: var(--text); cursor: pointer; transition: background .25s, border-color .25s; }
.rail-btn:hover { background: var(--brand); border-color: var(--brand); }
.rail { --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad); padding: 8px var(--rail-pad) 24px; scrollbar-width: none; cursor: grab; outline-offset: -3px; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.bp-card { --mx: 50%; --my: 50%; position: relative; flex: 0 0 clamp(250px, 26vw, 320px); scroll-snap-align: start; display: flex; flex-direction: column; padding: 18px; text-decoration: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 46, 23, .14), transparent 45%), linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 20px 20px, var(--surface);
  border: 1px solid var(--border); transition: border-color .3s, transform .35s var(--ease); user-select: none; }
.bp-card:hover { border-color: var(--brand); transform: translateY(-6px); }
.bp-id { font-family: var(--font-mono); font-size: .7rem; color: var(--brand); letter-spacing: .1em; margin-bottom: 12px; }
.bp-media { aspect-ratio: 1; background: #eceef1; display: grid; place-items: center; padding: 12%; margin-bottom: 16px; position: relative; }
.bp-media::before, .bp-media::after { content: ""; position: absolute; background: rgba(255, 46, 23, .35); opacity: 0; transition: opacity .3s; }
.bp-media::before { left: 50%; top: 6%; bottom: 6%; width: 1px; }
.bp-media::after { top: 50%; left: 6%; right: 6%; height: 1px; }
.bp-card:hover .bp-media::before, .bp-card:hover .bp-media::after { opacity: 1; }
.bp-media img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.bp-card h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.02rem; margin-bottom: 10px; }
.bp-card dl { margin: 0 0 14px; font-family: var(--font-mono); font-size: .72rem; display: grid; gap: 4px; }
.bp-card dl div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed #2c333c; padding-top: 4px; }
.bp-card dt { color: var(--muted); }
.bp-card dd { margin: 0; text-align: right; color: #fff; }
.bp-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.bp-all { align-items: center; justify-content: center; text-align: center; gap: 18px; background: var(--brand); border-color: var(--brand); color: #fff; min-height: 300px; }
.bp-all span { display: grid; place-items: center; width: 84px; height: 84px; border: 2px solid #fff; transition: transform .4s var(--ease); }
.bp-all span .icon { width: 36px; height: 36px; }
.bp-all:hover span { transform: rotate(45deg); }
.bp-all strong { font-family: var(--font-head); text-transform: uppercase; font-size: 1.4rem; }
.rail-progress { height: 2px; background: var(--border); margin-top: 8px; }
.rail-progress span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--rp, .1)); transition: transform .15s linear; }

/* Expanding industry panels */
.ind-panels-section { padding: clamp(64px, 9vw, 120px) 0 0; }
.ind-panels { display: flex; height: min(76vh, 620px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ind-panel { position: relative; flex: 1; min-width: 0; overflow: hidden; text-decoration: none; color: #fff; border-right: 1px solid var(--border); transition: flex .7s cubic-bezier(.6, 0, .2, 1); isolation: isolate; }
.ind-panel:last-child { border-right: 0; }
.ind-panel.is-open { flex: 5; }
.ind-panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) brightness(.45) contrast(1.1); transform: scale(1.08); transition: filter .7s, transform 1.2s var(--ease); }
.ind-panel.is-open .ind-panel-img { filter: grayscale(.1) brightness(.62); transform: scale(1); }
.ind-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 16, .2), rgba(11, 13, 16, .9)); }
.ind-panel-num { position: absolute; top: 22px; left: 22px; font-family: var(--font-mono); font-size: .8rem; color: var(--brand); }
.ind-panel-label { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; font-size: 1.1rem; transition: opacity .3s; }
.ind-panel.is-open .ind-panel-label { opacity: 0; }
.ind-panel-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 40px); display: grid; gap: 10px; max-width: 560px; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.ind-panel.is-open .ind-panel-body { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
.ind-panel-icon { display: grid; place-items: center; width: 50px; height: 50px; background: var(--brand); }
.ind-panel-body strong { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; }
.ind-panel-body em { font-style: normal; color: var(--text-2); }
.ind-panel-body .more { color: #fff; }
/* Phones / small tablets: the panels stack as a list (number + name); the open row expands with its picture and text.
   Both flex values are reset here: the desktop "flex: 5" of the open panel would otherwise collapse it in a column. */
@media (max-width: 900px) {
  .ind-panels { flex-direction: column; height: auto; }
  .ind-panel, .ind-panel.is-open { flex: none; border-right: 0; border-bottom: 1px solid var(--border); transition: height .6s cubic-bezier(.6, 0, .2, 1); }
  .ind-panel { height: 88px; }
  .ind-panel.is-open { height: min(112vw, 440px); }
  .ind-panel:last-child { border-bottom: 0; }
  .ind-panel-num { top: 34px; }
  .ind-panel-label { writing-mode: horizontal-tb; transform: none; left: 64px; right: 48px; bottom: auto; top: 30px; white-space: normal; transition: opacity .3s; }
  .ind-panel:not(.is-open)::before { content: "+"; position: absolute; right: 20px; top: 26px; font-family: var(--font-mono); font-size: 1.4rem; line-height: 1; color: var(--brand); }
  .ind-panel.is-open .ind-panel-img { filter: saturate(.9) brightness(.78); }
  .ind-panel-body { padding: 22px; }
  .ind-panel-body strong { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }
}

/* Big stats */
.bigstats { padding: clamp(56px, 8vw, 100px) 0; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at 50% 120%, rgba(255, 46, 23, .16), transparent 60%); }
.bigstats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.bigstat { padding: 8px 24px; border-left: 1px solid var(--border); min-width: 0; }
.bigstat:first-child { border-left: 0; padding-left: 0; }
.bigstat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 4.4rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.bigstat span { display: block; margin-top: 10px; color: var(--muted); font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 1100px) { .bigstats-grid { grid-template-columns: 1fr 1fr; gap: 36px 0; } .bigstat:nth-child(3) { border-left: 0; padding-left: 0; } .bigstat strong { font-size: clamp(1.8rem, 7vw, 3.6rem); } }

/* Spotlight on cards (mouse position set by theme.js) */
.feature, .product-card, .post-card { --mx: 50%; --my: 50%; background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 46, 23, .10), transparent 45%); }

/* Timeline that fills on scroll */
.timeline-section { padding: clamp(64px, 9vw, 120px) 0; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tl-line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--border); }
.tl-line span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--tl, 0)); box-shadow: 0 0 14px rgba(255, 46, 23, .7); }
.tl-step { position: relative; padding-top: 80px; opacity: .45; transition: opacity .5s; }
.tl-step.is-on { opacity: 1; }
.tl-dot { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 56px; height: 56px; background: var(--bg); border: 1px solid #3a414b; font-family: var(--font-mono); font-weight: 600; color: var(--muted); transition: background .4s, border-color .4s, color .4s, box-shadow .4s; }
.tl-step.is-on .tl-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 30px rgba(255, 46, 23, .5); }
.tl-step h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.3rem; }
.tl-step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: 80px; }
  .tl-line { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl-line span { transform-origin: 50% 0; transform: scaleY(var(--tl, 0)); }
  .tl-step { padding-top: 0; }
  .tl-dot { left: -80px; }
}

/* Mega CTA */
.mega-cta { background: var(--bg); color: var(--text); border-top: 1px solid var(--border); padding: 0 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.mega-cta-marquee { display: block; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.mega-track { display: flex; align-items: center; gap: .4em; width: max-content; animation: marquee 30s linear infinite; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(3.4rem, 11vw, 10rem); line-height: .9; letter-spacing: -.03em; }
.mega-track span { color: transparent; -webkit-text-stroke: 2px rgba(244, 244, 245, .55); transition: color .4s, -webkit-text-stroke-color .4s; white-space: nowrap; }
.mega-track b { font-size: .32em; color: var(--brand); border: 2px solid var(--brand); padding: .15em .35em; letter-spacing: 0; }
.mega-cta-marquee:hover .mega-track span { color: var(--brand); -webkit-text-stroke-color: var(--brand); }
.mega-cta .cta-inner { padding-top: clamp(36px, 5vw, 56px); }
.mega-cta .cta-copy p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .ind-scan, .ind-grain, .ind-scroll i::after { display: none; }
  .ind-title .wd > span, .ind-boot { transform: none; opacity: 1; animation: none; }
  .statement-frame { clip-path: none; transition: none; }
  .statement-frame img, .statement-badge, .statement-quote { transform: none; opacity: 1; transition: none; }
  .statement-title::after { width: 96px; transition: none; }
  .reveal-img { clip-path: none; }
  .mq-track, .mega-track, .marquee-track { animation: none; }
  .tl-step { opacity: 1; }
}

/* Page transition: red curtain wipe */
::view-transition-old(root) { animation: vt-out .45s cubic-bezier(.7, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-in .7s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes vt-out { to { opacity: .3; transform: translateY(-3%) scale(.985); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); filter: brightness(1.6) saturate(0); } 60% { filter: none; } to { clip-path: inset(0 0 0 0); } }

/* Designer section on the home page */
.designer-section { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--border); background:
  linear-gradient(rgba(255, 46, 23, .05) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, rgba(255, 46, 23, .05) 1px, transparent 1px) 0 0 / 24px 24px; }
.designer-section .form-card { background: var(--surface); }
.swatches span { box-shadow: inset 0 0 0 2px var(--surface); border-radius: 2px; }
.calc-visual { border-radius: 2px; }

/* Intro overlay (first page of a session) */
.intro-overlay { display: none; }
html.intro .intro-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #07080a; color: #fff; animation: introKill .01s 6.5s forwards; }
html.intro .intro-overlay.is-out { animation: introOut 1.1s cubic-bezier(.8, 0, .2, 1) forwards; }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); } }
@keyframes introKill { to { visibility: hidden; opacity: 0; } }
.intro-inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.intro-mark { width: 120px; height: auto; overflow: visible; }
.intro-mark path { fill: var(--brand); opacity: 0; transform: translateX(-24px); animation: stripeIn .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.intro-mark .s1 { animation-delay: .15s; } .intro-mark .s2 { animation-delay: .38s; } .intro-mark .s3 { animation-delay: .61s; }
.intro-mark .s4 { animation-delay: .84s; } .intro-mark .s5 { animation-delay: 1.07s; } .intro-mark .s6 { animation-delay: 1.35s; transform: translateY(10px); }
@keyframes stripeIn { to { opacity: 1; transform: none; } }
.intro-text strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.6rem); letter-spacing: .02em; opacity: 0; animation: boot .9s 1.55s forwards; }
.intro-text strong b { font-weight: 700; }
.intro-text span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .3em; color: var(--muted); opacity: 0; animation: boot .9s 1.85s forwards; }
.intro-count { font-family: var(--font-mono); font-size: .8rem; color: var(--brand); letter-spacing: .2em; }
.intro-line { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform-origin: 0 50%; animation: introBar 2.3s cubic-bezier(.45, 0, .2, 1) forwards; box-shadow: 0 0 18px rgba(255, 46, 23, .8); }
@keyframes introBar { from { transform: scaleX(0); } }
/* Hero animations wait for the intro to lift. */
html.intro .ind-title .wd > span { animation-delay: calc(3.3s + var(--d) * 70ms); }
html.intro .ind-boot { animation-delay: calc(3.35s + var(--d, 0) * 90ms); }

/* Hero flashlight (mouse only): the dark overlay thins out around the pointer, revealing the photo */
@property --ha { syntax: "<number>"; inherits: true; initial-value: 1; }
.ind-hero { --hx: 50%; --hy: 50%; --ha: 1; transition: --ha .6s ease; }
.ind-hero.is-lit { --ha: .4; }
.ind-hero::before { -webkit-mask-image: radial-gradient(circle 340px at var(--hx) var(--hy), rgba(0, 0, 0, var(--ha)), #000); mask-image: radial-gradient(circle 340px at var(--hx) var(--hy), rgba(0, 0, 0, var(--ha)), #000); }

/* Hover tag next to the normal cursor: "View" over images, "Drag" over the rail (desktop, mouse only) */
.hover-tag { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.hover-tag span { display: inline-block; padding: 8px 12px; background: var(--brand); color: #fff; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 12px 30px -8px rgba(255, 46, 23, .65); opacity: 0; transform: scale(.5); transform-origin: 0 0; transition: opacity .2s, transform .3s var(--ease); }
.hover-tag.is-on span { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hover-tag { display: none; } html.intro .intro-overlay { display: none; } }

/* Product finder – industrial look */
.finder { --finder-bg: linear-gradient(rgba(255, 46, 23, .05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 46, 23, .05) 1px, transparent 1px) 0 0 / 24px 24px, var(--surface); border-color: #2c333c; }
.finder::after { content: "FINDER / SZF"; position: absolute; right: 18px; bottom: 12px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; color: rgba(255, 255, 255, .25); }
.fq-title span { background: var(--brand); color: #fff; border-radius: 2px; }
.tile { background: #0e1115; border-color: #2c333c; text-transform: uppercase; font-family: var(--font-head); letter-spacing: 0; font-size: .78rem; }
.tile::after { font-family: var(--font-mono); }
.tile[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--brand), 0 0 28px rgba(255, 46, 23, .35); }
.fm-ring::before { background: var(--surface); }
.fm-ring b { font-family: var(--font-mono); }
.finder-must .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.facet-search, .sort-select select, .view-toggle button { background: #0e1115; }
.view-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.facet summary { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.facet-opt em { font-family: var(--font-mono); }
.badge-food { background: #1e3a8a; color: #dbeafe; border-radius: 2px; }
.badge-best { border-radius: 2px; }
.pc-match i { background: #0b0d10; }
.pc-match b { color: #fff; }
.pc-range strong { color: #fff; }
.pc-bar { background: #262c34; border-radius: 0; }
.pc-bar i { border-radius: 0; box-shadow: 0 0 10px rgba(255, 46, 23, .6); }
.compare-tray { background: rgba(11, 13, 16, .92); }
.ct-item { background: #14181d; }
.cmp-table thead img, .ct-item img { background: #e9ebee; }
.cmp-table tr.is-diff td { background: rgba(255, 46, 23, .1); }

/* Hero photos take turns (cross-fade; the Ken Burns drift keeps running underneath) */
.ind-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.ind-hero-slide.is-on { opacity: 1; }
.ind-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .ind-hero-slide { transition: none; } }
