.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined[data-weight="fill"] {
    font-variation-settings: 'FILL' 1;
}

.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Glassmorphism surfaces */
.glass-card,
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(42, 8, 58, 0.05);
}

.soft-shadow {
    box-shadow: 0 20px 40px -10px rgba(42, 8, 58, 0.15);
}

.btn-primary {
    background: #120015;
    color: #ffffff;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: #2a083a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(18, 0, 21, 0.35);
}
.btn-secondary {
    background: #f45bb7;
    color: #120015;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: #ff8fd1;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(244, 91, 183, 0.4);
}

/* No sideways scrolling on small screens */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

/* Pink highlighter under emphasised words (text itself stays dark for contrast) */
.accent-mark {
    background: linear-gradient(transparent 62%, #ff8fd1 62%, #ff8fd1 92%, transparent 92%);
    padding: 0 0.15em;
}

/* Dark footer */
.site-footer {
    background: #120015 !important;
    border-color: #2a083a !important;
}
.site-footer, .site-footer p, .site-footer span, .site-footer a {
    color: #f3e9f5 !important;
}
.site-footer a:hover {
    color: #ff8fd1 !important;
}

/* Default artwork for works without an image or video */
.media-placeholder {
    background:
        radial-gradient(circle at 18% 18%, rgba(244, 91, 183, 0.6), transparent 42%),
        radial-gradient(circle at 85% 30%, rgba(255, 143, 209, 0.28), transparent 45%),
        radial-gradient(circle at 60% 110%, rgba(244, 91, 183, 0.35), transparent 50%),
        linear-gradient(135deg, #120015 0%, #2a083a 100%);
}

.bento-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(42, 8, 58, 0.15);
}
.bento-card[data-tilt]:hover {
    /* tilt.js drives the transform via inline style on these cards */
    transform: none;
}

/* Cursor-tracking 3D tilt effect (see static/js/tilt.js) */
[data-tilt] {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    will-change: transform, box-shadow;
}
[data-tilt].is-tilt-resetting {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease-out;
}
.tilt-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    z-index: 20;
    border-radius: inherit;
}
[data-tilt].is-tilt-active .tilt-glare {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    [data-tilt] {
        transform: none !important;
        transition: none !important;
    }
    .tilt-glare {
        display: none;
    }
}

/* Hero image sits at a subtle resting tilt even before interaction */
.hero-3d-inner {
    transform: perspective(1600px) rotateY(-6deg) rotateX(3deg);
}

/* Portfolio bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, minmax(400px, auto));
    }
    .bento-item-large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* ---------- Shared building blocks (v2) ---------- */
.card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px -10px rgba(42, 8, 58, 0.15);
    overflow: hidden;
}
.result-card {
    background: #120015;
    box-shadow: 0 20px 40px -10px rgba(42, 8, 58, 0.3);
}

/* Horizontal scrolling strips */
.hscroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 8px 4px 24px;
    -webkit-overflow-scrolling: touch;
}
.hscroll-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    cursor: zoom-in;
}
.shot {
    background: none;
    border: 0;
    padding: 0;
}
.shot img {
    display: block;
    height: 340px;
    width: auto;
    max-width: 80vw;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(42, 8, 58, 0.18));
}

/* Client logo strip */
.logo-marquee {
    direction: ltr;
    overflow: hidden;
}
.logo-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    padding-inline-end: 64px;
    animation: logo-marquee 45s linear infinite;
}

.logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    color: #5a4a63;
    font-weight: 600;
    white-space: nowrap;
}
.logo-item img {
    height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
@keyframes logo-marquee {
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Folder tabs on the project page */
.tab-btn {
    flex: 0 0 auto;
    padding: 10px 22px;
    border-radius: 9999px;
    background: #f3ebee;
    color: #5a4a63;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}
.tab-btn.is-active {
    background: #ff8fd1;
    color: #120015;
}
.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: rgba(18, 0, 21, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

/* Enlarged image / service details */
dialog::backdrop {
    background: rgba(18, 0, 21, 0.8);
}
.lightbox {
    background: transparent;
    border: 0;
    padding: 0;
    max-width: 96vw;
    max-height: 96vh;
    overflow: visible;
}
.lightbox img {
    display: block;
    max-width: 94vw;
    max-height: 90vh;
    border-radius: 0.75rem;
}
.lightbox-close {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: #ffffff;
    color: #120015;
    font-size: 26px;
    line-height: 1;
}
.svc-dialog {
    border: 0;
    padding: 0;
    width: min(92vw, 560px);
    max-height: 86vh;
    overflow-y: auto;
    margin: auto;
}

/* Floating WhatsApp button */
.wa-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 55;
    width: 58px;
    height: 58px;
    border-radius: 9999px;
    background: #120015;
    color: #ffffff;
    border: 2px solid #f45bb7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px -6px rgba(18, 0, 21, 0.5);
    transition: transform 0.2s ease;
}
.wa-float:hover {
    transform: translateY(-3px);
}

/* Admin form helpers */
.field {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dccbe0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-weight: 400;
    color: #2a083a;
}
.field:focus {
    outline: none;
    border-color: #f45bb7;
    box-shadow: 0 0 0 1px #f45bb7;
}
.field:disabled {
    opacity: 0.5;
}
.admin-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #5a4a63;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid #dccbe0;
    background: #ffffff;
    color: #2a083a;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.btn-ghost:hover {
    background: #f3ebee;
}
.btn-mini {
    padding: 2px 9px;
    font-size: 13px;
}
.btn-danger {
    color: #ba1a1a;
}

/* ---------- v3: compact layouts ---------- */
.steps-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .steps-grid {
        gap: 20px;
        grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr));
    }
}
.viral-item {
    cursor: zoom-in;
}

/* Testimonials wall */
.masonry {
    column-count: 2;
    column-gap: 16px;
}
@media (min-width: 768px) {
    .masonry {
        column-count: 4;
        column-gap: 24px;
    }
}
.masonry .shot {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 20px;
    break-inside: avoid;
    cursor: zoom-in;
}
.shot img {
    width: 100%;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 6px 12px rgba(42, 8, 58, 0.16));
}

/* ---------- v4: categories, client frames, media tiles ---------- */
.client-circle {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(42, 8, 58, 0.14);
}
.client-circle-lg {
    width: 64px;
    height: 64px;
}
.client-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffc6e8;
    color: #120015;
    font-weight: 700;
    font-size: 16px;
}
.logo-pick {
    cursor: pointer;
}
.logo-pick input {
    position: absolute;
    opacity: 0;
}
.logo-pick input:checked + .client-circle {
    outline: 3px solid #f45bb7;
    outline-offset: 2px;
}
.logo-pick input:focus-visible + .client-circle {
    outline: 3px solid #2a083a;
    outline-offset: 2px;
}
.media-tile {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f3ebee;
    box-shadow: 0 8px 18px -8px rgba(42, 8, 58, 0.25);
    cursor: zoom-in;
}
.media-dark {
    background: #120015;
    cursor: pointer;
}
.more-m,
.more-d {
    display: none;
}
@media (min-width: 768px) {
    .more-m { display: block; }
}
.tab-panel.is-open .more-m,
.tab-panel.is-open .more-d {
    display: block;
}
.tab-sm {
    padding: 6px 14px;
    font-size: 13px;
}
.lightbox video {
    display: block;
    max-width: 94vw;
    max-height: 88vh;
    border-radius: 0.75rem;
    background: #000000;
}
.logo-item {
    text-decoration: none;
}

#services .grid {
    grid-auto-rows: 1fr;
}

/* ---------- v5: storage meter ---------- */
.storage-meter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.meter-bar {
    height: 12px;
    border-radius: 9999px;
    background: #f3ebee;
    overflow: hidden;
}
.meter-bar span {
    display: block;
    height: 100%;
    border-radius: 9999px;
    background: #f45bb7;
}
.storage-meter.is-low .meter-bar span {
    background: #ba1a1a;
}

/* no hover lift / 3D */
.bento-card:hover{transform:none}
