/* =====================================================================
   Fullmoonstar — homepage (Industrial)
   ===================================================================== */

.home section { padding: 0; }
.home .h-section { padding: clamp(4rem, 8vw, 6rem) 0; }
.home .h-section--white { background: transparent; }

.h-title { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 1rem; text-shadow: 0 1px 0 #fff; }
.h-lede { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-muted); max-width: 60ch; margin: 0; }
.h-link {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    text-decoration: none;
    padding: .55rem .9rem;
    border-radius: var(--r-md);
    box-shadow: var(--sh-key);
    transition: color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.h-link:hover { color: var(--accent-ink); }
.h-link:active { box-shadow: var(--sh-pressed); transform: translateY(2px); }

/* A bolted module: the base panel for homepage blocks */
.module {
    background: var(--chassis);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-card);
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.module > .vents { position: absolute; top: 18px; right: 30px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.h-hero { padding: calc(64px + 14px + clamp(3.5rem, 7vw, 5.5rem)) 0 0 !important; position: relative; overflow: hidden; }
.h-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.h-hero__place {
    display: inline-flex; align-items: center; gap: .6rem;
    margin: 0 0 1.75rem;
    padding: .5rem .95rem;
    border-radius: 9999px;
    box-shadow: var(--sh-recessed);
    font-family: var(--font-mono);
    font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--ink-muted);
}
.h-hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin: 0 0 1.5rem;
    max-width: 13ch;
    text-shadow: 0 1px 1px #fff;
}
.h-hero__lede { font-size: 1.125rem; line-height: 1.7; color: var(--ink-muted); max-width: 54ch; margin: 0 0 2.25rem; }
.h-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.h-hero__actions .fms-btn { min-height: 56px; padding: .9rem 1.4rem; font-size: .8rem; border-radius: var(--r-xl); }

/* The device: a CSS-built console whose screen shows the moon and the build */
.device { position: relative; padding: 0 14px; transition: transform .5s var(--ease-mech); }
.device:hover { transform: scale(1.015); }
.device__bezel {
    position: relative;
    border-radius: var(--r-xl);
    padding: 18px;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 4px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px),
        linear-gradient(160deg, #3b4a5f, #24303f);
    border: 4px solid #1d2733;
    box-shadow: 18px 18px 36px #a9aebd, -14px -14px 30px #ffffff, inset 0 1px 0 rgba(255,255,255,.12);
}
.device__screen {
    position: relative;
    aspect-ratio: 4 / 3.3;
    border-radius: var(--r-lg);
    background: radial-gradient(120% 90% at 30% 20%, #1b2124, #0d1012 70%);
    box-shadow: inset 6px 6px 16px rgba(0,0,0,.85), inset -2px -2px 6px rgba(255,255,255,.04);
    overflow: hidden;
    padding: 18px 20px;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 12px;
    font-family: var(--font-mono);
    color: #8fd1a5;
}
.device__screen::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,.25) 50%);
    background-size: 100% 4px;
}
.device__hud { display: flex; justify-content: space-between; font-size: .65rem; letter-spacing: .12em; color: #6fbf8a; }
.device__hud span { display: inline-flex; align-items: center; gap: .45rem; }
.device__hud .led { width: 6px; height: 6px; }
.device__moon { display: flex; align-items: center; justify-content: center; min-height: 0; }

.moon {
    position: relative;
    width: min(180px, 46%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 32%, #fffdf6 0%, #efe9d8 38%, #d8ccab 70%, #b8a882 100%);
    box-shadow: 0 0 60px 8px rgba(239,233,216,.18), inset -16px -20px 40px rgba(13,16,18,.35);
    overflow: hidden;
    isolation: isolate;
}
.moon::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 22% 16% at 62% 34%, rgba(130,112,76,.32), transparent 70%),
        radial-gradient(ellipse 16% 20% at 70% 50%, rgba(130,112,76,.24), transparent 70%),
        radial-gradient(ellipse 26% 18% at 44% 60%, rgba(130,112,76,.26), transparent 72%),
        radial-gradient(ellipse 12% 10% at 32% 40%, rgba(130,112,76,.2), transparent 70%),
        radial-gradient(ellipse 10% 14% at 56% 76%, rgba(130,112,76,.18), transparent 70%);
    filter: blur(1.5px);
}
.moon::after {
    content: "";
    position: absolute; inset: -2px;
    border-radius: 50%;
    background: #0d1012;
    box-shadow: 14px 0 30px 4px #0d1012;
    transform: translateX(-114%);
    animation: wax 2.4s cubic-bezier(.3,.1,.2,1) .4s both;
}
@keyframes wax { from { transform: translateX(-8%); } to { transform: translateX(-114%); } }

.device__rows { display: grid; gap: 7px; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #7fae8f; }
.device__rows div { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 10px; }
.device__rows b { display: block; height: 6px; border-radius: 9999px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; }
.device__rows b::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #2fae62, #6fe39a); box-shadow: 0 0 8px rgba(111,227,154,.6); }
.device__rows div:nth-child(4) b::after { background: linear-gradient(90deg, #c4313e, #ff4757); box-shadow: 0 0 8px rgba(255,71,87,.6); }
.device__foot { display: flex; align-items: center; gap: .6rem; font-size: .6rem; letter-spacing: .14em; color: #6fbf8a; }
.device__spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.device__key { position: absolute; right: 0; width: 14px; border-radius: 0 6px 6px 0; background: linear-gradient(90deg, #24303f, #3b4a5f); box-shadow: 3px 3px 6px #a9aebd; }
.device__key--1 { top: 22%; height: 56px; }
.device__key--2 { top: calc(22% + 72px); height: 34px; }
.device__pwr {
    position: absolute; right: 40px; bottom: 26px;
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--font-mono); font-size: .55rem; letter-spacing: .14em; color: rgba(224,229,236,.55);
}
.device__pwr .led { width: 6px; height: 6px; }

@media (prefers-reduced-motion: reduce) { .moon::after { animation: none; transform: translateX(-114%); } }

/* Facts strip: a dark technical console */
.h-facts {
    margin: clamp(3.5rem, 7vw, 5rem) 0 0;
    background: linear-gradient(180deg, #30383b, #262c2e);
    border-radius: var(--r-xl);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light), inset 0 1px 0 rgba(255,255,255,.06);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: .5rem;
}
.h-facts > div { padding: 1.4rem 1.5rem; position: relative; }
.h-facts > div + div::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 2px; border-radius: 2px; background: rgba(0,0,0,.35); box-shadow: 1px 0 0 rgba(255,255,255,.06); }
.h-facts dt { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-console-muted); margin: 0 0 .45rem; display: flex; align-items: center; gap: .5rem; }
.h-facts dt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--led-green); box-shadow: var(--glow-green); }
.h-facts dd { margin: 0; color: #fff; font-weight: 600; font-size: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.h-facts a { color: #fff; text-decoration: none; font-family: var(--font-mono); }
.h-facts a:hover { color: var(--accent); }

/* ── Start here: two bolted modules ───────────────────────────────── */
.home .h-start { padding: clamp(4rem, 8vw, 6rem) 0 0; }
.h-start__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.h-start__item { display: flex; flex-direction: column; align-items: flex-start; transition: transform .3s ease, box-shadow .3s ease; }
.h-start__item:hover { transform: translateY(-4px); box-shadow: var(--sh-float); }
.h-start__item h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; margin: .5rem 0 .75rem; padding-right: 3rem; }
.h-start p { color: var(--ink-muted); margin: 0 0 1.5rem; max-width: 52ch; }
.h-start__steps { list-style: none; counter-reset: s; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.9rem; padding: 0; }
.h-start__steps li {
    counter-increment: s;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .75rem .4rem .45rem;
    border-radius: 9999px;
    box-shadow: var(--sh-recessed);
    font-family: var(--font-mono);
    font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--ink-muted);
}
.h-start__steps li::before {
    content: counter(s, decimal-leading-zero);
    width: 24px; height: 24px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--chassis);
    box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px #fff;
    font-size: .6rem; color: var(--accent-ink); font-weight: 700;
}
.h-start__item .fms-btn { margin-top: auto; }

/* ── Services ─────────────────────────────────────────────────────── */
.h-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.h-split__aside { position: sticky; top: 110px; }
.h-split__aside .h-lede { margin-bottom: 1.75rem; }

.svc-group + .svc-group { margin-top: 2rem; }
.svc-group h3 {
    font-family: var(--font-mono);
    font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--ink-muted);
    margin: 0 0 1.25rem;
    display: flex; align-items: center; gap: .55rem;
}
.svc-group h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow-red); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.svc-list li { padding: 1.1rem 1.2rem 1.25rem; border-radius: var(--r-md); box-shadow: var(--sh-recessed); }
.svc-list h4 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 .35rem; letter-spacing: -0.01em; }
.svc-list p { margin: 0; color: var(--ink-muted); font-size: .9375rem; line-height: 1.6; }
.svc-list a.h-link { display: inline; padding: 0; box-shadow: none; font-family: inherit; font-size: inherit; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Process: nodes on a pipe ─────────────────────────────────────── */
.phases { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.phases::before {
    content: "";
    position: absolute; top: 30px; left: 36px; right: 12%;
    height: 12px; border-radius: 9999px;
    background: var(--recess);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 1px rgba(255,255,255,.6);
}
.phase { position: relative; }
.phase__moon {
    position: relative;
    display: block;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--chassis);
    box-shadow: var(--sh-float);
    margin-bottom: 1.5rem;
}
.phase__moon::before {
    content: "";
    position: absolute; inset: 12px;
    border-radius: 50%;
    background: #14181a;
    box-shadow: inset 3px 3px 6px rgba(0,0,0,.6);
}
.phase__moon::after {
    content: "";
    position: absolute; inset: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 32%, #fffdf6, #e2d8bc);
}
.phase:nth-child(1) .phase__moon::after { opacity: 0; }
.phase:nth-child(2) .phase__moon::after { clip-path: inset(0 0 0 70%); }
.phase:nth-child(3) .phase__moon::after { clip-path: inset(0 0 0 50%); }
.phase:nth-child(4) .phase__moon::after { box-shadow: 0 0 14px rgba(255,253,246,.6); }
.phase__step { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin: 0 0 .35rem; font-weight: 600; }
.phase h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; }
.phase p { margin: 0; color: var(--ink-muted); font-size: .9688rem; line-height: 1.6; max-width: 32ch; }

/* ── Products ─────────────────────────────────────────────────────── */
.h-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.h-head > div { max-width: 640px; }
.products-module { padding: 2.25rem 2.25rem 1rem; }

.products-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.products-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: .66rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--ink-muted);
    padding: .25rem 1rem .9rem 0;
    border-bottom: 2px solid #c8cfda;
}
.products-table td { padding: 1.2rem 1rem 1.2rem 0; border-bottom: 1px solid #cfd6e0; vertical-align: top; }
.products-table tr:last-child td { border-bottom: 0; }
.products-table td:last-child, .products-table th:last-child { padding-right: 0; text-align: right; }
.products-table .p-name { font-weight: 700; font-size: 1.0625rem; white-space: nowrap; }
.products-table .p-desc { color: var(--ink-muted); font-size: .9688rem; line-height: 1.55; max-width: 52ch; }
.products-table .p-plat { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.products-table .p-go .h-link { padding: .45rem .75rem; font-size: .66rem; }

.status { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; color: var(--ink-muted); }
.status .led { width: 7px; height: 7px; }

.custom-build {
    margin-top: 2.5rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    padding: 1.75rem 2rem;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-recessed);
}
.custom-build h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.custom-build p { margin: 0; color: var(--ink-muted); max-width: 60ch; }

/* ── Industries ───────────────────────────────────────────────────── */
.ind-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ind-video {
    margin-top: 2rem;
    border-radius: var(--r-xl);
    padding: 14px;
    aspect-ratio: auto;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 4px), linear-gradient(160deg, #3b4a5f, #24303f);
    border: 4px solid #1d2733;
    box-shadow: var(--sh-float);
}
.ind-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; border-radius: var(--r-md); background: #0d1012; }
.ind-video-cap { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); margin: 1rem 0 0; }
.ind-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.ind-links li { border: 0 !important; }
.ind-links a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.1rem;
    border-radius: var(--r-md);
    background: var(--chassis);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: var(--sh-key);
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: .9375rem;
    transition: color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ind-links a svg { width: 16px; height: 16px; color: var(--ink-muted); transition: transform .2s var(--ease-mech), color .15s ease; }
.ind-links a:hover { color: var(--accent-ink); }
.ind-links a:hover svg { transform: translateX(3px); color: var(--accent); }
.ind-links a:active { box-shadow: var(--sh-pressed); transform: translateY(2px); }

/* ── Closing call to action: console with radar ───────────────────── */
.h-cta { padding: 0 0 clamp(4rem, 8vw, 6rem) !important; position: relative; }
.h-cta__inner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(180deg, #30383b, #262c2e);
    border-radius: var(--r-2xl);
    box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light), inset 0 1px 0 rgba(255,255,255,.06);
    padding: clamp(2.25rem, 5vw, 3.75rem) !important;
}
.h-cta__inner > *:not(.h-cta__radar) { position: relative; z-index: 1; }
.h-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -0.03em; margin: 0 0 .75rem; text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.h-cta p { color: var(--on-console-muted); font-size: 1.0625rem; margin: 0; max-width: 52ch; }
.h-cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.h-cta__actions .fms-btn { min-height: 56px; padding: .9rem 1.6rem; border-radius: var(--r-xl); }
.h-cta__actions .fms-btn--on-ink { text-transform: none; letter-spacing: 0; font-family: var(--font-mono); font-weight: 500; }
.h-cta__radar {
    position: absolute;
    z-index: 0;
    width: 340px; height: 340px;
    right: -110px; top: -140px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, transparent 0 34px, rgba(111,227,154,.09) 34px 35px),
        radial-gradient(circle, rgba(0,0,0,.25), transparent 70%);
    overflow: hidden;
    pointer-events: none;
}
.h-cta__radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(111,227,154,.22), transparent 25%); animation: spin 4s linear infinite; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .h-hero__grid { grid-template-columns: 1fr; }
    .device { max-width: 460px; margin: 0 auto; width: 100%; }
    .h-facts { grid-template-columns: 1fr 1fr; }
    .h-facts > div:nth-child(3)::before { display: none; }
    .h-split, .ind-grid { grid-template-columns: 1fr; }
    .h-split__aside { position: static; }
    .phases { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
    .phases::before { display: none; }
    .h-cta__inner { grid-template-columns: 1fr; }
    .h-start__grid { grid-template-columns: 1fr; }
    .h-cta__radar { display: none; }
}
@media (max-width: 720px) {
    .svc-list { grid-template-columns: 1fr; }
    .products-module { padding: 1.5rem 1.25rem .5rem; }
    .products-table thead { display: none; }
    .products-table, .products-table tbody, .products-table tr, .products-table td { display: block; width: 100%; min-width: 0 !important; }
    .products-table tr { border-bottom: 1px solid #cfd6e0; padding: 1.2rem 0; display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; }
    .products-table tr:last-child { border-bottom: 0; }
    .products-table td { border: 0 !important; padding: 0; width: auto; }
    .products-table td:last-child { text-align: left; }
    .products-table .p-name { grid-column: 1; white-space: normal; }
    .products-table .p-status { grid-column: 2; grid-row: 1; text-align: right; }
    .products-table .p-desc { grid-column: 1 / -1; }
    .products-table .p-plat { grid-column: 1; align-self: center; }
    .products-table .p-go { grid-column: 2; text-align: right !important; }
    .ind-links { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .device__screen { aspect-ratio: auto; min-height: 300px; padding: 14px; }
    .device__bezel { padding: 12px; }
    .h-facts { grid-template-columns: 1fr; }
    .h-facts > div + div::before { left: 1.5rem; right: 1.5rem; top: 0; bottom: auto; width: auto; height: 2px; }
    .phases { grid-template-columns: 1fr; }
    .h-hero__actions .fms-btn, .h-cta__actions .fms-btn { width: 100%; }
    .module > .vents { display: none; }
    .h-start__item h3 { padding-right: 0; }
}

/* =====================================================================
   Scroll story (Apple-style) — builds on css/story.css + js/story.js
   ===================================================================== */
.home .hs-facts { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.home .hs-facts .h-facts { margin: 0; }
.home .h-start { padding: clamp(2rem, 4vw, 3rem) 0 0; }
.home .hs-services { padding: clamp(5rem, 10vw, 8rem) 0 0; }
.home .hs-custom { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.home .hs-custom .custom-build { margin-top: 0; }
.home .hs-industries { padding: clamp(5rem, 10vw, 8rem) 0; }
.h-split__aside .eyebrow, .ind-grid .eyebrow { margin-bottom: 1rem; }

/* 1. Opening -------------------------------------------------------- */
.hs-open .sc-stage {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: calc(64px + 14px + 3rem) var(--gutter) 3rem;
}
.sc.hs-open.is-pinned .sc-stage { padding: calc(64px + 14px + 1.75rem) var(--gutter) 1.5rem; gap: 1.25rem; }
.hs-copy { display: grid; justify-items: center; max-width: 980px; }
.hs-copy__a, .hs-copy__b { grid-column: 1; }
.hs-copy__b { margin-top: 1.5rem; }
.hs-open h1 {
    font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800;
    margin: 0 auto; max-width: 17ch; text-shadow: 0 1px 1px #fff;
}
.hs-big { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.03; letter-spacing: -0.04em; font-weight: 800; color: var(--ink); margin: 0 0 1rem; text-shadow: 0 1px 1px #fff; }
.hs-small { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--ink-muted); margin: 0 auto; max-width: 54ch; }
.hs-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hs-actions .fms-btn { min-height: 54px; padding: .9rem 1.4rem; font-size: .8rem; border-radius: var(--r-xl); }
.hs-device { width: 100%; display: flex; justify-content: center; align-items: flex-start; min-height: 0; }
.hs-device .device { width: min(560px, 100%); }
.hs-device .device:hover { transform: none; }

.hs-open.is-pinned .hs-copy__a, .hs-open.is-pinned .hs-copy__b { grid-row: 1; margin-top: 0; align-self: center; }
.hs-open.is-pinned .hs-copy__a { opacity: clamp(0, calc(1 - var(--p) * 3), 1); transform: translateY(calc(var(--p) * -30px)); }
.hs-open.is-pinned .hs-copy__b { opacity: clamp(0, calc((var(--p) - .38) * 3.4), 1); transform: translateY(calc((1 - var(--p)) * 30px)); }
.hs-open.is-pinned .hs-device .device {
    width: clamp(240px, calc((100svh - 520px) * 1.15), 600px);
    transform: scale(calc(.9 + var(--p) * .14));
    transform-origin: 50% 0;
    will-change: transform;
}
/* The screen tells the build story as you scroll */
.hs-open.is-pinned .moon::after { animation: none; transform: translateX(calc(-30% - var(--p) * 84%)); }
.hs-open .device__rows div:nth-child(3) b::after { width: calc(72% + var(--p) * 28%); }
.hs-open .device__rows div:nth-child(4) b::after { width: calc(28% + var(--p) * 72%); }
.hs-open .device__foot { position: relative; }
.hs-open .df--live { position: absolute; left: calc(14px + .6rem); color: #6fe39a; }
.hs-open .df--build, .hs-open .device__spin { opacity: clamp(0, calc((.86 - var(--p)) * 10), 1); }
.hs-open .df--live { opacity: clamp(0, calc((var(--p) - .86) * 10), 1); }
.hs-open .scroll-cue { color: var(--ink-muted); }
.hs-open .scroll-cue span { box-shadow: inset 0 0 0 2px rgba(45,52,54,.3); }
.hs-open.is-pinned .scroll-cue { bottom: 1rem; }

/* 5. Process -------------------------------------------------------- */
.hs-process .sec-head { margin-bottom: 0; }
.hs-process .phases::before { right: auto; width: calc(75% + 1.5rem); }
.hs-process .phase { z-index: 1; }
.hs-process.is-pinned .phases::after {
    content: ""; position: absolute; top: 30px; left: 36px; height: 12px; z-index: 0;
    width: calc((75% + 1.5rem) * var(--fill, 0));
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent));
    box-shadow: 0 0 12px rgba(255,71,87,.5);
    transition: width .6s cubic-bezier(.2,.7,.2,1);
}
.hs-process.is-pinned .phase { opacity: .32; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.hs-process.is-pinned .phase.on { opacity: 1; transform: none; }
.hs-process.is-pinned .phase.cur .phase__moon { box-shadow: var(--sh-float), 0 0 0 3px rgba(255,71,87,.55), 0 0 22px rgba(255,71,87,.35); }
.home .hs-process:not(.is-pinned) { padding: clamp(5rem, 10vw, 8rem) 0 0; }
.home .hs-process:not(.is-pinned) .sc-stage { padding: 0; }

/* 6. Products gallery -------------------------------------------- */
.gallery-lede { margin: 1rem 0 0; color: var(--ink-muted); font-size: 1.0625rem; max-width: 56ch; }
.g-card--dev { box-shadow: var(--sh-recessed); border-color: transparent; }
.g-card--dev h3 { color: var(--ink-muted); }

@media (max-width: 720px) {
    .hs-actions { width: 100%; }
    .hs-actions .fms-btn { flex: 1 1 100%; }
}
@media (max-height: 760px) {
    .hs-open.is-pinned h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
    .hs-open.is-pinned .hs-big { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
}
