/* ==========================================================================
   Sankar Suvan Technologies — premium design system
   ========================================================================== */

:root {
    --bg: #05060b;
    --bg-2: #0a0d17;
    --bg-3: #10141f;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #eef1f8;
    --muted: #9aa3b8;
    --dim: #6b7389;
    --accent: #4f7dff;
    --accent-2: #22d3ee;
    --gold: #f4b740;
    --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    --grad-gold: linear-gradient(120deg, #ffe3a3 0%, var(--gold) 55%, #e58a1f 100%);
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font-body: 'Inter', system-ui, sans-serif;
    --font-head: 'Space Grotesk', 'Manrope', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1rem; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.03em;
}

h1 { font-size: clamp(2.6rem, 6.6vw, 6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -.015em; }

.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.01em;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gold-text {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .15), 0 0 18px var(--accent-2);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 { max-width: 17ch; margin: 0; }
.section-head .lead { margin: 0; max-width: 44ch; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Buttons ---------- */

.btn-lux,
.btn-ghost-lux {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 26px;
    min-height: 56px;
    border-radius: 999px;
    border: 0;
    font-weight: 600;
    font-size: .98rem;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
    white-space: nowrap;
}

.btn-lux {
    color: #05060b;
    background: #fff;
    box-shadow: 0 16px 50px -12px rgba(79, 125, 255, .55);
}

.btn-lux::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grad);
    transform: translateY(101%);
    transition: transform .55s var(--ease);
}

.btn-lux:hover { color: #fff; }
.btn-lux:hover::before { transform: translateY(0); }

.btn-lux .ico,
.btn-ghost-lux .ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #05060b;
    color: #fff;
    transition: transform .5s var(--ease), background .3s;
}

.btn-lux:hover .ico { transform: rotate(-45deg); background: rgba(5, 6, 11, .35); }

.btn-ghost-lux {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(12px);
}

.btn-ghost-lux .ico { background: var(--surface-2); }
.btn-ghost-lux:hover { border-color: rgba(255, 255, 255, .35); background: var(--surface-2); }
.btn-ghost-lux:hover .ico { transform: rotate(-45deg); background: var(--accent); }

.btn-sm { min-height: 44px; padding: 6px 6px 6px 20px; font-size: .9rem; }
.btn-sm .ico { width: 32px; height: 32px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 4px;
    transition: gap .4s var(--ease), border-color .3s;
}

.link-arrow:hover { gap: 14px; border-color: var(--accent-2); }

/* ---------- Preloader / cursor / progress ---------- */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: transform 1s var(--ease) .1s, visibility 0s 1.2s;
}

.preloader.is-done { transform: translateY(-100%); visibility: hidden; }

.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader img { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; animation: pulse 1.6s var(--ease) infinite; }
.preloader-bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0; background: var(--grad); animation: load 1.1s var(--ease) forwards; }
.preloader small { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }

@keyframes load { to { width: 100%; } }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9995;
    height: 2px;
    width: 100%;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
    border-radius: 50%;
    transform: translate3d(-100px, -100px, 0);
    display: none;
}

.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }

.cursor-ring {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 1px solid rgba(255, 255, 255, .45);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}

.cursor-ring.is-hover {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .15);
    backdrop-filter: blur(2px);
}

@media (hover: hover) and (pointer: fine) {
    .has-cursor .cursor-dot, .has-cursor .cursor-ring { display: block; }
}

/* ---------- Navigation ---------- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 18px 0;
    transition: transform .6s var(--ease), padding .4s var(--ease), background .4s;
}

.site-nav.is-scrolled {
    padding: 10px 0;
    background: rgba(5, 6, 11, .72);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.site-nav.is-hidden { transform: translateY(-110%); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }

.brand img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

.brand strong { display: block; font-family: var(--font-head); font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.15; }
.brand small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    margin: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(12px);
}

.nav-links a {
    display: block;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .3s, background .3s;
}

.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: .85rem;
    color: var(--gold);
    border: 1px solid rgba(244, 183, 64, .3);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--surface);
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--text);
    transition: transform .4s var(--ease), top .4s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.menu-open .nav-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 8900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 110px var(--gutter) 40px;
    background: rgba(5, 6, 11, .97);
    backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - 44px) 44px);
    transition: clip-path .8s var(--ease);
    visibility: hidden;
}

.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.menu-open { overflow: hidden; }

.mobile-menu a.mm-link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    font-family: var(--font-head);
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 600;
    letter-spacing: -.03em;
    border-bottom: 1px solid var(--line);
}

.mobile-menu a.mm-link small { font-family: var(--font-body); font-size: .8rem; color: var(--dim); }
.mobile-menu .mm-foot { margin-top: 32px; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 0 60px;
    overflow: hidden;
}

.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    animation: drift 18s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); }
.aurora span:nth-child(2) { width: 42vw; height: 42vw; right: -10vw; top: 6vh; background: radial-gradient(circle, var(--accent-2) 0%, transparent 65%); opacity: .35; animation-duration: 22s; }
.aurora span:nth-child(3) { width: 36vw; height: 36vw; left: 30vw; bottom: -22vw; background: radial-gradient(circle, #8b5cf6 0%, transparent 65%); opacity: .3; animation-duration: 26s; }

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6vw, 4vh, 0) scale(1.1); }
    100% { transform: translate3d(-4vw, -3vh, 0) scale(.95); }
}

.grid-lines {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    margin-bottom: 28px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    backdrop-filter: blur(10px);
    font-size: .86rem;
    color: var(--muted);
}

.hero-badge b {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.9rem); line-height: 1; margin-bottom: 28px; }
.hero h1 .serif { font-size: 1.08em; }

.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-ready .split-line > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .08s; }
.split-line:nth-child(3) > span { transition-delay: .16s; }
.split-line:nth-child(4) > span { transition-delay: .24s; }

.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.hero-meta div { display: grid; }
.hero-meta strong { font-family: var(--font-head); font-size: 1.8rem; letter-spacing: -.03em; }
.hero-meta span { font-size: .82rem; color: var(--dim); }

/* Hero visual: layered product UI */

.hero-visual { position: relative; height: clamp(420px, 44vw, 560px); perspective: 1400px; }

.glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hv-main {
    position: absolute;
    inset: 8% 4% 12% 8%;
    padding: 22px;
    transform: rotateY(-12deg) rotateX(6deg);
    transform-style: preserve-3d;
    animation: float 8s ease-in-out infinite;
}

.hv-top { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; }
.hv-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.hv-top i:first-child { background: #ff5f57; }
.hv-top i:nth-child(2) { background: #febc2e; }
.hv-top i:nth-child(3) { background: #28c840; }
.hv-top span { margin-left: auto; font-size: .72rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }

.hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.hv-kpis div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.hv-kpis small { display: block; font-size: .68rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.hv-kpis strong { font-family: var(--font-head); font-size: 1.35rem; }
.hv-kpis em { font-style: normal; font-size: .72rem; color: #34d399; }

.hv-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 150px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line);
}

.hv-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    opacity: .85;
    transform-origin: bottom;
    animation: bar 2.4s var(--ease) both;
    animation-delay: calc(var(--i) * 90ms + .9s);
}

.hv-chart span:nth-child(odd) { opacity: .5; }

@keyframes bar { from { transform: scaleY(0); } }

.hv-rows { display: grid; gap: 8px; margin-top: 14px; }
.hv-rows div { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
.hv-rows b { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.hv-rows b::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--grad); border-radius: inherit; }

.hv-float {
    position: absolute;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .84rem;
    animation: float 7s ease-in-out infinite;
}

.hv-float i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 1rem;
}

.hv-float strong { display: block; font-size: .92rem; }
.hv-float span { color: var(--dim); font-size: .75rem; }
.hv-f1 { top: 0; right: 0; animation-delay: -2s; }
.hv-f2 { bottom: 2%; left: 0; animation-delay: -4s; }
.hv-f2 i { background: var(--grad-gold); color: #3a2400; }

@keyframes float { 50% { transform: translateY(-14px) rotateY(-12deg) rotateX(6deg); } }
.hv-float { animation-name: float-flat; }
@keyframes float-flat { 50% { transform: translateY(-12px); } }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 10px;
    font-size: .68rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--dim);
}

.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--text), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */

.marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 48px;
    padding-right: 48px;
    animation: marquee 38s linear infinite;
}

.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2.6vw, 2.1rem);
    font-weight: 500;
    letter-spacing: -.02em;
    white-space: nowrap;
    color: var(--muted);
}

.marquee-track span::after { content: "✦"; font-size: .7em; color: var(--accent-2); }
.marquee-track span:nth-child(3n+2) { font-family: var(--font-serif); font-style: italic; color: var(--text); }

@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.stats > div { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }

.stats strong {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1;
    margin-bottom: 10px;
}

.stats strong sup { font-size: .45em; color: var(--accent-2); top: -.9em; }
.stats > div > span { color: var(--muted); font-size: .92rem; }

/* ---------- Cards / spotlight ---------- */

.card-lux {
    position: relative;
    padding: clamp(24px, 2.6vw, 34px);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    transition: border-color .4s, transform .6s var(--ease), background .4s;
}

.card-lux::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 125, 255, .16), transparent 45%);
    transition: opacity .4s;
}

.card-lux:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card-lux:hover::before { opacity: 1; }

.service-card { display: flex; flex-direction: column; min-height: 280px; }

.service-card .icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: auto;
    border-radius: 16px;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(145deg, rgba(79, 125, 255, .35), rgba(34, 211, 238, .12));
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .6s var(--ease);
}

.service-card:hover .icon { transform: rotate(-8deg) scale(1.06); }
.service-card h3 { margin-top: 36px; }
.service-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.service-card .num {
    position: absolute;
    top: 26px;
    right: 28px;
    font-family: var(--font-head);
    font-size: .8rem;
    color: var(--dim);
}

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento > :nth-child(1) { grid-column: span 2; }
.bento > :nth-child(1) h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 18ch; }

/* ---------- Work / portfolio ---------- */

.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.work-grid > * { grid-column: span 4; }
.work-grid.is-featured > :nth-child(4n+1), .work-grid.is-featured > :nth-child(4n+4) { grid-column: span 7; }
.work-grid.is-featured > :nth-child(4n+2), .work-grid.is-featured > :nth-child(4n+3) { grid-column: span 5; }
.work-grid.is-featured > :only-child { grid-column: 1 / -1; }

.work-card { position: relative; display: flex; flex-direction: column; }

.work-media {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-3);
    isolation: isolate;
}

.work-grid.is-featured .work-media { aspect-ratio: 16 / 10; }

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.2s var(--ease), filter .6s;
}

.work-card:hover .work-media img { transform: scale(1.08); }

.work-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, hsla(var(--hue, 225), 90%, 60%, .55), transparent 55%),
        radial-gradient(circle at 85% 80%, hsla(calc(var(--hue, 225) + 60), 90%, 55%, .45), transparent 55%),
        linear-gradient(135deg, #0c1224, #070a14);
    transition: transform 1.2s var(--ease);
}

.work-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}

.work-art b {
    position: relative;
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -.06em;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55);
}

.work-card:hover .work-art { transform: scale(1.06); }

.work-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 6, 11, .75));
    pointer-events: none;
}

.work-tags { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 500;
    background: rgba(5, 6, 11, .55);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    color: var(--text);
}

.chip-gold { color: #2b1a00; background: var(--grad-gold); border-color: transparent; font-weight: 600; }

.work-view {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #05060b;
    font-size: 1.2rem;
    transform: scale(.6) rotate(-45deg);
    opacity: 0;
    transition: transform .6s var(--ease), opacity .4s;
}

.work-card:hover .work-view { transform: scale(1) rotate(0); opacity: 1; }

.work-body { padding: 22px 4px 0; }
.work-body .meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.work-body .meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.work-body h3 { margin-bottom: 8px; transition: color .3s; }
.work-card:hover h3 { color: #fff; }
.work-body p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }

.tech-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tech-list span {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: .75rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
}

.work-link { position: absolute; inset: 0; z-index: 3; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }

.filters button {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .35s var(--ease);
}

.filters button:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.filters button.is-active { background: #fff; color: #05060b; border-color: #fff; }
.filters button sup { margin-left: 4px; font-size: .7em; opacity: .6; }

.work-card.is-hidden { display: none; }
.work-card.is-entering { animation: card-in .7s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.empty-state {
    grid-column: 1 / -1;
    padding: 60px 30px;
    text-align: center;
    border: 1px dashed var(--line-2);
    border-radius: var(--radius);
    color: var(--muted);
}

/* ---------- Project detail ---------- */

.project-hero { padding: 170px 0 50px; position: relative; overflow: hidden; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 30px; transition: gap .4s var(--ease), color .3s; }
.back-link:hover { color: var(--text); gap: 12px; }
.project-hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 6vw, 5.4rem); }

.project-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 44px;
    border-top: 1px solid var(--line);
}

.project-facts > div { padding: 22px 20px 0 0; }
.project-facts small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.project-facts strong { font-weight: 500; }
.project-facts a { color: var(--accent-2); }

.project-cover {
    position: relative;
    aspect-ratio: 16 / 8;
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-3);
}

.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover .work-art b { font-size: clamp(5rem, 16vw, 13rem); }

.project-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); }
.project-content .prose { font-size: 1.08rem; color: #c8cede; }
.project-content .prose p { margin-bottom: 1.3em; }
.sticky-col { position: sticky; top: 110px; align-self: start; }

/* ---------- Process ---------- */

.process { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.process-line { position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: var(--line-2); }
.process-line span { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; }

.process-step { position: relative; }

.process-step .dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 26px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--bg);
    font-family: var(--font-head);
    font-size: .9rem;
    transition: background .5s, border-color .5s;
}

.process-step.is-in .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 30px rgba(79, 125, 255, .5); }
.process-step h3 { font-size: 1.15rem; }
.process-step p { color: var(--muted); font-size: .92rem; }

/* ---------- Industries ---------- */

.pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

.pill-cloud span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: .95rem;
    transition: all .4s var(--ease);
}

.pill-cloud span i { color: var(--accent-2); }
.pill-cloud span:hover { border-color: var(--accent); background: rgba(79, 125, 255, .12); transform: translateY(-3px); }

/* ---------- Founder ---------- */

.founder {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding: clamp(28px, 4vw, 56px);
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(79, 125, 255, .08), rgba(255, 255, 255, .02) 50%);
}

.founder-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(145deg, var(--accent), #8b5cf6 60%, var(--accent-2)); }
.founder-photo::before { content: "AC"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 5rem; font-weight: 700; letter-spacing: -.05em; color: rgba(255, 255, 255, .85); }
.founder-photo img { position: relative; z-index: 1; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.founder-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

.founder blockquote {
    margin: 0 0 24px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -.01em;
}

.founder .sig strong { display: block; font-size: 1.05rem; }
.founder .sig span { color: var(--dim); font-size: .9rem; }

/* ---------- Testimonials ---------- */

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.quote-card { display: flex; flex-direction: column; gap: 24px; }
.quote-card .stars { color: var(--gold); letter-spacing: 3px; font-size: .9rem; }
.quote-card p { font-size: 1.15rem; line-height: 1.6; margin: 0; flex: 1; }

.quote-card footer { display: flex; align-items: center; gap: 14px; }

.quote-card footer i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-style: normal;
    font-weight: 600;
    background: var(--grad);
}

.quote-card footer strong { display: block; font-size: .95rem; }
.quote-card footer span { color: var(--dim); font-size: .84rem; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 500;
    letter-spacing: -.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    transition: transform .5s var(--ease), background .3s;
}

.faq details[open] summary i { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq .answer { padding: 0 60px 26px 0; color: var(--muted); animation: faq-in .5s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- CTA ---------- */

.cta {
    position: relative;
    padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 80px);
    border-radius: calc(var(--radius) + 12px);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    background: #070a16;
}

.cta::before {
    content: "";
    position: absolute;
    inset: -60%;
    z-index: -2;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #8b5cf6, var(--accent));
    animation: spin 12s linear infinite;
    opacity: .9;
}

.cta::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(79, 125, 255, .35), transparent 60%),
        #070a16;
}

@keyframes spin { to { transform: rotate(360deg); } }

.cta h2 { max-width: 18ch; margin: 0 auto 20px; font-size: clamp(2.2rem, 5.5vw, 4.6rem); }
.cta .lead { margin: 0 auto 36px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { position: relative; padding: clamp(150px, 20vw, 210px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 6.6vw, 5.6rem); }
.page-hero .lead { margin-top: 10px; }
.page-hero .aurora span { opacity: .35; }

/* ---------- Forms ---------- */

.form-lux { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { position: relative; display: grid; gap: 8px; }
.field label { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .3s, background .3s, box-shadow .3s;
}

.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: rgba(79, 125, 255, .06); box-shadow: 0 0 0 4px rgba(79, 125, 255, .15); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field .hint { font-size: .8rem; color: var(--dim); }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: .95rem;
}

.alert-success { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); color: #a7f3d0; }
.alert-error { border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); color: #fecaca; }
.alert ul { margin: 0; padding-left: 18px; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 9500;
    transform: translateX(-50%);
    animation: toast-in .6s var(--ease), toast-out .6s var(--ease) 5s forwards;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    max-width: calc(100vw - 32px);
}

@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 20px); visibility: hidden; } }

.contact-list { display: grid; gap: 4px; margin-top: 28px; }

.contact-list a,
.contact-list div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    transition: padding .4s var(--ease), color .3s;
}

.contact-list a:hover { padding-left: 8px; color: #fff; }

.contact-list i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--accent-2);
}

.contact-list small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- Footer ---------- */

.site-footer { position: relative; padding: clamp(80px, 10vw, 120px) 0 0; border-top: 1px solid var(--line); overflow: hidden; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h6 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; font-family: var(--font-body); font-weight: 600; }
.footer-grid a { display: block; padding: 5px 0; color: var(--muted); transition: color .3s, transform .4s var(--ease); }
.footer-grid a:hover { color: var(--text); transform: translateX(4px); }
.footer-grid a.brand { display: inline-flex; padding: 0; color: var(--text); }
.footer-grid a.brand:hover { transform: none; }
.footer-grid p { color: var(--muted); max-width: 34ch; }

.footer-word {
    margin: clamp(40px, 6vw, 80px) 0 -0.18em;
    font-family: var(--font-head);
    font-size: clamp(3.4rem, 15.5vw, 15rem);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: .9;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 80%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--dim);
    position: relative;
    background: var(--bg);
}

.socials { display: flex; gap: 10px; margin-top: 20px; }

.socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line-2);
}

.socials a:hover { background: var(--accent); border-color: var(--accent); transform: none; }

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 8800;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 14px 40px -8px rgba(37, 211, 102, .6);
    transition: transform .5s var(--ease);
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: ring 2.4s var(--ease) infinite;
}

.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@keyframes ring { to { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
}

[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Pagination ---------- */

.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; }
.pagination li > * { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.pagination li.active > * { background: #fff; color: #05060b; border-color: #fff; }
.pagination li.disabled > * { opacity: .35; }
.pagination svg { width: 16px; }

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-body { background: var(--bg-2); }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }

.admin-side {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 16px;
    background: var(--bg);
    border-right: 1px solid var(--line);
}

.admin-side .brand { padding: 0 8px 20px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-side .brand img { width: 38px; height: 38px; }
.admin-side .brand strong { font-size: .92rem; }

.admin-side a.side-link,
.admin-side button.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: .93rem;
    text-align: left;
    cursor: pointer;
    transition: background .3s, color .3s;
}

.admin-side .side-link:hover, .admin-side .side-link.is-active { background: var(--surface-2); color: var(--text); }
.admin-side .side-link.is-active i { color: var(--accent-2); }
.admin-side .spacer { flex: 1; }

.admin-main { padding: clamp(24px, 4vw, 48px); min-width: 0; }
.admin-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
.admin-top h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.admin-top .eyebrow { margin-bottom: 10px; }

.admin-panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.admin-panel + .admin-panel { margin-top: 20px; }
.admin-panel h2 { font-size: 1.2rem; margin-bottom: 18px; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stats > div { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.admin-stats strong { display: block; font-family: var(--font-head); font-size: 2.2rem; letter-spacing: -.04em; line-height: 1.1; }
.admin-stats span { color: var(--muted); font-size: .85rem; text-transform: capitalize; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .thumb { width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--bg-3); position: relative; }
.admin-table .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-table .thumb .work-art b { font-size: .9rem; -webkit-text-stroke: .6px rgba(255, 255, 255, .6); }
.admin-table .actions { display: flex; gap: 8px; justify-content: flex-end; }
.table-wrap { overflow-x: auto; }

.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--text);
    font-size: .82rem;
    cursor: pointer;
    transition: background .3s, border-color .3s;
}

.btn-mini:hover { background: var(--surface-2); color: var(--text); }
.btn-mini.danger:hover { background: rgba(248, 113, 113, .15); border-color: rgba(248, 113, 113, .5); color: #fecaca; }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; background: var(--surface-2); color: var(--muted); }
.status.on { background: rgba(244, 183, 64, .15); color: var(--gold); }

.admin-form-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.upload-preview { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; border: 1px dashed var(--line-2); background: var(--bg-3); display: grid; place-items: center; color: var(--dim); font-size: .85rem; text-align: center; padding: 10px; }
.upload-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth-card { width: 100%; max-width: 440px; padding: clamp(28px, 5vw, 44px); }
.auth-card .brand { margin-bottom: 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .nav-links, .nav-actions .btn-lux, .nav-admin { display: none; }
    .nav-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
    .process-line { display: none; }
}

@media (max-width: 991px) {
    .hero-grid, .grid-2, .project-content, .founder, .admin-form-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 440px; max-width: 560px; }
    .grid-3, .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work-grid > *, .work-grid.is-featured > * { grid-column: span 6 !important; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div:nth-child(2) { border-right: 0; }
    .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sticky-col { position: static; }
    .founder { grid-template-columns: 1fr; }
    .founder-photo { max-width: 300px; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 14px; }
    .admin-side .brand { width: 100%; padding-bottom: 12px; }
    .admin-side .spacer { display: none; }
    .admin-side a.side-link, .admin-side button.side-link { width: auto; padding: 9px 12px; }
    .admin-side form { display: contents; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .brand small { display: none; }
    .brand strong { font-size: .92rem; }
    .grid-3, .grid-4, .bento, .form-row, .process { grid-template-columns: 1fr; }
    .bento > :nth-child(1) { grid-column: auto; }
    .work-grid > *, .work-grid.is-featured > * { grid-column: 1 / -1 !important; }
    .hero { padding-top: 120px; }
    .hero-visual { height: 380px; }
    .hv-main { inset: 10% 0 12% 0; transform: none; animation: none; }
    .hv-kpis strong { font-size: 1.05rem; }
    .hv-f1 { right: -4px; }
    .hero-meta { gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .project-facts { grid-template-columns: 1fr 1fr; }
    .faq .answer { padding-right: 0; }
    .btn-lux, .btn-ghost-lux { min-height: 52px; }
    .scroll-cue { display: none; }
    .service-card { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .split-line > span { transform: none; }
    .marquee-track { animation: none; }
}
