/* ==========================================================================
   MAGIC Safety — Styles
   Concept: a calm "aerosol mist" (ice-blue) overcoming fire (ember red/amber).
   ========================================================================== */

:root {
  --ink: #070A12;
  --ink-2: #0D1220;
  --panel: #121A2B;
  --panel-2: #18223A;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #E8ECF4;
  --muted: #98A4BC;

  --red: #C7071B;        /* logo red */
  --ember: #FF5A2C;
  --amber: #FFB62E;
  --ice: #7EE3FF;        /* aerosol mist */
  --ice-2: #2FA8D6;

  --paper: #F4F6FA;
  --paper-ink: #0E1424;
  --paper-muted: #5A6580;

  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.7;
  color: var(--text); background: var(--ink); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: min(var(--wrap), 100% - clamp(40px, 8vw, 96px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ice); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ember); color: #fff; }

/* ---------- page transition + progress + cursor glow ---------- */
.page-fade { position: fixed; inset: 0; z-index: 300; background: var(--ink); pointer-events: none; opacity: 1; transition: opacity .7s var(--ease); }
body.ready .page-fade { opacity: 0; }
body.leaving .page-fade { opacity: 1; transition-duration: .35s; pointer-events: all; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--red), var(--ember), var(--amber), var(--ice)); }
.glow-cursor { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(126, 227, 255, .10), rgba(126, 227, 255, 0)); opacity: 0; transition: opacity .6s; will-change: transform; }
body.has-pointer .glow-cursor { opacity: 1; }
main, .site-footer { position: relative; z-index: 2; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .6s ease, box-shadow .6s ease, transform .7s cubic-bezier(.22, .61, .36, 1), backdrop-filter .6s ease;
  will-change: transform;
}
.site-header.scrolled { background: rgba(7, 10, 18, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.site-header.hidden { transform: translateY(-110%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 38px; width: auto; border-radius: 6px; transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-3deg) scale(1.05); }
.brand-sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.2; max-width: 130px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a { position: relative; padding: 10px 14px; font-size: .95rem; font-weight: 500; color: #CBD3E4; transition: color .3s; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: linear-gradient(90deg, var(--ember), var(--amber)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-out); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .04); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .5s var(--ease-out), top .5s var(--ease-out), opacity .3s; }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  --bg: linear-gradient(135deg, var(--red), var(--ember));
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: 999px;
  background: var(--bg); color: #fff; font-weight: 600; font-size: .98rem; letter-spacing: .01em; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 44, .6); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease-out); }
.btn:hover { box-shadow: 0 16px 40px -10px rgba(255, 90, 44, .75); }
.btn:hover::before { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { --bg: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); box-shadow: none; backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ice); box-shadow: 0 0 0 4px rgba(126, 227, 255, .08); }
.btn-ice { --bg: linear-gradient(135deg, var(--ice-2), var(--ice)); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(126, 227, 255, .6); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-r { opacity: 0; transform: translateX(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
.reveal-s { opacity: 0; transform: scale(.94); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-s.in { opacity: 1; transform: none; }
.mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.mask > span { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
.in .mask > span, .mask.in > span, body.ready .hero .mask > span { transform: none; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section.light { background: var(--paper); color: var(--paper-ink); }
.section.light .lead { color: var(--paper-muted); }
.section.panel { background: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--ember); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.title { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 700; margin-bottom: 20px; }
.title em { font-style: normal; background: linear-gradient(100deg, var(--ember), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title .ice { background: linear-gradient(100deg, var(--ice-2), var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.center { text-align: center; } .center .lead { margin-inline: auto; } .center .eyebrow { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4%; z-index: -3; background: url("/assets/img/banner-station.webp") center/cover; transform: scale(1.08); animation: kenburns 28s ease-in-out infinite alternate; filter: saturate(.85) contrast(1.05); }
@keyframes kenburns { to { transform: scale(1.18) translate(-1.5%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(1000px 600px at 78% 40%, rgba(199, 7, 27, .28), transparent 60%),
  linear-gradient(100deg, rgba(7, 10, 18, .96) 25%, rgba(7, 10, 18, .72) 60%, rgba(7, 10, 18, .45)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; z-index: -1; background: linear-gradient(to top, var(--ink), transparent); }
#mist { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 26px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--ember), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #C5CFE2; font-size: 1.2rem; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .85rem; color: #C5CFE2; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 0 rgba(126, 227, 255, .6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(126, 227, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 227, 255, 0); } }
.hero-visual { position: relative; aspect-ratio: 1 / 1.1; display: grid; place-items: center; }
.orb { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(126, 227, 255, .35); animation: spin 40s linear infinite; }
.orb.two { inset: 18%; border-color: rgba(255, 90, 44, .35); animation-duration: 28s; animation-direction: reverse; }
.orb::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 18px var(--ice); }
.orb.two::after { background: var(--ember); box-shadow: 0 0 18px var(--ember); }
@keyframes spin { to { transform: rotate(360deg); } }
.device { position: relative; width: min(58%, 270px); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px) rotate(-1.2deg); } }
.device img { width: 100%; height: auto; }
.badge-temp { position: absolute; right: 2%; top: 14%; padding: 12px 18px; border-radius: 16px; background: rgba(13, 18, 32, .85); border: 1px solid var(--line-2); backdrop-filter: blur(10px); animation: float 6s ease-in-out -2s infinite; }
.badge-temp b { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--amber); line-height: 1; }
.badge-temp span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.badge-temp.b2 { right: auto; left: 0; top: auto; bottom: 16%; animation-delay: -4s; }
.badge-temp.b2 b { color: var(--ice); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 44px; margin-left: -13px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ice); animation: wheel 2s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 56px; font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; color: #AEB9CF; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--ember); font-size: .9em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- about snippet ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split.top { align-items: start; }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--panel); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.frame:hover img { transform: scale(1.06); }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 10, 18, .55), transparent 55%); }
.frame .tag { position: absolute; left: 20px; bottom: 20px; z-index: 2; padding: 10px 16px; border-radius: 12px; background: rgba(13, 18, 32, .8); backdrop-filter: blur(10px); border: 1px solid var(--line-2); font-size: .85rem; }
.frame .tag b { display: block; font-family: var(--f-display); font-size: 1.1rem; }
.checks { display: grid; gap: 14px; margin: 28px 0 36px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: linear-gradient(135deg, var(--ice-2), var(--ice)) center/60% no-repeat; box-shadow: 0 0 0 5px rgba(126, 227, 255, .1); position: relative; }
.checks li::after { content: ""; position: absolute; margin: 10px 0 0 7px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -3px); }
.checks li { position: relative; }

/* ---------- reaction scene ---------- */
.scene { position: relative; border: 1px solid var(--line-2); border-radius: 28px; background: radial-gradient(900px 400px at 20% 60%, rgba(255, 90, 44, .12), transparent 60%), linear-gradient(180deg, var(--panel), var(--ink-2)); padding: clamp(16px, 3vw, 34px); overflow: hidden; }
.scene svg { width: 100%; height: auto; }
.scene-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.scene-status { font-family: var(--f-display); font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.scene-status i { width: 12px; height: 12px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px var(--ember); transition: background .6s, box-shadow .6s; }
.scene.done .scene-status i { background: var(--ice); box-shadow: 0 0 14px var(--ice); }
.flame { transform-origin: 160px 330px; animation: flicker 1.1s ease-in-out infinite alternate; transition: opacity 1.6s ease, transform 2s var(--ease); }
.flame.f2 { animation-duration: .8s; animation-delay: -.3s; }
.flame.f3 { animation-duration: 1.4s; animation-delay: -.6s; }
@keyframes flicker { 0% { transform: scale(1, 1) skewX(0deg); } 50% { transform: scale(.96, 1.06) skewX(2deg); } 100% { transform: scale(1.03, .96) skewX(-2deg); } }
.scene.done .flame { opacity: 0; transform: scale(.2, .1); animation-play-state: paused; }
.glow { transition: opacity 1.6s ease; }
.scene.done .glow { opacity: 0; }
.radical { transition: opacity .8s, transform 1.2s var(--ease); }
.radical circle { fill: rgba(255, 182, 46, .16); stroke: var(--amber); stroke-width: 1.6; }
.radical text { fill: var(--amber); font: 600 13px var(--f-body); text-anchor: middle; dominant-baseline: central; }
.radical.caught circle { fill: rgba(126, 227, 255, .12); stroke: var(--ice); }
.radical.caught text { fill: var(--ice); }
.rad-orbit { transform-origin: 160px 250px; animation: spin 14s linear infinite; }
.cord { stroke: #36425E; stroke-width: 5; fill: none; stroke-linecap: round; }
.cord-hot { stroke: url(#heatGrad); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.gauge-fill { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.puff { fill: rgba(126, 227, 255, .5); }

/* ---------- stages ---------- */
.stages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; position: relative; }
.stage { position: relative; padding: 26px 22px 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .025); overflow: hidden; transition: transform .6s var(--ease-out), border-color .4s; }
.stage:hover { transform: translateY(-6px); border-color: var(--line-2); }
.stage .n { font-family: var(--f-display); font-size: 3rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22); }
.stage h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.stage p { font-size: .94rem; color: var(--muted); margin: 0; }
.stage.hit { border-color: rgba(126, 227, 255, .55); background: linear-gradient(180deg, rgba(126, 227, 255, .10), rgba(255, 255, 255, .02)); }
.stage.hit .n { -webkit-text-stroke-color: var(--ice); }
.stage .flag { position: absolute; top: 16px; right: 16px; padding: 5px 10px; border-radius: 999px; background: var(--ice); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.curve { margin-top: 48px; }
.curve svg { width: 100%; height: auto; overflow: visible; }
.curve .axis { stroke: var(--line-2); stroke-width: 1; }
.curve .draw { fill: none; stroke: url(#curveGrad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.curve .area { fill: url(#areaGrad); opacity: 0; transition: opacity 1.6s ease .8s; }
.curve.in .area { opacity: 1; }
.curve .mark { opacity: 0; transition: opacity .8s ease 1.9s; }
.curve.in .mark { opacity: 1; }
.curve .ping { transform-origin: 252px 190px; animation: ringping 2.4s ease-out infinite; }
@keyframes ringping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.curve text { fill: var(--muted); font: 500 13px var(--f-body); }
.curve text.h { fill: var(--text); font: 700 15px var(--f-display); }

/* ---------- fire class cards ---------- */
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.fclass { position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid #E4E8F0; overflow: hidden; transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out), border-color .4s; isolation: isolate; }
.fclass::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 90%; z-index: -1; background: radial-gradient(closest-side, var(--c, var(--ember)), transparent); opacity: 0; transform: translateY(30%); transition: opacity .7s, transform .9s var(--ease-out); }
.fclass:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -25px rgba(14, 20, 36, .35); border-color: transparent; }
.fclass:hover::before { opacity: .22; transform: none; }
.fclass .letter { font-family: var(--f-display); font-size: 5rem; font-weight: 800; line-height: .9; color: var(--c, var(--ember)); letter-spacing: -.05em; }
.fclass .ico { width: 44px; height: 44px; margin: 18px 0 14px; color: var(--c, var(--ember)); }
.fclass h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--paper-ink); }
.fclass p { color: var(--paper-muted); font-size: .96rem; margin: 0; }
.fclass.a { --c: #E5502C; } .fclass.b { --c: #D9A020; } .fclass.c { --c: #1D90C8; } .fclass.e { --c: #7A4BD8; }

/* ---------- industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.ind { position: relative; padding: 36px 30px 34px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .7s var(--ease-out), border-color .4s; }
.ind::before { content: attr(data-n); position: absolute; right: 18px; top: 4px; font-family: var(--f-display); font-size: 7rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .04); transition: color .6s, transform .9s var(--ease-out); }
.ind:hover { transform: translateY(-8px); border-color: rgba(126, 227, 255, .45); }
.ind:hover::before { color: rgba(126, 227, 255, .10); transform: translateY(8px) scale(1.06); }
.ind .ico { width: 54px; height: 54px; padding: 13px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 90, 44, .25), rgba(255, 182, 46, .12)); color: var(--amber); margin-bottom: 22px; }
.ind h3 { font-size: 1.3rem; margin-bottom: 12px; }
.ind p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 46px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1; background: linear-gradient(100deg, var(--ember), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- family showcase ---------- */
.family { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 56px; align-items: end; }
.fam { border-radius: 20px; overflow: hidden; aspect-ratio: 600 / 1050; position: relative; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); transition: transform .8s var(--ease-out); }
.fam { position: relative; }
.fam:nth-child(even) { top: 34px; }
.fam:hover { transform: translateY(-12px) scale(1.04); z-index: 3; }
.fam img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(80px, 11vw, 140px) 0; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/img/banner-gear.webp") center/cover; filter: saturate(.8); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 50% 100%, rgba(199, 7, 27, .5), transparent 70%), linear-gradient(rgba(7, 10, 18, .88), rgba(7, 10, 18, .93)); }
.cta .title { max-width: 18ch; margin-inline: auto; }
.cta .lead { margin: 0 auto 36px; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(70px, 10vw, 130px)) 0 clamp(60px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg, url("/assets/img/banner-factory.webp")) center/cover; transform: scale(1.06); animation: kenburns 26s ease-in-out infinite alternate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 85% 20%, rgba(199, 7, 27, .35), transparent 60%), linear-gradient(180deg, rgba(7, 10, 18, .78), var(--ink)); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ice); }

/* ---------- about ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.vm-card { padding: 38px 34px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.vm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--ember), var(--amber)); }
.vm-card.mission::before { background: linear-gradient(var(--ice-2), var(--ice)); }
.vm-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.vm-card p, .vm-card li { color: #B9C4DA; }
.vm-card li { position: relative; padding-left: 22px; margin-bottom: 14px; }
.vm-card li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); }
.quote { margin-top: 22px; padding: 40px clamp(26px, 5vw, 56px); border-radius: var(--radius); background: linear-gradient(135deg, rgba(199, 7, 27, .22), rgba(255, 182, 46, .08)); border: 1px solid rgba(255, 90, 44, .3); font-family: var(--f-display); font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.5; font-weight: 500; }

/* ---------- products ---------- */
.ptabs { position: sticky; top: var(--header-h); z-index: 40; background: rgba(7, 10, 18, .85); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.ptabs-inner { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.ptabs-inner::-webkit-scrollbar { display: none; }
.ptab { flex: none; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font-size: .92rem; font-weight: 500; color: #B9C4DA; transition: all .4s var(--ease-out); white-space: nowrap; }
.ptab:hover { color: #fff; }
.ptab.active { color: var(--ink); background: linear-gradient(135deg, var(--ice-2), var(--ice)); }
.product { padding: clamp(60px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.product:nth-of-type(even) .product-grid { grid-template-columns: 1.15fr .85fr; }
.product:nth-of-type(even) .pimg { order: 2; }
.pimg { position: relative; perspective: 900px; }
.pstage { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 300 / 500; max-width: 380px; margin-inline: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); transform-style: preserve-3d; transition: transform .5s var(--ease-out); will-change: transform; }
.pstage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease), transform 1.4s var(--ease-out); }
.pstage img + img { opacity: 0; transform: scale(1.08); }
.pstage.alt img:first-child { opacity: 0; transform: scale(.94); }
.pstage.alt img + img { opacity: 1; transform: none; }
.pstage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); background-size: 250% 100%; background-position: 140% 0; transition: background-position 1.2s var(--ease-out); pointer-events: none; }
.pstage:hover::after { background-position: -40% 0; }
.view-switch { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.view-switch button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: .84rem; transition: all .4s; }
.view-switch button[aria-pressed="true"] { background: var(--ice); border-color: var(--ice); color: var(--ink); font-weight: 600; }
.pnum { font-family: var(--f-display); font-size: .85rem; letter-spacing: .2em; color: var(--ember); font-weight: 700; }
.pname { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; margin: 8px 0 6px; }
.psub { color: var(--muted); margin-bottom: 26px; }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.kf { padding: 16px 16px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.kf b { display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--amber); line-height: 1.1; }
.kf span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.spec summary { cursor: pointer; padding: 16px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; list-style: none; background: rgba(255, 255, 255, .03); }
.spec summary::-webkit-details-marker { display: none; }
.spec summary::after { content: "+"; font-size: 1.5rem; color: var(--ice); transition: transform .5s var(--ease-out); }
.spec[open] summary::after { transform: rotate(135deg); }
.spec dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
.spec dt, .spec dd { margin: 0; padding: 11px 22px; border-top: 1px solid var(--line); font-size: .95rem; }
.spec dt { color: var(--muted); padding-right: 30px; }
.spec dd { font-weight: 500; }
.spec .body { animation: drop .6s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.compare { margin-top: 50px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .94rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare thead th { background: var(--panel-2); font-family: var(--f-display); font-size: .92rem; position: sticky; top: 0; }
.compare tbody th { color: var(--muted); font-weight: 500; background: rgba(255, 255, 255, .02); }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: rgba(126, 227, 255, .06); }
.compare td { transition: background .3s; }

/* how it works cards */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.how-card { padding: 32px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform .7s var(--ease-out), border-color .4s; position: relative; overflow: hidden; }
.how-card:hover { transform: translateY(-8px); border-color: rgba(255, 182, 46, .5); }
.how-card .ico { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: rgba(126, 227, 255, .1); color: var(--ice); margin-bottom: 20px; }
.how-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.how-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.how-card .big { position: absolute; right: 16px; top: 8px; font-family: var(--f-display); font-size: 4.5rem; font-weight: 800; color: rgba(255, 255, 255, .05); }
.diagram { margin-top: 50px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #fff; cursor: zoom-in; position: relative; }
.diagram img { width: 100%; height: auto; }
.diagram span { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(7, 10, 18, .85); color: #fff; font-size: .8rem; }

/* ---------- applications ---------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.use { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: transform .6s var(--ease-out), border-color .4s, background .4s; }
.use:hover { transform: translateX(6px); border-color: rgba(255, 90, 44, .5); background: var(--panel-2); }
.use svg { flex: none; width: 34px; height: 34px; color: var(--ember); }
.use b { font-weight: 600; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.info-list { display: grid; gap: 16px; margin-top: 34px; }
.info { display: flex; gap: 18px; padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.info svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(255, 90, 44, .15); color: var(--ember); }
.info small { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info a:hover { color: var(--ice); }
.form { padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; transition: border-color .3s, box-shadow .3s, background .3s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(126, 227, 255, .12); background: rgba(255, 255, 255, .07); }
.form select option { color: #000; }
.form .hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: #6EE7A8; } .form-status.err { color: #FF8A7A; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #05070D; padding: 70px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 40px; }
.foot-grid img { height: 44px; width: auto; border-radius: 6px; margin-bottom: 18px; }
.foot-grid h4 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.foot-grid li { margin-bottom: 10px; } .foot-grid a { color: #C5CFE2; transition: color .3s; } .foot-grid a:hover { color: var(--ice); }
.foot-grid p { color: var(--muted); font-size: .95rem; max-width: 36ch; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: auto; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: transparent; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3, 5, 10, .94); }
.lightbox img { max-width: min(94vw, 1500px); max-height: 88vh; border-radius: 14px; background: #fff; animation: zoomin .6s var(--ease-out); }
@keyframes zoomin { from { opacity: 0; transform: scale(.94); } }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.8rem; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .product-grid, .product:nth-of-type(even) .product-grid, .contact-grid, .vm { grid-template-columns: 1fr; }
  .product:nth-of-type(even) .pimg { order: 0; }
  .hero-visual { max-width: 420px; margin: 20px auto 0; }
  .stages-grid, .class-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid, .how, .uses { grid-template-columns: 1fr 1fr; }
  .family { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 20px 24px; background: rgba(7, 10, 18, .97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-14px); opacity: 0; visibility: hidden; transition: all .5s var(--ease-out); margin: 0; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 16px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav .btn { margin-top: 14px; justify-content: center; }
  .brand-sub { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .stages-grid, .class-grid, .ind-grid, .how, .uses, .keyfacts { grid-template-columns: 1fr; }
  .family { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .badge-temp { transform: scale(.85); }
  .spec dl { grid-template-columns: 1fr; } .spec dt { padding-bottom: 0; border-top: 1px solid var(--line); } .spec dd { border-top: 0; padding-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-l, .reveal-r, .reveal-s { opacity: 1; transform: none; }
  .mask > span { transform: none; }
  .page-fade { display: none; }
}

/* ---------- additions ---------- */
.curve.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2.8s var(--ease) .2s; }
.curve .ping { transform-box: fill-box; transform-origin: center; }
.radical { animation: bob 3.2s ease-in-out infinite alternate; }
.radical:nth-of-type(2) { animation-delay: -1s; } .radical:nth-of-type(3) { animation-delay: -2s; }
@keyframes bob { to { transform: translateY(-9px); } }
.radical.caught { animation-play-state: paused; opacity: .55; }
.fclass .ico, .ind .ico, .how-card .ico, .info .ico, .use .ico { display: block; }
.info .ico { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(255, 90, 44, .15); color: var(--ember); }
.use .ico { flex: none; width: 34px; height: 34px; color: var(--ember); }
.scene-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.section.light .eyebrow { color: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.note { font-size: .84rem; color: var(--muted); }
.page-hero .lead { color: #C5CFE2; }
.legal-note { margin-top: 28px; font-size: .82rem; color: var(--muted); max-width: 70ch; }
@media (max-width: 1000px) {
  .hero::before { background: radial-gradient(700px 420px at 80% 70%, rgba(199, 7, 27, .3), transparent 60%), linear-gradient(180deg, rgba(7, 10, 18, .88), rgba(7, 10, 18, .72) 55%, rgba(7, 10, 18, .92)); }
}
