/* ==========================================================================
   TachyEl Technologies — Design System
   Dark glassmorphic surface language, aurora field, scroll-driven motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Base Obsidian & Slate Palette */
    --void: #07080c;
    --ink: #0b0d14;
    --ink-2: #10141e;

    /* Authentic Executive Accents */
    --indigo: #3b82f6;  /* Electric Slate Blue */
    --violet: #7c3aed;  /* Rich Metallic Royal Violet */
    --cyan: #0284c7;    /* Slate Cyan */
    --amber: #f59e0b;   /* Warm Gold */
    --emerald: #10b981; /* Jade Green */

    /* Text */
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --text-faint: #64748b;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-strong: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-lit: rgba(255, 255, 255, 0.16);
    --glass-blur: 20px;

    /* Rhythm */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --shell: 1240px;
    --nav-h: 76px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

    /* Authentic Bespoke Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--void);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

/* Inline icons inherit their box from the text around them unless a component
   overrides it. Without this an unsized SVG expands to its viewBox ratio and
   blows out the layout. */
svg {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ---------- Ambient background layers ---------- */
.bg-field {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 12% -8%, rgba(99, 102, 241, 0.20), transparent 62%),
        radial-gradient(760px 560px at 92% 6%, rgba(168, 85, 247, 0.16), transparent 60%),
        radial-gradient(1100px 700px at 50% 108%, rgba(34, 211, 238, 0.10), transparent 65%),
        var(--void);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 20%, transparent 78%);
}

.bg-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Slow drifting aurora orbs */
.orb {
    position: fixed;
    z-index: -3;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.5;
    animation: drift 26s var(--ease-io) infinite alternate;
}

.orb--a {
    width: 460px;
    height: 460px;
    top: -120px;
    left: -100px;
    background: rgba(99, 102, 241, 0.35);
}

.orb--b {
    width: 380px;
    height: 380px;
    top: 40%;
    right: -140px;
    background: rgba(168, 85, 247, 0.28);
    animation-delay: -9s;
}

.orb--c {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: 30%;
    background: rgba(34, 211, 238, 0.18);
    animation-delay: -16s;
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(60px, -50px, 0) scale(1.15);
    }
}

/* ---------- Layout ---------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    position: relative;
    padding-block: clamp(72px, 10vw, 140px);
}

.section--tight {
    padding-block: clamp(56px, 7vw, 96px);
}

.rule {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* ---------- Type ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.82);
    }
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: #ffffff;
    text-wrap: balance;
}

.h-display {
    font-size: clamp(2.9rem, 7.4vw, 5.6rem);
    font-weight: 700;
}

.h1 {
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    font-weight: 700;
}

.h2 {
    font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.lead {
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    color: var(--text-dim);
    max-width: 62ch;
    text-wrap: pretty;
}

.muted {
    color: var(--text-dim);
}

.faint {
    color: var(--text-faint);
}

.mono {
    font-family: var(--font-code);
}

.grad-text {
    background: linear-gradient(110deg, #ffffff 15%, #e2e8f0 50%, #94a3b8 85%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .h2 {
    margin: 18px 0 16px;
}

/* ---------- Glass primitives ---------- */
.glass {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

/* Specular sheen across the top edge of every glass panel */
.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), transparent 42%);
    opacity: 0.75;
}

.glass--flat {
    background: var(--glass-bg-strong);
}

/* Cursor-tracked highlight, coordinates fed by site.js */
.glass--track::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
            rgba(255, 255, 255, 0.10), transparent 62%);
}

.glass--track:hover::after {
    opacity: 1;
}

/* ---------- Cards ---------- */
.card {
    padding: 28px;
    transition: transform 0.5s var(--ease-out), border-color 0.35s ease, box-shadow 0.5s var(--ease-out);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-lit);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 34px 70px -34px rgba(99, 102, 241, 0.55);
}

.card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(150deg, rgba(99, 102, 241, 0.22), rgba(168, 85, 247, 0.08));
    color: #c7d2fe;
}

.card__icon svg {
    width: 21px;
    height: 21px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* 3D tilt container — transform written by site.js */
.tilt {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.5s var(--ease-out);
}

.tilt__layer {
    transform: translateZ(38px);
}

/* ---------- Grids ---------- */
.grid {
    display: grid;
    gap: 22px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 99px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.35s var(--ease-out);
}

.btn:hover {
    border-color: var(--glass-border-lit);
    background: rgba(255, 255, 255, 0.10);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn:active {
    transform: scale(0.975);
}

.btn--primary {
    border-color: transparent;
    background: linear-gradient(120deg, var(--indigo), var(--violet));
    color: #fff;
    box-shadow: 0 14px 40px -14px rgba(124, 58, 237, 0.85);
}

.btn--primary:hover {
    background: linear-gradient(120deg, #7c7ff5, #b96bfa);
    box-shadow: 0 18px 52px -14px rgba(124, 58, 237, 1);
}

/* Sweep of light on hover */
.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.7s var(--ease-out);
}

.btn--primary:hover::after {
    left: 130%;
}

.btn--ghost {
    background: transparent;
}

.btn--sm {
    padding: 9px 18px;
    font-size: 0.85rem;
}

.btn--block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---------- Chips / tags ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Navigation ---------- */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--indigo), var(--violet), var(--cyan));
    z-index: 120;
}

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background 0.4s ease, border-color 0.4s ease, height 0.4s var(--ease-out);
    border-bottom: 1px solid transparent;
}

.nav.is-stuck {
    height: 62px;
    background: rgba(6, 6, 14, 0.72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom-color: var(--glass-border);
}

.nav__inner {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    box-shadow: 0 8px 22px -8px rgba(124, 58, 237, 0.9);
}

.brand__mark svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    position: relative;
    padding: 8px 14px;
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.25s ease, background 0.25s ease;
}

.nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav__link.is-active {
    color: #fff;
}

.nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--indigo), var(--cyan));
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    cursor: pointer;
    place-items: center;
}

.nav__burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav__burger span+span {
    margin-top: 4px;
}

.nav__burger.is-open span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.nav__drawer {
    position: fixed;
    inset: var(--nav-h) 12px auto 12px;
    z-index: 99;
    padding: 16px;
    border-radius: var(--r-lg);
    display: none;
    flex-direction: column;
    gap: 4px;
    transform-origin: top center;
    animation: drawerIn 0.35s var(--ease-out);
}

.nav__drawer.is-open {
    display: flex;
}

@keyframes drawerIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

.nav__drawer a {
    padding: 12px 14px;
    border-radius: var(--r-sm);
    color: var(--text-dim);
}

.nav__drawer a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

@media (max-width: 900px) {

    .nav__links,
    .nav__actions .btn {
        display: none;
    }

    .nav__burger {
        display: grid;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 80px;
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.hero__canvas.is-ready {
    opacity: 1;
}

/* Scrim so the wireframe never competes with the headline it sits behind. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg,
            rgba(4, 4, 10, 0.92) 0%,
            rgba(4, 4, 10, 0.74) 34%,
            rgba(4, 4, 10, 0.25) 58%,
            transparent 78%);
}

@media (max-width: 900px) {
    .hero::before {
        background: linear-gradient(180deg,
                rgba(4, 4, 10, 0.72) 0%,
                rgba(4, 4, 10, 0.86) 45%,
                rgba(4, 4, 10, 0.95) 100%);
    }
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__content {
    max-width: 780px;
}

.hero .h-display {
    margin: 26px 0 24px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.hero__scroll i {
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, var(--cyan), transparent);
    animation: scrollHint 2.2s var(--ease-io) infinite;
}

@keyframes scrollHint {

    0%,
    100% {
        transform: scaleY(0.35);
        transform-origin: top;
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
    position: relative;
    padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 110px));
    padding-bottom: clamp(40px, 6vw, 72px);
    text-align: center;
}

.page-head .lead {
    margin: 20px auto 0;
    text-align: center;
}

.page-head .h1 {
    margin-top: 20px;
}

/* ---------- Stats ---------- */
.stat {
    padding: 24px;
    text-align: center;
}

.stat__num {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat__label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-top: 6px;
}

/* ---------- Marquee ---------- */
.marquee {
    position: relative;
    overflow: hidden;
    padding-block: 18px;
    border-block: 1px solid var(--glass-border);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: slide 34s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    white-space: nowrap;
}

@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Work / case study cards ---------- */
.work-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
}

@media (max-width: 900px) {
    .work-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

.work-card__body {
    padding: clamp(26px, 3.4vw, 44px);
}

.work-card__visual {
    position: relative;
    min-height: 280px;
    border-left: 1px solid var(--glass-border);
    background: linear-gradient(150deg, var(--wc-glow, rgba(99, 102, 241, 0.16)), transparent 65%);
    display: grid;
    place-items: center;
    overflow: hidden;
}

@media (max-width: 900px) {
    .work-card__visual {
        border-left: 0;
        border-top: 1px solid var(--glass-border);
        min-height: 220px;
    }
}

.work-card__url {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cyan);
    margin-top: 22px;
}

.work-card__url:hover {
    text-decoration: underline;
}

/* Floating browser mock inside the visual pane */
.mock {
    width: 78%;
    max-width: 330px;
    border-radius: 12px;
    border: 1px solid var(--glass-border-lit);
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 1);
    transform: perspective(900px) rotateY(-13deg) rotateX(7deg);
    transition: transform 0.7s var(--ease-out);
}

.work-card:hover .mock {
    transform: perspective(900px) rotateY(-5deg) rotateX(2deg) translateY(-6px);
}

.mock__bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 11px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}

.mock__bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.mock__body {
    padding: 14px;
    display: grid;
    gap: 9px;
}

.mock__line {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
}

.mock__block {
    height: 54px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(168, 85, 247, 0.10));
    border: 1px solid var(--glass-border);
}

.mock__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* ---------- Feature list ---------- */
.flist {
    display: grid;
    gap: 12px;
}

.flist li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 0.93rem;
    color: var(--text-dim);
}

.flist svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    color: var(--cyan);
}

/* ---------- Pricing ---------- */
.plan {
    display: flex;
    flex-direction: column;
    padding: 32px;
}

/* The plan column is a flex container, so an inline-flex chip would stretch. */
.plan>.chip {
    align-self: flex-start;
}

.plan--featured {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.10), var(--glass-bg));
    box-shadow: 0 40px 90px -44px rgba(139, 92, 246, 0.8);
}

.plan__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: linear-gradient(120deg, var(--indigo), var(--violet));
    color: #fff;
    white-space: nowrap;
}

.plan__price {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 18px 0 6px;
    color: #fff;
}

.plan .flist {
    margin: 26px 0 30px;
    flex: 1;
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 34px;
    display: grid;
    gap: 34px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, var(--indigo), var(--violet), transparent);
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-top: 7px;
    background: var(--void);
    border: 2px solid var(--violet);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.8);
}

.timeline__item {
    position: relative;
}

.timeline__step {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 8px;
}

/* ---------- Accordion (roles / FAQ) ---------- */
.acc {
    overflow: hidden;
    margin-bottom: 14px;
}

/* The clickable row is a <button> inside the heading, so its contents are all
   phrasing elements — spans doing the work <h3>/<div> would normally do. */
.acc__title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.acc__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.acc__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.acc__text {
    display: block;
    min-width: 0;
}

.acc__name {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #fff;
}

.acc__sub {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-faint);
}

.acc__head .chip-row {
    display: flex;
}

.acc__chevron {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--text-faint);
    transition: transform 0.4s var(--ease-out);
}

.acc.is-open .acc__chevron {
    transform: rotate(180deg);
    color: var(--cyan);
}

.acc__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease-out);
}

.acc.is-open .acc__panel {
    grid-template-rows: 1fr;
}

.acc__panel>div {
    overflow: hidden;
}

.acc__inner {
    padding: 0 26px 26px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(2, 2, 8, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal__panel {
    position: relative;
    width: min(560px, 100%);
    max-height: 90svh;
    overflow-y: auto;
    padding: 34px;
    animation: modalIn 0.45s var(--ease-out);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
}

.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    color: var(--text-dim);
}

.modal__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Forms ---------- */
.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--r-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.94rem;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.field select option {
    background: #12121e;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-top: 14px;
    text-align: center;
}

.form-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 0.88rem;
    display: none;
}

.form-status.is-visible {
    display: block;
}

.form-status--ok {
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.10);
    color: #6ee7b7;
}

.form-status--err {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.10);
    color: #fca5a5;
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 6vw, 78px);
    text-align: center;
    border-radius: var(--r-xl);
    background:
        radial-gradient(700px 320px at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
        var(--glass-bg);
}

.cta-band .h2 {
    margin-bottom: 16px;
}

.cta-band .lead {
    margin-inline: auto;
    text-align: center;
}

.cta-band__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    border-top: 1px solid var(--glass-border);
    padding-block: 60px 34px;
    margin-top: 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 860px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer h4 {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 16px;
    font-weight: 500;
}

.footer__links {
    display: grid;
    gap: 10px;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: #fff;
}

.footer__bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-faint);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.85s var(--ease-out),
        transform 0.85s var(--ease-out);
    transition-delay: var(--delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal='left'] {
    transform: translateX(-34px);
}

[data-reveal='right'] {
    transform: translateX(34px);
}

[data-reveal='scale'] {
    transform: scale(0.94);
}

[data-reveal='flip'] {
    transform: perspective(1000px) rotateX(-14deg) translateY(30px);
    transform-origin: bottom center;
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Parallax offsets written by site.js */
[data-parallax] {
    will-change: transform;
}

/* Sticky scroll-telling section */
.sticky-stage {
    position: relative;
}

.sticky-stage__pin {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .orb {
        display: none;
    }
}

/* ==========================================================================
   Skiper8 — Words Preloader (Dennis Snellenberg Style)
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #141516;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: all;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.preloader.is-exiting {
    transform: translateY(-100%);
}

.preloader__content {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -0.025em;
    user-select: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.preloader.is-exiting .preloader__content {
    opacity: 0;
}

.preloader__dot {
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.preloader__word {
    display: inline-block;
    transition: opacity 0.08s ease, transform 0.08s ease;
    will-change: opacity, transform;
}

.preloader__word.is-changing {
    opacity: 0;
    transform: translateY(6px);
}

.preloader__svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 300px);
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.preloader__path {
    fill: #141516;
}

@media (max-width: 768px) {
    .preloader__content {
        font-size: 30px;
        gap: 10px;
    }

    .preloader__dot {
        width: 8px;
        height: 8px;
    }
}


/* ==========================================================================
   Skiper19 — SVG Follow Scroll Animation
   ========================================================================== */

.svg-scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.svg-scroll-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.svg-scroll-active-path {
    transition: stroke-dashoffset 0.05s linear;
    will-change: stroke-dashoffset;
}

.svg-scroll-dot {
    transition: transform 0.05s linear, opacity 0.2s ease;
    will-change: transform, opacity;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Portfolio Filtering & Project Cards
   ========================================================================== */

.portfolio-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 8px 18px;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-color: var(--glass-border-lit);
}

.filter-btn.is-active {
    background: var(--indigo);
    color: #ffffff;
    border-color: var(--indigo);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.work-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card.is-hidden {
    display: none !important;
}




