/* ============================================================
   ACIDIC STUDIOS — Global Stylesheet
   ============================================================ */

/* Base */
html { overflow-x: hidden; }
body { background-color: #000000; color: #ffffff; overflow-x: hidden; width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #8bfe00; }

/* Typography helpers */
.stencil-text { -webkit-text-stroke: 1.5px #8bfe00; color: transparent; }
.stencil-text-white { -webkit-text-stroke: 1px #ffffff; color: transparent; }
.condensed-header { transform: scaleY(1.15); transform-origin: top left; display: inline-block; margin-bottom: 0.12em; }

/* Glow utilities */
.acid-glow { text-shadow: 0 0 15px rgba(139, 254, 0, 0.6); }
.acid-text-glow { text-shadow: 0 0 15px rgba(139, 254, 0, 0.6); }
.acid-border-glow:hover { border-color: #8bfe00; }
.acid-box-glow { box-shadow: none; }

/* Glass panel */
.glass-panel { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid #262626; }

/* Mask */
.mask-image-gradient {
    mask-image: linear-gradient(to top, transparent 0%, black 20%, black 100%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%, black 100%);
}

/* ── Animations ── */
@keyframes pulse-red {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(255, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}
.rec-pulse { animation: pulse-red 2s infinite; }

@keyframes pulse-green {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 254, 0, 0.7); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(139, 254, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 254, 0, 0); }
}
.pulse-dot-green { animation: pulse-green 2s infinite; }

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-container { overflow: hidden; white-space: nowrap; }
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-set {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 0 32px;
    flex-shrink: 0;
}
.marquee-container:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

@keyframes chemical-flow {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.chemical-bar {
    background: linear-gradient(90deg, #8bfe00, #aaff00, #8bfe00);
    background-size: 200% 100%;
    animation: chemical-flow 3s linear infinite;
}

/* ── Buttons ── */
.btn-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 28px 17px 22px;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-tag .btn-tag-index { opacity: 0.5; font-weight: 400; }
.btn-tag-dot { width: 6px; height: 6px; border-radius: 999px; background-color: currentColor; flex-shrink: 0; }

.btn-tag-fill { background-color: #8bfe00; color: #0d2000; }
.btn-tag-fill:hover { background-color: #000000; color: #8bfe00; box-shadow: inset 0 0 0 1px #8bfe00, 0 0 20px rgba(139,254,0,0.35); }
.btn-tag-fill:hover .btn-tag-dot { background-color: #8bfe00; }

.btn-tag-outline { background-color: rgba(0,0,0,0.4); color: #ffffff; box-shadow: inset 0 0 0 1px #3f4a34; }
.btn-tag-outline:hover { color: #8bfe00; box-shadow: inset 0 0 0 1px #8bfe00, 0 0 20px rgba(139,254,0,0.2); }

.btn-tag-ghost { background-color: transparent; color: #8bfe00; box-shadow: inset 0 0 0 1px rgba(139,254,0,0.5); padding: 20px 32px; }
.btn-tag-ghost:hover { background-color: #8bfe00; color: #0d2000; box-shadow: 0 0 30px rgba(139,254,0,0.5); }

/* ── Nav CTA button (navbar + mobile menu) ── */
.nav-btn-tag { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px 14px 18px; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; background-color: #8bfe00; color: #0d2000; text-decoration: none; }
.nav-btn-tag:hover { background-color: #000000; color: #8bfe00; box-shadow: inset 0 0 0 1px #8bfe00, 0 0 20px rgba(139,254,0,0.35); }

/* ── Icon button ── */
.icon-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #262626; color: #becbae; transition: border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.icon-btn:hover { border-color: rgba(139,254,0,0.4); color: #8bfe00; box-shadow: 0 0 12px rgba(139,254,0,0.15); }

/* ── Footer icon button (on green background) ── */
.footer-icon-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(13,32,0,0.3); color: #0d2000; transition: background-color .2s ease, color .2s ease; }
.footer-icon-btn:hover { background-color: #0d2000; color: #8bfe00; border-color: #0d2000; }

#footerNewsletter input::placeholder { color: rgba(139,254,0,0.5); }

/* ── Navbar ── */
.nav-shell { background-color: rgba(0,0,0,0.15); transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.nav-shell.nav-solid { background-color: rgba(0,0,0,0.85); border-color: rgba(139,254,0,0.3); box-shadow: 0 4px 30px rgba(139,254,0,0.1); }
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: #8bfe00; transition: width .25s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #8bfe00; }

/* ── Dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link::after { bottom: -4px; }
.dropdown-panel {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 250px;
    background: rgba(0,0,0,0.97);
    border: 1px solid #262626;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
}
.nav-dropdown:hover .dropdown-panel, .dropdown-panel.force-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown-panel::before { content: ""; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.dropdown-panel::after { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #8bfe00, transparent); }

.dropdown-eyebrow {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px 10px;
    font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; color: #8bfe00; opacity: 0.7;
}
.dropdown-eyebrow .material-symbols-outlined { font-size: 14px; }

/* Chevron toggle target — bigger hit area for touch, no separate hover color so the row's own :hover still governs */
.nav-chevron-toggle { display: flex; align-items: center; justify-content: center; padding: 4px; margin: -4px; cursor: pointer; }
.nav-link:focus-visible, .dropdown-item a:focus-visible, .sub-item:focus-visible, .nav-chevron-toggle:focus-visible {
    outline: 1px solid #8bfe00; outline-offset: 2px;
}

.dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 18px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    border-bottom: 1px solid #1a1a1a;
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
    cursor: pointer;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { color: #8bfe00; background: rgba(139,254,0,0.05); }
.dropdown-item .chevron { font-size: 14px; opacity: 0.5; transition: opacity .15s ease; }
.dropdown-item:hover .chevron { opacity: 1; }

/* Green accent bar that grows in from the left on hover / active — matches the
   underline-grow treatment used on top-level nav links */
.dropdown-item::before, .sub-item::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: #8bfe00; transform: scaleY(0); transition: transform .2s ease;
}
.dropdown-item:hover::before, .dropdown-item.active::before,
.sub-item:hover::before, .sub-item.active::before { transform: scaleY(1); }

.item-icon { font-size: 17px !important; color: #8bfe00; opacity: 0.75; flex-shrink: 0; transition: opacity .15s ease; }
.dropdown-item:hover .item-icon, .dropdown-item.active .item-icon,
.sub-item:hover .item-icon, .sub-item.active .item-icon { opacity: 1; }

.sub-panel {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 230px;
    background: rgba(0,0,0,0.99);
    border: 1px solid #262626;
    border-left: 1px solid #8bfe0033;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    transform: translateX(-6px);
    z-index: 101;
}
.dropdown-item:hover .sub-panel, .dropdown-item.sub-open .sub-panel { opacity: 1; pointer-events: auto; transform: translateX(0); }

.sub-panel-eyebrow {
    padding: 12px 18px 10px;
    font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: #5f5f5f;
    border-bottom: 1px solid #1a1a1a; margin-bottom: 2px;
}

.sub-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cccccc;
    border-bottom: 1px solid #1a1a1a;
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
}
.sub-item:last-child { border-bottom: none; }
.sub-item:hover { color: #8bfe00; background: rgba(139,254,0,0.05); }

/* Current-page indication inside the dropdown */
.dropdown-item.active > a, .sub-item.active { color: #8bfe00; }

/* ── Mobile menu: compact anchored panel, top-right of the hamburger ── */
#mobileMenu { display: none; position: fixed; inset: 0; z-index: 200; }
#mobileMenu.open { display: block; }

#mobileMenu .mobile-menu-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
#mobileMenu.open .mobile-menu-scrim { opacity: 1; }

#mobileMenu .mobile-menu-panel {
    position: absolute;
    top: calc(4.75rem + env(safe-area-inset-top));
    right: 12px;
    width: min(87vw, 320px);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    background: #0a0a0a;
    border: 1px solid #262626;
    border-radius: 20px;
    box-shadow: 0 24px 60px -16px rgba(0,0,0,0.7);
    padding: 10px;
    transform-origin: top right;
    transform: translateY(-8px) scale(0.96);
    opacity: 0;
    transition: transform .22s ease, opacity .18s ease;
}
#mobileMenu.open .mobile-menu-panel { transform: translateY(0) scale(1); opacity: 1; }

#mobileMenu .mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid #1c1c1c; }
#mobileMenu .mobile-menu-title { display: flex; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #becbae; }
#mobileMenu .nav-close-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: none; border: none; color: #becbae; cursor: pointer; transition: background-color .15s, color .15s; }
#mobileMenu .nav-close-btn:hover { background: #1a1a1a; color: #ffffff; }

#mobileMenu .mobile-menu-inner { display: flex; flex-direction: column; gap: 2px; width: 100%; }
#mobileMenu a.mobile-link, #mobileMenu .mobile-services summary {
    display: flex; align-items: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
    color: #e5e2e1; text-decoration: none; padding: 11px 10px; border-radius: 10px;
    transition: background-color .15s ease, color .15s ease;
}
#mobileMenu a.mobile-link:hover, #mobileMenu .mobile-services summary:hover { background: #151515; color: #8bfe00; }
#mobileMenu a.mobile-link .item-icon, #mobileMenu .mobile-services summary .item-icon { font-size: 17px; color: #8bfe00; opacity: 0.8; }

/* Mobile "Services" disclosure — reachable without hover on touch/tablet */
#mobileMenu .mobile-services summary { cursor: pointer; list-style: none; justify-content: space-between; }
#mobileMenu .mobile-services summary::-webkit-details-marker { display: none; }
#mobileMenu .mobile-services summary::after { content: "expand_more"; font-family: "Material Symbols Outlined"; font-size: 16px; color: #666; margin-left: auto; transition: transform .2s ease; }
#mobileMenu .mobile-services[open] summary::after { transform: rotate(180deg); }
#mobileMenu .mobile-sub-group { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 26px; padding-left: 12px; border-left: 1px solid #1c1c1c; }
#mobileMenu .mobile-sub-heading { display: block; font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #666; margin: 8px 0 2px; padding: 0 8px; }
#mobileMenu a.mobile-sub-link { display: block; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; color: #a8a8a2; text-decoration: none; padding: 7px 8px; border-radius: 8px; transition: background-color .15s, color .15s; }
#mobileMenu a.mobile-sub-link:hover { color: #8bfe00; background: #141414; }

/* ── Service / spec / feature cards ── */
.service-card { display: block; background: #000000; border: 1px solid #262626; padding: 2rem; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .3s ease; }
.service-card:hover { border-color: #8bfe00; box-shadow: 0 0 20px rgba(139,254,0,0.1); transform: translateY(-4px); }

.spec-card { background: #000000; border: 1px solid #262626; padding: 2rem; transition: border-color .2s, box-shadow .2s, transform .3s ease; }
.spec-card:hover { border-color: #8bfe00; box-shadow: 0 0 20px rgba(139,254,0,0.1); transform: translateY(-4px); }

.feature-card { background: #000000; border: 1px solid #262626; padding: 1.5rem; transition: border-color .3s, box-shadow .3s, transform .3s ease; }
.feature-card:hover { border-color: rgba(139,254,0,0.4); box-shadow: 0 0 15px rgba(139,254,0,0.08); transform: translateY(-2px); }

/* ── Showcase / portfolio card ── */
.showcase-card { position: relative; background: #000000; border: 1px solid #262626; overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease; }
.showcase-card:hover { border-color: #8bfe00; box-shadow: 0 0 30px rgba(139,254,0,0.15); }
.showcase-card .showcase-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%); opacity: 0; transition: opacity .3s ease; }
.showcase-card:hover .showcase-overlay { opacity: 1; }
.showcase-card .showcase-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; transform: translateY(20px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.showcase-card:hover .showcase-content { transform: translateY(0); opacity: 1; }

/* ── Pricing card ── */
.pricing-card { position: relative; background: #000000; border: 1px solid #262626; padding: 2.5rem; transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.pricing-card:hover { border-color: #8bfe00; box-shadow: 0 0 30px rgba(139,254,0,0.1); }
.pricing-card.popular { border-color: #8bfe00; }
.pricing-card.popular::before { content: "MOST POPULAR"; position: absolute; top: 0; right: 0; background: #8bfe00; color: #0d2000; font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.15em; padding: 6px 14px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }

/* ── Testimonial card ── */
.testimonial-card { background: #000000; border: 1px solid #262626; padding: 2rem; transition: border-color .3s ease; }
.testimonial-card:hover { border-color: rgba(139,254,0,0.3); }

/* ── Tool tag ── */
.tool-tag { font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #becbae; border: 1px solid #262626; padding: 8px 14px; transition: all .2s ease; }
.tool-tag:hover { border-color: #8bfe00; color: #8bfe00; box-shadow: 0 0 12px rgba(139,254,0,0.15); }

/* ── Services page: explore button ── */
.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 20px;
    color: #8bfe00;
    background: rgba(139,254,0,0.08);
    box-shadow: inset 0 0 0 1px #8bfe00;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: background .2s, color .2s, box-shadow .2s;
}
.btn-explore:hover { background: #8bfe00; color: #0d2000; box-shadow: 0 0 20px rgba(139,254,0,0.4); }

/* ── Blog post card ── */
.post-card { display: block; background: #000000; border: 1px solid #262626; text-decoration: none; transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.post-card:hover { border-color: #8bfe00; }

/* ── Process step line ── */
.step-line { position: relative; padding-left: 2rem; }
.step-line::before { content: ''; position: absolute; left: 0; top: 8px; bottom: -8px; width: 1px; background: linear-gradient(to bottom, #8bfe00, #262626); }
.step-line:last-child::before { height: 8px; }
.step-dot { position: absolute; left: -4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #8bfe00; box-shadow: 0 0 8px rgba(139,254,0,0.5); }

/* ── FAQ accordion ── */
.faq-chevron { transition: transform .2s ease; }
.faq-open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-open .faq-answer { max-height: 300px; }

/* ── Form fields (contact / book-a-call) ── */
.field-input { background-color: #f5f5f5 !important; border: 1px solid #262626; color: #000000 !important; padding: 16px 18px; font-family: "Inter"; transition: border-color .2s ease, box-shadow .2s ease; width: 100%; }
.field-input:focus { outline: none; border-color: #8bfe00; box-shadow: 0 0 0 1px #8bfe00; }
.field-input::placeholder { color: #6b6b6b; }

/* ── Agency: specimen media ── */
.specimen-media { background-image: linear-gradient(to right, #262626 1px, transparent 1px), linear-gradient(to bottom, #262626 1px, transparent 1px); background-size: 24px 24px; background-color: #000000; }
.specimen-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(139,254,0,0.18), transparent 60%); }

/* ── Contact page: multi-step brief form ── */
.grid-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, #262626 1px, transparent 1px), linear-gradient(to bottom, #262626 1px, transparent 1px); background-size: 64px 64px; opacity: 0.08; pointer-events: none; z-index: 0; }
.minimal-input { background-color: #161616; border: 1px solid #2a2a2a; border-radius: 14px; color: #ffffff; padding: 15px 18px; width: 100%; font-family: 'Inter', sans-serif; font-size: 15px; transition: all 0.25s ease; }
.minimal-input:hover { border-color: #3a3a3a; }
.minimal-input:focus { outline: none; border-color: #8bfe00; background-color: #181f0a; box-shadow: 0 0 0 4px rgba(139,254,0,0.08); }
.minimal-input::placeholder { color: #55554f; transition: color 0.3s; }
.minimal-input:focus::placeholder { color: #becbae; }
select.minimal-input { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238bfe00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 16px center; background-size: 1.1rem; padding-right: 44px; }
.form-step { display: none; animation: fadeSlide 0.5s ease; }
.form-step.active { display: block; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(74%) sepia(86%) saturate(2240%) hue-rotate(46deg) brightness(102%) contrast(105%); cursor: pointer; }

/* ══════════════════════════════════════════════════════════════════════
   HERO — index.html
   Performance rule for this block: NO continuously repainting layers.
   The only infinite animations are two tiny elements (the REC dot and the
   scroll cue). Everything else is a one-shot entrance animation, so the
   page settles to an idle 0% CPU once it has loaded.
   ══════════════════════════════════════════════════════════════════════ */
.hx { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: #050505; min-height: 92vh; min-height: 92svh; isolation: isolate; }

/* WebGL background — a rotating wireframe icosahedron + point cloud, drawn
   by assets/js (or an inline script on index.html). Skipped entirely under
   prefers-reduced-motion, in which case this canvas just stays empty and
   the flat #050505 background + grain carry the section on their own. */
.hx-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }

/* Vignette + top/bottom falloff so the type always has contrast. */
.hx-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(115% 75% at 50% 42%, transparent 0%, rgba(0,0,0,.5) 55%, #000 100%),
    linear-gradient(to bottom, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 32%, rgba(0,0,0,.5) 62%, #000 100%);
}

/* Static film grain — texture without the repaint cost of animating it. */
.hx-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Viewfinder crop marks — fade in once, then static. */
.hx-bracket { position: absolute; width: 20px; height: 20px; z-index: 4; border: 1px solid rgba(139,254,0,.4); opacity: 0; animation: hxFade .9s ease 1.05s forwards; }
.hx-bracket.tl { top: 100px; left: 16px; border-right: 0; border-bottom: 0; }
.hx-bracket.tr { top: 100px; right: 16px; border-left: 0; border-bottom: 0; }
.hx-bracket.bl { bottom: 26px; left: 16px; border-right: 0; border-top: 0; }
.hx-bracket.br { bottom: 26px; right: 16px; border-left: 0; border-top: 0; }
@media (min-width: 768px) {
  .hx-bracket { width: 28px; height: 28px; }
  .hx-bracket.tl, .hx-bracket.tr { top: 112px; }
  .hx-bracket.bl, .hx-bracket.br { bottom: 34px; }
  .hx-bracket.tl, .hx-bracket.bl { left: 34px; }
  .hx-bracket.tr, .hx-bracket.br { right: 34px; }
}
@keyframes hxFade { to { opacity: 1; } }

.hx-inner { position: relative; z-index: 5; width: 100%; max-width: 1060px; margin: 0 auto; perspective: 1100px; }
.hx-tilt { transform-style: preserve-3d; will-change: transform; transition: transform .18s cubic-bezier(.16,1,.3,1); }

/* One-shot staggered entrance — drive the delay with style="--d:.3s". */
.hx-in { opacity: 0; transform: translateY(16px); animation: hxIn .8s cubic-bezier(.16,1,.3,1) var(--d,0s) forwards; }
@keyframes hxIn { to { opacity: 1; transform: none; } }

/* Status row: REC + running timecode */
.hx-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 26px; }
.hx-rec, .hx-chip { display: inline-flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; border: 1px solid #262626; background: rgba(0,0,0,.45); }
.hx-rec { color: #ff4d4d; border-color: rgba(255,77,77,.35); }
.hx-rec i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; animation: pulse-red 2s infinite; }
.hx-chip { color: #8bfe00; border-color: rgba(139,254,0,.28); font-variant-numeric: tabular-nums; }
.hx-chip-dim { color: #becbae; border-color: #262626; }

/* Kinetic headline — each line masks its word, which rises into place once. */
.hx-title { font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; color: #fff; letter-spacing: -.028em; line-height: .86; margin-bottom: 28px; font-size: clamp(42px, 8.4vw, 98px); transform-style: preserve-3d; }
.hx-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hx-word { display: inline-block; position: relative; transform: translateY(115%); animation: hxRise 1s cubic-bezier(.16,1,.3,1) var(--d,0s) forwards;
  text-shadow: #2a2a2a 0 1px 0, #232323 0 2px 0, #1c1c1c 0 3px 0, #151515 0 4px 0, rgba(0,0,0,.65) 0 14px 30px; }
@keyframes hxRise { to { transform: translateY(0); } }
/* Highlighter block — solid green backdrop behind solid black type. */
.hx-accent { background: #8bfe00; color: #0a0a0a; text-shadow: none; padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hx-sweep { display: none; }

.hx-lede { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.7; color: #b9c4ab; max-width: 38rem; margin: 0 auto 32px; }
@media (min-width: 768px) { .hx-lede { font-size: 17px; } }

.hx-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 44px; }

/* Stats — centred, hairline dividers between */
.hx-stats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; }
.hx-stat { padding: 0 26px; position: relative; }
.hx-stat + .hx-stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 30px; background: #232323; }
.hx-stat b { display: block; font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 6px; }
.hx-stat b em { color: #8bfe00; font-style: normal; }
.hx-stat span { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #7d7d78; }
@media (min-width: 768px) { .hx-stat { padding: 0 34px; } .hx-stat b { font-size: 28px; } }
@media (max-width: 480px) { .hx-stat { padding: 0 11px; } .hx-stat b { font-size: 20px; } .hx-stat span { font-size: 8px; letter-spacing: .1em; } }

/* Scroll cue */
.hx-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; opacity: 0; animation: hxFade .9s ease 1.5s forwards; }
.hx-scroll span { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #6f6f6a; }
.hx-scroll i { display: block; width: 1px; height: 34px; background: linear-gradient(to bottom, #8bfe00, transparent); transform-origin: top; animation: hxCue 2.2s ease-in-out infinite; }
@keyframes hxCue { 0%,100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 767px) { .hx-scroll { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hx-in, .hx-word, .hx-bracket, .hx-scroll { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hx-scroll { transform: translateX(-50%) !important; }
  .hx-scroll i, .hx-rec i { animation: none !important; }
  .hx-sweep { display: none; }
}

/* ── Site-wide motion ── */
html { scroll-behavior: smooth; }

/* Scroll-reveal: main.js adds .reveal to cards/components as it finds them,
   then .in-view once they cross into the viewport. No markup changes needed
   on any page — this is purely additive and degrades to "just visible" if
   JS doesn't run (elements never get .reveal, so they're never hidden). */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
/* Hero: lighter lift, slightly quicker — this is the first thing anyone sees
   on any page load, so it should read as an entrance, not a slow drift. */
.reveal-hero { transform: translateY(14px); transition-duration: .8s; }
.reveal-hero.in-view { transform: translateY(0); }
.reveal:nth-child(2)  { transition-delay: .06s; }
.reveal:nth-child(3)  { transition-delay: .12s; }
.reveal:nth-child(4)  { transition-delay: .18s; }
.reveal:nth-child(5)  { transition-delay: .24s; }
.reveal:nth-child(6)  { transition-delay: .30s; }
.reveal:nth-child(n+7){ transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in-view { opacity: 1; transform: none; transition: none; }
}
