*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --background: #F4F4F4;
    --foreground: #0a0a0a;
    --card: #ffffff;
    --surface: #f9f9fa;
    --border: #d4d4d4;
    --ring: #a1a1a1;
    --muted-foreground: #737373;
    --secondary: #f5f5f5;
    --primary: #171717;
    --hairline: #d1d5db;
    --overlay-soft: #f9f9fa80;
    --gold: #8a6d2f;
    --gold-soft: rgba(138, 109, 47, 0.14);
    --grad-glow-a: rgba(168, 85, 247, 0.07);
    --grad-glow-b: rgba(249, 115, 22, 0.06);
    --grad-glow-c: rgba(138, 109, 47, 0.06);
    --page-glow-a: rgba(99, 102, 241, 0.08);
    --page-glow-b: rgba(249, 115, 22, 0.06);
    --page-glow-c: rgba(138, 109, 47, 0.05);
    --colorfull: linear-gradient(288deg, #ff8000, #f0c 53.2394%, #04f);
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'Courier New', monospace;
    --font-bluu: 'Instrument Serif', Georgia, serif;
    --spacing-pagebuilder: 4rem;
    --radius: 0.625rem;
    --search-bg-a: #f0f0f2;
    --search-bg-b: #e8e8ec;
    --search-surface: rgba(0, 0, 0, 0.05);
    --search-border: rgba(0, 0, 0, 0.08);
    --search-border-soft: rgba(0, 0, 0, 0.05);
    --search-text: #0a0a0a;
    --search-text-soft: #525252;
    --search-text-mute: #737373;
    --search-tool-bg: rgba(0, 0, 0, 0.07);
    --search-item-bg: rgba(0, 0, 0, 0.04);
    --search-icon-bg: rgba(0, 0, 0, 0.1);
    --search-active-bg: rgba(0, 0, 0, 0.14);
    --search-scrollbar: rgba(0, 0, 0, 0.18);
    --search-input-bg: rgba(255, 255, 255, 0.7);
    --search-btn-bg: rgba(0, 0, 0, 0.1);
    --search-connect-bg: rgba(0, 0, 0, 0.06)
}

.dark {
    --background: #121212;
    --foreground: #fafafa;
    --card: #171717;
    --surface: #171717;
    --border: #262626;
    --ring: #737373;
    --muted-foreground: #a1a1a1;
    --secondary: #27272a;
    --primary: #e5e5e5;
    --hairline: rgba(255, 255, 255, 0.14);
    --overlay-soft: #ffffff0d;
    --gold: #c9a45c;
    --gold-soft: rgba(201, 164, 92, 0.16);
    --grad-glow-a: rgba(139, 92, 246, 0.1);
    --grad-glow-b: rgba(249, 115, 22, 0.07);
    --grad-glow-c: rgba(201, 164, 92, 0.07);
    --page-glow-a: rgba(139, 92, 246, 0.16);
    --page-glow-b: rgba(249, 115, 22, 0.12);
    --page-glow-c: rgba(201, 164, 92, 0.1);
    --search-bg-a: #1a1a1d;
    --search-bg-b: #1e1e22;
    --search-surface: rgba(255, 255, 255, 0.05);
    --search-border: rgba(255, 255, 255, 0.07);
    --search-border-soft: rgba(255, 255, 255, 0.05);
    --search-text: #ededed;
    --search-text-soft: #bebebe;
    --search-text-mute: #8f8f96;
    --search-tool-bg: rgba(255, 255, 255, 0.08);
    --search-item-bg: rgba(255, 255, 255, 0.04);
    --search-icon-bg: rgba(255, 255, 255, 0.09);
    --search-active-bg: rgba(255, 255, 255, 0.1);
    --search-scrollbar: rgba(255, 255, 255, 0.12);
    --search-input-bg: rgba(255, 255, 255, 0.06);
    --search-btn-bg: rgba(255, 255, 255, 0.1);
    --search-connect-bg: rgba(255, 255, 255, 0.06)
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0
}

body {
    position: relative;
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
    will-change: transform;
    filter: blur(0)
}

body::before {
    background: radial-gradient(70rem 45rem at 0% -10%, var(--page-glow-a), transparent 60%),
        radial-gradient(60rem 40rem at 100% 0%, var(--page-glow-b), transparent 58%),
        radial-gradient(55rem 38rem at 50% 110%, var(--page-glow-c), transparent 60%);
    opacity: 0.95
}

body::after {
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 35%, rgba(255, 255, 255, 0.03) 70%, transparent);
    opacity: 0.45;
    z-index: -1
}

html.dark body::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 35%, rgba(255, 255, 255, 0.025) 70%, transparent)
}

::selection {
    background: rgba(0, 0, 0, 0.1);
    color: #000
}

.dark ::selection {
    background: rgba(255, 255, 255, 0.1);
    color: #fff
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

button {
    cursor: pointer;
    font-family: inherit
}

/* ---- Page routing ---- */
.page {
    display: none
}

.page.active {
    display: block
}

.page-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    width: 100%;
    flex-shrink: 0
}

/* Soft ambient gradients on every page except home */
.page:not(#page-home) .page-section {
    background-color: var(--background);
    background-image:
        radial-gradient(900px 600px at 15% -10%, var(--grad-glow-a), transparent 60%),
        radial-gradient(700px 500px at 110% 20%, var(--grad-glow-b), transparent 55%),
        radial-gradient(800px 500px at 50% 110%, var(--grad-glow-c), transparent 60%)
}

.container {
    width: 100%;
    padding: 0 1rem
}

@media(min-width:640px) {
    .container {
        padding: 0 1.5rem
    }
}

@media(min-width:768px) {
    .container {
        padding: 0 2.5rem
    }
}

@media(min-width:1024px) {
    .container {
        padding: 0 3.5rem
    }
}

/* ---- Fonts ---- */
.font-mono {
    font-family: var(--font-mono)
}

.font-serif {
    font-family: var(--font-serif)
}

.font-bluu {
    font-family: var(--font-bluu);
    font-weight: 700
}

.text-colorfull {
    -webkit-text-fill-color: transparent;
    background: var(--colorfull);
    -webkit-background-clip: text;
    background-clip: text
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 6s ease infinite
}

@keyframes gradient-x {

    0%,
    100% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }
}

@keyframes ping {

    75%,
    100% {
        opacity: 0;
        transform: scale(2)
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

.animate-marquee {
    animation: marquee 40s linear infinite
}

.animate-ping {
    animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite
}

@keyframes text-reveal {
    0% {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%
    }

    100% {
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%
    }
}

@keyframes fade-slide-up {
    0% {
        opacity: 0;
        transform: translateY(22px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 0 40px rgba(255, 255, 255, 0.05)
    }

    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 0 60px rgba(255, 255, 255, 0.1)
    }
}

.hero-word {
    opacity: 0;
    transform: translateY(22px);
    display: inline-block
}

.hero-word.show {
    animation: fade-slide-up 0.6s ease forwards
}

.hero-word.delay-1 {
    animation-delay: 0.1s
}

.hero-word.delay-2 {
    animation-delay: 0.3s
}

.hero-word.delay-3 {
    animation-delay: 0.5s
}

.hero-word.delay-4 {
    animation-delay: 0.7s
}

.hero-word.delay-5 {
    animation-delay: 0.9s
}

.text-reveal-mask {
    -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
    mask-image: linear-gradient(to right, black 70%, transparent 100%);
    -webkit-mask-position: left;
    mask-position: left;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: text-reveal 1.2s ease-out 0.9s forwards
}

.font-code {
    font-family: 'Courier New', monospace;
    letter-spacing: -0.02em;
    background: rgba(99, 102, 241, 0.1);
    padding: 0 0.15em;
    border-radius: 4px;
    font-style: normal
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ---- Nav ---- */
.backdrop-blur {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    height: 90px;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent);
    mask-image: linear-gradient(to bottom, black 50%, transparent);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px)
}

@media(min-width:1024px) {
    .backdrop-blur {
        height: 100px
    }
}

header {
    position: fixed;
    top: 0.625rem;
    z-index: 5000;
    width: 100%
}

@media(min-width:768px) {
    header {
        top: 1rem
    }
}

body.greeting-on header {
    opacity: 0
}

header {
    transition: opacity 500ms ease
}

nav {
    display: flex;
    align-items: flex-start;
    padding: 0.375rem 0
}

nav .logo {
    color: var(--foreground)
}

nav .logo .logo-img {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain
}

.dark nav .logo,
.dark .greeting-bar .logo {
    background: radial-gradient(circle, var(--gold-soft), transparent 72%);
    border-radius: 999px;
    padding: 0.3rem 0.6rem
}

.nav-center {
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem
}

.nav-links {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: width 0.32s cubic-bezier(.22, 1, .36, 1), border-radius 0.32s cubic-bezier(.22, 1, .36, 1), box-shadow 0.32s ease;
    width: 480px;
    max-width: calc(100vw - 1rem);
    margin: 0 auto;
    overflow: hidden
}

.nav-links.more-open {
    width: 760px;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08)
}

/* Top row of nav links — always visible */
.nav-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0 0.25rem;
    height: 2.25rem;
    flex-shrink: 0
}

.dark .nav-links {
    background: rgba(20, 20, 22, 0.92)
}

.dark .nav-links.more-open {
    box-shadow: 0 8px 40px -8px rgba(0, 0, 0, 0.6)
}

.nav-links-row a {
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer
}

.nav-links-row a:hover,
.nav-links-row a.active {
    color: var(--foreground);
    background: rgba(0, 0, 0, 0.05)
}

.dark .nav-links-row a:hover,
.dark .nav-links-row a.active {
    background: rgba(255, 255, 255, 0.1)
}

/* The .nav-more is now inline inside .nav-links-row */
.nav-more {
    display: inline-flex;
    align-items: center
}

.nav-more-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--muted-foreground);
    transition: all 0.2s;
    cursor: pointer
}

.nav-more-trigger:hover,
.nav-more.open .nav-more-trigger {
    color: var(--foreground);
    background: rgba(0, 0, 0, 0.05)
}

.dark .nav-more-trigger:hover,
.dark .nav-more.open .nav-more-trigger {
    background: rgba(255, 255, 255, 0.1)
}

.nav-more-caret {
    transition: transform 0.3s cubic-bezier(.22, 1, .36, 1);
    opacity: 0.6
}

.nav-more.open .nav-more-caret {
    transform: rotate(180deg)
}

/* The menu is now INSIDE .nav-links, appearing below the nav row */
.nav-more-menu {
    /* Not absolutely positioned — flows inside the card */
    display: none;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    /* Animation via max-height grid trick */
    opacity: 0;
    max-height: 0;
    transition: opacity 0.28s cubic-bezier(.22, 1, .36, 1), max-height 0.32s cubic-bezier(.22, 1, .36, 1)
}

.nav-more.open~.nav-more-menu,
.nav-links.more-open .nav-more-menu {
    display: flex;
    opacity: 0;
    max-height: 0
}

.nav-links.more-open .nav-more-menu.is-open {
    opacity: 1;
    max-height: 600px
}

/* Separator between nav row and expanded panel */
.nav-more-menu-inner {
    border-top: 1px solid var(--border);
    margin: 0.375rem 0.125rem 0;
    padding: 1rem 0.5rem 0.75rem;
    display: flex;
    gap: 1.25rem
}

.dark .nav-more-menu-inner {
    border-top-color: rgba(255, 255, 255, 0.07)
}

/* Featured cards — HORIZONTAL layout: image left, text right */
/* Featured cards — vertical block layout inside dropdown menu */
.nav-more-featured {
    flex: 2.1;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    min-width: 0
}

/* Vertical feature card with full image background and bottom text */
.nav-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    height: 14.5rem;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(.22, 1, .36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08)
}

.nav-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12)
}

.dark .nav-feature-card {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3)
}

.dark .nav-feature-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45)
}

/* Image fills background */
.nav-feature-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    display: block;
    overflow: hidden;
    z-index: 1
}

.nav-feature-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2
}

.nav-feature-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease
}

.nav-feature-card:hover .nav-feature-bg img {
    transform: scale(1.03)
}

/* Text overlay at the bottom */
.nav-feature-content {
    position: relative;
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    z-index: 3;
    color: #fff
}

.nav-feature-content strong {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em
}

.nav-feature-content small {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* Remove default horizontal card hover arrow */
.nav-feature-content::after {
    display: none
}

/* Explore section — vertical column of horizontal list items */
.nav-more-side {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.125rem 0
}

.nav-side-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.875rem;
    border: 1px solid var(--border);
    background: var(--search-item-bg);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease
}

.dark .nav-side-link {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03)
}

.nav-side-link:hover {
    background: var(--search-active-bg);
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateX(2px)
}

.dark .nav-side-link:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(168, 85, 247, 0.25)
}

/* Round-square box for inline SVG icons */
.nav-side-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--foreground);
    flex-shrink: 0;
    transition: color 0.2s ease
}

.dark .nav-side-icon-box {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7)
}

.nav-side-link:hover .nav-side-icon-box {
    color: var(--foreground)
}

.dark .nav-side-link:hover .nav-side-icon-box {
    color: #fff
}

.nav-side-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0
}

.nav-side-text strong {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.15
}

.dark .nav-side-text strong {
    color: #fff
}

.nav-side-text small {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--muted-foreground);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

@media(max-width:767px) {
    .nav-links.more-open {
        width: calc(100vw - 1.5rem)
    }

    .nav-more-menu-inner {
        flex-direction: column;
        gap: 1.25rem
    }

    .nav-more-featured {
        flex-direction: column;
        gap: 0.75rem
    }

    .nav-feature-card {
        height: 10rem
    }

    .nav-more-side {
        padding: 0.25rem 0 0
    }
}

.book-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.875rem;
    padding: 0.625rem 1.25rem;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #f97316);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform
}

.book-call-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.5), 0 0 18px rgba(249, 115, 22, 0.35)
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.2s;
    font-size: 1rem;
    cursor: pointer
}

.theme-toggle:hover {
    background: var(--secondary);
    color: var(--foreground)
}

.theme-toggle .sun-icon {
    display: none
}

.theme-toggle .moon-icon {
    display: block
}

.dark .theme-toggle .sun-icon {
    display: block
}

.dark .theme-toggle .moon-icon {
    display: none
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem
}

.search-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    position: relative
}

.search-trigger:hover {
    background: var(--secondary);
    color: var(--foreground)
}

.search-trigger .search-close-icon {
    display: none
}

.search-trigger.is-open .search-icon {
    display: none
}

.search-trigger.is-open .search-close-icon {
    display: block
}

/* ---- Greeting Bar ---- */
.greeting-bar {
    position: fixed;
    top: 0.625rem;
    z-index: 5000;
    width: 100%;
    opacity: 1;
    transition: opacity 400ms ease, transform 400ms ease;
    animation: greeting-enter 500ms cubic-bezier(.16, 1, .3, 1)
}

@media(min-width:768px) {
    .greeting-bar {
        top: 1rem
    }
}

.greeting-bar nav {
    display: flex;
    align-items: center;
    padding: 0.375rem 0
}

.greeting-bar .logo {
    color: var(--foreground)
}

.greeting-bar .logo .logo-img {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain
}

.greeting-bar .nav-center {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.875rem
}

.greeting-msg {
    display: block;
    padding: 0.375rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
    letter-spacing: 0.02em;
    white-space: nowrap
}

@media(max-width: 767px) {
    .greeting-bar nav {
        justify-content: space-between;
    }

    .greeting-bar .nav-center {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.375rem;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 0.2rem 0.375rem 0.2rem 0.625rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .dark .greeting-bar .nav-center {
        background: rgba(20, 20, 22, 0.92);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .greeting-bar .nav-links {
        width: auto;
        max-width: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .greeting-msg {
        padding: 0 0.25rem 0 0;
        font-size: 0.78rem;
    }

    .greeting-bar .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .greeting-bar .search-trigger,
    .greeting-bar .theme-toggle {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: rgba(0, 0, 0, 0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--foreground);
        transition: all 0.2s ease;
    }

    .dark .greeting-bar .search-trigger,
    .dark .greeting-bar .theme-toggle {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.12);
    }

    /* ---- Premium theme toggle (mobile) ----
       Matches the glass-pill aesthetic of the "Tap here to search" message,
       with a soft purple→orange gradient on hover and a gentle press effect. */
    .greeting-bar .theme-toggle {
        width: 38px;
        height: 38px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--card);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .greeting-bar .theme-toggle:hover {
        transform: translateY(-1px);
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(249, 115, 22, 0.14));
        border-color: var(--ring);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .greeting-bar .theme-toggle:active {
        transform: scale(0.94);
    }

    .dark .greeting-bar .theme-toggle {
        background: var(--card);
        border-color: var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
}

.greeting-bar.fade {
    opacity: 0;
    transform: translateY(-8px)
}

@keyframes greeting-enter {
    0% {
        opacity: 0;
        transform: translateY(-8px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

/* =========================================
   SEARCH PANEL — aayushbharti.in style
   ========================================= */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease
}

.search-overlay.is-visible {
    opacity: 1;
    pointer-events: auto
}

/* Outer wrapper: positions bar + body together */
.search-panel {
    position: fixed;
    top: 6rem;
    left: 50%;
    z-index: 200;
    width: calc(100% - 2rem);
    max-width: 560px;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding-right: 0.125rem;
    scrollbar-width: thin;
    scrollbar-color: var(--search-scrollbar) transparent;
    transform: translateX(-50%) translateY(-12px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(.22, 1, .36, 1), transform 0.3s cubic-bezier(.22, 1, .36, 1)
}

.search-panel::-webkit-scrollbar {
    width: 5px
}

.search-panel::-webkit-scrollbar-track {
    background: transparent
}

.search-panel::-webkit-scrollbar-thumb {
    background: var(--search-scrollbar);
    border-radius: 999px
}

.search-panel.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1)
}

/* The panel inner is now just the body card below the bar */
.search-panel-inner {
    color: var(--search-text);
    transition: color 0.35s ease
}

/* ---- Top row: pill search bar + action buttons ---- */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem
}

/* Input pill */
.search-input-pill {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    height: 52px;
    padding: 0 1.125rem;
    background: var(--search-input-bg);
    border: 1px solid var(--search-border);
    border-radius: 999px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.2s, box-shadow 0.2s
}

.dark .search-input-pill {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1)
}

.search-input-pill:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06)
}

.search-bar-icon {
    flex-shrink: 0;
    color: var(--search-text-mute);
    opacity: 0.8
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--search-text);
    caret-color: #fff;
    transition: color 0.35s ease
}

.dark .search-input {
    color: #fff
}

.search-input::placeholder {
    color: var(--search-text-mute)
}

/* Tool buttons: chat, moon, close — circular dark pills */
.search-bar-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem
}

.search-tool {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: var(--search-btn-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--search-text-mute);
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px)
}

.dark .search-tool {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7)
}

.search-tool:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff
}

/* ---- Results body card ---- */
.search-body {
    background: rgba(248, 248, 250, 0.6);
    border: 1px solid var(--search-border);
    border-radius: 1rem;
    padding: 1.125rem 1rem;
    box-shadow: 0 8px 40px -10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    transition: background 0.35s ease, border-color 0.35s ease
}

.dark .search-body {
    background: rgba(22, 22, 26, 0.5);
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 48px -8px rgba(0, 0, 0, 0.7)
}

.search-section+.search-section {
    margin-top: 1.25rem
}

/* Section titles with trailing line */
.search-section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--search-text-mute);
    margin-bottom: 0.625rem;
    white-space: nowrap
}

.search-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--search-border);
    opacity: 0.8
}

/* Recent chips row */
.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem
}

.search-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.875rem;
    border-radius: 999px;
    border: 1px solid var(--search-border);
    background: var(--search-surface);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--search-text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s
}

.dark .search-chip {
    color: rgba(255, 255, 255, 0.8)
}

.search-chip:hover {
    background: var(--search-active-bg);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--search-text)
}

.search-chip.active {
    background: var(--search-active-bg);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--search-text)
}

/* ---- Pages 2-column grid ---- */
.search-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.125rem;
    scrollbar-width: thin;
    scrollbar-color: var(--search-scrollbar) transparent
}

.search-results::-webkit-scrollbar {
    width: 5px
}

.search-results::-webkit-scrollbar-track {
    background: transparent
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--search-scrollbar);
    border-radius: 999px
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s
}

.search-result-item:hover,
.search-result-item.is-highlighted {
    background: var(--search-active-bg)
}

.dark .search-result-item:hover,
.dark .search-result-item.is-highlighted {
    background: rgba(255, 255, 255, 0.07)
}

/* Active/highlighted item — dark filled pill with white dot */
.search-result-item.is-highlighted {
    background: rgba(0, 0, 0, 0.13)
}

.dark .search-result-item.is-highlighted {
    background: rgba(255, 255, 255, 0.1)
}

.search-result-item.is-highlighted .search-result-title {
    font-weight: 700
}

/* Circular dark icon badge */
.search-result-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    background: var(--search-icon-bg);
    color: var(--search-text-soft);
    border: none
}

.dark .search-result-icon {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.7)
}

.search-result-item:hover .search-result-icon,
.search-result-item.is-highlighted .search-result-icon {
    color: var(--search-text)
}

.dark .search-result-item:hover .search-result-icon,
.dark .search-result-item.is-highlighted .search-result-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.14)
}

.search-result-info {
    flex: 1;
    min-width: 0
}

.search-result-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--search-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.dark .search-result-title {
    color: #fff
}

.search-result-desc {
    font-size: 0.7rem;
    color: var(--search-text-mute);
    margin-top: 0.0625rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden
}

/* White dot indicator for active item (right side) */
.search-result-item.is-highlighted::after {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--search-text);
    margin-left: auto
}

.dark .search-result-item.is-highlighted::after {
    background: #fff
}

/* Hide badge, use simpler grid style */
.search-result-badge {
    display: none
}

/* ---- Connect section — horizontal social pills ---- */
.search-connect-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap
}

.search-connect-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1px solid var(--search-border);
    background: var(--search-connect-bg);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--search-text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap
}

.dark .search-connect-pill {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.07)
}

.search-connect-pill:hover {
    background: var(--search-active-bg);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--search-text)
}

.dark .search-connect-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff
}

.search-connect-pill .arrow {
    font-style: normal;
    opacity: 0.5;
    transition: opacity 0.18s, transform 0.18s
}

.search-connect-pill:hover .arrow {
    opacity: 1;
    transform: translate(1px, -1px)
}

/* ---- Empty state ---- */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--search-text-soft)
}

.search-empty svg {
    opacity: 0.3;
    color: var(--search-text-mute)
}

/* ---- Footer ---- */
.search-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--search-border);
    font-size: 0.6875rem;
    color: var(--search-text-mute)
}

.search-footer kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    border-radius: 6px;
    border: 1px solid var(--search-border);
    background: var(--search-tool-bg);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    margin: 0 0.125rem;
    color: var(--search-text-soft)
}

@media(max-width:639px) {
    .search-panel {
        top: 5.5rem;
        max-height: calc(100vh - 6.5rem);
        width: calc(100% - 1.25rem)
    }

    .search-results {
        grid-template-columns: 1fr
    }

    .search-footer span:not(:first-child) {
        display: none
    }
}

/* ---- Hero ---- */
.hero {
    position: sticky;
    top: 0;
    overflow: hidden;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    background: var(--background);
    z-index: 1
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    min-width: 300px;
    max-width: min(92%, 1000px);
    max-height: 70vh;
    border-radius: 2rem;
    z-index: 0;
    pointer-events: none;
    object-fit: cover;
    aspect-ratio: 16/9;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6), 0 0 160px rgba(0, 0, 0, 0.3)
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 35%, var(--background) 100%)
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--foreground)
}

.hero .hero-badge {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7)
}

.hero .hero-badge:hover {
    border-color: rgba(255, 255, 255, 0.5)
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 12vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 400;
    text-align: center;
    color: #fff
}

@media(min-width:640px) {
    .hero-heading {
        font-size: clamp(3.2rem, 8vw, 5.5rem);
        line-height: 0.98
    }
}

@media(max-width:767px) {
    .reveal,
    .reveal.visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important
    }

    .hero {
        height: 100svh;
        padding: 1.25rem 0 2rem;
        justify-content: flex-start;
        padding-top: 5.5rem
    }

    .hero-video {
        min-width: 220px;
        max-width: min(95%, 720px);
        max-height: 58svh;
        border-radius: 1.25rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28)
    }

    .hero-heading {
        font-size: clamp(2.3rem, 8vw, 3.2rem);
        line-height: 1.02
    }

    .hero-subtitle-wrap {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.8rem
    }

    .hero-subtitle-line {
        display: none
    }

    .hero-content {
        width: min(100%, 34rem);
        padding: 0 1rem
    }

    .sticky-card {
        margin-top: -92svh
    }
}

.hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.7)
}

.hero-subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem
}

.hero-subtitle-line {
    display: block;
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent)
}

.hero-subtitle-line:last-child {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent)
}

@media(min-width:640px) {
    .hero-subtitle-line {
        width: 3rem
    }
}

/* ---- Hero Grain Texture ---- */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay
}

.hero-grain::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: grain-shift 8s steps(4) infinite
}

@keyframes grain-shift {
    0% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(-5%, -5%)
    }

    50% {
        transform: translate(-10%, 5%)
    }

    75% {
        transform: translate(5%, -10%)
    }

    100% {
        transform: translate(0, 0)
    }
}

/* ---- Hero Ambient Orbs ---- */
.hero-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    will-change: transform
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: -10%;
    left: -10%;
    animation: orb-float-1 20s ease-in-out infinite
}

.orb-2 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    bottom: -5%;
    right: -5%;
    animation: orb-float-2 25s ease-in-out infinite
}

.orb-3 {
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, #f59e0b, transparent 70%);
    top: 40%;
    right: 20%;
    animation: orb-float-3 18s ease-in-out infinite;
    opacity: 0.08
}

@keyframes orb-float-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    33% {
        transform: translate(5%, 8%) scale(1.05)
    }

    66% {
        transform: translate(-3%, 4%) scale(0.95)
    }
}

@keyframes orb-float-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    33% {
        transform: translate(-6%, -5%) scale(1.08)
    }

    66% {
        transform: translate(4%, -8%) scale(0.92)
    }
}

@keyframes orb-float-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(8%, -10%) scale(1.1)
    }
}

/* ---- Hero Corner Accents ---- */
.hero-accent {
    position: absolute;
    z-index: 3;
    width: 2rem;
    height: 2rem;
    border-color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    opacity: 0;
    animation: accent-fade 0.8s ease 1.8s forwards
}

.hero-accent.top-left {
    top: 2rem;
    left: 2rem;
    border-top: 1px solid;
    border-left: 1px solid
}

.hero-accent.top-right {
    top: 2rem;
    right: 2rem;
    border-top: 1px solid;
    border-right: 1px solid
}

.hero-accent.bottom-left {
    bottom: 2rem;
    left: 2rem;
    border-bottom: 1px solid;
    border-left: 1px solid
}

.hero-accent.bottom-right {
    bottom: 2rem;
    right: 2rem;
    border-bottom: 1px solid;
    border-right: 1px solid
}

@media(min-width:768px) {
    .hero-accent {
        width: 3rem;
        height: 3rem
    }

    .hero-accent.top-left {
        top: 3rem;
        left: 3rem
    }

    .hero-accent.top-right {
        top: 3rem;
        right: 3rem
    }

    .hero-accent.bottom-left {
        bottom: 3rem;
        left: 3rem
    }

    .hero-accent.bottom-right {
        bottom: 3rem;
        right: 3rem
    }
}

@keyframes accent-fade {
    to {
        opacity: 1
    }
}

/* ---- Premium Badge ---- */
.hero .hero-badge {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.25rem 0.25rem 0.75rem;
    gap: 0.625rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-width: 1px;
    font-size: 0.6875rem;
    letter-spacing: 0.04em
}

.hero .hero-badge:hover {
    border-color: rgba(255, 255, 255, 0.3)
}

.hero .hero-badge>span:last-child {
    font-weight: 500
}

/* ---- Premium Heading ---- */
.hero-heading {
    font-weight: 350;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.04)
}

.hero-word {
    will-change: transform, opacity
}

.hero-word.show {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(.16, 1, .3, 1)
}

/* ---- Premium "www" ---- */
.hero-word .font-code {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 0 0.2em 0.05em;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.06)
}

/* ---- Premium "wow" gradient ---- */
.hero-word .text-colorfull {
    background-size: 300% 300%;
    filter: drop-shadow(0 0 20px rgba(255, 128, 0, 0.1)) drop-shadow(0 0 40px rgba(255, 0, 204, 0.05))
}

/* ---- Premium subtitle ---- */
.hero .hero-subtitle {
    font-size: 0.6875rem;
    letter-spacing: 0.32em;
    font-weight: 400;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05)
}

/* ---- Sticky Card Scroll ---- */
.sticky-card {
    position: relative;
    z-index: 2;
    margin-top: -100vh;
    min-height: 100vh;
    will-change: transform;
    transform: translateY(100vh)
}

/* ---- Device Marquee ---- */
.device-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    z-index: 1;
    flex-shrink: 0
}

.dark .device-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent)
}

.device-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    animation: marquee 40s linear infinite;
    width: max-content
}

.device-card-el {
    flex-shrink: 0;
    width: 120px;
    height: 178px;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    padding: 0.5rem;
    background: var(--card);
    opacity: 0.05;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease
}

@media(min-width:640px) {
    .device-card-el {
        width: 170px;
        height: 252px
    }
}

.device-card-el.show {
    opacity: 1;
    transform: translateY(0)
}

.device-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.06);
    background: var(--secondary);
    box-shadow: inset 0 2px 1.5px 0 rgba(0, 0, 0, 0.1)
}

.dark .device-card-inner {
    border-color: rgba(255, 255, 255, 0.06);
    background: var(--surface)
}

/* ---- Section Headings ---- */
.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.75rem
}

.section-heading .label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground)
}

.section-heading h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 500
}

.work-heading {
    width: 100%;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.25rem
}

.work-heading .label {
    margin-bottom: 0.25rem
}

.work-heading h2 {
    margin: 0
}

.section {
    padding: 2rem 1rem
}

@media(min-width:640px) {
    .section {
        padding: 2rem 1.5rem
    }
}

@media(min-width:768px) {
    .section {
        padding: 2rem 2.5rem
    }
}

@media(min-width:1024px) {
    .section {
        padding: 2rem 3.5rem
    }
}

/* ---- Agent Bento Grid ---- */
.agent-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem
}

@media(min-width:768px) {
    .agent-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:1024px) {
    .agent-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

.agent-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    min-height: 22rem
}

.dark .agent-card {
    background: rgba(23, 23, 23, 0.15);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.05)
}

.agent-card.col-span-2 {
    grid-column: span 1
}

@media(min-width:768px) {
    .agent-card.col-span-2 {
        grid-column: span 2
    }
}

.agent-card-header {
    padding: 1rem 1rem 0;
    z-index: 2;
    position: relative
}

.agent-card-title {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.01em;
    margin-bottom: 0.125rem
}

.agent-card-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.4;
    max-width: 90%
}

.agent-card-visual {
    flex: 1;
    position: relative;
    margin-top: 0.5rem;
    min-height: 160px
}

.agent-card-visual>div {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border-radius: 0.875rem;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    margin: 0 0.5rem 0.5rem;
    width: calc(100% - 1rem)
}

.globe-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    touch-action: none;
}

.globe-visual canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Globe DOM Marker Chips & Tooltips */
.globe-marker-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.globe-marker-chip {
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease-out;
    will-change: transform, opacity;
}

.globe-marker-avatar-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

.globe-marker-chip.is-hovered .globe-marker-avatar-wrap {
    transform: scale(1.35);
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(77, 166, 255, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.globe-marker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.globe-marker-badge {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 9999px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.globe-marker-chip.is-hovered .globe-marker-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Globe loading state — text hint while three/textures load */
.globe-visual.globe-loading::after {
    content: 'Loading globe\2026';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
    pointer-events: none
}

.card-globe .agent-card-visual {
    min-height: 280px;
}

@media (max-width: 767px) {
    .card-globe .agent-card-visual {
        min-height: 260px;
    }
}

/* Globe Visual Fallback (WebGL or CDN unavailable) */
.globe-visual.globe-fallback {
    display: flex;
    align-items: center;
    justify-content: center
}

.globe-visual.globe-fallback::before {
    content: '';
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 40%),
        radial-gradient(circle at 34% 42%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
        radial-gradient(circle at 68% 68%, rgba(30, 58, 138, 0.5), rgba(30, 58, 138, 0) 60%),
        radial-gradient(circle at 50% 50%, #60a5fa, #2563eb 55%, #1e40af);
    box-shadow: inset -16px -12px 36px rgba(0, 0, 0, 0.35), 0 0 36px rgba(96, 165, 250, 0.35)
}

.globe-visual.globe-fallback::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80%;
    aspect-ratio: 2 / 1;
    border-radius: 50%;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at 0% 50%, #94a3b8 2.5px, rgba(148, 163, 184, 0) 2.5px);
    animation: globe-fall-orbit 16s linear infinite
}

@keyframes globe-fall-orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg)
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

@media (prefers-reduced-motion: reduce) {
    .globe-visual.globe-fallback::after {
        animation: none
    }
}

/* ---- Tech Stack Carousel (Card 2) ---- */
.stack-carousel {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.375rem 0.375rem 0.75rem
}

.stack-row {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent)
}

.stack-track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    padding-right: 0.5rem;
    will-change: transform;
    animation: stack-scroll 36s linear infinite
}

@keyframes stack-scroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.stack-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 3.5rem;
    flex-shrink: 0
}

.stack-chip-img {
    width: 24px;
    height: 24px;
    object-fit: contain
}

.stack-chip-name {
    font-size: 0.4375rem;
    font-family: var(--font-mono);
    color: var(--muted-foreground);
    text-align: center;
    white-space: nowrap;
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis
}

/* ---- Feed Visual (Card 3) ---- */
.feed-visual {
    background: var(--secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.feed-item {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 0.5rem 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
    cursor: default
}

.feed-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    box-shadow: inset 0 0.5px 0 0 rgba(255, 255, 255, 0.6), 0 1px 2px 0 rgba(0, 0, 0, 0.08)
}

.feed-item-icon svg {
    width: 12px;
    height: 12px
}

.feed-item-info {
    flex: 1;
    min-width: 0
}

.feed-item-name {
    font-size: 0.625rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.375rem
}

.feed-item-action {
    font-size: 0.5625rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.feed-dots {
    position: absolute;
    bottom: 0.375rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.25rem
}

.feed-dot {
    height: 3px;
    border-radius: 999px;
    background: var(--foreground);
    transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1)
}

/* ---- Highlight Grid (Card 4) ---- */
.hg-visual {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center
}

.hg-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    overflow: hidden
}

.dark .hg-grid {
    border-color: rgba(255, 255, 255, 0.2)
}

.hg-highlight {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.22));
    transition: transform 250ms ease, width 250ms ease, height 250ms ease, background-color 250ms ease
}

.hg-row {
    display: flex;
    flex: 1;
    min-height: 0
}

.hg-row+.hg-row {
    border-top: 1px solid rgba(0, 0, 0, 0.15)
}

.dark .hg-row+.hg-row {
    border-top-color: rgba(255, 255, 255, 0.2)
}

.hg-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    cursor: default
}

.hg-cell+.hg-cell {
    border-left: 1px solid rgba(0, 0, 0, 0.15)
}

.dark .hg-cell+.hg-cell {
    border-left-color: rgba(255, 255, 255, 0.2)
}

.hg-cell-label {
    position: relative;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: clamp(0.5rem, 2vw, 0.8125rem);
    font-weight: 500;
    text-transform: uppercase;
    color: #525252;
    text-align: center;
    padding: 0 0.5rem;
    line-height: 1.35;
    transition: color 200ms ease
}

.dark .hg-cell-label {
    color: rgba(255, 255, 255, 0.7)
}

.hg-cell-label.active {
    color: #fff
}

/* ---- Tools Visual (Card 5) ---- */
.crosshair-visual {
    position: relative;
    overflow: hidden;
    background: var(--secondary)
}

.crosshair-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.crosshair-words {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    flex-wrap: wrap;
    text-align: center;
    pointer-events: none;
    padding: 0.75rem;
    z-index: 1
}

.crosshair-word {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--foreground);
    pointer-events: auto;
    cursor: default;
    will-change: filter
}

.crosshair-word-second {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.9s cubic-bezier(.22, 1, .36, 1), transform 0.9s cubic-bezier(.22, 1, .36, 1);
    -webkit-text-fill-color: transparent;
    background: var(--colorfull);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-x 6s ease infinite
}

.crosshair-visual.is-hover .crosshair-word-second {
    opacity: 1;
    transform: translateY(0)
}

.crosshair-line {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    background: var(--foreground);
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(.22, 1, .36, 1);
    will-change: transform
}

.crosshair-line-h {
    width: 100%;
    height: 1px
}

.crosshair-line-v {
    width: 1px;
    height: 100%
}

/* ---- Studio Statement (sticky masked reveal, kona-verse style) ---- */
.studio-wrapper {
    position: relative;
    height: 250vh;
    width: 100%
}

.studio-statement {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    width: 100%;
    background: var(--background);
    z-index: 5;
    overflow: hidden
}

.studio-line-main {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(2.25rem, 6.5vw, 4.75rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--foreground);
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.35em;
    row-gap: 0.2em
}

.studio-line-sub {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    letter-spacing: 0.02em;
    color: var(--muted-foreground);
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.2em
}

.studio-word {
    display: inline-block;
    margin: 0 0.18em;
    opacity: 0.12;
    transform: translateY(14px) scale(0.95);
    filter: blur(4px);
    will-change: opacity, transform, filter
}

.studio-word.studio-em {
    -webkit-text-fill-color: transparent;
    background: var(--colorfull);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-x 6s ease infinite
}

/* ---- Social Links ---- */
.about-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: start
}

@media(max-width:899px) {
    .about-wrap {
        grid-template-columns: 1fr
    }
}

.about-music {
    display: flex;
    align-items: center;
    justify-content: center
}

@media(max-width:899px) {
    .about-music {
        padding: 1.5rem 0
    }
}

.music-player {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center
}

.music-disc {
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 16rem;
    height: 16rem
}

@media(min-width:768px) {
    .music-disc {
        width: 20rem;
        height: 20rem
    }
}

.tonearm {
    position: absolute;
    z-index: 20;
    top: -5%;
    right: -10%;
    width: 60%;
    height: 15%;
    transform-origin: top right;
    transform: rotate(10deg);
    pointer-events: none;
    transition: transform 0.5s ease-in-out
}

.music-disc.is-playing .tonearm {
    transform: rotate(-20deg)
}

.tonearm-base {
    position: absolute;
    top: 0;
    right: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #a1a1aa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translate(50%, -50%);
    border: 4px solid #e4e4e7;
    z-index: 10
}

@media(min-width:768px) {
    .tonearm-base {
        width: 2.5rem;
        height: 2.5rem
    }
}

.dark .tonearm-base {
    background: #52525b;
    border-color: #27272a
}

.tonearm-stick {
    position: absolute;
    top: 0;
    right: 10px;
    width: 90%;
    height: 0.5rem;
    background: #a1a1aa;
    border-radius: 9999px;
    transform-origin: right;
    transform: rotate(-12deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-start
}

@media(min-width:640px) {
    .tonearm-stick {
        right: 15px
    }
}

@media(min-width:768px) {
    .tonearm-stick {
        height: 0.75rem
    }
}

.dark .tonearm-stick {
    background: #71717a
}

.tonearm-needle {
    width: 1rem;
    height: 1rem;
    background: #27272a;
    border-radius: 9999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%)
}

@media(min-width:768px) {
    .tonearm-needle {
        width: 1.25rem;
        height: 1.25rem
    }
}

.dark .tonearm-needle {
    background: #d4d4d8
}

.record {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: #000;
    animation: record-spin 4s linear infinite
}

@media(min-width:640px) {
    .record {
        border-width: 8px
    }
}

.dark .record {
    border-color: rgba(255, 255, 255, 0.1)
}

.music-disc:not(.is-playing) .record {
    animation-play-state: paused
}

.record-art {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.9
}

.record-grooves {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 21%, transparent 22%, transparent 35%, rgba(0, 0, 0, 0.5) 36%, transparent 37%, transparent 50%, rgba(0, 0, 0, 0.3) 51%, transparent 52%, transparent 65%, rgba(0, 0, 0, 0.6) 66%, transparent 67%, transparent 80%, rgba(0, 0, 0, 0.4) 81%, transparent 82%)
}

.record-glare {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.2) 100%)
}

.record-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 33.333%;
    height: 33.333%;
    border-radius: 9999px;
    background: #18181b;
    border: 1px solid #3f3f46;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center
}

.record-hole {
    width: 0.75rem;
    height: 0.75rem;
    background: #d4d4d8;
    border-radius: 9999px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.4)
}

@media(min-width:768px) {
    .record-hole {
        width: 1rem;
        height: 1rem
    }
}

.dark .record-hole {
    background: #52525b
}

@keyframes record-spin {
    to {
        transform: rotate(360deg)
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    transition: all 0.2s
}

.social-link:hover {
    color: var(--foreground);
    background: var(--secondary);
    border-color: var(--ring)
}

/* ---- Services Page ---- */
#page-services .section-heading {
    align-items: center;
    text-align: center;
    margin: 2.5rem auto 0;
    max-width: 46rem
}

/* ---- About Page ---- */
#page-about .section-heading {
    align-items: center;
    text-align: center;
    margin: 2.5rem auto 0;
    max-width: 46rem
}

#page-about .section-heading h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 500
}

.about-subtitle {
    margin-top: 0.6rem;
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--muted-foreground);
    text-align: center
}

.about-approach-title {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--foreground)
}

/* ---- Interactive Book (React Bits port) ---- */
.about-book {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem
}

.about-socials {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 1.5s cubic-bezier(0.25, 0, 0, 1)
}

.about-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--secondary);
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color .3s, border-color .3s, transform .3s, box-shadow .3s
}

.about-social:hover {
    color: var(--foreground);
    border-color: var(--foreground);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12)
}

@media(max-width:767px) {
    .about-book {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 0.5rem
    }

    .about-book-hint {
        inset: auto 0 0 0;
        justify-content: center;
        align-items: flex-end;
        font-size: 1.2rem;
        letter-spacing: 0.16em;
        opacity: 0.45;
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0 0 0.5rem
    }

    .about-socials {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center
    }

    .book--open .about-socials {
        transform: translateX(2.5rem)
    }
}

.book {
    position: relative;
    z-index: 2;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center
}

.book-inner {
    position: relative;
    width: 350px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.25, 0, 0, 1)
}

.book--open .book-inner {
    transform: translateX(175px)
}

.book--open .about-socials {
    transform: translateX(-11rem)
}

.book-cover {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 1.5s cubic-bezier(0.25, 0, 0, 1), z-index 0s linear 0.6s
}

.book:not(.book--open) .book-cover:hover {
    transform: rotateY(-15deg)
}

.book--open .book-cover {
    transform: rotateY(-180deg);
    transition: transform 1.5s cubic-bezier(0.25, 0, 0, 1), z-index 0s linear 0.9s
}

.book-cover-front {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0 0.375rem 0.375rem 0.125rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background-size: cover;
    background-position: center;
    transform: translateZ(0.5px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden
}

.book-cover-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 50%, transparent)
}

.book-cover-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1rem;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.4;
    z-index: 1
}

.book-cover-meta {
    position: absolute;
    bottom: 1rem;
    left: 0.75rem;
    right: 0.75rem;
    color: #fff;
    z-index: 1
}

.book-cover-meta h3 {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem
}

.book-cover-meta p {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 0.25rem
}

.book-cover-inner {
    position: absolute;
    inset: 0;
    border-radius: 0.125rem 0.375rem 0.375rem 0;
    background: #fdfbf7;
    transform: rotateY(180deg) translateZ(0.5px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-right: 1px solid #e5e5e5;
    text-align: center
}

.book-cover-inner h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #3f3f46;
    margin-bottom: 0.5rem
}

.book-rule {
    width: 2rem;
    height: 1px;
    background: #d4d4d8;
    margin: 0 auto 0.75rem
}

.book-cover-inner p {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: #71717a;
    letter-spacing: 0.2em;
    text-transform: uppercase
}

.book-pages {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d
}

.book-page {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1), z-index 0s linear 0.3s
}

.book-page.is-flipped {
    transform: rotateY(-180deg)
}

.book-page-front,
.book-page-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #fdfbf7;
    overflow: hidden;
    cursor: pointer
}

.book-page-front {
    transform: translateZ(0.5px);
    border: 1px solid #f0f0f0;
    border-radius: 0 0.375rem 0.375rem 0.125rem;
    padding: 2rem 1.75rem
}

.book-page-back {
    transform: rotateY(180deg) translateZ(0.5px);
    border-right: 1px solid #e5e5e5;
    border-radius: 0.125rem 0.375rem 0.375rem 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.book-page-back span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 6rem;
    font-weight: 700;
    color: #000;
    opacity: 0.04
}

.book-page-num {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: #a1a1aa;
    text-align: right;
    margin-bottom: 1rem
}

.book-page-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    color: #3f3f46;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem
}

.book-page-text {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    line-height: 1.65;
    color: #52525b;
    text-align: justify;
    hyphens: auto
}

.book-page-front::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent);
    pointer-events: none
}

.book-backcover {
    position: absolute;
    inset: 0;
    background: #fdfbf7;
    border: 1px solid #e5e5e5;
    border-radius: 0 0.375rem 0.375rem 0.125rem;
    transform: translateZ(-1px);
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0.45
}

.book-backcover p {
    font-family: var(--font-serif);
    font-style: italic;
    color: #71717a
}

.book-restart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #52525b;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s
}

.book-restart:hover {
    background: #e4e4e7
}

.book-close {
    display: none;
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    z-index: 1000;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #27272a;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s
}

.book-close:hover {
    background: #fff
}

.dark .book-close {
    background: rgba(38, 38, 38, 0.7);
    color: #fafafa;
    border-color: rgba(255, 255, 255, 0.12)
}

.book-hint {
    position: absolute;
    bottom: -2.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    letter-spacing: 0.02em;
    color: var(--gold);
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 0 28px var(--gold-soft);
    animation: book-hint-float 2.2s ease-in-out infinite;
    transition: color 0.2s
}

.book-hint:hover {
    animation-play-state: paused;
    color: var(--foreground)
}

@keyframes book-hint-float {
    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(-5px)
    }
}

@media (prefers-reduced-motion: reduce) {
    .book-hint {
        animation: none
    }
}

@media(max-width:480px) {
    .book--open .book-inner {
        transform: translateX(140px)
    }
}

/* ---- Expertise heading (centered) ---- */
.expertise-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem
}

.expertise-heading h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15
}

.expertise-heading p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--muted-foreground)
}

/* ---- Expertise Story (smooth scroll-storytelling reveal) ---- */
.premium-expertise-shell {
    position: relative;
    isolation: isolate;
    margin-top: 1.25rem;
    padding: clamp(1.1rem, 2vw, 1.8rem);
    border-radius: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
    overflow: hidden
}

.dark .premium-expertise-shell {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.96), rgba(30, 30, 30, 0.96));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28)
}

.premium-expertise-shell::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at top left, rgba(255, 128, 0, 0.1), transparent 32%), radial-gradient(circle at 80% 15%, rgba(0, 136, 255, 0.08), transparent 34%), radial-gradient(circle at bottom right, rgba(255, 0, 204, 0.08), transparent 28%);
    z-index: -2;
    animation: expertise-float 12s ease-in-out infinite
}

.premium-expertise-hero {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
    max-width: 760px;
    margin-bottom: 1.1rem;
    padding: 0.35rem 0.15rem 0.05rem
}

.premium-expertise-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--foreground);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05)
}

.dark .premium-expertise-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12)
}

.premium-expertise-hero h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    line-height: 1.15;
    font-weight: 500;
    color: var(--foreground)
}

.premium-expertise-hero p {
    max-width: 64ch;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.7
}

/* ---- Expertise stack (premium layered cards) ---- */
.expertise-stack {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40vh;
    padding-bottom: 80vh
}

.expertise-stack-hint {
    position: absolute;
    top: 12vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    pointer-events: none
}

.expertise-stack-hint span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.35
}

.expertise-stack-hint::after {
    content: '';
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, var(--foreground), transparent);
    opacity: 0.3
}

.expertise-card {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    place-items: center
}

.expertise-card-inner {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: none;
    overflow-y: auto;
    padding: clamp(2rem, 6vw, 4rem);
    border-radius: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 128, 0, 0.08), transparent 45%),
        radial-gradient(120% 100% at 100% 0%, rgba(0, 136, 255, 0.07), transparent 45%),
        radial-gradient(140% 120% at 50% 120%, rgba(255, 0, 204, 0.05), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 5px rgba(15, 23, 42, 0.06),
        0 24px 48px rgba(15, 23, 42, 0.12),
        0 48px 100px -24px rgba(15, 23, 42, 0.18);
    transform-origin: top center;
    will-change: transform;
    scrollbar-width: none;
    scrollbar-color: transparent transparent
}

.expertise-card-inner::-webkit-scrollbar {
    width: 0
}

.expertise-card-inner::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px
}

.expertise-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 128, 0, 0.65), rgba(255, 0, 204, 0.4) 50%, rgba(0, 68, 255, 0.55));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.45;
    transition: opacity 0.35s ease;
    pointer-events: none
}

.expertise-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    pointer-events: none
}

.dark .expertise-card-inner {
    border-color: rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 128, 0, 0.1), transparent 45%),
        radial-gradient(120% 100% at 100% 0%, rgba(0, 136, 255, 0.09), transparent 45%),
        radial-gradient(140% 120% at 50% 120%, rgba(255, 0, 204, 0.08), transparent 55%),
        linear-gradient(180deg, rgba(34, 34, 38, 0.97), rgba(24, 24, 26, 0.97));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 48px 100px -24px rgba(0, 0, 0, 0.45);
    scrollbar-color: transparent transparent
}

.dark .expertise-card-inner::-webkit-scrollbar-thumb {
    background: transparent
}

.dark .expertise-card-inner::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent)
}

.expertise-card-inner:hover::before {
    opacity: 1
}

.category-title {
    position: relative;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3.4vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--foreground);
    max-width: 24ch;
    margin-bottom: 1rem;
    padding-bottom: 0.55rem
}

.category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.6rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8000, #f0c 55%, #04f);
    box-shadow: 0 0 12px rgba(255, 128, 0, 0.4)
}

.dark .category-title {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.06)
}

.category-lines {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem 1.2rem;
    text-align: left
}

@media(min-width:768px) {
    .category-lines {
        grid-template-columns: repeat(2, 1fr)
    }
}

.line {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    will-change: opacity, transform, filter;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 0.15rem;
    padding-bottom: 0.15rem
}

.dark .line {
    border-left-color: rgba(255, 255, 255, 0.08)
}

.line::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0.78em;
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ff8000, #f0c, #04f);
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.1), 0 0 12px rgba(255, 128, 0, 0.35)
}

.line strong {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--foreground)
}

@keyframes expertise-float {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1)
    }

    50% {
        transform: translate3d(2%, -2%, 0) scale(1.03)
    }
}

/* ---- Work Arrow Link ---- */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    transition: color 0.2s;
    margin-top: 1.5rem
}

.arrow-link:hover {
    color: var(--foreground)
}

.arrow-link .arrow-wrap {
    position: relative;
    overflow: hidden;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center
}

.arrow-link .arrow-default {
    transition: transform 0.5s ease-in-out
}

.arrow-link .arrow-hover {
    position: absolute;
    transition: transform 0.5s ease-in-out;
    transform: translateX(-100%)
}

.arrow-link:hover .arrow-default {
    transform: translateX(100%)
}

.arrow-link:hover .arrow-hover {
    transform: translateX(0)
}

/* ---- Blog Grid ---- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem
}

@media(min-width:640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    padding: 0.625rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer
}

.blog-card:hover {
    background: var(--surface)
}

.dark .blog-card:hover {
    background: rgba(23, 23, 23, 0.3)
}

.blog-card .card-image {
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--secondary)
}

.blog-card .card-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s
}

.blog-card:hover .card-image svg {
    transform: scale(1.05)
}

.blog-card .card-body {
    padding: 0.75rem 0.5rem
}

.blog-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem
}

.blog-card .card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.3;
    font-weight: 500
}

.blog-card .card-body p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

/* ════════════════════════════════════════
   SERVICES PAGE — Premium Restyle
   ════════════════════════════════════════ */

.service-modern-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2.5rem;
}

/* ── Hero Banner ── */
.service-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 128, 0, 0.15);
    background: linear-gradient(135deg,
            rgba(255, 128, 0, 0.04) 0%,
            rgba(255, 0, 204, 0.04) 50%,
            rgba(0, 68, 255, 0.04) 100%);
    margin-bottom: 3rem;
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 128, 0, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 68, 255, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.service-hero::after {
    content: 'SERVICES';
    position: absolute;
    right: -1rem;
    bottom: -1.5rem;
    font-family: var(--font-serif);
    font-size: clamp(5rem, 14vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px var(--foreground);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.dark .service-hero {
    border-color: rgba(255, 128, 0, 0.18);
    background: linear-gradient(135deg,
            rgba(255, 128, 0, 0.05) 0%,
            rgba(255, 0, 204, 0.05) 50%,
            rgba(0, 68, 255, 0.05) 100%);
}

.service-hero-copy {
    position: relative;
    z-index: 1;
}

.service-hero-copy h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    color: var(--foreground);
}

.service-hero-copy p {
    max-width: 58ch;
    color: var(--muted-foreground);
    line-height: 1.75;
    font-size: 0.97rem;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 128, 0, 0.12), rgba(0, 68, 255, 0.12));
    border: 1px solid rgba(255, 128, 0, 0.22);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--foreground);
    margin-bottom: 1.1rem;
}

.service-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8000, #f0c, #04f);
    flex-shrink: 0;
}

.dark .service-badge {
    background: linear-gradient(90deg, rgba(255, 128, 0, 0.1), rgba(0, 68, 255, 0.1));
    border-color: rgba(255, 128, 0, 0.25);
}

.service-hero-highlights {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-shrink: 0;
}

.service-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-highlight:hover {
    transform: translateX(-3px);
    box-shadow: 4px 0 16px rgba(255, 128, 0, 0.12);
}

.dark .service-highlight {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.service-highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ff8000, #f0c, #04f);
    color: #fff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .service-hero {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .service-hero-highlights {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ── Service Story Cards — Large numbered premium cards ── */
.service-story-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-story {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    cursor: default;
    transition: background 0.3s;
    overflow: hidden;
}

.service-story::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 128, 0, 0.0) 0%,
            rgba(255, 0, 204, 0.0) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    border-radius: 1rem;
}

.service-story:hover::before {
    opacity: 1;
    background: linear-gradient(90deg,
            rgba(255, 128, 0, 0.03) 0%,
            rgba(0, 68, 255, 0.03) 100%);
}

.service-story:hover .service-story-number {
    background: linear-gradient(135deg, #ff8000, #f0c, #04f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
}

.service-story:last-child {
    border-bottom: none;
}

.service-story-number {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--foreground);
    opacity: 0.12;
    transition: opacity 0.35s, background 0.35s;
    padding-top: 0.1rem;
    min-width: 3.5ch;
    align-self: flex-start;
}

.service-story:hover .service-story-number {
    opacity: 1;
}

.service-story-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-story-body h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--foreground);
    margin: 0;
    transition: color 0.25s;
}

.service-story-body>p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    max-width: 55ch;
    margin: 0 0 0.75rem;
}

.service-story-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 2rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.service-story-meta span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--foreground);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.2rem;
}

.service-story-meta p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--muted-foreground);
    margin: 0;
}

@media (max-width: 640px) {
    .service-story {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 2rem 0;
    }

    .service-story-number {
        font-size: 1.5rem;
        opacity: 0.5;
    }

    .service-story-meta {
        grid-template-columns: 1fr;
    }
}


.services-runway {
    height: 500vh;
    width: 100%
}

.services-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.flying-posters-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(4rem, 16vw, 11rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--foreground);
    opacity: 0.16;
    pointer-events: none;
    text-align: center;
    user-select: none
}

.posters-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2
}

.posters-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer
}

.posters-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.25s ease
}

.posters-hint:hover {
    color: var(--foreground);
    border-color: var(--ring);
    background: var(--secondary)
}

.posters-hint-arrow {
    display: inline-block;
    transition: transform 0.25s ease
}

.posters-hint:hover .posters-hint-arrow {
    transform: translate(2px, -2px)
}

/* ---- Glass Surface (React Bits port) ---- */
.glass-surface {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.26s ease-out
}

.glass-surface__filter {
    width: 100%;
    height: 100%;
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: -1
}

.glass-surface__content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: inherit;
    position: relative;
    z-index: 1
}

.glass-surface--svg {
    background: hsl(0 0% 100% / var(--glass-frost, 0));
    backdrop-filter: var(--filter-id) saturate(var(--glass-saturation, 1));
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08) inset, 0 0 10px 4px rgba(0, 0, 0, 0.05) inset, 0 4px 16px rgba(17, 17, 26, 0.05), 0 8px 24px rgba(17, 17, 26, 0.05), 0 16px 56px rgba(17, 17, 26, 0.05)
}

.dark .glass-surface--svg {
    background: hsl(0 0% 0% / var(--glass-frost, 0.18));
    box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.14) inset, 0 0 10px 4px rgba(255, 255, 255, 0.07) inset, 0 4px 16px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35), 0 16px 56px rgba(0, 0, 0, 0.3)
}

.glass-surface--fallback {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(1.8) brightness(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2), 0 2px 16px 0 rgba(31, 38, 135, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 0 rgba(255, 255, 255, 0.2)
}

.dark .glass-surface--fallback {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(1.8) brightness(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 0 rgba(255, 255, 255, 0.1)
}

.glass-demo {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.25rem;
    border-radius: 1.5rem
}

.glass-demo-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(288deg, #ff8000, #f0c 53.2394%, #04f);
    background-size: 250% 250%;
    animation: gradient-x 8s ease infinite;
    opacity: 0.9
}

.glass-demo-surfaces {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem
}

.glass-demo .glass-surface h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3)
}

.glass-demo .glass-surface span {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3)
}




/* ---- Stats Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border)
}

@media(min-width:640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

.stat-card {
    position: relative;
    border-right: 1px solid var(--border);
    padding: 1rem 1.25rem;
    transition: background 0.2s
}

.stat-card:hover {
    background: rgba(0, 0, 0, 0.02)
}

.dark .stat-card:hover {
    background: rgba(255, 255, 255, 0.02)
}

@media(max-width:639px) {
    .stat-card:nth-child(2) {
        border-right: none
    }
}

.stat-card .stat-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700
}

@media(min-width:640px) {
    .stat-card .stat-value {
        font-size: 1.875rem
    }
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground)
}

/* ---- Case Studies: luxury editorial ---- */

.case-list {
    display: flex;
    flex-direction: column
}

.case-list-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0 0.25rem
}

.case-list-head-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-foreground)
}

.case-list-head-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), var(--gold-soft))
}

.case-list-head-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold)
}

.case-study {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    border-top: 1px solid var(--border)
}

.case-study:first-of-type {
    border-top: 0;
    padding-top: clamp(1.75rem, 4vw, 3rem)
}

.case-list .case-study:last-of-type {
    border-bottom: 1px solid var(--border)
}

@media(min-width:768px) {
    .case-study {
        grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
        gap: clamp(2.5rem, 6vw, 5.5rem);
        align-items: center
    }

    .case-study:nth-child(even) .case-media {
        order: 2
    }
}

/* media */
.case-media {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--border)
}

.case-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--gold-soft);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none
}

.case-study:hover .case-media::after {
    opacity: 1
}

.case-media-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%
}

.case-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1)
}

.case-study:hover .case-media img {
    transform: scale(1.045)
}

.case-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.55;
    transition: opacity 0.5s ease;
    pointer-events: none
}

.case-study:hover .case-veil {
    opacity: 1
}

.case-open {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none
}

.case-study:hover .case-open {
    opacity: 1;
    transform: translateY(0)
}

.case-open svg {
    transition: transform 0.4s ease
}

.case-study:hover .case-open svg {
    transform: translate(2px, -2px)
}

/* body */
.case-body {
    display: flex;
    flex-direction: column
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.1rem
}

.case-index {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--border);
    transition: -webkit-text-stroke-color 0.4s ease;
    user-select: none
}

.case-study:hover .case-index {
    -webkit-text-stroke-color: var(--gold)
}

.case-rule {
    width: 1px;
    height: 2.4rem;
    background: linear-gradient(180deg, var(--gold), transparent)
}

.case-role {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold)
}

.case-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.1rem, 4.5vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.01em
}

.case-title a {
    color: var(--foreground);
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1)
}

.case-title a:hover {
    background-size: 100% 2px
}

.case-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    line-height: 1.4;
    color: var(--muted-foreground);
    margin-top: 0.45rem;
    max-width: 42ch
}

.case-overview {
    margin-top: 1.1rem;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    max-width: 58ch
}

/* story */
.case-story {
    margin-top: 1.75rem
}

.case-story-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.95rem 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: none;
    font: inherit;
    color: var(--foreground);
    text-align: left;
    cursor: pointer
}

.case-story-toggle-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.3s ease
}

.case-story-toggle:hover .case-story-toggle-label {
    color: var(--gold)
}

.case-story-toggle-note {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.case-story-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    color: var(--muted-foreground);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0
}

.case-study.story-open .case-story-plus {
    transform: rotate(135deg);
    border-color: var(--gold);
    color: var(--gold)
}

.case-story-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1)
}

.case-study.story-open .case-story-panel {
    grid-template-rows: 1fr
}

.case-story-inner {
    overflow: hidden;
    min-height: 0
}

.case-story-block {
    padding: 1.75rem 0;
    border-bottom: 1px dashed var(--border)
}

.case-story-block:last-child {
    border-bottom: 0;
    padding-bottom: 0
}

.case-story-block-title {
    position: relative;
    padding-left: 1.1rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 0.6rem
}

.case-story-block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.5rem;
    height: 2px;
    background: var(--gold)
}

.case-story-block p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    max-width: 62ch
}

/* chips */
.case-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem
}

.case-chips li {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease
}

.case-chips li:hover {
    color: var(--foreground);
    border-color: var(--gold);
    background: var(--gold-soft)
}

/* actions */
.case-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.75rem
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-bottom: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
    transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease
}

.case-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    gap: 0.9rem
}

.case-link-arrow {
    font-size: 0.95rem;
    line-height: 1
}

/* foot */
.case-list-foot {
    margin-top: 3rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-foreground)
}

.case-list-foot a {
    color: var(--gold);
    border-bottom: 1px solid var(--gold-soft);
    transition: border-color 0.3s ease
}

.case-list-foot a:hover {
    border-color: var(--gold)
}

@media (prefers-reduced-motion: reduce) {

    .case-media img,
    .case-veil,
    .case-open,
    .case-open svg,
    .case-index,
    .case-story-panel,
    .case-story-plus,
    .case-title a,
    .case-link {
        transition: none
    }
}

/* ---- Footer ---- */
footer {
    position: relative;
    overflow: hidden;
    margin-top: 2rem
}

.footer-bg-word {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(3rem, 14vw, 10rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(to bottom, var(--gold) 0%, var(--gold-soft) 55%, transparent 92%);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 85%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 85%);
    pointer-events: none;
    user-select: none;
    white-space: nowrap
}

.footer-inner {
    position: relative;
    z-index: 1;
    border: 1px solid var(--border)
}

.footer-layout {
    display: flex;
    flex-direction: column
}

@media(min-width:640px) {
    .footer-layout {
        flex-direction: row
    }
}

@media(max-width:639px) {
    .footer-left {
        display: flex;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.25rem 1rem 1rem
    }

    .footer-right {
        padding: 1.25rem 1rem 1.5rem
    }

    .footer-nav {
        gap: 1.25rem
    }

    .footer-nav-col {
        min-width: 45%
    }

    .footer-bar {
        padding: 0.9rem 1rem 1.1rem;
        gap: 0.5rem
    }
}

.footer-left {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border)
}

@media(min-width:640px) {
    .footer-left {
        display: flex;
        width: 44%;
        border-right: 1px solid var(--border);
        border-bottom: none;
        padding: 1.5rem 2rem
    }
}

.footer-right {
    width: 100%;
    padding: 1.5rem 1rem
}

@media(min-width:640px) {
    .footer-right {
        width: 56%;
        padding: 1.5rem 2rem
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem
}

.footer-nav-col h4 {
    padding: 0 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted-foreground)
}

.footer-nav-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem
}

.footer-nav-col a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    position: relative;
    transition: color 0.2s
}

.footer-nav-col a:hover {
    color: var(--foreground)
}

.footer-nav-col a.footer-social {
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500
}

.footer-nav-col a.footer-social svg {
    width: 16px;
    height: 16px;
    opacity: 1
}

.footer-nav-col a.footer-social:hover svg {
    transform: none;
    opacity: 1;
    color: var(--foreground)
}

.footer-nav-col a svg {
    width: 10px;
    height: 10px;
    opacity: 0;
    transition: all 0.3s
}

.footer-nav-col a:hover svg {
    opacity: 1;
    transform: translate(2px, -2px) rotate(45deg)
}

.footer-bar {
    border-top: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--muted-foreground)
}

@media(min-width:640px) {
    .footer-bar {
        flex-direction: row
    }
}

.footer-bar span.sep {
    display: none
}

@media(min-width:640px) {
    .footer-bar span.sep {
        display: inline
    }
}

/* ---- About Page ---- */
.about-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    height: 450px;
    width: 100%;
    overflow: hidden;
    background: var(--secondary);
    -webkit-mask-image: linear-gradient(rgb(0, 0, 0) 40%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(rgb(0, 0, 0) 40%, rgba(0, 0, 0, 0) 100%)
}

.timeline-container {
    position: relative;
    width: 100%
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 6px;
    transform: translateX(-50%);
    background: var(--secondary);
    border-radius: 999px
}

@media(min-width:768px) {
    .timeline-line {
        left: 50%
    }
}

.timeline-fill {
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(to top, #db2777, #3b82f6, transparent);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1s ease
}

.timeline-fill.visible {
    transform: scaleY(1)
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    padding: 1.25rem;
    position: relative
}

@media(min-width:768px) {
    .timeline-item {
        grid-template-columns: 30% auto 1fr;
        gap: 3rem;
        padding: 3rem 1.25rem
    }
}

/* ---- Guestbook ---- */
.guestbook-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem
}

@media(min-width:640px) {
    .guestbook-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:768px) {
    .guestbook-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

.guestbook-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--card);
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s, z-index 0.3s
}

.guestbook-card .card-message {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem 1.5rem 2.5rem;
    background: var(--secondary)
}

.guestbook-card .card-message p {
    position: relative;
    z-index: 10;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    text-align: center;
    color: var(--foreground)
}

.guestbook-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 1rem 0.75rem
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: rgba(23, 23, 23, 0.04);
    color: var(--muted-foreground)
}

.dark .tech-chip {
    background: rgba(23, 23, 23, 0.3)
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 10px;
    background: var(--secondary);
    color: var(--muted-foreground);
    border: 1px solid var(--border)
}

/* ---- Utility ---- */
::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px
}

@media(prefers-reduced-motion:reduce) {

    .animate-gradient-x,
    .animate-marquee,
    .animate-ping {
        animation-duration: 0s !important;
        animation-play-state: paused !important
    }

    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none
    }
}

.flex {
    display: flex
}

.inline-flex {
    display: inline-flex
}

.grid {
    display: grid
}

.hidden {
    display: none
}

.flex-col {
    flex-direction: column
}

.flex-wrap {
    flex-wrap: wrap
}

.items-center {
    align-items: center
}

.items-start {
    align-items: flex-start
}

.justify-center {
    justify-content: center
}

.justify-between {
    justify-content: space-between
}

.gap-1 {
    gap: 0.25rem
}

.gap-2 {
    gap: 0.5rem
}

.gap-3 {
    gap: 0.75rem
}

.gap-4 {
    gap: 1rem
}

.gap-6 {
    gap: 1.5rem
}

.gap-8 {
    gap: 2rem
}

.mt-2 {
    margin-top: 0.5rem
}

.mt-4 {
    margin-top: 1rem
}

.mt-6 {
    margin-top: 1.5rem
}

.mt-8 {
    margin-top: 2rem
}

.mt-auto {
    margin-top: auto
}

.mb-2 {
    margin-bottom: 0.5rem
}

.mb-4 {
    margin-bottom: 1rem
}

.mb-6 {
    margin-bottom: 1.5rem
}

.mx-auto {
    margin-left: auto;
    margin-right: auto
}

.p-2 {
    padding: 0.5rem
}

.p-4 {
    padding: 1rem
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem
}

.pt-4 {
    padding-top: 1rem
}

.w-full {
    width: 100%
}

.w-fit {
    width: fit-content
}

.h-full {
    height: 100%
}

.relative {
    position: relative
}

.absolute {
    position: absolute
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0
}

.inset-x-0 {
    left: 0;
    right: 0
}

.z-10 {
    z-index: 10
}

.z-20 {
    z-index: 20
}

.overflow-hidden {
    overflow: hidden
}

.rounded-full {
    border-radius: 9999px
}

.rounded-xl {
    border-radius: 0.75rem
}

.rounded-2xl {
    border-radius: 1rem
}

.rounded-3xl {
    border-radius: 1.5rem
}

.border {
    border: 1px solid var(--border)
}

.border-t {
    border-top: 1px solid var(--border)
}

.border-b {
    border-bottom: 1px solid var(--border)
}

.text-xs {
    font-size: 0.75rem
}

.text-sm {
    font-size: 0.875rem
}

.text-base {
    font-size: 1rem
}

.text-lg {
    font-size: 1.125rem
}

.text-xl {
    font-size: 1.25rem
}

.text-2xl {
    font-size: 1.5rem
}

.text-3xl {
    font-size: 1.875rem
}

.text-4xl {
    font-size: 2.25rem
}

.font-medium {
    font-weight: 500
}

.font-semibold {
    font-weight: 600
}

.font-bold {
    font-weight: 700
}

.font-light {
    font-weight: 300
}

.leading-tight {
    line-height: 1.25
}

.leading-snug {
    line-height: 1.375
}

.leading-relaxed {
    line-height: 1.625
}

.tracking-tight {
    letter-spacing: -0.025em
}

.tracking-wide {
    letter-spacing: 0.025em
}

.tracking-wider {
    letter-spacing: 0.05em
}

.tracking-widest {
    letter-spacing: 0.1em
}

.uppercase {
    text-transform: uppercase
}

.italic {
    font-style: italic
}

.text-white {
    color: #fff
}

.pointer-events-none {
    pointer-events: none
}

.select-none {
    user-select: none
}

.shrink-0 {
    flex-shrink: 0
}

.flex-1 {
    flex: 1
}

.whitespace-nowrap {
    white-space: nowrap
}

.rotate-1 {
    transform: rotate(1deg)
}

.-rotate-1 {
    transform: rotate(-1deg)
}

.rotate-2 {
    transform: rotate(2deg)
}

.-rotate-2 {
    transform: rotate(-2deg)
}

.rotate-8 {
    transform: rotate(8deg)
}

.transition-all {
    transition: all 0.3s
}

.cursor-pointer {
    cursor: pointer
}

.object-cover {
    object-fit: cover
}

.aspect-16\/11 {
    aspect-ratio: 16/11
}

.col-span-1 {
    grid-column: span 1
}

@media(min-width:768px) {
    .md\\:col-span-6 {
        grid-column: span 6
    }
}

@media(min-width:1024px) {
    .lg\\:col-span-4 {
        grid-column: span 4
    }
}

/* ---- Process Roadmap ---- */
.process-section {
    background: var(--background)
}

.process-hero {
    max-width: 64rem;
    margin: 0 auto;
    width: 100%
}

.process-hero .section-heading {
    align-items: center;
    text-align: center;
    margin: 0 auto
}

.process-subtitle {
    max-width: 36rem;
    margin: 1rem auto 0;
    text-align: center;
    color: var(--muted-foreground);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.65
}

.roadmap {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 0 5rem;
    width: 100%
}

.roadmap-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    z-index: 0
}

.roadmap-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, var(--border) 6%, var(--border) 94%, transparent);
    border-radius: 999px
}

.dark .roadmap-line {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18) 6%, rgba(255, 255, 255, 0.18) 94%, transparent)
}

.roadmap-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #ff8000, #f0c, #04f);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(255, 128, 0, 0.45), 0 0 28px rgba(255, 0, 204, 0.25);
    transform-origin: top center;
    transform: scaleY(0);
    will-change: transform
}

.roadmap-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem 0;
    z-index: 1
}

.roadmap-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--foreground);
    box-shadow: 0 0 0 4px var(--background), 0 0 0 5px var(--border), 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 2
}

.dark .roadmap-node {
    box-shadow: 0 0 0 4px var(--background), 0 0 0 5px rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.5)
}

.roadmap-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease
}

.roadmap-card:hover {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px)
}

.dark .roadmap-card {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4)
}

.roadmap-step-left .roadmap-card {
    grid-column: 1
}

.roadmap-step-right .roadmap-card {
    grid-column: 2
}

.roadmap-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.6vw, 1.5rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 1.1rem;
    color: var(--foreground)
}

.roadmap-desc {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--muted-foreground)
}

.roadmap-desc p {
    margin-bottom: 0.55rem
}

.roadmap-desc-label {
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    margin-top: 0.35rem
}

.roadmap-desc-label:first-child {
    margin-top: 0
}

.roadmap-list {
    list-style: none;
    margin: 0 0 0.55rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem
}

.roadmap-list li {
    position: relative;
    padding-left: 1.15rem
}

.roadmap-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(288deg, #ff8000, #f0c);
    opacity: 0.85
}

@media(max-width:767px) {
    .roadmap {
        padding-top: 2rem
    }

    .roadmap-track {
        left: 1.25rem;
        transform: none
    }

    .roadmap-step {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2.25rem 0 2.25rem 2.75rem
    }

    .roadmap-step-left .roadmap-card,
    .roadmap-step-right .roadmap-card {
        grid-column: 1
    }

    .roadmap-node {
        left: 1.25rem;
        top: 2.25rem;
        transform: translate(-50%, 0);
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.6875rem
    }
}

@media(prefers-reduced-motion:reduce) {
    .roadmap-progress {
        transform: none
    }
}

/* ---- FAQ ---- */
.faq-section {
    background: var(--background)
}

.faq-hero {
    max-width: 46rem;
    margin: 0 auto;
    width: 100%
}

.faq-hero .section-heading {
    align-items: center;
    text-align: center;
    margin: 0 auto
}

.faq-subtitle {
    max-width: 32rem;
    margin: 1rem auto 0;
    text-align: center;
    color: var(--muted-foreground);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.65
}

.faq-list {
    max-width: 46rem;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.125rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease
}

.faq-item:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04)
}

.dark .faq-item {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35)
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    color: var(--foreground)
}

.faq-q-mark {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--foreground);
    background: linear-gradient(288deg, #ff8000, #f0c 53%, #04f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid var(--border)
}

.faq-q-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em
}

.faq-toggle {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: var(--foreground);
    border-color: var(--foreground);
    color: var(--background)
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1)
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr
}

.faq-answer-inner {
    overflow: hidden
}

.faq-answer-inner p {
    padding: 0 1.5rem 1.375rem;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.7
}

.faq-answer-inner p::before {
    content: "A";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--foreground);
    vertical-align: middle
}

@media(prefers-reduced-motion:reduce) {
    .faq-answer {
        transition: none
    }
}

/* ---- Pricing ---- */
.pricing-page {
    background:
        radial-gradient(60rem 32rem at 50% -6rem, rgba(255, 128, 0, 0.05), transparent 60%),
        radial-gradient(46rem 30rem at 88% 24%, rgba(0, 68, 255, 0.05), transparent 60%),
        radial-gradient(46rem 30rem at 10% 70%, rgba(255, 0, 204, 0.04), transparent 60%),
        linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
    padding-bottom: 5rem
}

.dark .pricing-page {
    background:
        radial-gradient(60rem 32rem at 50% -6rem, rgba(255, 128, 0, 0.07), transparent 60%),
        radial-gradient(46rem 30rem at 88% 24%, rgba(0, 68, 255, 0.09), transparent 60%),
        radial-gradient(46rem 30rem at 10% 70%, rgba(255, 0, 204, 0.06), transparent 60%),
        linear-gradient(180deg, var(--background) 0%, var(--surface) 100%)
}

.pricing-hero {
    max-width: 46rem;
    margin: 4rem auto 0;
    width: 100%
}

.pricing-hero .section-heading {
    align-items: center;
    text-align: center;
    margin: 0 auto
}

.pricing-hero .section-heading h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 500;
    background: linear-gradient(92deg, #a855f7 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.pricing-subtitle {
    max-width: 32rem;
    margin: 1rem auto 0;
    text-align: center;
    color: var(--muted-foreground);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.65
}

/* ---- How Pricing Works ---- */
.pricing-works {
    max-width: 44rem;
    margin: 3.5rem auto 0;
    width: 100%;
    padding: 0 1rem;
    text-align: center
}

.pricing-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted-foreground)
}

.pricing-intro {
    margin-top: 1.25rem;
    font-size: clamp(1.1rem, 2.6vw, 1.4rem);
    line-height: 1.7;
    color: var(--muted-foreground);
    letter-spacing: -0.01em
}

.pricing-intro span {
    color: var(--foreground);
    font-weight: 500
}

.pricing-lead {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground)
}

.pricing-principles {
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border)
}

.principle {
    padding: 2rem 1.5rem;
    text-align: left;
    position: relative
}

.principle+.principle {
    border-left: 1px solid var(--border)
}

.principle-num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    opacity: 0.7
}

.principle h4 {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.01em
}

.principle p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--muted-foreground)
}

.pricing-outro {
    margin: 2rem auto 0;
    max-width: 34rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--muted-foreground)
}

.pricing-outro strong {
    color: var(--foreground);
    font-weight: 600
}

/* ---- Payment Methods ---- */
.payment-methods {
    max-width: 60rem;
    margin: 5rem auto 0;
    width: 100%;
    padding: 0 1rem;
    text-align: center
}

.payment-title {
    margin: 1.25rem auto 0;
    max-width: 38rem;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--foreground)
}

.pay-logos {
    margin: 2.5rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 58rem
}

.pay-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    min-width: 8.5rem;
    padding: 1.4rem 1.1rem 1.2rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    will-change: transform
}

.dark .pay-logo {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35)
}

.pay-logo:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04)
}

.dark .pay-logo:hover {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5)
}

.pay-logo-svg {
    height: 2.5rem;
    width: auto;
    max-width: 7rem;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease
}

.pay-logo:hover .pay-logo-svg {
    transform: scale(1.08)
}

.pay-logo-name {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    white-space: nowrap
}

.pay-note {
    max-width: 36rem;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.7
}

@media(max-width:767px) {
    .pricing-principles {
        grid-template-columns: 1fr
    }

    .principle+.principle {
        border-left: 0;
        border-top: 1px solid var(--border)
    }

    .principle {
        text-align: center;
        padding: 1.5rem 1rem
    }

    .pay-logos {
        gap: 0.75rem
    }

    .pay-logo {
        min-width: 7.2rem;
        padding: 1.1rem 0.8rem 0.9rem
    }

    .pay-logo-svg {
        height: 2.1rem;
        max-width: 5.6rem
    }
}

/* ---- Explore the Essentials (bento grid) ---- */
.essentials-wrap {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1.5rem
}

.essentials-head {
    text-align: center
}

.essentials-title {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--foreground)
}

.essentials-sub {
    margin-top: 0.75rem;
    color: var(--muted-foreground)
}

.bento-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    perspective: 1200px
}

.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    border: 0;
    background: transparent;
    text-decoration: none;
    overflow: hidden;
    transform-style: preserve-3d;
    opacity: 1;
    transform: none;
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease, background-color .25s ease;
    will-change: transform
}

.bento-card::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: var(--bento-glow, rgba(255, 128, 0, 0.35));
    filter: blur(60px);
    opacity: 0.55;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none
}

.bento-card:hover,
#essentials-section .bento-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(168, 85, 247, 0.2);
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease
}

.bento-card:hover::after {
    opacity: 0.9;
    transform: scale(1.15)
}

.bento-process {
    --bento-glow: rgba(255, 128, 0, 0.45)
}

.bento-guestbook {
    --bento-glow: rgba(0, 200, 255, 0.4)
}

.bento-faq {
    --bento-glow: rgba(180, 120, 255, 0.4)
}

/* ---- 3D scenes ---- */
.bento-scene {
    position: relative;
    height: 150px;
    border-radius: 1rem;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(120% 120% at 20% 10%, var(--bento-glow, rgba(255, 128, 0, 0.3)), transparent 60%),
        var(--secondary)
}

.scene-blob {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 80% 20%, var(--bento-glow, rgba(255, 128, 0, 0.35)), transparent 70%),
        radial-gradient(50% 70% at 10% 90%, rgba(255, 255, 255, 0.06), transparent 70%);
    filter: blur(14px);
    opacity: 0.7
}

/* Process: floating cubes + flow line */
.cube {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffb347, #ff7a00);
    box-shadow: 6px 8px 18px rgba(255, 122, 0, 0.35);
    transform: rotateX(52deg) rotateZ(45deg);
    animation: floatCube 5s ease-in-out infinite
}

.cube::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 60%)
}

.cube-1 {
    left: 14%;
    top: 26%;
    animation-delay: 0s
}

.cube-2 {
    left: 47%;
    top: 34%;
    width: 30px;
    height: 30px;
    animation-delay: 1.2s
}

.cube-3 {
    right: 14%;
    top: 24%;
    width: 40px;
    height: 40px;
    animation-delay: 2s
}

.flow-line {
    position: absolute;
    left: 22%;
    right: 22%;
    top: 58%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb347, #ff7a00, transparent);
    opacity: 0.5;
    transform: rotateZ(-6deg)
}

.flow-spark {
    position: absolute;
    top: 55%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd98a;
    box-shadow: 0 0 10px #ffb347;
    animation: sparkMove 3s ease-in-out infinite
}

.spark-1 {
    left: 24%;
    animation-delay: 0s
}

.spark-2 {
    right: 24%;
    animation-delay: 1.5s
}

.cube-tag {
    position: absolute;
    bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground)
}

.t1 {
    left: 14%
}

.t2 {
    left: 46%
}

.t3 {
    right: 14%
}

/* Guestbook: chat bubbles */
.bubble {
    position: absolute;
    border-radius: 14px;
    padding: 9px 10px;
    display: flex;
    gap: 4px;
    border: 1px solid var(--border);
    animation: bubbleFloat 4.5s ease-in-out infinite
}

.bubble i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted-foreground);
    opacity: 0.7
}

.bubble-1 {
    left: 14%;
    top: 28%;
    transform: rotateZ(-6deg);
    animation-delay: 0s
}

.bubble-2 {
    left: 46%;
    top: 52%;
    transform: rotateZ(4deg);
    animation-delay: 1.4s
}

.bubble-3 {
    right: 12%;
    top: 24%;
    transform: rotateZ(-3deg);
    animation-delay: 2.4s
}

.bento-guestbook .heart-float {
    color: #00c8ff;
    filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.8))
}

.heart-float {
    position: absolute;
    right: 16%;
    bottom: 12%;
    animation: heartBeat 2.4s ease-in-out infinite
}

/* FAQ: 3D stacked cards + question mark */
.q-card {
    position: absolute;
    width: 120px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(180, 120, 255, 0.35), rgba(120, 80, 255, 0.2));
    transform-style: preserve-3d;
    animation: cardGlide 5s ease-in-out infinite
}

.q-card-1 {
    left: 16%;
    top: 22%;
    transform: rotateX(24deg) rotateZ(-8deg);
    animation-delay: 0s
}

.q-card-2 {
    right: 14%;
    top: 34%;
    transform: rotateX(20deg) rotateZ(6deg);
    animation-delay: 1.6s
}

.q-mark {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #c9a5ff, #7b5bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 14px rgba(150, 100, 255, 0.45));
    animation: qFloat 3.6s ease-in-out infinite
}

.q-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a5ff;
    box-shadow: 0 0 10px rgba(150, 100, 255, 0.8);
    animation: dotPulse 2.8s ease-in-out infinite
}

.dot-1 {
    left: 24%;
    bottom: 16%;
    animation-delay: 0s
}

.dot-2 {
    right: 26%;
    top: 14%;
    animation-delay: 1.2s
}

/* ---- Bent body ---- */
.bento-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem
}

.bento-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground)
}

.bento-body h4 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--foreground)
}

.bento-body p {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.7
}

.bento-cta {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: border-color .25s ease, color .25s ease
}

.bento-cta-arrow {
    display: inline-flex;
    transition: transform .25s ease
}

.bento-card:hover .bento-cta {
    border-color: var(--foreground)
}

.bento-card:hover .bento-cta-arrow {
    transform: translateX(4px)
}

/* ---- Animations ---- */
@keyframes floatCube {

    0%,
    100% {
        transform: rotateX(52deg) rotateZ(45deg) translateY(0)
    }

    50% {
        transform: rotateX(52deg) rotateZ(45deg) translateY(-8px)
    }
}

@keyframes sparkMove {
    0% {
        transform: translateX(0);
        opacity: 0
    }

    20% {
        opacity: 1
    }

    80% {
        opacity: 1
    }

    100% {
        transform: translateX(40px);
        opacity: 0
    }
}

@keyframes bubbleFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-7px)
    }
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1)
    }

    30% {
        transform: scale(1.18)
    }

    50% {
        transform: scale(0.95)
    }
}

@keyframes cardGlide {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

@keyframes qFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateZ(0)
    }

    50% {
        transform: translate(-50%, -50%) rotateZ(-4deg)
    }
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1)
    }

    50% {
        opacity: 1;
        transform: scale(1.4)
    }
}

/* Staggered card entrance (CSS, no GSAP) */
#essentials-section .bento-card {
    opacity: 0;
    transform: translateY(30px)
}

#essentials-section.visible .bento-card {
    opacity: 1;
    transform: translateY(0)
}

#essentials-section.visible .bento-card:nth-child(1) {
    transition-delay: 0s
}

#essentials-section.visible .bento-card:nth-child(2) {
    transition-delay: .15s
}

#essentials-section.visible .bento-card:nth-child(3) {
    transition-delay: .3s
}

@media(min-width:768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .bento-card {
        min-height: 320px
    }
}

@media(max-width:767px) {
    .bento-card {
        padding: 1.25rem
    }

    .bento-scene {
        height: 130px
    }
}

@media(prefers-reduced-motion:reduce) {

    #essentials-section .bento-card,
    #essentials-section.visible .bento-card {
        opacity: 1;
        transform: none;
        transition: none
    }

    .bento-scene *,
    .bento-scene {
        animation: none !important
    }
}

/* ===== CONTACT PAGE ===== */
.contact-section .section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em
}

.contact-subtitle,
.links-subtitle {
    max-width: 34rem;
    margin: 0.75rem auto 0;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    line-height: 1.7
}

.contact-name-note {
    margin-top: 0.5rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-foreground)
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr min(560px, 48%);
    gap: 1.5rem;
    max-width: 60rem;
    margin: 2.5rem auto 0
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease
}

.contact-info-card:hover {
    transform: translateY(-2px);
    border-color: #a855f7;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08)
}

.contact-info-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, rgba(255, 128, 0, 0.14), rgba(102, 0, 255, 0.14));
    color: var(--foreground)
}

.contact-info-card strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground)
}

.contact-info-card p {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted-foreground)
}

.contact-form-card {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--card)
}

.contact-field,
.call-field {
    margin-bottom: 1rem
}

.contact-field label,
.call-field label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground)
}

.contact-field input,
.contact-field textarea,
.call-field input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--foreground);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease
}

.contact-field input:focus,
.contact-field textarea:focus,
.call-field input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15)
}

.contact-field textarea {
    resize: vertical;
    min-height: 8rem
}

.contact-field select {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background-color: var(--background);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease
}

.contact-field select:hover {
    border-color: rgba(168, 85, 247, 0.55)
}

.contact-field select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15)
}

.contact-field select option {
    color: var(--foreground);
    background: var(--card)
}

/* ---- Premium Contact Overrides ---- */
.contact-hero {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 0.75rem;
}

.contact-hero .section-heading h2 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    letter-spacing: -0.02em;
}

.contact-lead {
    max-width: 56rem;
    margin: 0.8rem auto 0;
    color: var(--muted-foreground);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border-color: #a855f7;
}

.contact-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.contact-card {
    width: 100%;
    max-width: 520px;
    border-radius: 1rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 250, 0.96));
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(12, 12, 20, 0.08);
}

.dark .contact-card {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(28, 28, 30, 0.98));
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.contact-card-head .eyebrow {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, rgba(255, 128, 0, 0.12), rgba(102, 0, 255, 0.12));
    border: 1px solid rgba(255, 128, 0, 0.12);
    color: var(--foreground);
}

.contact-card-head h3 {
    margin: 0.6rem 0 0.25rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--foreground);
}

.contact-card .muted {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.contact-actions {
    margin-top: 0.5rem;
}

.contact-footnote {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

@media(max-width:899px) {
    .contact-wrap {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 1rem
    }

    .contact-right {
        margin-top: 1rem
    }

    .contact-card {
        max-width: 100%
    }
}

.contact-submit {
    width: 100%;
    padding: 0.75rem;
    border: 0;
    border-radius: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff8000, #f0c, #04f);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 128, 0, 0.35)
}

/* ===== LINKS PAGE ===== */
.links-section .section-heading {
    align-items: center;
    text-align: center;
}

.links-section .section-heading .label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(249, 115, 22, 0.08));
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--foreground)
}

.links-section .section-heading .label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #f97316);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8)
}

.links-section .section-heading h2 {
    margin-top: 1.5rem;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    animation: links-title-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.links-title-accent {
    background: linear-gradient(92deg, #a855f7 0%, #f97316 50%, #a855f7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: links-title-grad 4s linear infinite;
}

@keyframes links-title-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes links-title-grad {
    to {
        background-position: 200% center;
    }
}

.links-subtitle {
    max-width: 52rem;
    margin: 0.75rem auto 0;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 1.05rem;
    line-height: 1.8;
}

.links-grid {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(320px, 1fr);
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 1.5rem auto 0;
    flex: 1;
    align-items: stretch;
    border: 1px solid #e5e5e5;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.dark .links-grid {
    border-color: #2a2a2a;
    background: #121214;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.links-profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: transparent;
    border: 0;
    border-right: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.25s ease;
}

.links-category {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dark .links-profile-card {
    border-right-color: #2a2a2a;
}

.links-category+.links-category {
    border-top: 1px solid #e5e5e5;
}

.dark .links-category+.links-category {
    border-top-color: #2a2a2a;
}

.links-profile-card:hover,
.links-category:hover {
    transform: none;
}

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.profile-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e5e5;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dark .profile-avatar {
    border-color: #2a2a2a;
}

.profile-avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.profile-copy {
    text-align: center;
}

.profile-copy h1 {
    margin: 0 0 4px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.02;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--foreground);
}

.profile-tags {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.5rem auto 0.5rem;
}

.profile-tags span {
    font-size: 0.78rem;
    color: #bebebe;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-meta {
    margin: 0 auto 1rem;
    display: grid;
    gap: 0.4rem;
    color: #bfbfbf;
    font-size: 0.9rem;
}

.profile-meta p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem
}

.profile-meta-icon {
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.85
}

.profile-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-meta a:hover {
    color: var(--foreground);
    text-decoration: underline;
    text-decoration-color: rgba(168, 85, 247, 0.6);
    text-underline-offset: 3px;
}

.profile-actions {
    display: grid;
    gap: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #f97316 100%);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.28);
}

.profile-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.btn-secondary {
    color: var(--foreground);
    background: var(--background);
    border: 1px solid var(--border);
    font-weight: 600;
}

.dark .btn-secondary {
    background: #17171b;
    border-color: #2a2a2a;
}

.btn-secondary:hover {
    text-decoration: underline;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.links-categories {
    display: grid;
    gap: 0;
}

.links-category-head span {
    display: block;
    padding: 1.5rem 2rem 0.75rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0;
    color: #bebebe;
}

.dark .links-category-head span {
    border-bottom-color: #2a2a2a;
}

.links-category-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.links-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--foreground);
    text-decoration: none;
    min-height: 56px;
    flex: 1;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.dark .links-card {
    background: transparent;
    border-bottom-color: #2a2a2a;
    box-shadow: none;
}

.links-card:last-child {
    border-bottom: 0;
}

.links-card:hover {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.02));
    box-shadow: inset 3px 0 0 rgba(168, 85, 247, 0.9);
}

.dark .links-card:hover {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.18), rgba(168, 85, 247, 0.04));
}

.links-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
    letter-spacing: -0.01em;
}

.links-card small {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.8rem;
    color: #bebebe;
}

.links-card-arrow {
    font-size: 1.125rem;
    color: #bebebe;
    transition: transform 0.25s ease, color 0.25s ease;
}

.links-card:hover .links-card-arrow {
    transform: translateX(2px);
    color: var(--foreground);
}

.links-category-list a+a {
    margin-top: 0;
}

@media(max-width:1100px) {
    .links-grid {
        grid-template-columns: 1fr;
    }

    .links-profile-card {
    justify-content: flex-end;
        border-right: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .dark .links-profile-card {
        border-bottom-color: #2a2a2a;
    }
}

@media(max-width:640px) {
    .links-grid {
        margin-top: 2rem;
    }

    .profile-secondary-actions {
        grid-template-columns: 1fr;
    }

    .links-card {
        padding: 1rem 1.25rem;
    }

    .links-category-head span {
        padding: 1.25rem 1.25rem 0.75rem;
    }
}

/* ===== BOOK A CALL MODAL ===== */
.call-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(10, 8, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px)
}

.call-overlay[hidden],
.call-modal[hidden] {
    display: none
}

.call-modal {
    position: fixed;
    inset: 0;
    z-index: 8001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem
}

.call-modal-card {
    position: relative;
    width: 100%;
    max-width: 24rem;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25)
}

.dark .call-modal-card {
    border-color: #3a2a52
}

.call-modal-glow {
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
    pointer-events: none
}

.call-modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--background);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease
}

.call-modal-close:hover {
    color: var(--foreground);
    border-color: #a855f7;
    transform: rotate(90deg)
}

.call-modal-head {
    margin-bottom: 1.25rem;
    padding-right: 2rem
}

.call-modal-eyebrow {
    display: inline-block;
    margin-bottom: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--foreground);
    background: linear-gradient(135deg, rgba(255, 128, 0, 0.16), rgba(102, 0, 255, 0.16))
}

.call-modal-head h3 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--foreground)
}

.call-modal-head p {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted-foreground)
}

.call-submit {
    width: 100%;
    padding: 0.75rem;
    border: 0;
    border-radius: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #f97316);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease
}

.call-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.4)
}

@media(max-width:767px) {
    .contact-wrap {
        grid-template-columns: 1fr
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap
    }

    .contact-info-card {
        flex: 1 1 100%
    }
}

@media(prefers-reduced-motion:reduce) {

    .contact-info-card:hover,
    .links-item:hover,
    .contact-submit:hover,
    .call-submit:hover {
        transform: none;
        transition: none
    }
}

/* ---- Magnetic Spotlight Marquee (VengeanceUI style) ---- */
.spotlight {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    background: #ffffff;
    color: #ffffff;
    font-family: var(--font-sans);
    padding: 0 !important;
    margin: 0;
    max-width: none
}

.dark .spotlight {
    background: #0f0f0f
}

.spotlight-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.6;
    opacity: 0.9;
    mix-blend-mode: difference;
    pointer-events: none
}

@media(min-width:768px) {
    .spotlight-nav {
        font-size: 0.75rem
    }
}

.spotlight-marquee {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 20;
    height: 160px;
    pointer-events: none;
    will-change: transform
}

@media(min-width:768px) {
    .spotlight-marquee {
        height: 200px
    }
}

.spotlight-marquee-track {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    will-change: transform
}

.spotlight-card {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #f5f5f5;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.25s ease
}

.spotlight-card:hover {
    transform: scale(1.04)
}

@media(min-width:768px) {
    .spotlight-card {
        width: 180px;
        height: 180px
    }
}

.dark .spotlight-card {
    background: #171717
}

.spotlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.spotlight-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    z-index: 30;
    pointer-events: none;
    mix-blend-mode: difference
}

@media(min-width:768px) {
    .spotlight-content {
        padding: 0 3rem
    }
}

@media(min-width:1024px) {
    .spotlight-content {
        padding: 0 6rem
    }
}

.spotlight-title {
    font-family: var(--font-serif);
    font-size: 15vw;
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.03em;
    text-align: center;
    margin: 0 0 5rem;
    display: flex;
    flex-direction: column;
    align-items: center
}

@media(min-width:768px) {
    .spotlight-title {
        font-size: 12rem
    }
}

.spotlight-title .wake-target {
    display: inline-block;
    position: relative
}

.spotlight-row {
    width: 100%;
    max-width: 80rem;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 1rem;
    gap: 2rem
}

@media(min-width:768px) {
    .spotlight-row {
        flex-direction: row;
        padding: 0 2rem;
        gap: 1rem
    }
}

.spotlight-subtitle {
    flex: 1;
    margin-top: 0.25rem;
    text-align: right
}

@media(min-width:768px) {
    .spotlight-subtitle {
        max-width: 280px
    }
}

.spotlight-subtitle h3 {
    margin: 0;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    font-weight: 500;
    line-height: 1.1
}

@media(min-width:768px) {
    .spotlight-subtitle h3 {
        font-size: 1.875rem
    }
}

.spotlight-paragraphs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.625rem;
    line-height: 1.6
}

@media(min-width:640px) {
    .spotlight-paragraphs {
        flex-direction: row;
        gap: 3rem
    }
}

@media(min-width:768px) {
    .spotlight-paragraphs {
        font-size: 0.75rem
    }
}

.spotlight-para {
    flex: 1;
    display: flex;
    flex-direction: column
}

.spotlight-para .wake-target {
    white-space: nowrap
}

.spotlight-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    pointer-events: none;
    mix-blend-mode: difference
}

.spotlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease
}

.spotlight-cta:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25)
}

.spotlight-cta-arrow {
    display: inline-block;
    transition: transform 0.25s ease
}

.spotlight-cta:hover .spotlight-cta-arrow {
    transform: translateX(4px)
}

.spotlight-footer p {
    max-width: 42rem;
    text-align: center;
    font-size: 0.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0
}

@media(min-width:768px) {
    .spotlight-footer p {
        font-size: 0.625rem
    }
}

@media(prefers-reduced-motion:reduce) {

    .spotlight-marquee,
    .spotlight-content .wake-target {
        transform: none !important;
        transition: none !important
    }
}

/* ---- Spotlight press cursor ---- */
.spotlight-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #f97316 100%);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4)
}

.spotlight-cursor.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1)
}

/* ---- Hero theme video ---- */
.hero {
    background: #ffffff
}

.dark .hero {
    background: var(--background)
}

.hero-overlay {
    background: radial-gradient(ellipse at center, transparent 35%, #ffffff 100%)
}

.dark .hero-overlay {
    background: radial-gradient(ellipse at center, transparent 35%, var(--background) 100%)
}

/* ===== CONTACT PAGE (redesign) ===== */
.contact-section {
    background: #ffffff
}

.dark .contact-section {
    background: linear-gradient(180deg, #0e0e0f 0%, #1a1a1d 100%)
}

/* Contact Toolbar & Tab Switcher */
.contact-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap
}

.contact-tab-group {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: #f1f1f5;
    border: 1px solid rgba(0, 0, 0, 0.08)
}

.dark .contact-tab-group {
    background: #1c1c20;
    border-color: rgba(255, 255, 255, 0.08)
}

.contact-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--muted-foreground);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.22s ease
}

.contact-tab-btn:hover {
    color: var(--foreground)
}

.contact-tab-btn.active {
    background: #ffffff;
    color: #0f0f12;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08)
}

.dark .contact-tab-btn.active {
    background: #2b2b32;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3)
}

.contact-social-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f1f5;
    border: 1px solid rgba(0, 0, 0, 0.08)
}

.dark .contact-social-pills {
    background: #1c1c20;
    border-color: rgba(255, 255, 255, 0.08)
}

.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.2s ease
}

.social-pill:hover {
    color: var(--foreground);
    background: rgba(0, 0, 0, 0.06)
}

.dark .social-pill:hover {
    background: rgba(255, 255, 255, 0.1)
}

/* Tab Content */
.contact-tab-content {
    margin-top: 2.5rem;
    transition: opacity 0.3s ease
}

.contact-tab-content.hidden {
    display: none
}

/* ===== EMBEDDED BOOKING CALENDAR WIDGET ===== */
.booking-card-widget {
    display: grid;
    grid-template-columns: 260px 1.2fr 280px;
    max-width: 64rem;
    margin: 0 auto;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden
}

.dark .booking-card-widget {
    border-color: rgba(255, 255, 255, 0.08);
    background: #141416;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5)
}

.booking-panel {
    padding: 1.75rem;
    position: relative
}

.booking-panel-host {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.01)
}

.dark .booking-panel-host {
    border-right-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.01)
}

.booking-panel-calendar {
    border-right: 1px solid rgba(0, 0, 0, 0.06)
}

.dark .booking-panel-calendar {
    border-right-color: rgba(255, 255, 255, 0.06)
}

/* Host Panel */
.host-profile {
    display: flex;
    flex-direction: column;
    gap: 0.875rem
}

.host-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px
}

.host-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover
}

.host-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #ffffff
}

.dark .host-status-dot {
    border-color: #141416
}

.host-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground)
}

.meeting-title {
    margin: 0.2rem 0 0;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground)
}

.meeting-details-list {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem
}

.meeting-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground)
}

.detail-icon {
    color: var(--muted-foreground);
    flex-shrink: 0
}

.booking-select-minimal {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--foreground);
    outline: none;
    cursor: pointer
}

.dark .booking-select-minimal {
    border-color: rgba(255, 255, 255, 0.15);
    background: #1c1c20
}

/* Calendar Panel */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem
}

.cal-month-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--foreground)
}

.cal-nav-btns {
    display: flex;
    gap: 0.35rem
}

.cal-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease
}

.dark .cal-nav-btn {
    border-color: rgba(255, 255, 255, 0.08)
}

.cal-nav-btn:hover {
    color: var(--foreground);
    border-color: var(--foreground)
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.18s ease
}

.cal-day:hover:not(.is-disabled):not(.is-empty) {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7
}

.cal-day.is-disabled {
    opacity: 0.25;
    cursor: not-allowed
}

.cal-day.is-empty {
    cursor: default
}

.cal-day.is-selected {
    background: #ffffff !important;
    color: #0e0e11 !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15)
}

.dark .cal-day.is-selected {
    background: #ffffff !important;
    color: #0e0e11 !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2)
}

/* Slots & Form Panel */
.slots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem
}

.slots-day-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--foreground)
}

.time-format-toggle {
    display: inline-flex;
    padding: 2px;
    border-radius: 8px;
    background: #f1f1f5;
    border: 1px solid rgba(0, 0, 0, 0.08)
}

.dark .time-format-toggle {
    background: #1c1c20;
    border-color: rgba(255, 255, 255, 0.08)
}

.tf-btn {
    padding: 2px 8px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    cursor: pointer
}

.tf-btn.active {
    background: #ffffff;
    color: #0f0f12
}

.dark .tf-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff
}

.slots-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 4px
}

.slot-pill {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f8fa;
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease
}

.dark .slot-pill {
    background: #1c1c20;
    border-color: rgba(255, 255, 255, 0.08)
}

.slot-pill:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.08);
    transform: translateY(-1px)
}

.slot-pill.is-selected {
    background: linear-gradient(135deg, #7c3aed, #f97316) !important;
    border-color: transparent !important;
    color: #ffffff !important
}

/* Step 2 Form */
.slots-step.hidden {
    display: none
}

.selected-summary-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem
}

.change-slot-link {
    border: 0;
    background: transparent;
    color: #a855f7;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline
}

.booking-field {
    margin-bottom: 0.85rem
}

.booking-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78125rem;
    font-weight: 600;
    color: var(--foreground)
}

.booking-field input,
.booking-field textarea,
.booking-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f8fa;
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease
}

.dark .booking-field input,
.dark .booking-field textarea,
.dark .booking-field select {
    background: #1c1c20;
    border-color: rgba(255, 255, 255, 0.08)
}

.booking-field input:focus,
.booking-field textarea:focus,
.booking-field select:focus {
    border-color: #a855f7
}

.booking-submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(135deg, #7c3aed, #f97316);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease
}

.booking-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.4)
}

/* Success Box */
.booking-success-box {
    text-align: center;
    padding: 1.5rem 0
}

.success-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    margin-bottom: 1rem
}

.booking-success-box h4 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground)
}

.booking-success-box p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin-bottom: 1.5rem
}

.booking-reset-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-weight: 600;
    cursor: pointer
}

.contact-status-msg,
.booking-status-msg {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500
}

.contact-status-msg.success,
.booking-status-msg.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e
}

.contact-status-msg.error,
.booking-status-msg.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444
}

@media(max-width: 960px) {
    .booking-card-widget {
        grid-template-columns: 1fr;
        max-width: 32rem
    }

    .booking-panel-host,
    .booking-panel-calendar {
        border-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06)
    }

    .dark .booking-panel-host,
    .dark .booking-panel-calendar {
        border-bottom-color: rgba(255, 255, 255, 0.06)
    }
}


.contact-submit:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none
}

.contact-footnote {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted-foreground)
}

/* ===== SCHEDULING MODAL ===== */
.call-modal .call-modal-card {
    max-width: 46rem
}

.sched-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem
}

@media(min-width:640px) {
    .sched-grid {
        grid-template-columns: 1.2fr 1fr
    }
}

.sched-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem
}

.sched-cal-month {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground)
}

.sched-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s
}

.sched-cal-nav:hover {
    color: var(--foreground);
    border-color: #a855f7
}

.sched-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.375rem
}

.sched-cal-weekdays span {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    padding: 0.25rem 0
}

.sched-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem
}

.sched-cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    border: 0;
    border-radius: 0.625rem;
    background: transparent;
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s
}

.sched-cal-day:hover:not(.is-disabled):not(.is-selected) {
    background: rgba(124, 58, 237, 0.12)
}

.sched-cal-day.is-disabled {
    color: var(--muted-foreground);
    opacity: 0.35;
    cursor: default
}

.sched-cal-day.is-selected {
    background: linear-gradient(135deg, #7c3aed, #f97316);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35)
}

.sched-cal-day.is-empty {
    pointer-events: none
}

.sched-slots {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem
}

@media(max-width:639px) {
    .sched-slots {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 1.25rem
    }
}

.sched-slots-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem
}

.sched-slots-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem
}

@media(max-width:639px) {
    .sched-slots-list {
        grid-template-columns: repeat(4, 1fr)
    }
}

.sched-slot {
    padding: 0.5rem 0.375rem;
    border-radius: 0.625rem;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s
}

.sched-slot:hover {
    border-color: #a855f7
}

.sched-slot.is-selected {
    background: linear-gradient(135deg, #7c3aed, #f97316);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3)
}

.sched-note {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted-foreground)
}

.sched-confirm:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none !important;
    box-shadow: none !important
}

/* =========================================
   BOOK A CALL POPUP MODAL
   ========================================= */

/* Backdrop overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    background: rgba(255, 255, 255, 0.3)
}

.dark .modal-overlay {
    background: rgba(0, 0, 0, 0.3)
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto
}

/* Main Modal Card */
.book-call-modal {
    position: fixed;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: 520px;
    max-width: min(92vw, 520px);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.72) 0%, rgba(247, 247, 248, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(26px) saturate(1.5);
    -webkit-backdrop-filter: blur(26px) saturate(1.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.22, 1, .36, 1), transform 0.35s cubic-bezier(.22, 1, .36, 1);
    max-height: calc(100vh - 3rem);
    max-height: calc(100dvh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain
}

.dark .book-call-modal {
    background: linear-gradient(135deg, rgba(14, 14, 15, 0.6) 0%, rgba(26, 26, 29, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(26px) saturate(1.3);
    -webkit-backdrop-filter: blur(26px) saturate(1.3)
}

.dark .book-call-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
    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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

.modal-content {
    position: relative;
    z-index: 1
}

.book-call-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1)
}

/* Close button */
.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: transparent;
    border: 0;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 10
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--foreground)
}

.dark .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff
}

/* Modal Content Steps */
.modal-step {
    display: none;
    flex-direction: column
}

.modal-step.active {
    display: flex
}

.modal-title {
    font-family: var(--font-sans);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    text-align: center
}

.dark .modal-title {
    color: #fff
}

.modal-subtitle {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    text-align: center
}

.dark .modal-subtitle {
    color: rgba(255, 255, 255, 0.6)
}

/* Day cells */
.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s
}

.dark .cal-day {
    color: rgba(255, 255, 255, 0.8)
}

.cal-day:hover:not(.is-empty):not(.disabled) {
    background: rgba(0, 0, 0, 0.04)
}

.dark .cal-day:hover:not(.is-empty):not(.disabled) {
    background: rgba(255, 255, 255, 0.05)
}

.cal-day.disabled {
    color: var(--muted-foreground);
    opacity: 0.25;
    cursor: not-allowed
}

.cal-day.is-empty {
    cursor: default
}

.cal-day.selected {
    background: linear-gradient(135deg, #A855F7 0%, #F97316 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25)
}

.tf-btn {
    padding: 2px 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 0;
    background: transparent;
    border-radius: 4px;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: background 0.15s, color 0.15s
}

.tf-btn.active {
    background: #FFFFFF;
    color: var(--foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05)
}

.dark .tf-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff
}

/* ===== Reach Out Composer ===== */
.reachout-view .modal-title {
    text-align: left;
    font-size: 1.5rem
}

.reachout-view .modal-subtitle {
    text-align: left
}

.ro-message-box {
    width: 100%;
    background: #F7F7F8;
    border: 1px solid #E5E5E5;
    border-radius: 1.125rem;
    padding: 1.25rem 1.5rem;
    transition: background 0.25s, border-color 0.25s
}

.dark .ro-message-box {
    background: #1A1A1D;
    border-color: #2A2A2A
}

.ro-message-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem
}

.ro-message-avatar {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0
}

.ro-sender {
    margin-top: 1rem
}

.ro-sender-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem
}

.ro-sender-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.35rem
}

.ro-sender-field input {
    width: 100%;
    height: 2.6rem;
    padding: 0 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(247, 247, 248, 0.55);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: 0;
    transition: border-color 0.2s, background 0.2s
}

.dark .ro-sender-field input {
    background: rgba(26, 26, 29, 0.5);
    border-color: rgba(255, 255, 255, 0.08)
}

.ro-sender-field input:focus {
    border-color: var(--ring)
}

.ro-sender-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.875rem
}

@media(max-width:420px) {
    .ro-sender-grid {
        grid-template-columns: 1fr
    }
}

.ro-textarea {
    display: block;
    width: 100%;
    min-height: 5.5rem;
    background: transparent;
    border: 0;
    outline: 0;
    resize: none;
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6
}

.dark .ro-textarea {
    color: #FFFFFF
}

.ro-textarea::placeholder {
    color: var(--muted-foreground)
}

.ro-hint {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
    user-select: none
}

.ro-continue-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem
}

.ro-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #A855F7 0%, #F97316 100%);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.28);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1)
}

.ro-continue-btn:hover:not(:disabled) {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45)
}

.ro-continue-btn:disabled {
    opacity: 0.6;
    cursor: wait
}

.ro-continue-arrow {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1)
}

.ro-continue-btn:hover .ro-continue-arrow {
    transform: translateX(2px)
}

.ro-status {
    display: none;
    margin-top: 0.75rem;
    min-height: 1.25rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted-foreground)
}

.ro-status.show {
    display: block
}

.ro-status.success {
    color: #10B981
}

.ro-status.error {
    color: #EF4444
}

.ro-options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 1.25rem;
    width: 100%
}

.ro-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1 1 12.5rem;
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    background: rgba(247, 247, 248, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--foreground);
    font-family: var(--font-sans);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.25s, background 0.25s
}

.dark .ro-option {
    background: rgba(26, 26, 29, 0.5);
    border-color: rgba(255, 255, 255, 0.08)
}

.ro-option:hover {
    transform: scale(1.015);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1)
}

.dark .ro-option:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45)
}

.ro-meet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem
}

.ro-meet-pic {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--secondary);
    flex-shrink: 0
}

.ro-meet-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.ro-meet-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.8rem;
    line-height: 1;
    flex-shrink: 0
}

.ro-meet-you {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.9rem;
    height: 2.9rem;
    padding: 0 0.5rem;
    border-radius: 0.9rem;
    border: 1px dashed var(--muted-foreground);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: var(--muted-foreground);
    flex-shrink: 0
}

.ro-email-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    color: var(--muted-foreground)
}

.ro-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem
}

.ro-option-text strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground)
}

.ro-option-text span {
    font-size: 0.75rem;
    color: var(--muted-foreground)
}

.ro-option-arrow {
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), color 0.25s
}

.ro-option:hover .ro-option-arrow {
    transform: translateX(2px);
    color: var(--foreground)
}

.ro-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem
}

.ro-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid #E5E5E5;
    color: var(--muted-foreground);
    background: transparent;
    transition: color 0.25s, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.25s
}

.dark .ro-social {
    border-color: #2A2A2A
}

.ro-social:hover {
    color: var(--foreground);
    border-color: var(--foreground);
    transform: scale(1.08)
}

.dark .ro-social:hover {
    color: #FFFFFF;
    border-color: #FFFFFF
}

/* ===== Guestbook ===== */
.gb-hero {
    position: relative;
    text-align: center;
    padding: 3.5rem 0 4rem;
    overflow: hidden
}

.gb-hero::before {
    content: '';
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 92%);
    height: 360px;
    background:
        radial-gradient(45% 60% at 32% 35%, rgba(168, 85, 247, 0.16), transparent 70%),
        radial-gradient(45% 60% at 68% 35%, rgba(249, 115, 22, 0.13), transparent 70%);
    filter: blur(26px);
    pointer-events: none;
    z-index: 0
}

.gb-hero>* {
    position: relative;
    z-index: 1
}

.gb-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 5rem);
    line-height: 1.05;
    letter-spacing: 0.05em;
    color: var(--foreground);
    margin-bottom: 1.25rem
}

.gb-hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--muted-foreground);
    letter-spacing: 0.04em;
    margin-bottom: 2rem
}

.gb-hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-foreground)
}

.gb-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem
}

.gb-avatar-picker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem
}

.gb-avatar-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.875rem;
    height: 2.875rem;
    border-radius: 50%;
    border: 2px solid transparent;
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.25s, box-shadow 0.25s
}

.gb-avatar-opt svg {
    width: 15px;
    height: 15px;
    opacity: 0.92
}

.gb-avatar-opt:hover {
    transform: scale(1.12)
}

.gb-avatar-opt.selected {
    border-color: var(--foreground);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.4), 0 8px 22px rgba(0, 0, 0, 0.18)
}

.dark .gb-avatar-opt.selected {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.5), 0 8px 22px rgba(0, 0, 0, 0.4)
}

.gb-avatar-g1 {
    background: linear-gradient(135deg, #A855F7, #EC4899)
}

.gb-avatar-g2 {
    background: linear-gradient(135deg, #F97316, #FBBF24)
}

.gb-avatar-g3 {
    background: linear-gradient(135deg, #22C55E, #14B8A6)
}

.gb-avatar-g4 {
    background: linear-gradient(135deg, #3B82F6, #06B6D4)
}

.gb-avatar-g5 {
    background: linear-gradient(135deg, #EC4899, #F43F5E)
}

.gb-avatar-g6 {
    background: linear-gradient(135deg, #8B5CF6, #6366F1)
}

.gb-name-input {
    width: 100%;
    max-width: 320px;
    height: 2.75rem;
    padding: 0 1.125rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-align: center;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s
}

.gb-name-input:focus {
    border-color: #A855F7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18)
}

.gb-composer {
    max-width: 560px;
    margin: 0 auto 3.5rem
}

.gb-feed {
    max-width: 880px;
    margin: 0 auto;
    columns: 3;
    column-gap: 1.25rem
}

@media(max-width:1023px) {
    .gb-feed {
        columns: 2
    }
}

@media(max-width:639px) {
    .gb-feed {
        columns: 1
    }
}

.gb-card {
    position: relative;
    overflow: hidden;
    break-inside: avoid;
    background: #FDFDFD;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    padding: 1.375rem 1.5rem;
    margin-bottom: 1.25rem;
    transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s
}

.dark .gb-card {
    background: #16161A;
    border-color: #2A2A2A
}

.gb-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(130% 110% at 0% 0%, var(--gb-tint, transparent), transparent 55%)
}

.gb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08)
}

.dark .gb-card:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35)
}

.gb-card--green {
    --gb-tint: rgba(34, 197, 94, 0.16)
}

.gb-card--purple {
    --gb-tint: rgba(168, 85, 247, 0.16)
}

.gb-card--amber {
    --gb-tint: rgba(249, 115, 22, 0.14)
}

.gb-card--blue {
    --gb-tint: rgba(59, 130, 246, 0.14)
}

.gb-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem
}

.gb-card-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #A855F7, #EC4899)
}

.gb-card-avatar svg {
    width: 15px;
    height: 15px;
    opacity: 0.92
}

.gb-card-avatar-img {
    background: none
}

.gb-card-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--foreground)
}

.gb-card-date {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap
}

.gb-card-message {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--foreground);
    white-space: pre-wrap
}

.gb-socials {
    margin-bottom: 1rem
}

@media(max-width:640px) {
    .gb-avatar-picker {
        gap: 0.75rem
    }

    .gb-avatar-opt {
        width: 2.5rem;
        height: 2.5rem
    }
}

/* ============ PHONE-SPECIFIC OVERRIDES (≤767px) ============ */
.nav-burger,
.mobile-nav,
.mobile-nav-overlay {
    display: none !important
}

.posters-mobile {
    display: none
}

@media(max-width:767px) {

    /* Fixed navbar is replaced on phones (links live in the slide-in menu) */
    header {
        display: none
    }

    /* Greeting bar becomes a small centered pill: greeting → logoy.png → "tap here to search" */
    .greeting-bar {
        top: 0.625rem;
        left: 0;
        right: 0;
        width: auto;
        display: flex;
        justify-content: center;
        pointer-events: none
    }

    .greeting-bar nav {
        display: contents
    }

    .greeting-bar .logo {
        display: none
    }

    /* On mobile the theme toggle sits right next to the "Tap here to search" pill */
    .greeting-bar .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-left: 0.5rem;
        pointer-events: auto;
    }

    .greeting-bar .search-trigger {
        display: none
    }

    .greeting-bar .nav-center {
        margin: 0
    }

    .greeting-bar .nav-links {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 0;
        box-shadow: none;
        padding: 0;
        width: auto;
        overflow: visible
    }

    .greeting-msg {
        padding: 0.55rem 1.4rem;
        font-size: 0.9375rem;
        font-weight: 600;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--card);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        color: var(--foreground);
        white-space: nowrap;
        letter-spacing: 0.01em
    }

    .greeting-msg.is-tap {
        pointer-events: auto;
        cursor: pointer
    }

    .greeting-bar.is-tap .greeting-msg {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(249, 115, 22, 0.12));
        border-color: var(--ring)
    }

    .greeting-pill-logo {
        height: 26px;
        width: auto;
        display: block;
        object-fit: contain
    }

    /* Hamburger (floating circular button) */
    .nav-burger {
        display: flex;
        position: fixed;
        top: 0.75rem;
        right: 0.875rem;
        z-index: 5200;
        width: 46px;
        height: 46px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
        cursor: pointer;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    html.dark .nav-burger {
        background: rgba(15, 23, 42, 0.88);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .nav-burger:active {
        transform: scale(0.92);
    }

    .nav-burger-line {
        display: block;
        width: 20px;
        height: 2.2px;
        border-radius: 2px;
        background: var(--foreground);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background 0.3s ease;
    }

    .nav-burger.is-open .nav-burger-line:nth-child(1) {
        transform: translateY(7.2px) rotate(45deg);
        background: #10b981;
    }

    .nav-burger.is-open .nav-burger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-burger.is-open .nav-burger-line:nth-child(3) {
        transform: translateY(-7.2px) rotate(-45deg);
        background: #10b981;
    }

    /* Vertical right-side overlay backdrop */
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 5100;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-nav-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* Slide-in vertical sidebar (covers part of screen, floating capsule shape) */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 0.6rem;
        right: 0.6rem;
        bottom: 0.6rem;
        z-index: 5150;
        width: min(72vw, 230px);
        height: calc(100vh - 1.2rem);
        flex-direction: column;
        padding: 1rem 0.85rem 1.5rem;
        border-radius: 28px;
        background: transparent;
        background-size: auto;
        background-position: 0% 0%;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: translateX(calc(100% + 2rem));
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-position 0.8s ease, opacity 0.35s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    /* Dark mode deep cinematic gradient (dark emerald -> charcoal) */
    html.dark .mobile-nav {
        background: transparent;
        background-size: auto;
        border: none;
        box-shadow: none;
    }

    .mobile-nav.is-open {
        transform: translateX(0);
        background-position: 100% 100%;
    }

    /* Top close X button container */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem 0 1rem;
        margin-bottom: 0.25rem;
    }

    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.4);
        color: var(--foreground);
        cursor: pointer;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    html.dark .mobile-nav-close {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-close:active {
        transform: scale(0.92);
    }

    .mobile-nav-close:hover {
        color: #10b981;
        background: rgba(16, 185, 129, 0.12);
        border-color: rgba(16, 185, 129, 0.3);
    }

    .mobile-nav-close svg {
        stroke: currentColor;
    }

    /* Nav links list styling */
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.85rem;
        padding: 0.8rem 0.9rem;
        border-radius: 16px;
        font-family: var(--font-sans);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted-foreground);
        text-decoration: none;
        position: relative;
        transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, transform 0.25s ease, padding 0.25s ease;
    }

    html.dark .mobile-nav-links a {
        color: #94a3b8;
    }

    .mobile-nav-links a svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        stroke: currentColor;
        transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
        opacity: 0.8;
    }

    .mobile-nav-links a:hover {
        color: var(--foreground);
        background: transparent;
        transform: none;
    }

    /* Active Highlighted State (like green HOME in reference image) */
    .mobile-nav-links a.active {
        color: #10b981 !important;
        font-weight: 800;
        background: transparent !important;
        box-shadow: none;
    }

    .mobile-nav-links a.active svg {
        opacity: 1;
        color: #10b981 !important;
        stroke: #10b981 !important;
        transform: scale(1.08);
    }

    /* Green pill indicator attached to active link (reference image style!) */
    .mobile-nav-links a.active::after {
        display: none;
    }

    .mobile-nav-foot {
        margin-top: auto;
        padding-top: 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
    }

    .mobile-book-btn {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1rem;
        border: 0;
        border-radius: 999px;
        font-family: var(--font-sans);
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: inherit;
        background: transparent;
        cursor: pointer;
        box-shadow: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-book-btn:active {
        transform: scale(0.96);
    }

    /* Search panel: compact, positioned cleanly at top of screen on mobile with exit tools on the left side */
    .search-panel {
        top: max(1.25rem, env(safe-area-inset-top, 1.25rem));
        left: 50%;
        width: min(92vw, 440px);
        max-height: calc(100vh - max(2.5rem, env(safe-area-inset-top, 1.25rem) + 1.25rem));
        max-height: calc(100dvh - max(2.5rem, env(safe-area-inset-top, 1.25rem) + 1.25rem));
        z-index: 5600;
        transform: translateX(-50%) translateY(-10px) scale(0.97)
    }

    .search-panel.is-visible {
        transform: translateX(-50%) translateY(0) scale(1)
    }

    .search-overlay {
        z-index: 5500
    }

    .search-bar {
        flex-direction: row-reverse !important
    }

    .search-input-pill {
        height: 46px;
        padding: 0 1rem
    }

    .search-tool {
        width: 42px;
        height: 42px
    }

    .search-body {
        padding: 0.875rem 0.75rem;
        border-radius: 0.875rem
    }

    .search-footer {
        display: none
    }

    /* Book a Call / Reach Out Modal on Mobile: exit button on top-left (opposite burger icon) */
    .book-call-modal {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.96) !important;
        width: min(92vw, 440px) !important;
        max-height: calc(100vh - 2rem) !important;
        max-height: calc(100dvh - 2rem) !important;
        padding: 1.5rem 1.25rem !important;
        border-radius: 20px !important
    }

    .book-call-modal.active {
        transform: translate(-50%, -50%) scale(1) !important
    }

    .modal-close-btn {
        top: 0.875rem !important;
        left: 0.875rem !important;
        right: auto !important;
        width: 2.25rem !important;
        height: 2.25rem !important;
        background: rgba(0, 0, 0, 0.08) !important;
        border-radius: 50% !important;
        z-index: 20 !important
    }

    .dark .modal-close-btn {
        background: rgba(255, 255, 255, 0.12) !important
    }

    /* Home — Services: same floating posters experience as laptops */
    .posters-hint {
        bottom: 1rem;
        font-size: 0.625rem
    }

    /* About — socials sit a little lower below the book */
    .about-book {
        gap: 2.75rem
    }

    /* About — book: compact, stays inside the phone */
    /* Closed state — comfortable width */
    .book-inner {
        width: min(58vw, 240px);
        height: auto;
        aspect-ratio: 350 / 500
    }

    /* Open state — the book spreads; left page (cover) + right page both fit */
    .book--open .book-inner {
        width: min(42vw, 180px);
        transform: translateX(min(21vw, 90px))
    }

    .book-page-front {
        padding: 0.85rem 0.75rem
    }

    .book-page-title {
        font-size: 0.875rem;
        margin-bottom: 0.65rem
    }

    .book-page-text {
        font-size: 0.625rem;
        line-height: 1.55
    }

    .book-page-num {
        margin-bottom: 0.5rem
    }

    .book-page-back span {
        font-size: 3rem
    }

    .book-cover-meta h3 {
        font-size: 0.75rem
    }

    .book-cover-meta p {
        font-size: 0.4rem
    }

    /* Premium mobile nav-links hover */
    .mobile-nav-links a:hover,
    .mobile-nav-links a:focus {
        color: var(--foreground);
        padding-left: 0.75rem
    }

    /* Greeting pill text — smooth fade transition when text changes */
    .greeting-msg {
        transition: opacity 0.35s ease
    }
}

/* Light theme: dark hero text so it stays readable over white.mp4 */
html:not(.dark) .hero-heading {
    color: #0b0b0d
}

html:not(.dark) .hero .hero-subtitle {
    color: rgba(10, 10, 12, 0.72)
}

html:not(.dark) .hero .hero-badge {
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.7)
}

/* Light theme mobile: hero words are black; "wow" keeps its gradient */
@media(max-width:767px) {
    html:not(.dark) .hero-heading .hero-word {
        color: #0b0b0d
    }

    /* "wow" span uses background-clip gradient — reset color to transparent so gradient shows */
    html:not(.dark) .hero-heading .hero-word .text-colorfull {
        color: transparent;
        background-clip: text;
        -webkit-background-clip: text
    }

    /* Premium gradient fallback — ensure wow is always vibrant */
    html:not(.dark) .hero-heading .text-colorfull {
        background-image: linear-gradient(135deg, #7c3aed, #f97316, #ec4899);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent
    }
}

/* ================================================================
   REBUILT PREMIUM BLOCKS (guestbook, legal pages, consent banner,
   ambient page backgrounds) -- appended 2026-08-03
   ================================================================ */

/* ---- Honeypot anti-spam field: invisible to humans, bots get trapped ---- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  margin: 0;
}

/* ===== Guestbook premium ===== */
.gb-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.gb-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--foreground);
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}
.gb-hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 1rem;
}
.gb-hero-tagline {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin: 0;
}

.gb-stage {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1.75rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.gb-composer-card {
  position: relative;
  padding: 2.1rem 1.9rem 1.9rem;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  background-image:
    radial-gradient(460px 250px at 50% -6%, rgba(168, 85, 247, 0.16), transparent 70%),
    radial-gradient(320px 200px at 105% 105%, rgba(249, 115, 22, 0.13), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 252, 0.76), rgba(244, 245, 250, 0.68)),
    linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(249, 115, 22, 0.45), rgba(236, 72, 153, 0.5));
  background-origin: padding-box, padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, padding-box, border-box;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 26px 70px rgba(88, 62, 160, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.dark .gb-composer-card {
  background-image:
    radial-gradient(460px 250px at 50% -6%, rgba(168, 85, 247, 0.22), transparent 70%),
    radial-gradient(320px 200px at 105% 105%, rgba(249, 115, 22, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(34, 34, 44, 0.94), rgba(20, 20, 27, 0.86)),
    linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(249, 115, 22, 0.45), rgba(236, 72, 153, 0.5));
  background-origin: padding-box, padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, padding-box, border-box;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.gb-composer-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, #A855F7, #F97316, #EC4899);
  z-index: 2;
}
.gb-composer-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -25%;
  width: 55%;
  height: 180%;
  pointer-events: none;
  transform: rotate(16deg) translateX(-220%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: gb-shine 8s ease-in-out infinite;
}
.dark .gb-composer-card::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}
@keyframes gb-shine {
  0%, 55% { transform: rotate(16deg) translateX(-220%); }
  80%, 100% { transform: rotate(16deg) translateX(320%); }
}

.gb-composer-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.gb-composer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
}
.gb-composer-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.gb-identity {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.1rem;
}
.gb-avatar-picker {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.gb-avatar-opt {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(168, 85, 247, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.dark .gb-avatar-opt {
  border-color: rgba(255, 255, 255, 0.16);
}
.gb-avatar-opt:hover {
  transform: scale(1.08);
}
.gb-avatar-opt.selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.35), 0 8px 20px rgba(168, 85, 247, 0.3);
}
.gb-avatar-g1 { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.gb-avatar-g2 { background: linear-gradient(135deg, #3B82F6, #06B6D4); }
.gb-avatar-g3 { background: linear-gradient(135deg, #EC4899, #F43F5E); }
.gb-avatar-g4 { background: linear-gradient(135deg, #F59E0B, #F97316); }
.gb-avatar-g5 { background: linear-gradient(135deg, #22C55E, #10B981); }
.gb-avatar-g6 { background: linear-gradient(135deg, #14B8A6, #0EA5E9); }

.gb-name-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.72rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gb-name-input:focus {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.14);
}

/* Provider row: logo-only sign-in buttons */
.gb-provider-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 1.2rem 0 0.4rem;
}
.gb-provider-note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.gb-provider-btns {
  display: flex;
  gap: 0.7rem;
}
.gb-logo-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.gb-logo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(168, 85, 247, 0.5);
}
.dark .gb-logo-btn:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.gb-logo-google:hover {
  border-color: rgba(66, 133, 244, 0.6);
  box-shadow: 0 10px 24px rgba(66, 133, 244, 0.22);
}
.gb-logo-github:hover {
  border-color: rgba(148, 163, 184, 0.7);
}

/* Signed-in chip */
.gb-auth-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0.2rem;
  padding: 0.5rem 0.9rem 0.5rem 0.55rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.28);
  width: fit-content;
  max-width: 100%;
}
.gb-auth-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #A855F7, #7C3AED);
}
.gb-auth-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gb-auth-out {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.gb-auth-out:hover {
  color: #EA4335;
  background: rgba(234, 67, 53, 0.12);
}

/* The wall */
.gb-wall {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.gb-wall-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0 0.35rem;
}
.gb-wall-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--foreground);
  margin: 0;
}
.gb-feed {
  columns: 2;
  column-gap: 1.25rem;
}
.gb-card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.1rem 1.2rem 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.gb-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
}
.gb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--hairline);
}
.dark .gb-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.gb-card--green::before { background: linear-gradient(90deg, #22C55E, #10B981); }
.gb-card--purple::before { background: linear-gradient(90deg, #A855F7, #7C3AED); }
.gb-card--amber::before { background: linear-gradient(90deg, #F59E0B, #F97316); }
.gb-card--blue::before { background: linear-gradient(90deg, #3B82F6, #06B6D4); }
.gb-card--green { background-image: radial-gradient(140% 90% at 0% 0%, rgba(34, 197, 94, 0.07), transparent 60%); }
.gb-card--purple { background-image: radial-gradient(140% 90% at 0% 0%, rgba(168, 85, 247, 0.08), transparent 60%); }
.gb-card--amber { background-image: radial-gradient(140% 90% at 0% 0%, rgba(245, 158, 11, 0.07), transparent 60%); }
.gb-card--blue { background-image: radial-gradient(140% 90% at 0% 0%, rgba(59, 130, 246, 0.08), transparent 60%); }
.gb-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.gb-card-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gb-card-avatar-img {
  overflow: hidden;
}
.gb-card-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gb-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gb-card-date {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted-foreground);
  flex: 0 0 auto;
}
.gb-card-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.gb-socials {
  justify-content: center;
  margin-top: 2.5rem;
}

/* Sign-in popup (logo-only) */
.gb-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 10, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gb-auth-overlay.show {
  opacity: 1;
  visibility: visible;
}
.gb-auth-pop {
  position: relative;
  width: min(360px, 100%);
  padding: 2.2rem 2rem 2rem;
  border-radius: 26px;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 252, 0.82)) padding-box,
    linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(249, 115, 22, 0.4), rgba(236, 72, 153, 0.45)) border-box;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.dark .gb-auth-pop {
  background:
    linear-gradient(165deg, rgba(32, 32, 42, 0.96), rgba(18, 18, 26, 0.9)) padding-box,
    linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(249, 115, 22, 0.4), rgba(236, 72, 153, 0.45)) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.gb-auth-pop-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.gb-auth-pop-close:hover {
  color: var(--foreground);
  border-color: var(--hairline);
  transform: rotate(90deg);
}
.gb-auth-pop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #A855F7, #F97316);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.35);
}
.gb-auth-pop-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
  margin: 0 0 0.35rem;
}
.gb-auth-pop-sub {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  margin: 0 0 1.4rem;
}
.gb-auth-pop-btns {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
}
.gb-auth-pop-btns .gb-logo-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.gb-auth-pop-hint {
  margin-top: 1.2rem;
  font-size: 0.74rem;
  color: var(--muted-foreground);
}

/* ===== Legal pages (privacy + cookies) ===== */
.legal-page {
  max-width: 1020px;
}
.legal-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.6rem;
}
.legal-hero h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: var(--foreground);
  margin: 0.6rem 0 1rem;
}
.legal-hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 0;
}
.legal-sheet {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)) padding-box,
    linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(249, 115, 22, 0.35), rgba(236, 72, 153, 0.42)) border-box;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}
.dark .legal-sheet {
  background:
    linear-gradient(165deg, rgba(32, 32, 40, 0.78), rgba(18, 18, 24, 0.55)) padding-box,
    linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(249, 115, 22, 0.35), rgba(236, 72, 153, 0.42)) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.legal-band {
  display: grid;
  grid-template-columns: 3.25rem 3.25rem 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.9rem 2.1rem;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background 0.3s ease;
}
.legal-band:last-child { border-bottom: none; }
.legal-band::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #A855F7, #F97316, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.legal-band:hover::before { opacity: 1; }
.legal-band:hover { background: rgba(168, 85, 247, 0.045); }
.legal-band-index {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1;
  padding-top: 0.15rem;
  background: linear-gradient(135deg, #A855F7, #F97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-band-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #A855F7;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.24);
}
.legal-band-body { min-width: 0; }
.legal-band-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--foreground);
  margin: 0 0 0.9rem;
}
.legal-band-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.legal-band-body li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.legal-band-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A855F7, #F97316);
}
.legal-band-body li strong { color: var(--foreground); }
.legal-band-text {
  margin: 0 0 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.9375rem;
}
.legal-band-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.legal-band-link:hover {
  color: #A855F7;
  border-color: #A855F7;
}
.legal-grad {
  background: linear-gradient(135deg, #A855F7, #F97316, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-footnote {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
@media (max-width: 639px) {
  .legal-band {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.9rem;
    padding: 1.5rem 1.25rem;
  }
  .legal-band-index { grid-column: 1; grid-row: 1; font-size: 1.4rem; }
  .legal-band-icon { grid-column: 2; grid-row: 1; }
  .legal-band-body { grid-column: 1 / -1; }
}

/* ===== Ambient premium gradients on every page except home ===== */
.page:not(#page-home) .page-section {
  background-color: var(--background);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.04'/></svg>"),
    radial-gradient(620px 420px at 14% 5%, rgba(168, 85, 247, 0.12), transparent 62%),
    radial-gradient(520px 380px at 88% 14%, rgba(249, 115, 22, 0.10), transparent 62%),
    radial-gradient(700px 460px at 78% 48%, rgba(236, 72, 153, 0.09), transparent 62%),
    radial-gradient(600px 420px at 8% 74%, rgba(59, 130, 246, 0.10), transparent 62%),
    radial-gradient(680px 440px at 52% 96%, rgba(34, 197, 94, 0.09), transparent 62%);
  background-size: 180px 180px, auto, auto, auto, auto, auto;
}
.dark .page:not(#page-home) .page-section {
  background-color: var(--background);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.05'/></svg>"),
    radial-gradient(760px 520px at 14% 5%, rgba(168, 85, 247, 0.08), transparent 65%),
    radial-gradient(640px 470px at 88% 14%, rgba(249, 115, 22, 0.06), transparent 65%),
    radial-gradient(840px 560px at 78% 48%, rgba(236, 72, 153, 0.06), transparent 65%),
    radial-gradient(740px 520px at 8% 74%, rgba(59, 130, 246, 0.07), transparent 65%),
    radial-gradient(820px 540px at 52% 96%, rgba(34, 197, 94, 0.05), transparent 65%);
  background-size: 180px 180px, auto, auto, auto, auto, auto;
}

/* ===== Cookie consent banner (glassy premium) ===== */
.cookie-pop-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 9500;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}
.cookie-pop-overlay.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-pop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: min(720px, 100%);
  padding: 1.15rem 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cookie-pop {
    background: rgba(255, 255, 255, 0.95);
  }
  .dark .cookie-pop {
    background: rgba(18, 18, 22, 0.95);
  }
}
.cookie-pop::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #7c3aed, #f97316, #3b82f6, #7c3aed);
  background-size: 200% 100%;
  opacity: 0.9;
  animation: cookie-shimmer 4s linear infinite;
}
@keyframes cookie-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.cookie-pop-anim {
  animation: cookie-pop-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cookie-pop-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dark .cookie-pop {
  background: rgba(18, 18, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.cookie-pop-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}
.cookie-pop-body {
  flex: 1 1 auto;
  min-width: 0;
}
.cookie-pop-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.cookie-pop-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.cookie-pop-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cookie-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cookie-btn:hover {
  transform: translateY(-1px);
}
.cookie-accept {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}
.cookie-accept:hover {
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
}
.cookie-decline:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}
.cookie-more {
  color: var(--foreground);
  border-color: var(--border);
}
.cookie-more:hover {
  background: rgba(0, 0, 0, 0.05);
}
.dark .cookie-more:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Guestbook + consent responsive ===== */
@media (max-width: 1023px) {
  .gb-stage {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .gb-wall .gb-feed {
    columns: 2;
    column-gap: 1.25rem;
  }
}
@media (max-width: 639px) {
  .gb-wall .gb-feed {
    columns: 1;
  }
  .gb-identity {
    flex-direction: column;
    align-items: stretch;
  }
  .gb-avatar-picker {
    justify-content: center;
  }
  .cookie-pop {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .cookie-pop-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .cookie-pop {
    padding: 0.9rem 1rem;
    border-radius: 18px;
  }
  .cookie-pop::before {
    border-radius: 18px 18px 0 0;
  }
  .cookie-pop-icon {
    width: 38px;
    height: 38px;
  }
  .cookie-pop-title {
    font-size: 0.98rem;
  }
  .cookie-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }
  .gb-auth-pop {
    padding: 2rem 1.4rem 1.6rem;
  }
}

/* Services — poster flow fallback (runs when the canvas cannot start) */
.posters-fallback .posters-canvas {
    display: none
}

.posters-fallback .posters-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    justify-content: flex-start;
    padding: 12vh 0
}

.posters-fallback .posters-mobile img {
    width: min(70vw, 300px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    animation: posters-flow 32s linear infinite;
    will-change: transform
}

.posters-fallback .posters-mobile img:nth-child(2) {
    animation-delay: -6.4s
}

.posters-fallback .posters-mobile img:nth-child(3) {
    animation-delay: -12.8s
}

.posters-fallback .posters-mobile img:nth-child(4) {
    animation-delay: -19.2s
}

.posters-fallback .posters-mobile img:nth-child(5) {
    animation-delay: -25.6s
}

@keyframes posters-flow {
    0% {
        transform: translateY(110%) rotate(-1.5deg)
    }
    100% {
        transform: translateY(-660%) rotate(1.5deg)
    }
}

@media (prefers-reduced-motion: reduce) {
    .posters-fallback .posters-mobile {
        justify-content: center;
        overflow-y: auto;
        padding: 2rem 0
    }
    .posters-fallback .posters-mobile img {
        animation: none
    }
}

/* =================================================================== */
@media (max-width: 767px) {
  header .nav-center {
    display: none !important;
  }

  header nav {
    justify-content: space-between;
    align-items: center;
  }

  /* Hamburger Floating Circle Button */
  .nav-burger {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 0.3s ease;
  }

  .dark .nav-burger {
    background: rgba(17, 24, 39, 0.78) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(148, 163, 184, 0.16) !important;
  }

  .nav-burger:active {
    transform: scale(0.92);
  }

  .nav-burger-line {
    display: block;
    width: 20px;
    height: 2.5px;
    background-color: #0f172a;
    border-radius: 99px;
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.3s ease, background-color 0.3s ease;
  }

  .dark .nav-burger-line {
    background-color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 5px rgba(255, 255, 255, 0.4) !important;
  }

  /* Open state: burger stays visible and morphs into a clean X */
  .nav-burger.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-burger.is-open .nav-burger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .nav-burger.is-open .nav-burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-burger.is-open .nav-burger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Light mode open X lines */
  .nav-burger.is-open .nav-burger-line {
    background-color: #0f172a !important;
    box-shadow: none !important;
  }

  /* Dark mode open X lines */
  .dark .nav-burger.is-open .nav-burger-line {
    background-color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 5px rgba(255, 255, 255, 0.4) !important;
  }

  /* Mobile Backdrop Overlay (transparent overlay that captures clicks) */
  .mobile-nav-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.01) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Capsule Navigation Drawer Container */
  .mobile-nav {
    display: flex !important;
    position: fixed;
    top: 1rem;
    bottom: 1rem;
    right: 1rem;
    width: 230px;
    height: calc(100vh - 2rem);
    max-height: calc(100vh - 2rem);
    justify-content: flex-end;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
  }

  /* Capsule Pill Container - Transparent itself, uses ::before for glassy rail */
  .mobile-nav-capsule {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 230px;
    height: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0.75rem 0;
    position: relative;
    overflow: visible;
  }

  /* Glass blur background rail (behind the icons only) */
  .mobile-nav-capsule::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 58px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 1;
  }

  .dark .mobile-nav-capsule::before {
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .mobile-nav-header {
    display: none !important;
  }

  /* Links List Container - scrollable vertically with hidden scrollbar */
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 230px;
    flex: 1;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    overflow-x: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
  }

  .mobile-nav-links::-webkit-scrollbar {
    display: none;
  }

  /* Nav Links & Buttons: narrow size (58px) and aligned to the right edge */
  .mobile-nav-links a,
  .mobile-nav-foot .mobile-book-btn,
  .mobile-nav-foot .mobile-theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 42px;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    overflow: visible;
    padding: 0;
    margin-left: auto;
    margin-right: 0;
  }

  /* Icon inside white capsule */
  .mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 42px;
    color: #475569;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .dark .mobile-nav-icon {
    color: #e2e8f0;
  }

  /* Hover & Active Icon States */
  .mobile-nav-links a.active .mobile-nav-icon,
  .mobile-nav-links a:hover .mobile-nav-icon {
    color: #10b981;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.45));
  }

  .mobile-nav-foot .mobile-book-btn .mobile-nav-icon {
    color: #10b981;
  }

  /* Active pill no longer has a panel wall to sit on */
  .mobile-nav-tab {
    display: none !important;
  }

  /* Text Label Positioned OUTSIDE to the Left of Capsule */
  .mobile-nav-text {
    position: absolute;
    right: 70px;
    left: auto;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    white-space: nowrap;
    text-align: right;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--foreground);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  }

  .dark .mobile-nav-text {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  /* ACTIVE STATE */
  .mobile-nav-links a.active .mobile-nav-text {
    color: #10b981;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  }

  /* Expanded label states - slide in from the right */
  .mobile-nav-links a.expanded .mobile-nav-text,
  .mobile-nav-foot .mobile-book-btn.expanded .mobile-nav-text,
  .mobile-nav-foot .mobile-theme-toggle.expanded .mobile-nav-text {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
  }

  /* Mobile Nav Footer (Book a Call & Theme Toggle) */
  .mobile-nav-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    width: 230px;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .dark .mobile-nav-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav-foot .mobile-book-btn .mobile-nav-text {
    color: #10b981;
    font-weight: 800;
  }

  .mobile-nav-foot .mobile-theme-toggle .theme-icon {
    font-size: 1.1rem;
    color: #475569;
  }

  .dark .mobile-nav-foot .mobile-theme-toggle .theme-icon {
    color: #e2e8f0;
  }

  /* Neutralize legacy hover shifts */
  .mobile-nav-links a:hover,
  .mobile-nav-links a:focus {
    padding-left: 0 !important;
  }
}
