:root {
    --ink: #10151d;
    --paper: #f9f8f3;
    --grid: rgba(94, 133, 243, 0.19);
    --blue: #bcd9fa;
    --green: #d9efc4;
    --pink: #f9dce0;
    --yellow: #fff3b4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
}

h1,
h2,
h3,
.brand {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.055em;
}

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

section {
    scroll-margin-top: 20px;
}

.container {
    max-width: 1280px;
}

.hero,
.projects,
.contact-panel,
.has-bg-image,
.bg-section {
    background:
        linear-gradient(180deg,
            rgba(18, 49, 67, 0.25),
            rgba(20, 38, 32, 0.58)),
        url("../img/background.webp") center/cover no-repeat;
}

.hero {
    min-height: 100svh;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
}

.topbar {
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 25px;
    letter-spacing: -0.07em;
}

.brand span {
    color: #e9f574;
}

.topbar small {
    font-size: 11px;
    letter-spacing: 0.16em;
    font-weight: 700;
}

.hero-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 0 180px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 5rem;
    line-height: 0.91;
    font-weight: 700;
    text-transform: uppercase;
    margin: 20px 0 30px;
    max-width: 1100px;
}

.hero h1 em {
    font-style: normal;
    color: #e3f879;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    border: 0;
    background: white;
    color: #111;
    padding: 16px 23px;
    border-radius: 13px;
    font-weight: 700;
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.12);
    transition: 0.2s;
}

.pill-btn:hover {
    transform: translateY(-4px);
}

.hero-bottom {
    position: absolute;
    bottom: 45px;
    left: 0;
    right: 0;
}

.hero-copy {
    max-width: 335px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

.hero-bottom .row {
    align-items: end;
}

.mini-stack {
    max-width: 300px;
    margin-left: auto;
    display: grid;
    gap: 8px;
}

.mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    border-radius: 15px;
    padding: 12px 14px;
    font-size: 13px;
}

.mini small {
    display: block;
    font-size: 9px;
    letter-spacing: 0.12em;
    opacity: 0.8;
    text-transform: uppercase;
}

.mini i {
    font-size: 22px;
}

.grid-bg {
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 68px 68px;
}

.section {
    padding: 125px 0;
}

.section-head {
    text-align: center;
    max-width: 770px;
    margin: 0 auto 65px;
}

.sticker {
    display: inline-block;
    background: #d6eafb;
    color: #264d7a;
    padding: 8px 15px;
    border-radius: 8px;
    transform: rotate(-5deg);
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 3px 7px #0002;
}

.section-head h2 {
    font-size: clamp(2.7rem, 5.8vw, 5.4rem);
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 700;
    margin: 24px 0;
}

.section-head p {
    font-size: 17px;
    line-height: 1.7;
    color: #4f5560;
}

.about {
    position: relative;
    overflow: hidden;
}

.spark {
    position: absolute;
    color: #f2cc38;
    font-size: 65px;
    line-height: 1;
}

.spark.one {
    top: 100px;
    left: 7%;
}

.spark.two {
    right: 7%;
    bottom: 120px;
    color: #8ecaff;
}

.stat {
    height: 100%;
    background: #fff;
    border: 1px solid #ecebe5;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 8px 20px #0000000b;
    position: relative;
}

.stat:before {
    content: "✦";
    position: absolute;
    right: 18px;
    top: 12px;
    color: #f4c941;
    font-size: 25px;
}

.stat b {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 32px;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.stat .stat-title {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 6px;
    line-height: 1.25;
}

.stat p {
    font-size: 13px;
    color: #687078;
    margin: 10px 0 0;
    line-height: 1.5;
}

.projects {
    color: white;
    background-attachment: fixed;
}

.projects .section-head p {
    color: #e7eef0;
}

.project-card {
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 11px;
    box-shadow: 0 16px 30px #1d27242e;
    transition: 0.3s;
    transform: rotate(-1deg);
    height: 100%;
}

.project-wrap:nth-child(even) .project-card {
    transform: rotate(1deg);
}

.project-card:hover {
    transform: translateY(-7px) rotate(0) !important;
}

.browser {
    display: flex;
    gap: 5px;
    padding: 4px 3px 10px;
}

.browser i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f17670;
}

.browser i:nth-child(2) {
    background: #f1ca53;
}

.browser i:nth-child(3) {
    background: #74c990;
}

.project-visual {
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 24px;
    background: #e9e3d7;
    color: #293127;
    position: relative;
}

.project-visual:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0007, transparent 65%);
    z-index: 1;
}

.project-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-visual span {
    z-index: 2;
    color: #fff;
    font-family: "Space Grotesk";
    font-size: clamp(28px, 3vw, 44px);
    line-height: 0.95;
    font-weight: 700;
    max-width: 300px;
}

.p1 {
    background: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.p2 {
    background: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.p3 {
    background: url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.p4 {
    background: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.project-meta {
    padding: 18px 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-meta strong {
    font-size: 16px;
}

.project-meta small {
    display: block;
    color: #747b7e;
    font-size: 11px;
    margin-top: 3px;
}

.outline-btn {
    display: inline-block;
    border: 1px solid currentColor;
    border-radius: 100px;
    padding: 13px 22px;
    font-size: 13px;
    font-weight: 700;
}

.services-list {
    max-width: 950px;
    margin: auto;
    display: grid;
    gap: 12px;
}

details.service {
    border-radius: 18px;
    padding: 0 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: height, transform;
}

details.service:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

details.service:nth-child(1) {
    background: #e3f0ff;
}

details.service:nth-child(2) {
    background: #fae5e8;
}

details.service:nth-child(3) {
    background: #e1f5e9;
}

details.service:nth-child(4) {
    background: #fff7cb;
}

details.service:nth-child(5) {
    background: #eeeaff;
}

summary {
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

.service summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    font-family: "Space Grotesk";
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.04em;
    user-select: none;
    -webkit-user-select: none;
    transition: color 0.25s ease;
}

.plus {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    place-items: center;
    flex: none;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 1.5px #fff;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.service summary:hover .plus {
    transform: scale(1.08);
    background: #ffffff;
}

.service[open] .plus {
    transform: rotate(45deg);
    background: #18191d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.service[open] summary:hover .plus {
    transform: rotate(45deg) scale(1.08);
}

.faq-item[open] .plus {
    transform: rotate(45deg);
}

.service-content {
    padding: 0 0 28px;
    color: #56616a;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service.is-animating-open .service-content {
    animation: appleAccordionContentIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes appleAccordionContentIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

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

.service-content p {
    max-width: 700px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tags span {
    background: #ffffffa8;
    border: 1px solid #fff;
    border-radius: 100px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.faq-item {
    border-radius: 16px;
    padding: 20px;
    background: var(--pink);
    box-shadow: 0 5px 12px #00000010;
}

.faq-item:nth-child(2),
.faq-item:nth-child(6) {
    background: var(--green);
}

.faq-item:nth-child(3) {
    background: var(--blue);
}

.faq-item:nth-child(4) {
    background: var(--yellow);
}

.faq-item:nth-child(5) {
    background: #e7e1ff;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
}

.faq-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #55605b;
    margin: 18px 0 0;
}

.contact {
    background: #fff1a8;
    padding: 45px 0 120px;
}

.contact-panel {
    border-radius: 24px;
    color: white;
    padding: 70px;
    min-height: 490px;
    display: flex;
    align-items: end;
}

.contact-panel h2 {
    font-size: clamp(3.2rem, 6.7vw, 6rem);
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 700;
}

.contact-panel p {
    max-width: 530px;
    line-height: 1.7;
    color: #f0f3ee;
}

.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.contact-links a {
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #fff9;
    padding-bottom: 5px;
}

.contact-areas-served {
    font-size: 11px;
    color: #e2e8f0;
    opacity: 0.9;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
}

.footer {
    background: #fff1a8;
    padding: 30px 0 100px;
    font-size: 12px;
}

.footer-areas-served {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #10151d;
    opacity: 0.82;
    display: inline-block;
}

/* ==========================================================================
   macOS Glass Dock Navigation & Apple-Style Animations
   ========================================================================== */

.dock {
    position: fixed;
    z-index: 1000;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 8px 12px 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    backdrop-filter: blur(28px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 24px 60px -10px rgba(18, 28, 45, 0.22),
        0 12px 28px -6px rgba(18, 28, 45, 0.12),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.05);
    user-select: none;
    -webkit-user-select: none;
}

/* Dock glossy reflection shelf */
.dock .dock-reflection {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 58%);
    border-radius: 0 0 16px 16px;
    pointer-events: none;
}

/* Dock Divider (Separating Apps and External Links) */
.dock-divider {
    width: 1px;
    height: 38px;
    margin: 0 3px 6px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.03) 100%);
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.7);
    border-radius: 1px;
    align-self: center;
}

/* Dock Item Link */
.dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transform-origin: bottom center;
    transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    will-change: transform;
    outline: none;
}

/* macOS 3D Squircle App Icon Box */
.dock-icon-box {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Attached 3D macOS PNG Icon */
.dock-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    transition: filter 0.25s ease, transform 0.25s ease;
    border-radius: 10px;
}

.dock-svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Floating Apple Glass Tooltip */
.dock-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    margin-bottom: 12px;
    background: rgba(24, 28, 36, 0.84);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "DM Sans", sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 4px 9px;
    border-radius: 7px;
    border: 0.5px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.28),
        0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0.2s;
    z-index: 200;
}

.dock-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(24, 28, 36, 0.84);
}

.dock-item:hover .dock-tooltip,
.dock-item:focus-visible .dock-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* macOS Active Indicator Dot */
.dock-dot {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background: #18191d;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}

.dock-item.active .dock-dot {
    transform: translateX(-50%) scale(1);
    opacity: 0.85;
}

/* Apple macOS Dock Launch Bounce Animation */
@keyframes macDockBounce {
    0% {
        transform: translateY(0) scale(1, 1);
    }

    22% {
        transform: translateY(-24px) scale(0.96, 1.08);
    }

    42% {
        transform: translateY(0) scale(1.06, 0.94);
    }

    62% {
        transform: translateY(-13px) scale(0.98, 1.03);
    }

    82% {
        transform: translateY(0) scale(1.02, 0.98);
    }

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

.dock-item.dock-bounce {
    animation: macDockBounce 0.75s cubic-bezier(0.28, 0.84, 0.42, 1) !important;
}

/* Subtle icon hover glow */
.dock-item:hover .dock-img {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3)) brightness(1.06);
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid #ffca38;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .section {
        padding: 85px 0;
    }

    .topbar {
        padding: 22px 0;
    }

    .topbar small {
        display: none;
    }

    .hero {
        min-height: 800px;
    }

    .hero-main {
        justify-content: flex-start;
        padding-top: 110px;
    }

    .hero h1 {
        font-size: clamp(3rem, 12vw, 4.8rem);
    }

    .hero-bottom {
        bottom: 105px;
    }

    .hero-copy {
        font-size: 13px;
        max-width: 250px;
    }

    .mini-stack {
        display: none;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head p {
        font-size: 15px;
    }

    .spark {
        font-size: 40px;
    }

    .projects {
        background-attachment: scroll;
    }

    .project-visual {
        height: 220px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 35px 25px;
        min-height: 480px;
    }

    .contact-panel h2 {
        font-size: 3rem;
    }

    .dock {
        gap: 6px;
        padding: 6px 10px 8px;
        border-radius: 18px;
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .dock-icon-box {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .dock-divider {
        height: 30px;
        margin: 0 1px 4px;
    }

    .footer {
        padding-bottom: 120px;
    }

    .service summary {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Gentle, progressive motion */
.js-motion .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.js-motion .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.hero-main .eyebrow,
.hero-main h1,
.hero-main .pill-btn {
    animation: hero-in 0.85s both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-main h1 {
    animation-delay: 0.14s;
}

.hero-main .pill-btn {
    animation-delay: 0.28s;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat,
.faq-item,
.service,
.mini {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.stat:hover,
.faq-item:hover,
.service:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px #23354518;
}

.plus {
    transition: transform 0.3s ease;
}

.service[open] .service-content,
.faq-item[open] p {
    animation: answer-in 0.32s ease both;
}

@keyframes answer-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ composition, inspired by notes pinned on graph paper */
#faqs {
    overflow: hidden;
}

.faq-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 1.75fr) minmax(0,
            1fr);
    gap: 24px;
    align-items: start;
    position: relative;
}

.faq-stage .section-head {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 16px 0 35px;
}

.faq-stage .section-head h2 {
    font-size: clamp(2.7rem, 4.3vw, 4.5rem);
}

.faq-stage .faq-item {
    width: 100%;
}

.faq-stage .faq-item:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
    margin-top: 55px;
}

.faq-stage .faq-item:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
    margin-top: 35px;
}

.faq-stage .faq-item:nth-of-type(3) {
    grid-column: 1;
    grid-row: 2;
}

.faq-stage .faq-item:nth-of-type(4) {
    grid-column: 2;
    grid-row: 2;
    max-width: 330px;
    justify-self: center;
    margin-top: 45px;
}

.faq-stage .faq-item:nth-of-type(5) {
    grid-column: 3;
    grid-row: 2;
}

.faq-stage .faq-item:nth-of-type(6) {
    grid-column: 2;
    grid-row: 3;
    max-width: 380px;
    justify-self: center;
}

.faq-stage .faq-item summary {
    min-height: 36px;
}

.faq-stage .faq-item .plus {
    width: 27px;
    height: 27px;
    font-size: 19px;
    border: 1px solid #1b253b33;
    background: transparent;
    font-weight: 400;
}

.faq-sticker {
    position: relative;
    padding-left: 28px;
}

.faq-sticker:before {
    content: "♧";
    display: none;
}

.faq-sticker .clip {
    position: absolute;
    left: 8px;
    top: -12px;
    font-size: 22px;
    color: #8b969d;
    transform: rotate(-25deg);
    line-height: 1;
    text-shadow: 1px 1px white;
}

.faq-decor {
    position: absolute;
    pointer-events: none;
    font-size: 45px;
    color: #f6d545;
    line-height: 1;
}

.faq-decor.star {
    left: -25px;
    top: 45%;
}

.faq-decor.wave {
    right: -20px;
    bottom: 12%;
    color: #8bc9ff;
    font-size: 50px;
}

@media (max-width: 991px) {
    .faq-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .faq-stage .section-head {
        grid-column: 1 / -1;
        grid-row: auto;
        margin: 0 auto 25px;
    }

    .faq-stage .faq-item:nth-of-type(n) {
        grid-column: auto;
        grid-row: auto;
        margin: 0;
        max-width: none;
    }
}

@media (max-width: 575px) {
    .stat {
        padding: 20px 14px;
    }

    .stat b {
        font-size: 26px;
    }

    .stat .stat-title {
        font-size: 14px;
    }

    .stat p {
        font-size: 12px;
    }

    .faq-stage {
        grid-template-columns: 1fr;
    }

    .faq-stage .section-head {
        grid-column: 1;
        margin-bottom: 15px;
    }

    .faq-decor {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-motion .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-main .eyebrow,
    .hero-main h1,
    .hero-main .pill-btn,
    .service[open] .service-content,
    .faq-item[open] p {
        animation: none;
    }
}

/* Refined studio details */
.topbar {
    position: relative;
    min-height: 100px;
}

.topbar .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.topbar-actions,
.topbar>.outline-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Apple Frosted Glass Sound Toggle */
.apple-sound-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), inset 0 1px 1.5px #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1e24;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    outline: none;
    padding: 0;
}

.apple-sound-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: #000;
}

.apple-sound-toggle:active {
    transform: scale(0.92);
}

.apple-sound-toggle.is-muted {
    color: #9aa5b1;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.35);
}

.stat {
    overflow: visible;
}

.stat:before {
    content: "📌";
    left: 15px;
    right: auto;
    top: -14px;
    font-size: 23px;
    transform: rotate(-35deg);
    filter: drop-shadow(0 3px 2px #0003);
}

.stat:after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #b9ed62 50%, #141a2a 50%);
    border-radius: 0 13px 0 0;
}

.project-wrap {
    position: relative;
}

.project-card {
    position: relative;
}

.project-card:after {
    content: "📎";
    position: absolute;
    top: -19px;
    left: 50%;
    font-size: 30px;
    transform: translateX(-50%) rotate(-20deg);
    filter: drop-shadow(0 3px 3px #0003);
    z-index: 2;
}

.project-label {
    padding-left: 29px;
}

.project-label:before {
    content: "📎";
    position: absolute;
    left: 6px;
    top: -15px;
    font-size: 22px;
    transform: rotate(-25deg);
}

.hero-main .pill-btn {
    position: relative;
}

.hero-main .pill-btn:before {
    content: "📌";
    position: absolute;
    top: -22px;
    left: 50%;
    font-size: 23px;
    transform: translateX(-50%) rotate(-20deg);
}

/* ==========================================================================
   macOS Cursor & Apple Glass Fluid Spring Cursor System
   ========================================================================== */

@media (pointer: fine) {

    /* macOS Authentic Arrow Pointer */
    body,
    html {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='macShadow' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeDropShadow dx='0.5' dy='1.5' stdDeviation='1' flood-color='%23000' flood-opacity='0.4'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M4.5 2.5 L4.5 19.5 L8.8 15.6 L12.2 22.2 L14.7 21 L11.4 14.6 L17.5 14.6 Z' fill='%23000000' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round' filter='url(%23macShadow)'/%3E%3C/svg%3E") 4 2, auto;
    }

    /* macOS Hand Pointer on Clickable Elements */
    a,
    button,
    [role="button"],
    summary,
    .pill-btn,
    .outline-btn,
    .dock-item,
    .project-card,
    .service summary,
    input[type="submit"],
    input[type="button"],
    input[type="checkbox"],
    input[type="radio"] {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='macHand' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeDropShadow dx='0.5' dy='1.5' stdDeviation='1' flood-color='%23000' flood-opacity='0.4'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M8 2.5 C7.2 2.5 6.5 3.2 6.5 4 L6.5 12 C6.1 11.6 5.4 11.4 4.8 11.6 C4 11.9 3.5 12.8 3.7 13.6 C4.1 15.5 5.8 18.5 8.2 20.6 C9.4 21.6 11 22 12.6 22 L14.5 22 C17.5 22 19.8 19.6 19.8 16.6 L19.8 11.8 C19.8 11 19.1 10.3 18.3 10.3 C18 10.3 17.7 10.4 17.5 10.6 C17.2 9.8 16.4 9.3 15.6 9.3 C15.3 9.3 15 9.4 14.7 9.5 C14.3 8.8 13.6 8.3 12.8 8.3 C12.5 8.3 12.2 8.4 12 8.5 L12 4 C12 3.2 11.3 2.5 10.5 2.5 C10.1 2.5 9.8 2.6 9.5 2.8 C9.2 2.6 8.9 2.5 8.5 2.5 Z' fill='%23000000' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round' filter='url(%23macHand)'/%3E%3C/svg%3E") 8 2, pointer !important;
    }

    /* macOS Text Selection I-Beam */
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    span,
    small,
    b,
    em,
    input[type="text"],
    input[type="email"],
    textarea {
        cursor: text;
    }

    /* Retain pointer on links/buttons inside text */
    a *,
    button *,
    [role="button"] *,
    .dock-item * {
        cursor: inherit;
    }
}

/* Apple Glass Fluid Spring Cursor (iPadOS / VisionOS / macOS Sonoma Style) */
.apple-glass-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    margin-left: -16px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    backdrop-filter: blur(8px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) scale(1);
    transition:
        opacity 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        width 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2),
        height 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2),
        margin 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    will-change: transform, opacity;
}

/* Center Glass Reticle Dot */
.apple-glass-cursor::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(26, 32, 44, 0.75);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hovering over clickable elements */
.apple-glass-cursor.is-hovering {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.16),
        0 0 18px rgba(255, 255, 255, 0.45),
        inset 0 1px 2.5px rgba(255, 255, 255, 0.95);
}

.apple-glass-cursor.is-hovering::after {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0.35;
}

.apple-glass-cursor.is-visible {
    opacity: 1;
}

/* Touch devices: hide custom follower */
@media (hover: none) or (pointer: coarse) {
    .apple-glass-cursor {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .topbar {
        min-height: auto;
        padding: 16px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .topbar .brand {
        position: static;
        left: auto;
        transform: none;
        margin-right: auto;
        text-align: left;
    }

    .projects-hero-brand,
    .about-hero-brand,
    .services-hero-brand,
    .contact-hero-brand {
        text-align: left;
        margin-bottom: 20px;
    }

    .topbar-actions,
    .topbar>.outline-btn {
        font-size: 10px;
        gap: 8px;
    }

    .topbar-actions .outline-btn {
        font-size: 10px;
        padding: 9px 12px;
    }

    .apple-sound-toggle {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .topbar small {
        display: none;
    }
}


/* service section */

/* Service Subtitle */
.service-subtitle {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 14px;
    color: inherit;
}

/* Quote Button */
.service-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
    padding: 13px 22px;

    border: 1px solid currentColor;
    border-radius: 6px;

    color: inherit;
    background: transparent;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
}

/* Arrow Animation */
.service-quote-btn span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.service-quote-btn:hover span {
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-subtitle {
        font-size: 17px;
    }

    .service-quote-btn {
        font-size: 13px;
        padding: 12px 18px;
        margin-top: 20px;
    }
}

/* ==========================================================================
   START YOUR PROJECT POPUP MODAL (STUDIO / macOS DIALOG)
   ========================================================================== */
.project-popup-modal .modal-backdrop {
    background-color: rgba(16, 21, 29, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-popup-modal.modal {
    --bs-modal-bg: transparent;
    --bs-modal-border-width: 0;
    z-index: 1060;
}

.project-modal-content {
    background: #ffffff;
    border-radius: 26px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 28px 75px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
    position: relative;
}

/* macOS Window Bar */
.project-modal-header {
    background: #f1f3f5;
    border-bottom: 1px solid #e2e8f0;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    user-select: none;
}

.mac-traffic-lights {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.mac-dot-close {
    background: #ff5f56;
    border: 1px solid #e0443e;
    cursor: pointer;
}

.mac-dot-close:hover {
    transform: scale(1.18);
    filter: brightness(0.9);
}

.mac-dot-min {
    background: #ffbd2e;
    border: 1px solid #dea123;
}

.mac-dot-max {
    background: #27c93f;
    border: 1px solid #1aab29;
}

.project-modal-window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-close-modal:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Modal Body */
.project-modal-body {
    padding: clamp(26px, 4.5vw, 42px);
    background: #ffffff;
    max-height: calc(88vh - 60px);
    overflow-y: auto;
}

.project-modal-intro {
    margin-bottom: 26px;
}

.project-modal-intro .sticker {
    margin-bottom: 14px;
}

.project-modal-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 700;
    margin: 14px 0 12px;
    color: #10151d;
}

.project-modal-desc {
    color: #4f5560;
    font-size: 15px;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
}

.modal-form-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

/* Modal Service Pills */
.modal-service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.modal-service-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.modal-service-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #10151d;
}

.modal-service-pill.active {
    background: #10151d;
    color: #ffffff;
    border-color: #10151d;
    box-shadow: 0 4px 12px rgba(16, 21, 29, 0.15);
}

.modal-service-pill i {
    font-size: 11px;
}

/* Modal Form Fields */
.modal-field-wrap {
    margin-bottom: 18px;
}

.modal-field-wrap label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: block;
}

.modal-form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #10151d;
    font-size: 0.94rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.modal-form-control:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.modal-form-control::placeholder {
    color: #9ca3af;
}

textarea.modal-form-control {
    resize: vertical;
    min-height: 95px;
}

select.modal-form-control,
select.form-control-custom {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    padding-right: 38px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.modal-form-control option,
select.form-control-custom option {
    background: #ffffff;
    color: #10151d;
    padding: 8px 12px;
}

/* Quick Location 1-Tap Pills (Global Modal & Contact Form) */
.quick-location-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.quick-loc-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.quick-loc-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #10151d;
}

.quick-loc-btn.active {
    background: #10151d;
    border-color: #10151d;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 21, 29, 0.15);
}

/* Modal Submit Button */
.modal-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    border-radius: 14px;
    background: #10151d;
    color: #ffffff;
    border: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 21, 29, 0.12);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.modal-submit-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.22);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

.modal-submit-btn i {
    transition: transform 0.2s ease;
}

.modal-submit-btn:hover i {
    transform: translate(2px, -2px);
}

/* Modal Success Banner */
.modal-form-success {
    display: none;
    align-items: flex-start;
    gap: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-top: 18px;
    animation: modalFadeIn 0.35s ease forwards;
}

.modal-form-success.is-visible {
    display: flex;
}

.modal-form-success i {
    color: #10b981;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-footer-note {
    color: #94a3b8;
    font-size: 0.8rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   UNIVERSAL LIVE DIGITAL GLITCH TYPOGRAPHY (All Main Headings)
   - Continuous subtle live glitch: non-stop digital hum, chromatic slice drift, micro-jitters
   - Increased intense live glitch on hover: aggressive displacement, high-frequency slicing,
     chromatic aberration bursts, skew, and interactive mouse-responsive shear
   ========================================================================== */

.glitch-heading {
  position: relative;
  cursor: pointer;
  user-select: none;
  isolation: isolate;
  transition: filter 0.25s ease, transform 0.15s ease;
}

/* Individual line or single heading */
.glitch-line,
.glitch-word,
.glitch-heading:not(:has(.glitch-line)) {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  isolation: isolate;
  animation: glitchLineIdle 2s infinite linear;
  transition: filter 0.25s ease, transform 0.15s ease;
}

/* Even lines alternate timing for organic asynchronous drift */
.glitch-line:nth-child(even),
.glitch-word:nth-child(even) {
  animation-duration: 2.3s;
}

/* Shared Pseudo-Element Slices for Chromatic Aberration */
.glitch-line::before,
.glitch-line::after,
.glitch-word::before,
.glitch-word::after,
.glitch-heading:not(:has(.glitch-line))::before,
.glitch-heading:not(:has(.glitch-line))::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

/* Cyan Channel Chromatic Slice (Continuous subtle idle) */
.glitch-line::before,
.glitch-word::before,
.glitch-heading:not(:has(.glitch-line))::before {
  color: #00d2ff;
  -webkit-text-fill-color: #00d2ff;
  opacity: 0.85;
  animation: glitchSlice1Idle 2.3s infinite linear;
}

/* Magenta Channel Chromatic Slice (Continuous subtle idle) */
.glitch-line::after,
.glitch-word::after,
.glitch-heading:not(:has(.glitch-line))::after {
  color: #ff0055;
  -webkit-text-fill-color: #ff0055;
  opacity: 0.85;
  animation: glitchSlice2Idle 1.8s infinite linear;
}

/* Even line channel flip for richer contrast */
.glitch-line:nth-child(even)::before,
.glitch-word:nth-child(even)::before {
  color: #ff0055;
  -webkit-text-fill-color: #ff0055;
  animation-duration: 1.9s;
}
.glitch-line:nth-child(even)::after,
.glitch-word:nth-child(even)::after {
  color: #00d2ff;
  -webkit-text-fill-color: #00d2ff;
  animation-duration: 2.5s;
}

/* --------------------------------------------------------------------------
   CONTINUOUS IDLE GLITCH KEYFRAMES:
   Subtle, smooth, non-stop digital micro-movements & asynchronous slicing
   -------------------------------------------------------------------------- */
@keyframes glitchLineIdle {
  0% { transform: translate(0, 0) skewX(0deg); }
  8% { transform: translate(-0.8px, 0.4px) skewX(-0.3deg); }
  16% { transform: translate(0.6px, -0.3px) skewX(0.2deg); }
  24% { transform: translate(0, 0) skewX(0deg); }
  35% { transform: translate(-1.2px, 0.5px) skewX(-0.5deg); }
  38% { transform: translate(1px, -0.6px) skewX(0.4deg); }
  42% { transform: translate(0, 0) skewX(0deg); }
  55% { transform: translate(0.8px, 0.3px) skewX(0.2deg); }
  65% { transform: translate(-0.6px, -0.4px) skewX(-0.2deg); }
  75% { transform: translate(0, 0) skewX(0deg); }
  84% { transform: translate(-1.5px, 0.8px) skewX(-0.7deg); }
  87% { transform: translate(1.4px, -0.7px) skewX(0.6deg); }
  90% { transform: translate(-0.8px, 0.3px) skewX(-0.3deg); }
  94% { transform: translate(0, 0) skewX(0deg); }
  100% { transform: translate(0, 0) skewX(0deg); }
}

@keyframes glitchSlice1Idle {
  0% { clip-path: inset(15% 0 72% 0); transform: translate(-1.5px, 0); opacity: 0.75; }
  10% { clip-path: inset(48% 0 38% 0); transform: translate(1.2px, 0.5px); opacity: 0.6; }
  20% { clip-path: inset(82% 0 6% 0); transform: translate(-1.8px, -0.5px); opacity: 0.85; }
  30% { clip-path: inset(5% 0 85% 0); transform: translate(1px, 0); opacity: 0.7; }
  42% { clip-path: inset(62% 0 25% 0); transform: translate(-2px, 0.8px); opacity: 0.9; }
  45% { clip-path: inset(28% 0 58% 0); transform: translate(1.6px, -0.6px); opacity: 0.85; }
  58% { clip-path: inset(75% 0 12% 0); transform: translate(-1.4px, 0); opacity: 0.65; }
  70% { clip-path: inset(35% 0 52% 0); transform: translate(1.8px, -0.4px); opacity: 0.8; }
  82% { clip-path: inset(12% 0 78% 0); transform: translate(-2.2px, 0.6px); opacity: 0.95; }
  85% { clip-path: inset(58% 0 28% 0); transform: translate(2px, -0.8px); opacity: 0.9; }
  95% { clip-path: inset(22% 0 65% 0); transform: translate(-1px, 0.3px); opacity: 0.7; }
  100% { clip-path: inset(15% 0 72% 0); transform: translate(-1.5px, 0); opacity: 0.75; }
}

@keyframes glitchSlice2Idle {
  0% { clip-path: inset(60% 0 26% 0); transform: translate(1.6px, -0.5px); opacity: 0.8; }
  12% { clip-path: inset(24% 0 64% 0); transform: translate(-1.4px, 0.4px); opacity: 0.65; }
  24% { clip-path: inset(8% 0 82% 0); transform: translate(2px, -0.6px); opacity: 0.85; }
  36% { clip-path: inset(70% 0 18% 0); transform: translate(-1.8px, 0); opacity: 0.7; }
  48% { clip-path: inset(38% 0 48% 0); transform: translate(2.2px, 0.7px); opacity: 0.9; }
  52% { clip-path: inset(85% 0 4% 0); transform: translate(-1.5px, -0.5px); opacity: 0.85; }
  64% { clip-path: inset(18% 0 70% 0); transform: translate(1.3px, 0); opacity: 0.65; }
  76% { clip-path: inset(52% 0 35% 0); transform: translate(-2px, 0.5px); opacity: 0.85; }
  88% { clip-path: inset(80% 0 10% 0); transform: translate(2.4px, -0.7px); opacity: 0.95; }
  92% { clip-path: inset(30% 0 58% 0); transform: translate(-1.6px, 0.6px); opacity: 0.9; }
  100% { clip-path: inset(60% 0 26% 0); transform: translate(1.6px, -0.5px); opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   HOVER STATE: INCREASED INTENSE LIVE GLITCH EFFECT
   Faster frequency, larger displacement, extreme slice shearing, and chromatic glow
   -------------------------------------------------------------------------- */
h1:hover .glitch-line,
h1:hover .glitch-word,
.glitch-heading:hover .glitch-line,
.glitch-heading:hover .glitch-word,
.glitch-heading.glitch-active .glitch-line,
.glitch-heading.glitch-active .glitch-word,
.glitch-line:hover,
.glitch-line.glitch-active,
.glitch-word:hover,
.glitch-word.glitch-active,
.glitch-heading:not(:has(.glitch-line)):hover,
.glitch-heading:not(:has(.glitch-line)).glitch-active {
  animation: glitchLineHover 0.22s infinite steps(2, start);
  filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.35));
}

h1:hover .glitch-line::before,
h1:hover .glitch-word::before,
.glitch-heading:hover .glitch-line::before,
.glitch-heading:hover .glitch-word::before,
.glitch-heading.glitch-active .glitch-line::before,
.glitch-heading.glitch-active .glitch-word::before,
.glitch-line:hover::before,
.glitch-line.glitch-active::before,
.glitch-word:hover::before,
.glitch-word.glitch-active::before,
.glitch-heading:not(:has(.glitch-line)):hover::before,
.glitch-heading:not(:has(.glitch-line)).glitch-active::before {
  opacity: 1;
  text-shadow: -2px 0 3px rgba(0, 210, 255, 0.85);
  animation: glitchSlice1Hover 0.26s infinite steps(1, start);
}

h1:hover .glitch-line::after,
h1:hover .glitch-word::after,
.glitch-heading:hover .glitch-line::after,
.glitch-heading:hover .glitch-word::after,
.glitch-heading.glitch-active .glitch-line::after,
.glitch-heading.glitch-active .glitch-word::after,
.glitch-line:hover::after,
.glitch-line.glitch-active::after,
.glitch-word:hover::after,
.glitch-word.glitch-active::after,
.glitch-heading:not(:has(.glitch-line)):hover::after,
.glitch-heading:not(:has(.glitch-line)).glitch-active::after {
  opacity: 1;
  text-shadow: 2px 0 3px rgba(255, 0, 85, 0.85);
  animation: glitchSlice2Hover 0.22s infinite steps(1, start);
}

.glitch-heading:active .glitch-line,
.glitch-heading:active .glitch-word,
.glitch-line:active,
.glitch-word:active,
.glitch-heading:not(:has(.glitch-line)):active {
  transform: scale(0.98) skewX(2deg);
}

@keyframes glitchLineHover {
  0% { transform: translate(0, 0) skewX(0deg); }
  15% { transform: translate(calc(-4px + var(--glitch-mouse-x, 0px)), 1.5px) skewX(-2deg); }
  30% { transform: translate(calc(5px + var(--glitch-mouse-x, 0px)), -2px) skewX(2.5deg) scaleY(1.03); }
  45% { transform: translate(calc(-3.5px + var(--glitch-mouse-x, 0px)), -1.5px) skewX(-1.5deg); }
  60% { transform: translate(calc(4px + var(--glitch-mouse-x, 0px)), 2px) skewX(1.8deg) scaleX(1.02); }
  75% { transform: translate(calc(-2px + var(--glitch-mouse-x, 0px)), 1px) skewX(-1deg); }
  90% { transform: translate(calc(3px + var(--glitch-mouse-x, 0px)), -1px) skewX(1.2deg); }
  100% { transform: translate(0, 0) skewX(0deg); }
}

@keyframes glitchSlice1Hover {
  0% { clip-path: inset(8% 0 74% 0); transform: translate(calc(-6px + var(--glitch-mouse-x, 0px)), -2px) skewX(-2deg); }
  14% { clip-path: inset(62% 0 15% 0); transform: translate(calc(7px + var(--glitch-mouse-x, 0px)), 2px) skewX(3deg); }
  28% { clip-path: inset(30% 0 48% 0); transform: translate(calc(-7px + var(--glitch-mouse-x, 0px)), 1px); }
  42% { clip-path: inset(85% 0 3% 0); transform: translate(calc(6px + var(--glitch-mouse-x, 0px)), -2.5px) skewX(-2deg); }
  57% { clip-path: inset(18% 0 60% 0); transform: translate(calc(-5px + var(--glitch-mouse-x, 0px)), 2px); }
  71% { clip-path: inset(48% 0 28% 0); transform: translate(calc(7px + var(--glitch-mouse-x, 0px)), -1px) skewX(2deg); }
  85% { clip-path: inset(2% 0 88% 0); transform: translate(calc(-6px + var(--glitch-mouse-x, 0px)), 2.5px); }
  100% { clip-path: inset(38% 0 40% 0); transform: translate(calc(5px + var(--glitch-mouse-x, 0px)), -1.5px); }
}

@keyframes glitchSlice2Hover {
  0% { clip-path: inset(52% 0 24% 0); transform: translate(calc(6px + var(--glitch-mouse-x, 0px)), 2px) skewX(2deg); }
  14% { clip-path: inset(12% 0 68% 0); transform: translate(calc(-7px + var(--glitch-mouse-x, 0px)), -2px) skewX(-3deg); }
  28% { clip-path: inset(78% 0 8% 0); transform: translate(calc(7px + var(--glitch-mouse-x, 0px)), 1.5px); }
  42% { clip-path: inset(22% 0 55% 0); transform: translate(calc(-6px + var(--glitch-mouse-x, 0px)), 2px) skewX(2deg); }
  57% { clip-path: inset(88% 0 2% 0); transform: translate(calc(5px + var(--glitch-mouse-x, 0px)), -2px); }
  71% { clip-path: inset(5% 0 80% 0); transform: translate(calc(-7px + var(--glitch-mouse-x, 0px)), 2.5px) skewX(-2deg); }
  85% { clip-path: inset(42% 0 38% 0); transform: translate(calc(6px + var(--glitch-mouse-x, 0px)), -1px); }
  100% { clip-path: inset(68% 0 16% 0); transform: translate(calc(-5px + var(--glitch-mouse-x, 0px)), 1.5px); }
}

/* --------------------------------------------------------------------------
   PERIODIC TRANSIENT SPIKE CLASS
   -------------------------------------------------------------------------- */
.glitch-heading.glitch-spike .glitch-line,
.glitch-line.glitch-spike,
.glitch-heading:not(:has(.glitch-line)).glitch-spike {
  animation: glitchSpikeBurst 0.16s steps(1, start) !important;
}
.glitch-heading.glitch-spike .glitch-line::before,
.glitch-line.glitch-spike::before,
.glitch-heading:not(:has(.glitch-line)).glitch-spike::before {
  opacity: 1 !important;
  clip-path: inset(10% 0 50% 0) !important;
  transform: translate(-8px, 1px) skewX(-3deg) !important;
}
.glitch-heading.glitch-spike .glitch-line::after,
.glitch-line.glitch-spike::after,
.glitch-heading:not(:has(.glitch-line)).glitch-spike::after {
  opacity: 1 !important;
  clip-path: inset(55% 0 15% 0) !important;
  transform: translate(8px, -1px) skewX(3deg) !important;
}

@keyframes glitchSpikeBurst {
  0% { transform: translate(-3px, -2px) skewX(-2deg); }
  50% { transform: translate(4px, 2px) skewX(3deg); }
  100% { transform: translate(0, 0) skewX(0deg); }
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  .glitch-heading,
  .glitch-line,
  .glitch-line::before,
  .glitch-line::after,
  .glitch-heading::before,
  .glitch-heading::after {
    animation: none !important;
  }
}

/* ==========================================================================
   CLIENT LOGO SCROLLING MARQUEE SECTION (Home Page)
   - Infinite 60fps marquee ticker with duplicate track loop
   - Left/Right edge fade gradients (Apple/Linear style)
   - Interactive toolbar options: Pause/Resume, Reverse Direction, Speed 1x/2x
   - Hover card micro-interactions & touch swipe support
   ========================================================================== */
.client-logo-section {
  position: relative;
  padding: 56px 0 52px;
  background: #fbfbf9;
  border-top: 1px solid rgba(16, 21, 29, 0.07);
  border-bottom: 1px solid rgba(16, 21, 29, 0.07);
  overflow: hidden;
}

/* Subtle background grid pattern */
.client-logo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 21, 29, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.75;
}

.client-logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

/* Playful Studio Badge */
.client-badge-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.client-studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #eef4ff;
  border: 1px solid #c7d9fc;
  border-radius: 9999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.06);
}

.client-studio-badge i {
  color: #2563eb;
  font-size: 0.84rem;
}

.client-header-title {
  font-size: 0.94rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.client-header-title b {
  color: #10151d;
  font-weight: 700;
}

/* Interactive Scrolling Options Toolbar */
.marquee-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  padding: 4px 6px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 21, 29, 0.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.marquee-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
}

.marquee-ctrl-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.marquee-ctrl-btn.active {
  background: #18191d;
  color: #ffffff;
}

.marquee-ctrl-btn i {
  font-size: 0.86rem;
}

.marquee-ctrl-divider {
  width: 1px;
  height: 16px;
  background: #e2e8f0;
  margin: 0 2px;
}

/* Full-Width Scrolling Viewport with Fade Edges */
.client-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  cursor: grab;
  user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.client-marquee-viewport.is-dragging {
  cursor: grabbing;
}

/* Marquee Track */
.client-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 34s linear infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Reverse Scroll Option */
.client-marquee-track.is-reverse {
  animation-direction: reverse;
}

/* Fast Speed Option */
.client-marquee-track.is-fast {
  animation-duration: 18s;
}

/* Slow Speed Option */
.client-marquee-track.is-slow {
  animation-duration: 48s;
}

/* Paused State */
.client-marquee-track.is-paused,
.client-marquee-viewport:hover .client-marquee-track:not(.is-forced-run) {
  animation-play-state: paused;
}

/* Individual Logo Group Container */
.client-marquee-group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 9px;
  flex-shrink: 0;
}

/* Individual Client Logo Item (Pure Image) */
.client-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 21, 29, 0.08);
  border-radius: 18px;
  min-height: 66px;
  min-width: 175px;
  box-shadow: 0 3px 10px -2px rgba(16, 24, 40, 0.04);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.24s ease, 
              border-color 0.24s ease,
              background 0.24s ease;
  user-select: none;
}

.client-logo-item:hover {
  transform: translateY(-4px) scale(1.03);
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 12px 28px -4px rgba(16, 24, 40, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.12);
}

/* Pure Client Logo Image (No text or separate icon) */
.client-logo-img {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) opacity(0.68);
  transition: filter 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.client-logo-item:hover .client-logo-img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Mobile Adaptations */
@media (max-width: 768px) {
  .client-logo-section {
    padding: 38px 0 32px;
  }
  .client-logo-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .marquee-controls {
    width: 100%;
    justify-content: space-between;
  }
  .client-logo-item {
    padding: 10px 20px;
    min-height: 54px;
    min-width: 140px;
    border-radius: 14px;
  }
  .client-logo-img {
    height: 28px;
    max-width: 125px;
  }
}
