html { background: var(--ink); scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
.btn { display: inline-block; padding: 16px 32px; font-size: var(--fs-base); font-weight: 700; letter-spacing: -.035em; background: var(--ivory); color: var(--ink); border-radius: 2px; transition: background .3s; }
.btn:hover { background: var(--accent); }
.link { padding: 6px 0; font-size: var(--fs-base); border-bottom: 1px solid rgba(var(--accent-rgb), .6); transition: color .25s, border-color .25s; }
.link:hover { color: var(--accent); border-color: var(--accent); }
.ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ln > span { display: inline-block; transform: translateY(112%); animation: rise 1.2s cubic-bezier(.16, .8, .1, 1) forwards; animation-delay: calc(.25s + var(--i, 0) * .16s); }
@keyframes rise { to { transform: translateY(0); } }
.fade { opacity: 0; animation: fadein 1.2s ease forwards; animation-delay: calc(.95s + var(--i, 0) * .14s); }
@keyframes fadein { to { opacity: 1; } }
.diagram.fade { animation-duration: 1.4s; animation-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .ln > span, .fade { animation: none; opacity: 1; transform: none; } }
.visual { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(60% 70% at 72% 52%, #0f1a2e 0%, rgba(15,26,46,0) 70%), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%); }
.visual-in { flex: 1; display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; align-items: start; gap: clamp(16px, 3vw, 48px); padding: clamp(48px, 18vh, 200px) var(--inset) 40px; }
.visual-in > .diagram { align-self: center; }
@media (min-width: 1001px) {
  .visual-in { position: absolute; inset: 0; align-items: center; padding-top: 0; padding-bottom: 0; }
  .visual .top { z-index: 7; }
  .visual-in > .diagram { margin-top: 88px; }
}
h1 { margin: 0 0 30px; font-weight: 700; font-size: var(--fs-visual); line-height: 1.22; letter-spacing: -.065em; word-break: keep-all; }
h1 em { font-style: normal; color: var(--accent); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { margin: 0 0 42px; max-width: 35em; font-size: var(--fs-lead); line-height: 1.85; font-weight: 300; color: #c3c7d4; word-break: keep-all; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 44px; font-size: var(--fs-2xs); color: var(--dim); }
.flow span { display: inline-flex; align-items: center; gap: 8px; }
.flow i { width: 8px; height: 8px; border-radius: 2px; }
.diagram { position: relative; width: 100%; }
#iso { --ts: 1; width: 100%; height: auto; display: block; overflow: visible; }
#iso .ft { fill: #1b2436; stroke: rgba(var(--accent-rgb), .55); stroke-width: .7; stroke-linejoin: round; }
#iso .fl { fill: #131a29; stroke: rgba(var(--accent-rgb), .45); stroke-width: .7; stroke-linejoin: round; }
#iso .fr { fill: #0d1320; stroke: rgba(var(--accent-rgb), .4); stroke-width: .7; stroke-linejoin: round; }
#iso .pipe.ft { fill: #3a4458; } #iso .pipe.fl { fill: #2b3345; } #iso .pipe.fr { fill: #222939; }
#iso .gA.ft, #iso .gA.fl, #iso .gA.fr { fill: #c9a56e; stroke: #f0dcae; }
#iso .gB.ft, #iso .gB.fl, #iso .gB.fr { fill: #5c7aa3; stroke: #b4d4f6; }
#iso .acc.ft { fill: rgba(var(--accent-rgb), .85); } #iso .acc.fl { fill: rgba(var(--accent-rgb), .45); } #iso .acc.fr { fill: rgba(var(--accent-rgb), .3); }
#iso .lyr { fill: rgba(var(--accent-rgb), .04); stroke: rgba(var(--accent-rgb), .45); stroke-width: .8; stroke-dasharray: 3 3; }
#iso .lyr.base { fill: var(--ink-3); stroke: rgba(143,166,196,.3); stroke-dasharray: none; }
#iso .lyr.mes { fill: rgba(var(--accent-rgb), .09); stroke: rgba(var(--accent-rgb), .85); stroke-width: 1.2; stroke-dasharray: none; }
#iso .lyr.mon { fill: rgba(63,198,216,.05); stroke: rgba(63,198,216,.45); }
#iso .lyrSide { fill: var(--ink-2); } #iso .lyrSide.r { fill: var(--ink); }
#iso .lyrGrid { fill: none; stroke: rgba(var(--accent-rgb), .06); stroke-width: .5; }
#iso .lyrEdge { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0; transition: opacity .3s; }
#iso .lyrG { outline: none; transition: opacity .35s; }
#iso.has-on .lyrG:not(.on) { opacity: .32; }
#iso .lyrG.on .lyrEdge { opacity: 1; }
#iso .tk { font-size: calc(7.5px * var(--fs)); font-weight: 700; letter-spacing: .2em; fill: var(--steel); }
#iso .tn { font-size: calc(11px * var(--fs)); font-weight: 800; fill: var(--ivory); letter-spacing: -.03em; }
#iso .tn.big { font-size: calc(11.5px * var(--fs)); }
#iso .tp { font-size: calc(9px * var(--fs)); font-weight: 700; fill: var(--accent); letter-spacing: -.02em; }
#iso .com { font-size: calc(8px * var(--fs)); font-style: italic; fill: var(--dim); opacity: .75; }
#iso .lgd { font-size: calc(9px * var(--fs)); fill: var(--dim); }
#iso .labLine { stroke: rgba(243,239,230,.25); stroke-width: .6; fill: none; }
#iso .wire { stroke: rgba(143,166,196,.35); stroke-width: .8; stroke-dasharray: 2 2; }
#iso .sensor { fill: #3fc6d8; }
#iso .shield { fill: rgba(var(--accent-rgb), .15); stroke: var(--accent); stroke-width: 1; }
#iso .shieldTick { fill: none; stroke: var(--accent); stroke-width: 1.2; }
#iso .cloud { fill: var(--ink); fill-opacity: .6; stroke: rgba(143,166,196,.55); stroke-width: 1; }
#iso .cloudTx { font-size: 5.5px; font-weight: 700; letter-spacing: .15em; fill: var(--steel); }
#iso .scr { fill: var(--ink-2); stroke: rgba(143,166,196,.6); stroke-width: .8; }
#iso .scr.main { stroke: var(--accent); stroke-width: 1; }
#iso .scrLine { fill: none; stroke: var(--accent); stroke-width: 1.2; }
#iso .scrFill { fill: rgba(143,166,196,.35); } #iso .scrFill.c { fill: rgba(63,198,216,.45); } #iso .scrFill.a { fill: rgba(var(--accent-rgb), .75); }
#iso .spine { fill: none; stroke-width: .8; stroke-dasharray: 1 3; }
#iso .spine.up { stroke: rgba(63,198,216,.4); } #iso .spine.dn { stroke: rgba(240,220,174,.35); }
#iso .pkt { fill: #f0dcae; } #iso .pkt.c { fill: #3fc6d8; }
.dcap { min-height: 3.4em; margin: 10px 0 0; text-align: center; font-size: var(--fs-3xs); line-height: 1.6; color: var(--dim); word-break: keep-all; }
.dcap b { margin-right: 8px; color: var(--ivory); font-weight: 800; }
.dcap span { color: var(--accent); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 30px 28px 8px 0; border-top: 1px solid var(--hair); }
.steps li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--ink); border: 1px solid var(--dim); }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: rgba(var(--accent-rgb), .7); transform: scaleX(0); transform-origin: left; transition: transform .7s linear; }
.steps.in li::after { transform: scaleX(1); }
.steps.in li:nth-child(2)::after { transition-delay: .7s; } .steps.in li:nth-child(3)::after { transition-delay: 1.4s; } .steps.in li:nth-child(4)::after { transition-delay: 2.1s; }
.steps .no { display: block; margin-bottom: 12px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .04em; color: var(--dim); }
.steps b { display: block; margin-bottom: 10px; font-size: var(--fs-lg); }
.steps b small { display: block; margin-top: 4px; font-size: var(--fs-3xs); font-weight: 400; color: var(--steel); letter-spacing: .02em; }
.steps p { margin: 0; font-size: var(--fs-xs); line-height: 1.75; color: var(--dim); font-weight: 300; word-break: keep-all; }
.steps .refs { display: flex; gap: 5px; margin-top: 14px; }
.steps .refs a { display: grid; place-items: center; width: 24px; height: 24px; font-size: var(--fs-3xs); font-weight: 800; border: 1px solid rgba(var(--accent-rgb), .45); color: var(--accent); border-radius: 50%; transition: background .25s, color .25s; }
.steps .refs a:hover { background: var(--accent); color: var(--ink); }
.allproj { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 36px 0 0; border-top: 1px solid var(--hair); }
.allproj p { margin: 0; color: var(--dim); font-weight: 300; }
.closing { text-align: center; }
.closing h2 { margin-bottom: 14px; }
.closing .intro { margin: 0 auto 36px; }
.closing .cta { justify-content: center; }
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.1,1); }
.rv.in { opacity: 1; transform: none; }
@media (max-width: 1000px) {
  .visual .scroll-cue { display: none; }
  .visual-in { grid-template-columns: 1fr; padding-top: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}
@media (max-width: 900px) {
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 30px 26px; border-top: 0; border-left: 1px solid var(--hair); }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { left: -4px; top: 2px; }
  .steps li::after { left: -1px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .steps.in li::after { transform: scaleY(1); }
  .btn { padding: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .steps li::after { transform: none; transition: none; }
}
