/* ============================================================
   APEX SOLAR POWER SOLUTIONS — design system
   1. Tokens          5. Header / nav       9.  Sections
   2. Reset / base    6. Preloader          10. Forms
   3. Typography      7. 3D primitives      11. Footer / FAB
   4. Buttons         8. Hero (WebGL)       12. Responsive
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
    --ink:        #050b1c;
    --ink-2:      #08112a;
    --ink-3:      #0d1a3c;
    --ink-4:      #14254f;
    --line:       rgb(255 255 255 / .09);
    --line-soft:  rgb(255 255 255 / .05);

    --sun:        #ffb020;
    --sun-deep:   #ff7a1a;
    --gold:       #ffd76e;
    --cyan:       #2ad4ee;
    --violet:     #7c5cff;
    --green:      #25d366;

    --paper:      #f5f8ff;
    --paper-2:    #eaf0fd;
    --ink-on-paper: #0b1533;
    --muted-on-paper: #4d5d84;

    --text:       #e6ecfb;
    --muted:      #98a9cf;
    --faint:      #6a7ca6;

    --grad-sun:   linear-gradient(135deg, var(--gold) 0%, var(--sun) 45%, var(--sun-deep) 100%);
    --grad-cool:  linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
    --grad-panel: linear-gradient(160deg, rgb(255 255 255 / .09), rgb(255 255 255 / .02));

    --r-xs: 8px;  --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-xl: 36px; --r-pill: 999px;

    --shadow-sm: 0 4px 16px rgb(2 6 20 / .3);
    --shadow-md: 0 18px 48px rgb(2 6 20 / .45);
    --shadow-lg: 0 40px 90px rgb(2 6 20 / .6);
    --glow-sun:  0 14px 40px rgb(255 138 0 / .38);
    --glow-cyan: 0 14px 40px rgb(42 212 238 / .28);

    --head: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --body: 'Outfit', 'Segoe UI', system-ui, sans-serif;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 34px);
    --section-y: clamp(64px, 9vw, 130px);

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-back: cubic-bezier(.34, 1.56, .64, 1);

    --header-h: 76px;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
    /* `clip` (not `hidden`) so the closed off-canvas drawer and the decorative
       orbs cannot create sideways scroll, while sticky positioning keeps working. */
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--body);
    font-size: clamp(15.5px, 1.05vw, 17px);
    line-height: 1.72;
    color: var(--text);
    background: var(--ink);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--sun); color: #1a0d00; }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - var(--gutter) * 2, 880px); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; inset-inline-start: 12px; top: -80px; z-index: 999;
    padding: 12px 20px; border-radius: var(--r-sm);
    background: var(--sun); color: #1a0d00; font-weight: 600;
    transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -.018em; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.75; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    margin: 0 0 18px; padding: 7px 16px 7px 12px;
    border: 1px solid rgb(255 176 32 / .28);
    border-radius: var(--r-pill);
    background: rgb(255 176 32 / .08);
    font-family: var(--head); font-size: .74rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--sun); box-shadow: 0 0 0 4px rgb(255 176 32 / .18);
    animation: pulse-dot 2.4s var(--ease-out) infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }

.grad-text { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text--cool { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { max-width: 780px; margin: 0 auto clamp(38px, 5vw, 64px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: start; }
.section-head p { color: var(--muted); }

/* ---------- 4. BUTTONS ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: var(--r-pill);
    font-family: var(--head); font-size: .95rem; font-weight: 600; letter-spacing: -.01em;
    white-space: nowrap; cursor: pointer; isolation: isolate;
    transform-style: preserve-3d;
    transition: transform .35s var(--ease-back), box-shadow .35s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn--sm { padding: 11px 21px; font-size: .88rem; }
.btn--xs { padding: 9px 17px; font-size: .82rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--sun { background: var(--grad-sun); color: #24120a; box-shadow: var(--glow-sun); }
.btn--sun:hover { box-shadow: 0 22px 56px rgb(255 138 0 / .5); }
/* Sheen sweep on hover */
.btn--sun::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgb(255 255 255 / .55) 45%, transparent 70%);
    background-size: 220% 100%; background-position: 160% 0;
    transition: background-position .75s var(--ease-out);
}
.btn--sun:hover::after { background-position: -60% 0; }

.btn--ghost { border: 1px solid var(--line); background: rgb(255 255 255 / .04); color: var(--text); backdrop-filter: blur(12px); }
.btn--ghost:hover { border-color: rgb(255 176 32 / .5); background: rgb(255 176 32 / .1); color: var(--gold); }

.btn--dark { background: var(--ink-3); color: var(--text); border: 1px solid var(--line); }
.btn--dark:hover { background: var(--ink-4); border-color: rgb(42 212 238 / .4); }

.btn--wa { background: var(--green); color: #052e16; box-shadow: 0 14px 34px rgb(37 211 102 / .3); }
.btn--wa:hover { box-shadow: 0 20px 48px rgb(37 211 102 / .42); }

.btn--on-paper { border: 1px solid rgb(11 21 51 / .16); background: #fff; color: var(--ink-on-paper); box-shadow: 0 6px 20px rgb(11 21 51 / .08); }
.btn--on-paper:hover { border-color: var(--sun); color: var(--sun-deep); }

.btn.is-busy { pointer-events: none; opacity: .72; }
.btn.is-busy .btn__label::after {
    content: ''; display: inline-block; width: 1em; height: 1em; margin-inline-start: .55em;
    vertical-align: -.15em; border: 2px solid currentColor; border-top-color: transparent;
    border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Text link with an animated underline */
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--head); font-weight: 600; font-size: .92rem; color: var(--gold);
}
.link-arrow .ico { transition: transform .35s var(--ease-back); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* ---------- 5. HEADER / NAV ---------- */
.scroll-progress {
    position: fixed; inset: 0 0 auto; height: 3px; z-index: 1000;
    background: var(--grad-sun);
    transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
    box-shadow: 0 0 14px rgb(255 176 32 / .7);
}
@supports (animation-timeline: scroll()) {
    .scroll-progress { animation: progress-grow linear both; animation-timeline: scroll(root block); transform: scaleX(0); }
    @keyframes progress-grow { to { transform: scaleX(1); } }
}

.cursor-glow {
    position: fixed; z-index: 0; width: 460px; height: 460px; border-radius: 50%;
    pointer-events: none; opacity: 0; transition: opacity .6s;
    background: radial-gradient(circle, rgb(255 176 32 / .11), transparent 65%);
    translate: -50% -50%; left: var(--mx, 50%); top: var(--my, 50%);
    mix-blend-mode: screen;
}
.has-pointer .cursor-glow { opacity: 1; }

.topbar {
    position: relative; z-index: 60;
    background: linear-gradient(90deg, var(--ink-3), var(--ink-2) 60%, var(--ink-3));
    border-bottom: 1px solid var(--line-soft);
    font-size: .8rem; color: var(--muted);
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; justify-content: space-between; min-height: 40px; padding-block: 6px; }
.topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { transition: color .25s; }
.topbar a:hover { color: var(--gold); }
.topbar .ico { width: 14px; height: 14px; color: var(--sun); }
.topbar__pill {
    padding: 4px 14px; border-radius: var(--r-pill);
    background: rgb(255 176 32 / .12); border: 1px solid rgb(255 176 32 / .26);
    color: var(--gold); font-weight: 500;
}

.header {
    position: sticky; top: 0; z-index: 80;
    background: rgb(5 11 28 / .72);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--line-soft);
    transition: background-color .35s, box-shadow .35s, border-color .35s;
}
.header.is-stuck { background: rgb(5 11 28 / .94); box-shadow: 0 10px 40px rgb(2 6 20 / .6); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 18px); min-height: var(--header-h); }

/* Brand with a 3D tilting emblem */
.brand { display: flex; flex: none; align-items: center; gap: 12px; perspective: 500px; }
.brand__mark {
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
    overflow: hidden;                      /* clips the tile's square corners */
    background: #fff;
    box-shadow: 0 6px 20px rgb(2 6 20 / .45), 0 0 0 1px rgb(255 255 255 / .16);
    transform-style: preserve-3d;
    transition: transform .6s var(--ease-back), box-shadow .4s;
}
.brand:hover .brand__mark { transform: rotateY(24deg) rotateX(-10deg) translateZ(10px); box-shadow: 0 16px 40px rgb(255 138 0 / .42), 0 0 0 1px rgb(255 176 32 / .5); }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--head); font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.brand__text strong em { font-style: normal; color: var(--sun); }
.brand__text small { font-size: .7rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item--has-menu { position: relative; }
.nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 5px;
    padding: 10px 13px; border-radius: var(--r-sm);
    font-family: var(--head); font-size: .9rem; font-weight: 500; color: var(--muted);
    transition: color .25s;
}
.nav__link::after {
    content: ''; position: absolute; inset-inline: 13px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--grad-sun); transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .35s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__chev { width: 13px; height: 13px; opacity: .6; transition: transform .3s; }
.nav__item--has-menu:hover .nav__chev { transform: rotate(180deg); }
.nav__toggle { display: none; }

/* 3D mega menu that unfolds on hover */
.megamenu {
    position: absolute; top: calc(100% + 12px); inset-inline-end: 0; z-index: 90;
    width: min(680px, 78vw); padding: 20px;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(165deg, rgb(13 26 60 / .98), rgb(8 17 42 / .98));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(22px);
    opacity: 0; visibility: hidden;
    transform-origin: top center; transform: perspective(1200px) rotateX(-12deg) translateY(-10px);
    transition: opacity .3s var(--ease-out), transform .42s var(--ease-out), visibility .3s;
}
.megamenu--sm { width: min(460px, 78vw); }
.nav__item--has-menu:hover > .megamenu,
.nav__item--has-menu:focus-within > .megamenu {
    opacity: 1; visibility: visible; transform: perspective(1200px) rotateX(0) translateY(0);
}
.megamenu__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.megamenu__grid--2 { grid-template-columns: repeat(2, 1fr); }
.megamenu__item {
    display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-sm);
    transition: background-color .25s, transform .3s var(--ease-out);
}
.megamenu__item:hover { background: rgb(255 176 32 / .09); transform: translateX(4px); }
.megamenu__ico {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none;
    background: rgb(255 176 32 / .12); border: 1px solid rgb(255 176 32 / .22); color: var(--sun);
    transition: background-color .25s, color .25s;
}
.megamenu__item:hover .megamenu__ico { background: var(--grad-sun); color: #24120a; border-color: transparent; }
.megamenu__item strong { display: block; font-family: var(--head); font-size: .89rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.megamenu__item small { display: block; font-size: .76rem; color: var(--faint); }
.megamenu__foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: .82rem; color: var(--muted);
}
.megamenu__foot span { display: inline-flex; align-items: center; gap: 8px; }
.megamenu__foot .ico { color: var(--sun); }

.header__actions { display: flex; flex: none; align-items: center; gap: 12px; }
.header__call { display: flex; flex: none; align-items: center; gap: 10px; min-width: max-content; }
.header__call-ico {
    display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgb(255 176 32 / .3); background: rgb(255 176 32 / .1); color: var(--sun);
    animation: ring 3.5s var(--ease-out) infinite;
}
@keyframes ring { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgb(255 176 32 / .4); } 35% { box-shadow: 0 0 0 10px rgb(255 176 32 / 0); } }
.header__call small { display: block; white-space: nowrap; font-size: .65rem; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); line-height: 1.25; }
.header__call strong { display: block; white-space: nowrap; font-family: var(--head); font-size: .92rem; line-height: 1.2; color: #fff; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: rgb(255 255 255 / .04); }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease-back), opacity .25s, width .3s; }
.burger span:nth-child(2) { width: 70%; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; z-index: 70; background: rgb(2 6 20 / .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.nav-scrim.is-on { opacity: 1; }

/* ---------- 6. PRELOADER ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 45%, var(--ink-3), var(--ink) 65%);
    transition: opacity .7s var(--ease-out), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__stage { display: grid; justify-items: center; gap: 30px; perspective: 800px; }

/* The real logo on a slowly flipping 3D coin, inside an orbiting ring. */
.logo3d { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.logo3d__ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgb(255 176 32 / .22);
    background: conic-gradient(from 0deg, transparent 0 62%, rgb(255 176 32 / .55) 78%, transparent 92%);
    mask: radial-gradient(circle, transparent 60%, #000 62%);
    animation: ring-orbit 2.6s linear infinite;
}
@keyframes ring-orbit { to { transform: rotate(360deg); } }

.logo3d__coin { position: relative; width: 96px; height: 96px; transform-style: preserve-3d; animation: coin-flip 4.5s var(--ease-out) infinite; }
@keyframes coin-flip {
    0%, 12%   { transform: rotateY(0deg); }
    50%, 62%  { transform: rotateY(180deg); }
    100%      { transform: rotateY(360deg); }
}
.logo3d__face {
    position: absolute; inset: 0; display: grid; place-items: center;
    border-radius: 24px; overflow: hidden; backface-visibility: hidden;
    background: #fff;
    box-shadow: 0 18px 46px rgb(2 6 20 / .6), 0 0 0 1px rgb(255 255 255 / .2);
}
.logo3d__face--back { transform: rotateY(180deg); }
.logo3d__face img { width: 100%; height: 100%; object-fit: contain; }

.preloader__word { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.5rem; letter-spacing: .34em; color: #fff; }
.preloader__word span { color: var(--sun); }
.preloader__bar { width: 190px; height: 3px; border-radius: 3px; overflow: hidden; background: rgb(255 255 255 / .1); }
.preloader__bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--grad-sun); animation: load-sweep 1.15s var(--ease-out) infinite; }
@keyframes load-sweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(340%); } }

/* ---------- 7. 3D PRIMITIVES ---------- */

/* Mouse-tracked tilt. JS sets --rx / --ry / --gx / --gy. */
.tilt3d { perspective: 1100px; }
.tilt3d > * { transform-style: preserve-3d; }
.tilt-inner {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transition: transform .5s var(--ease-out);
    will-change: transform;
}
.tilt3d.is-tilting .tilt-inner { transition: transform .12s linear; }
/* Specular glare that follows the pointer */
.tilt-glare {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .16), transparent 55%);
}
.tilt3d.is-tilting .tilt-glare { opacity: 1; }
/* Layers that float forward inside a tilting card */
.pop-1 { transform: translateZ(26px); }
.pop-2 { transform: translateZ(46px); }
.pop-3 { transform: translateZ(70px); }

/* Flip card — front/back on the Y axis */
.flip { perspective: 1400px; height: 100%; }
.flip__inner {
    position: relative; height: 100%; transform-style: preserve-3d;
    transition: transform .85s var(--ease-out);
}
.flip:hover .flip__inner, .flip:focus-within .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--r-lg); overflow: hidden; }
.flip__face--back { transform: rotateY(180deg); }

/* Scroll reveal (JS-driven, progressive enhancement) */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--3d { opacity: 0; transform: perspective(1200px) rotateX(16deg) translateY(50px) scale(.95); }
.reveal--3d.is-in { opacity: 1; transform: perspective(1200px) rotateX(0) translateY(0) scale(1); }
.reveal--left  { transform: translateX(-46px); opacity: 0; }
.reveal--right { transform: translateX(46px); opacity: 0; }
.reveal--left.is-in, .reveal--right.is-in { transform: none; opacity: 1; }
html:not(.js) .reveal { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .09s; }
[data-delay="2"] { transition-delay: .18s; }
[data-delay="3"] { transition-delay: .27s; }
[data-delay="4"] { transition-delay: .36s; }
[data-delay="5"] { transition-delay: .45s; }
[data-delay="6"] { transition-delay: .54s; }
[data-delay="7"] { transition-delay: .63s; }

/* Floating decorative orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.orb--sun  { background: rgb(255 138 0 / .3); }
.orb--cyan { background: rgb(42 212 238 / .22); }
.orb--violet { background: rgb(124 92 255 / .22); }
@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(34px, -28px, 0) scale(1.08); }
    66%      { transform: translate3d(-24px, 22px, 0) scale(.94); }
}
.orb--drift { animation: drift 18s var(--ease-out) infinite; }

/* Perspective grid floor */
.grid-floor {
    position: absolute; inset: auto 0 0; height: 45vh; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgb(42 212 238 / .16) 1px, transparent 1px),
        linear-gradient(90deg, rgb(42 212 238 / .16) 1px, transparent 1px);
    background-size: 62px 62px;
    transform: perspective(420px) rotateX(70deg);
    transform-origin: 50% 100%;
    mask-image: linear-gradient(to top, #000 4%, transparent 82%);
    animation: floor-run 9s linear infinite;
}
@keyframes floor-run { to { background-position: 0 62px, 0 0; } }

/* ---------- 8. HERO ---------- */
.hero {
    position: relative; isolation: isolate; overflow: clip;
    padding-block: clamp(50px, 7vw, 96px) clamp(60px, 8vw, 110px);
    background:
        radial-gradient(1100px 620px at 78% 12%, rgb(255 138 0 / .16), transparent 62%),
        radial-gradient(900px 620px at 8% 82%, rgb(124 92 255 / .16), transparent 60%),
        linear-gradient(175deg, var(--ink-2), var(--ink) 72%);
}
.hero__canvas {
    position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.4s var(--ease-out);
}
.hero__canvas.is-ready { opacity: 1; }
.hero__vignette {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgb(5 11 28 / .72) 100%);
}
.hero__inner {
    position: relative; z-index: 3;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 5vw, 70px); align-items: center;
}

.hero h1 { margin-bottom: 22px; color: #fff; text-wrap: balance; }
.hero h1 .grad-text { display: inline-block; }

/* The company name leads, the keyword line sits under it. */
.hero__title { display: grid; gap: .3em; }
.hero__name {
    font-size: clamp(1.95rem, 4.5vw, 3.45rem);
    font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: #fff;
    text-wrap: balance;
}
.hero__name em { font-style: normal; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__claim {
    font-size: clamp(1.15rem, 2.2vw, 1.95rem);
    font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--muted);
    text-wrap: balance;
}
.hero__claim .grad-text { font-weight: 700; }
.hero__lead { max-width: 56ch; margin-bottom: 30px; }

/* Rotating word — flips on a 3D axis */
.word-flip { display: inline-grid; height: 1.1em; overflow: hidden; vertical-align: bottom; perspective: 600px; }
.word-flip span {
    grid-area: 1 / 1; opacity: 0;
    transform: rotateX(-90deg) translateY(.3em);
    transform-origin: 50% 100%;
    transition: opacity .5s var(--ease-out), transform .7s var(--ease-back);
}
.word-flip span.is-on { opacity: 1; transform: none; }
.word-flip span.is-out { opacity: 0; transform: rotateX(90deg) translateY(-.3em); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); }
.hero__trust .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgb(42 212 238 / .15); color: var(--cyan); box-sizing: content-box; }

/* Hero side: floating glass stat panel */
.hero__panel { position: relative; }
.glass-card {
    position: relative; overflow: hidden;
    padding: clamp(22px, 2.6vw, 32px);
    border: 1px solid var(--line); border-radius: var(--r-xl);
    background: var(--grad-panel);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px) saturate(150%);
}
.glass-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(140deg, rgb(255 255 255 / .18), transparent 40%);
    mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    mask-composite: exclude; padding: 1px;
}
.hero__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.hero__panel-head h2 { margin: 0; font-size: 1.12rem; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgb(42 212 238 / .6); animation: ring-cyan 2s infinite; }
@keyframes ring-cyan { 70% { box-shadow: 0 0 0 9px rgb(42 212 238 / 0); } 100% { box-shadow: 0 0 0 0 rgb(42 212 238 / 0); } }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.metric {
    padding: 16px 18px; border-radius: var(--r-md);
    border: 1px solid var(--line-soft); background: rgb(255 255 255 / .03);
    transition: transform .4s var(--ease-back), border-color .3s, background-color .3s;
}
.metric:hover { transform: translateY(-4px) translateZ(20px); border-color: rgb(255 176 32 / .4); background: rgb(255 176 32 / .06); }
.metric b { display: block; font-family: var(--head); font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 700; color: #fff; line-height: 1.1; }
.metric b i { font-style: normal; font-size: .62em; color: var(--sun); }
.metric span { display: block; margin-top: 3px; font-size: .78rem; color: var(--faint); }

.hero__panel-note { display: flex; gap: 11px; padding: 14px 16px; border-radius: var(--r-md); background: rgb(255 176 32 / .08); border: 1px solid rgb(255 176 32 / .2); font-size: .85rem; color: var(--gold); }
.hero__panel-note .ico { flex: none; margin-top: 3px; }

/* Rooftop panel-array illustration built from CSS 3D */
/* transform-style:flat re-establishes a clipping boundary — an ancestor with
   preserve-3d (the tilting card) would otherwise make overflow behave as visible. */
.panel-rig { position: relative; height: 200px; margin: 24px -6px -10px; overflow: clip; perspective: 900px; transform-style: flat; }
.panel-rig__array {
    position: absolute; inset: 0; transform-style: preserve-3d;
    transform: translate(-6%, 8%) scale(.82) rotateX(58deg) rotateZ(-38deg);
    animation: rig-sway 14s var(--ease-out) infinite;
}
@keyframes rig-sway {
    0%, 100% { transform: translate(-6%, 8%) scale(.82) rotateX(58deg) rotateZ(-38deg); }
    50%      { transform: translate(-2%, 5%) scale(.86) rotateX(50deg) rotateZ(-29deg); }
}
.panel-rig__cell {
    position: absolute; width: 74px; height: 50px; border-radius: 4px;
    border: 1px solid rgb(42 212 238 / .45);
    background:
        repeating-linear-gradient(0deg, rgb(255 255 255 / .1) 0 1px, transparent 1px 11px),
        repeating-linear-gradient(90deg, rgb(255 255 255 / .1) 0 1px, transparent 1px 17px),
        linear-gradient(150deg, #123a6b, #061634);
    box-shadow: 0 10px 26px rgb(2 6 20 / .5), inset 0 0 18px rgb(42 212 238 / .16);
    animation: cell-glint 5s var(--ease-out) infinite;
}
@keyframes cell-glint { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(1.55); } }

/* ---------- 9. SECTIONS ---------- */
.section { position: relative; padding-block: var(--section-y); isolation: isolate; overflow: clip; }
.section--paper { background: var(--paper); color: var(--ink-on-paper); }
.section--paper h1, .section--paper h2, .section--paper h3, .section--paper h4 { color: var(--ink-on-paper); }
.section--paper .lead, .section--paper .section-head p { color: var(--muted-on-paper); }
.section--paper .eyebrow { border-color: rgb(255 138 0 / .3); background: rgb(255 138 0 / .1); color: var(--sun-deep); }
.section--tint { background: linear-gradient(180deg, var(--ink), var(--ink-2) 50%, var(--ink)); }
.section--deep { background: linear-gradient(180deg, var(--ink-2), var(--ink-3) 55%, var(--ink-2)); }

/* Page hero for inner pages */
.pagehead {
    position: relative; isolation: isolate; overflow: clip;
    padding-block: clamp(56px, 8vw, 110px);
    background:
        radial-gradient(900px 520px at 82% 10%, rgb(255 138 0 / .18), transparent 60%),
        radial-gradient(760px 520px at 6% 90%, rgb(42 212 238 / .14), transparent 60%),
        linear-gradient(170deg, var(--ink-2), var(--ink));
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
}
.pagehead__inner { position: relative; z-index: 2; max-width: 860px; margin-inline: auto; }
.pagehead h1 { color: #fff; margin-bottom: 18px; text-wrap: balance; }
.pagehead .lead { margin-inline: auto; max-width: 68ch; }
.pagehead__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin-top: 30px; }

.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; font-size: .82rem; color: var(--faint); }
.crumbs a { transition: color .25s; }
.crumbs a:hover { color: var(--gold); }
.crumbs li:not(:last-child)::after { content: '/'; margin-inline-start: 8px; opacity: .45; }
.crumbs li { display: inline-flex; gap: 8px; }
.crumbs li[aria-current] { color: var(--muted); }

/* Card grids */
.grid { display: grid; gap: clamp(16px, 1.9vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* The main service / feature card with 3D lift */
.card {
    position: relative; overflow: hidden; height: 100%;
    padding: clamp(22px, 2.4vw, 30px);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(160deg, rgb(255 255 255 / .055), rgb(255 255 255 / .015));
    transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s, background-color .4s;
}
.card::after {
    content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px;
    background: var(--grad-sun); transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-9px); border-color: rgb(255 176 32 / .38); box-shadow: var(--shadow-md), 0 0 0 1px rgb(255 176 32 / .1); background: linear-gradient(160deg, rgb(255 176 32 / .07), rgb(255 255 255 / .02)); }
.card:hover::after { transform: scaleX(1); }
.card__ico {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
    border-radius: 17px; border: 1px solid rgb(255 176 32 / .26);
    background: rgb(255 176 32 / .1); color: var(--sun);
    font-size: 1.5rem;
    transition: transform .55s var(--ease-back), background .35s, color .35s, border-color .35s;
}
.card:hover .card__ico { transform: rotateY(180deg) scale(1.06); background: var(--grad-sun); color: #24120a; border-color: transparent; }
.card h3 { margin-bottom: 10px; color: #fff; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.card__more { display: inline-flex; align-items: center; gap: 7px; font-family: var(--head); font-size: .85rem; font-weight: 600; color: var(--gold); }
.card__more .ico { transition: transform .35s var(--ease-back); }
.card:hover .card__more .ico { transform: translateX(5px); }
.card--link { display: flex; flex-direction: column; }
.card--link p { flex: 1; }

/* Paper variant */
.section--paper .card { border-color: rgb(11 21 51 / .1); background: #fff; box-shadow: 0 4px 18px rgb(11 21 51 / .05); }
.section--paper .card:hover { border-color: rgb(255 138 0 / .4); box-shadow: 0 22px 52px rgb(11 21 51 / .12); background: #fff; }
.section--paper .card h3 { color: var(--ink-on-paper); }
.section--paper .card p { color: var(--muted-on-paper); }
.section--paper .card__more { color: var(--sun-deep); }

/* Stat strip with 3D flip counters */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.stat {
    position: relative; padding: clamp(22px, 2.4vw, 30px); text-align: center;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(165deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015));
    transition: transform .5s var(--ease-back), border-color .35s, box-shadow .45s;
}
.stat:hover { transform: translateY(-8px) rotateX(6deg); border-color: rgb(42 212 238 / .4); box-shadow: var(--glow-cyan); }
.stat b {
    display: block; font-family: var(--head); font-weight: 800; line-height: 1;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat b i { font-style: normal; font-size: .5em; }
.stat span { display: block; margin-top: 10px; font-size: .86rem; color: var(--muted); }

/* Marquee ribbon */
.ribbon {
    position: relative; overflow: hidden; padding-block: 16px;
    border-block: 1px solid var(--line);
    background: linear-gradient(90deg, var(--ink-3), var(--ink-2), var(--ink-3));
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon__track { display: flex; width: max-content; gap: 46px; animation: marquee 34s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ribbon__item { display: inline-flex; align-items: center; gap: 11px; font-family: var(--head); font-size: .92rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.ribbon__item .ico { color: var(--sun); }

/* Isometric 3D process timeline */
.process { position: relative; display: grid; gap: 16px; perspective: 1400px; }
.process__step {
    position: relative; display: grid; grid-template-columns: 78px 1fr; gap: clamp(16px, 2vw, 28px); align-items: start;
    padding: clamp(20px, 2.2vw, 26px) clamp(20px, 2.4vw, 30px);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(150deg, rgb(255 255 255 / .05), rgb(255 255 255 / .012));
    transform: rotateX(4deg) translateZ(0);
    transition: transform .55s var(--ease-out), border-color .4s, box-shadow .5s, background-color .4s;
}
.process__step:hover {
    transform: rotateX(0) translateX(10px) translateZ(30px);
    border-color: rgb(255 176 32 / .4);
    box-shadow: -18px 22px 54px rgb(2 6 20 / .5);
    background: linear-gradient(150deg, rgb(255 176 32 / .08), rgb(255 255 255 / .02));
}
.process__num {
    position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px;
    background: var(--grad-sun); color: #24120a;
    font-family: var(--head); font-size: 1.32rem; font-weight: 800;
    box-shadow: var(--glow-sun);
    transform-style: preserve-3d;
    transition: transform .6s var(--ease-back);
}
.process__step:hover .process__num { transform: rotateY(-180deg); }
.process__num .ico { position: absolute; width: 24px; height: 24px; transform: rotateY(180deg) translateZ(1px); backface-visibility: hidden; }
.process__num span { backface-visibility: hidden; }
.process__body h3 { margin-bottom: 7px; color: #fff; }
.process__body p { margin: 0; color: var(--muted); font-size: .94rem; }
.process__step::before {
    content: ''; position: absolute; inset-inline-start: 50px; top: 100%; width: 2px; height: 16px;
    background: linear-gradient(var(--sun), transparent);
}
.process__step:last-child::before { display: none; }

/* Split feature block */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(30px, 5vw, 70px); align-items: center; }
.split--reverse > :first-child { order: 2; }

/* Checklist */
.ticks { display: grid; gap: 13px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.ticks .ico {
    flex: none; width: 20px; height: 20px; padding: 4px; margin-top: 2px; box-sizing: content-box;
    border-radius: 50%; background: rgb(42 212 238 / .14); color: var(--cyan); stroke-width: 2.4;
}
.ticks strong { color: var(--text); }
.section--paper .ticks li { color: var(--muted-on-paper); }
.section--paper .ticks strong { color: var(--ink-on-paper); }

/* Spec table */
.specs { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.specs div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.specs div:last-child { border-bottom: 0; }
.specs div:nth-child(odd) { background: rgb(255 255 255 / .022); }
.specs dt, .specs span:first-child { color: var(--faint); }
.specs dd, .specs strong { margin: 0; font-family: var(--head); font-weight: 600; color: var(--text); text-align: end; }

/* Subsidy slab cards */
.slabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; perspective: 1200px; }
.slab {
    position: relative; padding: 26px 22px; text-align: center; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(165deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015));
    transition: transform .5s var(--ease-back), border-color .4s, box-shadow .5s;
}
.slab:hover { transform: translateY(-10px) rotateY(-7deg); box-shadow: var(--shadow-md); border-color: rgb(255 176 32 / .45); }
.slab--best { border-color: rgb(255 176 32 / .55); background: linear-gradient(165deg, rgb(255 176 32 / .14), rgb(255 255 255 / .02)); }
.slab__tag { position: absolute; top: 14px; inset-inline-end: -34px; width: 130px; padding: 4px 0; rotate: 40deg; background: var(--grad-sun); color: #24120a; font-family: var(--head); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.slab h3 { margin-bottom: 4px; font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.slab b { display: block; font-family: var(--head); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; line-height: 1.15; }
.slab small { display: block; margin-top: 8px; font-size: .8rem; color: var(--faint); }
.slab__split { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.slab__split span { display: grid; gap: 1px; font-family: var(--head); font-size: .86rem; font-weight: 600; color: var(--text); }
.slab__split i { font-style: normal; font-size: .68rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.slab__split span + span { border-inline-start: 1px solid var(--line); padding-inline-start: 6px; }
.slab--best .slab__split i { color: var(--gold); }

/* Stacked subsidy bars — central + state = total */
.stack-bars { display: grid; gap: 10px; }
.stack-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgb(255 255 255 / .03); }
.stack-bar span { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.stack-bar b { font-family: var(--head); font-size: 1.25rem; font-weight: 700; color: #fff; }
.stack-bar--central { border-color: rgb(42 212 238 / .35); background: rgb(42 212 238 / .08); }
.stack-bar--central span { color: var(--cyan); }
.stack-bar--state { border-color: rgb(124 92 255 / .38); background: rgb(124 92 255 / .1); }
.stack-bar--state span { color: #b3a2ff; }
.stack-bar--total { border-color: rgb(255 176 32 / .5); background: linear-gradient(120deg, rgb(255 176 32 / .18), rgb(255 138 0 / .06)); }
.stack-bar--total span { color: var(--gold); }
.stack-bar--total b { font-size: 1.6rem; }

/* Scheme detail cards — central and state, side by side */
.schemes { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.scheme { perspective: 1200px; }
.scheme__inner {
    position: relative; overflow: hidden; height: 100%;
    display: flex; flex-direction: column;
    padding: clamp(24px, 2.6vw, 34px);
    border: 1px solid rgb(42 212 238 / .3); border-radius: var(--r-xl);
    background: linear-gradient(165deg, rgb(42 212 238 / .09), rgb(255 255 255 / .02));
    box-shadow: var(--shadow-md);
}
.scheme--state .scheme__inner { border-color: rgb(255 176 32 / .36); background: linear-gradient(165deg, rgb(255 176 32 / .11), rgb(255 255 255 / .02)); }

.scheme__head { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.scheme__badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    padding: 6px 14px; border-radius: var(--r-pill);
    font-family: var(--head); font-size: .72rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
}
.scheme__badge--central { border: 1px solid rgb(42 212 238 / .4); background: rgb(42 212 238 / .12); color: var(--cyan); }
.scheme__badge--state   { border: 1px solid rgb(255 176 32 / .45); background: rgb(255 176 32 / .14); color: var(--gold); }
.scheme__head h3 { margin-bottom: 12px; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: #fff; }
.scheme__amount { margin: 0; font-size: .92rem; color: var(--muted); }
.scheme__amount b {
    display: block; font-family: var(--head); font-size: clamp(2rem, 3.6vw, 2.7rem);
    font-weight: 800; line-height: 1.1; color: #fff;
}
.scheme--state .scheme__amount b { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

.scheme__points { flex: 1; margin-bottom: 22px; }
.scheme__points li { font-size: .92rem; }
.scheme__points strong { color: var(--text); }
.scheme--state .scheme__points .ico { background: rgb(255 176 32 / .16); color: var(--sun); }
.scheme__specs { border-color: var(--line); }
.scheme__specs div { font-size: .86rem; }
.scheme__note {
    display: flex; gap: 11px; margin: 18px 0 0; padding: 14px 16px;
    border-radius: var(--r-md); border: 1px solid var(--line-soft);
    background: rgb(255 255 255 / .03); font-size: .82rem; color: var(--faint);
}
.scheme__note .ico { flex: none; margin-top: 2px; color: var(--sun); }

/* Savings calculator */
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.calc__controls { display: grid; gap: 24px; }
.calc__field label { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 12px; font-family: var(--head); font-size: .92rem; font-weight: 600; }
.calc__value { font-size: 1.05rem; color: var(--sun); }
.calc__field input[type="range"] { width: 100%; height: 6px; border-radius: 6px; appearance: none; background: linear-gradient(90deg, var(--sun) var(--fill, 40%), rgb(255 255 255 / .1) var(--fill, 40%)); cursor: pointer; }
.calc__field input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-sun); border: 3px solid var(--ink-2); box-shadow: var(--glow-sun); cursor: grab; transition: transform .25s var(--ease-back); }
.calc__field input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.18); cursor: grabbing; }
.calc__field input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink-2); cursor: grab; }
.calc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__chip { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgb(255 255 255 / .03); font-size: .85rem; font-family: var(--head); font-weight: 500; transition: all .3s var(--ease-out); }
.calc__chip:hover { border-color: rgb(255 176 32 / .5); color: var(--gold); }
.calc__chip.is-on { background: var(--grad-sun); color: #24120a; border-color: transparent; box-shadow: var(--glow-sun); }

.calc__out { display: grid; gap: 14px; }
.calc__hero {
    padding: clamp(22px, 2.6vw, 32px); text-align: center; overflow: hidden; position: relative;
    border: 1px solid rgb(255 176 32 / .35); border-radius: var(--r-xl);
    background: linear-gradient(160deg, rgb(255 176 32 / .16), rgb(255 138 0 / .04));
}
.calc__hero small { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.calc__hero b { display: block; margin-top: 8px; font-family: var(--head); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; color: #fff; }
.calc__hero p { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.calc__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.calc__cell { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgb(255 255 255 / .03); }
.calc__cell small { display: block; font-size: .76rem; color: var(--faint); }
.calc__cell b { display: block; margin-top: 4px; font-family: var(--head); font-size: 1.28rem; font-weight: 700; color: #fff; }
.calc__note { font-size: .8rem; color: var(--faint); }

/* 3D testimonial carousel */
.quotes { position: relative; perspective: 1600px; }
.quotes__stage { position: relative; min-height: 330px; transform-style: preserve-3d; }
.quote {
    position: absolute; inset: 0; margin: auto; max-width: 720px; height: fit-content;
    padding: clamp(26px, 3vw, 40px);
    border: 1px solid var(--line); border-radius: var(--r-xl);
    background: linear-gradient(160deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02));
    box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
    opacity: 0; pointer-events: none;
    transform: translateZ(-320px) rotateY(32deg) scale(.86);
    transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
}
.quote.is-on { opacity: 1; pointer-events: auto; transform: translateZ(0) rotateY(0) scale(1); }
.quote.is-prev { opacity: 0; transform: translateZ(-320px) rotateY(-32deg) scale(.86); }
.quote__mark { width: 40px; height: 40px; margin-bottom: 16px; color: var(--sun); opacity: .7; fill: currentColor; stroke: none; }
.quote p { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--text); }
.quote__by { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote__avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-sun); color: #24120a; font-family: var(--head); font-weight: 800; font-size: 1.05rem; }
.quote__by strong { display: block; font-family: var(--head); color: #fff; }
.quote__by small { display: block; font-size: .82rem; color: var(--faint); }
.quote__badge { margin-inline-start: auto; padding: 6px 14px; border-radius: var(--r-pill); background: rgb(42 212 238 / .12); border: 1px solid rgb(42 212 238 / .3); font-size: .78rem; color: var(--cyan); }
.quote__stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--sun); }
.quote__stars .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }

.quotes__nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.quotes__dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; background: rgb(255 255 255 / .2); transition: all .35s var(--ease-out); }
.quotes__dot.is-on { width: 30px; border-radius: var(--r-pill); background: var(--grad-sun); }
.quotes__arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgb(255 255 255 / .04); transition: all .3s var(--ease-out); }
.quotes__arrow:hover { border-color: var(--sun); background: rgb(255 176 32 / .12); color: var(--gold); transform: scale(1.08); }
.quotes__arrow--prev .ico { transform: rotate(180deg); }

/* Accordion FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: rgb(255 255 255 / .028); transition: border-color .35s, background-color .35s, box-shadow .4s; }
.faq__item.is-open { border-color: rgb(255 176 32 / .42); background: rgb(255 176 32 / .05); box-shadow: var(--shadow-sm); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 18px 22px; text-align: start; font-family: var(--head); font-size: 1rem; font-weight: 600; color: var(--text); }
.faq__q:hover { color: var(--gold); }
.faq__icon { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgb(255 176 32 / .14); border: 1px solid rgb(255 176 32 / .3); transition: transform .45s var(--ease-back), background .35s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; inset: 50% 6px auto; height: 2px; border-radius: 2px; background: var(--sun); translate: 0 -50%; transition: transform .4s var(--ease-back); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(180deg); background: var(--grad-sun); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #24120a; }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 22px 20px; margin: 0; color: var(--muted); font-size: .95rem; }
.section--paper .faq__item { border-color: rgb(11 21 51 / .1); background: #fff; }
.section--paper .faq__q { color: var(--ink-on-paper); }
.section--paper .faq__a p { color: var(--muted-on-paper); }

/* Pills / chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 7px 15px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgb(255 255 255 / .04); font-size: .83rem; color: var(--muted); transition: all .3s var(--ease-out); }
a.chip:hover { border-color: var(--sun); color: var(--gold); background: rgb(255 176 32 / .1); transform: translateY(-2px); }
.section--paper .chip { border-color: rgb(11 21 51 / .12); background: #fff; color: var(--muted-on-paper); }

/* Map */
.map-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.map-frame iframe { width: 100%; height: clamp(320px, 42vw, 460px); border: 0; filter: grayscale(.3) invert(.92) hue-rotate(185deg) contrast(.88); }
.section--paper .map-frame iframe { filter: none; }

/* ---------- 10. FORMS ---------- */
.form-card { position: relative; }
.form-card__glow { position: absolute; inset: -2px; border-radius: var(--r-xl); background: var(--grad-sun); opacity: .28; filter: blur(26px); z-index: 0; }
.form-card__inner {
    position: relative; z-index: 1; padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--line); border-radius: var(--r-xl);
    background: linear-gradient(165deg, rgb(15 28 62 / .96), rgb(8 17 42 / .97));
    box-shadow: var(--shadow-lg); backdrop-filter: blur(18px);
}
.form-card__title { margin-bottom: 8px; color: #fff; }
.form-card__lead { margin-bottom: 24px; font-size: .92rem; color: var(--muted); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { position: relative; }
.field input, .field select, .field textarea {
    width: 100%; padding: 19px 16px 9px; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: rgb(255 255 255 / .04); color: var(--text);
    transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { padding-top: 22px; resize: vertical; min-height: 88px; }
.field select { appearance: none; padding-top: 20px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a9cf' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: var(--ink-3); color: var(--text); }
.field label {
    position: absolute; inset-inline-start: 17px; top: 15px; pointer-events: none;
    font-size: .93rem; color: var(--faint);
    transition: transform .28s var(--ease-out), font-size .28s var(--ease-out), color .28s;
    transform-origin: 0 50%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); background: rgb(255 176 32 / .06); box-shadow: 0 0 0 4px rgb(255 176 32 / .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field--select label {
    transform: translateY(-9px) scale(.78); color: var(--gold);
}
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #ff6b6b; background: rgb(255 107 107 / .07); }
.field__err { display: none; margin-top: 5px; font-size: .78rem; color: #ff8f8f; }
.field.has-err .field__err { display: block; }

.form__note { display: flex; gap: 9px; margin: 0; font-size: .8rem; color: var(--faint); }
.form__note .ico { flex: none; color: var(--cyan); }

.notice { display: flex; gap: 10px; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--r-md); font-size: .92rem; }
.notice--ok  { border: 1px solid rgb(37 211 102 / .4); background: rgb(37 211 102 / .1); color: #8df0b6; }
.notice--err { border: 1px solid rgb(255 107 107 / .4); background: rgb(255 107 107 / .1); color: #ffb3b3; }

/* ---------- 11. FOOTER / FAB ---------- */
.footer { position: relative; isolation: isolate; overflow: clip; padding-top: clamp(50px, 7vw, 90px); background: linear-gradient(180deg, var(--ink), #030711); border-top: 1px solid var(--line-soft); }
.footer__aurora { position: absolute; inset: -30% -10% auto; height: 70%; z-index: -1; background: radial-gradient(ellipse at 30% 0%, rgb(255 138 0 / .14), transparent 60%), radial-gradient(ellipse at 76% 10%, rgb(124 92 255 / .14), transparent 58%); filter: blur(30px); }
.footer__grid-lines { position: absolute; inset: auto 0 0; height: 40%; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to top, #000, transparent); }

.footer__cta { perspective: 1200px; margin-bottom: clamp(48px, 6vw, 80px); }
.footer__cta-inner {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: center;
    padding: clamp(28px, 3.4vw, 46px);
    border: 1px solid rgb(255 176 32 / .3); border-radius: var(--r-xl);
    background: linear-gradient(130deg, rgb(255 176 32 / .14), rgb(124 92 255 / .1));
    box-shadow: var(--shadow-lg);
    transition: transform .6s var(--ease-out);
}
.footer__cta:hover .footer__cta-inner { transform: rotateX(3deg) rotateY(-2deg) translateZ(14px); }
.footer__cta h2 { margin-bottom: 10px; color: #fff; }
.footer__cta p { margin: 0; color: var(--muted); }
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: flex-end; }
.eyebrow--light { border-color: rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: #fff; }

.footer__main { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr) 1.4fr; gap: clamp(26px, 3vw, 44px); padding-bottom: clamp(38px, 5vw, 60px); }
.footer__brand p { font-size: .9rem; color: var(--muted); }
.brand--footer { margin-bottom: 18px; }
.footer__tagline { font-family: var(--head); font-style: italic; color: var(--gold); font-size: .92rem; }
.footer__gst { font-size: .82rem; color: var(--faint); }
.footer__gst strong { color: var(--muted); letter-spacing: .04em; }
.footer__col h3 { margin-bottom: 18px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { font-size: .9rem; color: var(--muted); transition: color .25s, transform .3s var(--ease-out); display: inline-block; }
.footer__col a:hover { color: var(--gold); transform: translateX(4px); }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.footer__contact .ico { flex: none; margin-top: 4px; color: var(--sun); }
.footer__col .footer__directions {
    display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin-top: 20px;
    padding: 7px 10px 7px 7px; border: 1px solid rgb(255 176 32 / .3); border-radius: 12px;
    background: linear-gradient(135deg, rgb(255 176 32 / .11), rgb(255 255 255 / .035));
    color: var(--text); font-family: var(--head); font-size: .82rem; font-weight: 600;
    box-shadow: 0 10px 28px rgb(2 6 20 / .2);
    transition: color .25s, border-color .25s, background-color .25s, transform .3s var(--ease-out), box-shadow .3s;
}
.footer__directions-ico {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    background: var(--grad-sun); color: #24120a; box-shadow: 0 5px 14px rgb(255 138 0 / .24);
}
.footer__directions-arrow { width: 14px; height: 14px; color: var(--gold); transition: transform .3s var(--ease-back); }
.footer__col .footer__directions:hover { color: #fff; border-color: rgb(255 176 32 / .58); transform: translateY(-2px); box-shadow: 0 14px 34px rgb(2 6 20 / .34); }
.footer__col .footer__directions:hover .footer__directions-arrow { transform: translateX(3px); }

.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; padding-block: 22px; border-top: 1px solid var(--line-soft); font-size: .84rem; color: var(--faint); }
.footer__bottom p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { transition: color .25s; }
.footer__links a:hover { color: var(--gold); }

.fab { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; display: grid; gap: 12px; }
.fab__btn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 1.35rem; box-shadow: var(--shadow-md); transition: transform .4s var(--ease-back), box-shadow .35s; }
.fab__btn:hover { transform: translateY(-4px) scale(1.08); }
.fab__btn--wa { background: var(--green); color: #052e16; }
.fab__btn--wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: fab-ping 2.6s var(--ease-out) infinite; z-index: -1; }
@keyframes fab-ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.75); opacity: 0; } }
.fab__btn--call { background: var(--grad-sun); color: #24120a; }
.fab__tip { position: absolute; inset-inline-end: calc(100% + 12px); white-space: nowrap; padding: 7px 14px; border-radius: var(--r-pill); background: var(--ink-3); border: 1px solid var(--line); font-size: .8rem; color: var(--text); opacity: 0; transform: translateX(8px); pointer-events: none; transition: all .3s var(--ease-out); }
.fab__btn:hover .fab__tip { opacity: 1; transform: none; }

.to-top { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(13 26 60 / .9); border: 1px solid var(--line); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .4s var(--ease-out); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--sun); color: var(--gold); }
.to-top > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; fill: none; }
.to-top circle { stroke: var(--sun); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100); }
.to-top .ico { width: 20px; height: 20px; rotate: -90deg; }

/* ---------- PROJECT CARDS (3D flip) ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.project { min-height: 330px; }
.project__front, .project__back { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); }
.project__front { justify-content: space-between; background: linear-gradient(160deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015)); }
.project__back { justify-content: center; gap: 14px; transform: rotateY(180deg); background: linear-gradient(160deg, rgb(255 176 32 / .18), rgb(13 26 60 / .96)), var(--ink-3); border-color: rgb(255 176 32 / .45); }
.project__visual { position: relative; height: 130px; margin: -6px -6px 18px; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(circle at 60% 30%, rgb(42 212 238 / .3), transparent 60%), linear-gradient(150deg, #10305c, #061229); display: grid; place-items: center; }
.project__visual::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgb(255 255 255 / .07) 0 2px, transparent 2px 15px); }
.project__visual .ico { width: 46px; height: 46px; color: var(--sun); opacity: .9; position: relative; }
.project__kw { position: absolute; top: 12px; inset-inline-end: 12px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--grad-sun); color: #24120a; font-family: var(--head); font-size: .76rem; font-weight: 700; }
.project h3 { margin-bottom: 5px; font-size: 1.08rem; color: #fff; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .82rem; color: var(--faint); }
.project__meta span { display: inline-flex; align-items: center; gap: 6px; }
.project__meta .ico { width: 14px; height: 14px; color: var(--sun); }
.project__back p { font-size: .92rem; color: var(--text); margin: 0; }
.project__flip-hint { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: .8rem; color: var(--gold); }

/* ---------- WHY-US HEX / PILLAR CARDS ---------- */
.pillar {
    position: relative; height: 100%; padding: clamp(22px, 2.4vw, 30px);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(160deg, rgb(255 255 255 / .05), rgb(255 255 255 / .012));
    transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.pillar:hover { transform: translateY(-7px) rotateX(5deg); border-color: rgb(42 212 238 / .4); box-shadow: var(--glow-cyan); }
.pillar__ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 15px; background: rgb(42 212 238 / .12); border: 1px solid rgb(42 212 238 / .25); color: var(--cyan); font-size: 1.35rem; }
.pillar h3 { font-size: 1.06rem; margin-bottom: 8px; color: #fff; }
.pillar p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- CONTACT CARDS ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(160deg, rgb(255 255 255 / .05), rgb(255 255 255 / .012)); transition: transform .45s var(--ease-out), border-color .35s, box-shadow .45s; }
.contact-card:hover { transform: translateY(-6px); border-color: rgb(255 176 32 / .4); box-shadow: var(--shadow-md); }
.contact-card__ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--grad-sun); color: #24120a; font-size: 1.3rem; box-shadow: var(--glow-sun); }
.contact-card h3 { margin-bottom: 4px; font-size: 1rem; color: #fff; }
.contact-card p, .contact-card a { margin: 0; font-size: .92rem; color: var(--muted); word-break: break-word; }
.contact-card a:hover { color: var(--gold); }

/* ---------- BANNER / NOTE ---------- */
.callout { display: flex; gap: 16px; padding: clamp(20px, 2.4vw, 28px); border: 1px solid rgb(255 176 32 / .3); border-radius: var(--r-lg); background: rgb(255 176 32 / .07); }
.callout .ico { flex: none; width: 26px; height: 26px; color: var(--sun); }
.callout h3 { margin-bottom: 6px; font-size: 1.04rem; color: #fff; }
.callout p { margin: 0; font-size: .93rem; color: var(--muted); }
.section--paper .callout { background: rgb(255 138 0 / .08); border-color: rgb(255 138 0 / .28); }
.section--paper .callout h3 { color: var(--ink-on-paper); }
.section--paper .callout p { color: var(--muted-on-paper); }

/* ---------- 12. RESPONSIVE ---------- */
@media (max-width: 1140px) {
    .footer__main { grid-template-columns: 1.6fr 1fr 1fr; }
    .footer__col--contact { grid-column: span 3; }
    .header__call { display: none; }
}

@media (max-width: 1320px) and (min-width: 1141px) {
    .header__cta { display: none; }
    .nav__link { padding-inline: 10px; font-size: .86rem; }
}

@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__panel { max-width: 560px; }
    .split--reverse > :first-child { order: 0; }

    .burger { display: flex; }
    .header__cta { display: none; }

    /* backdrop-filter makes .header a containing block for fixed descendants,
       which would trap the off-canvas drawer inside the header box. */
    .header, .header.is-stuck { backdrop-filter: none; background: rgb(5 11 28 / .97); }
    .nav {
        position: fixed; inset: 0 0 0 auto; z-index: 75;
        width: min(400px, 88vw); padding: 26px 22px 40px;
        overflow-y: auto;
        background: linear-gradient(170deg, var(--ink-3), var(--ink));
        border-inline-start: 1px solid var(--line);
        box-shadow: -30px 0 80px rgb(2 6 20 / .6);
        transform: translateX(100%);
        transition: transform .5s var(--ease-out);
        visibility: hidden;
    }
    .nav.is-open { transform: none; visibility: visible; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 2px; margin-top: 40px; }
    .nav__link { padding: 14px 14px; font-size: 1rem; border-radius: var(--r-sm); }
    .nav__link::after { display: none; }
    .nav__link.is-active { background: rgb(255 176 32 / .1); }
    .nav__item--has-menu { display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .nav__chev { display: none; }
    .nav__toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); transition: transform .35s var(--ease-out); }
    .nav__toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--gold); border-color: rgb(255 176 32 / .4); }
    .megamenu {
        position: static; grid-column: 1 / -1;
        width: auto; padding: 6px 0 14px; margin-bottom: 6px;
        border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none;
        opacity: 1; visibility: visible; transform: none;
        display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out);
    }
    .nav__item--has-menu:hover > .megamenu { transform: none; }
    .megamenu > * { overflow: hidden; }
    .nav__item--has-menu.is-open > .megamenu { grid-template-rows: 1fr; }
    .megamenu__grid, .megamenu__grid--2 { grid-template-columns: 1fr; }
    .megamenu__foot { display: none; }
    .nav__mobile-cta { display: grid; gap: 11px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
}

@media (min-width: 1025px) {
    .nav__mobile-cta { display: none; }

    /* Anchor the drop-downs to the nav bar, not to the individual item —
       a 680px menu hanging off "Services" would otherwise run off-screen. */
    .nav { position: relative; }
    .nav__item--has-menu { position: static; }
    .megamenu { inset-inline-end: 0; }
}

@media (max-width: 860px) {
    :root { --header-h: 66px; }
    .topbar .topbar__hide-sm { display: none; }
    .footer__main { grid-template-columns: repeat(2, 1fr); }
    .footer__brand, .footer__col--contact { grid-column: span 2; }
    .footer__cta-actions { justify-content: flex-start; }
    .process__step { grid-template-columns: 1fr; gap: 14px; }
    .process__step::before { display: none; }
    .process__step:hover { transform: translateZ(14px); }
    .quotes__stage { min-height: 420px; }
}

@media (max-width: 560px) {
    .topbar__inner { justify-content: center; }
    .metric-grid { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; }
    .panel-rig { height: 170px; }
    .fab { inset-inline-end: 12px; bottom: 12px; }
    .to-top { inset-inline-start: 12px; bottom: 12px; width: 42px; height: 42px; }
    .footer__main { grid-template-columns: 1fr; }
    .footer__brand, .footer__col--contact { grid-column: auto; }
    .quotes__stage { min-height: 490px; }
}

/* Devices without hover — disable tilt/flip hover effects */
@media (hover: none) {
    .tilt-inner { transform: none !important; }
    .tilt-glare { opacity: 0 !important; }
    .flip:hover .flip__inner { transform: none; }
    .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
    .fab__tip { display: none; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal--3d, .reveal--left, .reveal--right { opacity: 1 !important; transform: none !important; }
    .tilt-inner { transform: none !important; }
    .quote { position: relative; inset: auto; opacity: 1 !important; transform: none !important; margin-bottom: 16px; pointer-events: auto; }
    .quotes__stage { min-height: 0; }
    .quotes__nav { display: none; }
    .logo3d__coin, .logo3d__ring, .panel-rig__array, .ribbon__track, .grid-floor, .orb--drift { animation: none !important; }
    .word-flip span { position: static; opacity: 1; transform: none; }
    .word-flip span:not(.is-on) { display: none; }
}

/* ---------- PRINT ---------- */
@media print {
    .topbar, .header, .fab, .to-top, .preloader, .footer__cta, .scroll-progress, .cursor-glow { display: none !important; }
    body { background: #fff; color: #000; }
    .section, .pagehead, .hero { background: #fff !important; color: #000; padding-block: 18px; }
    h1, h2, h3, .card h3 { color: #000 !important; }
}
