* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #121212;
    --text-light: #E0E0E0;
    --text-muted: #A0A0A0;
    --accent-red: #D90429;
    --white: #ffffff;
    --paper-bg: #ffffff;
    --paper-text: #111111;
    --clip-ease: cubic-bezier(0.77, 0, 0.175, 1);
    --section-pad: 8%; /* reduced a bit so sections fit */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    padding: 0 var(--section-pad);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 36px;
    left: -5%;
    width: 110%;
    height: 8px;
    background: var(--accent-red);
    transform: rotate(-2deg);
    z-index: 10;
    box-shadow: 0 0 24px rgba(217, 4, 41, 0.45);
}

.hero-image-wrap {
    position: relative;
    flex-shrink: 0;
    max-width: 42%;
    line-height: 0;
}

.hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to right, transparent 55%, var(--bg-dark) 100%),
        linear-gradient(to left, transparent 80%, var(--bg-dark) 100%),
        linear-gradient(to bottom, transparent 65%, var(--bg-dark) 100%),
        linear-gradient(to top, transparent 88%, var(--bg-dark) 100%);
    pointer-events: none;
    width: 0%;
}

.hero-image {
    width: 500%;
    max-width: 580px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image:
        linear-gradient(to right, #000 70%, transparent 100%),
        linear-gradient(to bottom, #000 75%, transparent 100%);
    mask-image:
        linear-gradient(to right, #000 70%, transparent 100%),
        linear-gradient(to bottom, #000 75%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.hero-content {
    max-width: 50%;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 20px;
    margin-left: 100px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 420px;
    margin-left: 100px;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1px var(--section-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--white);
    letter-spacing: 3px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* --- COMIC REVEALS & SECTION TRANSITIONS --- */
.comic-section {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s var(--clip-ease), opacity 0.8s ease;
}

.comic-section.revealed {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 32px;
}

.section-title-center {
    text-align: center;
}

/* --- PORTFOLIO --- */
.portfolio {
    min-height: 75vh; /* slightly reduced to fit on most screens */
    padding: 72px var(--section-pad) 60px;
    background-color: var(--bg-dark);
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.portfolio-bg {
    position: absolute;
    inset: 0;
    right: 55%;
    z-index: 0;
    pointer-events: none;
}

.portfolio-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 88%);
    mask-image: linear-gradient(to right, #000 25%, transparent 88%);
}

.portfolio-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, transparent 40%, var(--bg-dark) 92%),
        linear-gradient(to bottom, var(--bg-dark) 0%, transparent 18%, transparent 82%, var(--bg-dark) 100%);
}

.portfolio-layout {
    position: relative;
    z-index: 1;
}

.portfolio-header {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.portfolio-row {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 48px;
    padding-left: 28%;
    position: relative;
}

.video-mockup {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -72px;
    z-index: 4;
}

/* --- CARD STACK SLIDER --- */
.art-slider {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 80px;
}

.slider-aura {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 28, 135, 0.4) 0%, rgba(127, 29, 29, 0.3) 50%, transparent 75%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    transition: background 1.2s ease, opacity 1.2s ease;
    animation: auraPulse 5s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.06); }
}

.card-stack {
    position: relative;
    width: 280px;
    z-index: 1;
}

.stack-peek {
    position: absolute;
    width: 88%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.5s var(--clip-ease), opacity 0.5s ease;
    pointer-events: none;
    opacity: 0.55;
}

.stack-peek-left {
    top: 14px;
    left: -38px;
    z-index: 1;
    transform: rotate(-4deg) scale(0.9);
}

.stack-peek-right {
    top: 8px;
    right: -32px;
    z-index: 2;
    transform: rotate(2deg) scale(0.94);
}

.slides-wrapper {
    width: 100%;
    max-width: 280px;
    overflow: hidden;
    border-radius: 20px;
    transition: height 0.45s ease;
    position: relative;
    z-index: 3;
    background: transparent;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 255, 255, 0.04);
}

.slides-track {
    display: flex;
    transition: transform 0.55s var(--clip-ease);
    will-change: transform;
}

.slide-img {
    min-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}

.slider-controls {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 4;
}

.card-stack:hover .slider-controls {
    opacity: 1;
    pointer-events: auto;
}

.btn-slide {
    background: rgba(18, 18, 18, 0.75);
    border: 1.5px solid rgba(224, 224, 224, 0.5);
    color: var(--text-light);
    padding: 6px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
    backdrop-filter: blur(6px);
}

.btn-slide:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* --- PHONE MOCKUP --- */
.phone-aura {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 4, 41, 0.45) 0%, rgba(80, 20, 50, 0.3) 50%, transparent 75%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    transition: background 1.2s ease;
    animation: auraPulse 4s ease-in-out infinite;
}

.phone-frame {
    width: 290px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #0b0b0b, #1a1a1a);
    border-radius: 40px;
    padding: 12px;
    margin-bottom: 90px;
    box-shadow:
        0 24px 55px rgba(190, 52, 52, 0.6),
        inset 0 0 0 2px rgba(255, 255, 255, 0.07);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 5px;
    background: #222;
    border-radius: 3px;
    z-index: 5;
}

.phone-video {
    width: 100%;
    display: block;
    border-radius: 28px;
    object-fit: cover;
    background: #000;
    aspect-ratio: 9 / 19.5;
}

.phone-video.overlay-video {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.phone-overlay {
    position: absolute;
    inset: 10px;
    border-radius: 28px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.5) 100%);
}

.phone-frame:hover .phone-overlay {
    opacity: 1;
    pointer-events: auto;
}

.phone-mute {
    align-self: flex-end;
    margin: 10px 10px 0;
}

.phone-overlay-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-bottom: 14px;
}

.btn-phone {
    background: rgba(18, 18, 18, 0.7);
    border: 1.5px solid rgba(224, 224, 224, 0.25);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
    backdrop-filter: blur(6px);
}

.btn-phone:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: scale(1.08);
}

/* --- SERVICES (full section) --- */
.services {
    min-height: 85vh;
    padding: 100px var(--section-pad);
    background-color: #0e0e0e;
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    position: relative;
    display: flex;
    align-items: center;
}

.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(217, 4, 41, 0.03) 40px,
            rgba(217, 4, 41, 0.03) 41px
        );
    pointer-events: none;
}

.services-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: -16px auto 48px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(224, 224, 224, 0.08);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-red);
    box-shadow: 0 0 28px rgba(217, 4, 41, 0.3), 0 0 50px rgba(217, 4, 41, 0.12);
}

.service-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    color: var(--accent-red);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* --- CONTACT --- */
.contact {
    min-height: 60vh; /* reduced so contact fits without scrolling */
    padding: 60px var(--section-pad);
    background-color: var(--bg-dark);
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
    position: relative;
    display: flex;
    align-items: center;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contact-left {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.contact-image-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
}

/* Use an overlay gradient instead of masking the image so it never fully disappears */
.contact-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.089) 30%, rgba(18,18,18,0.95) 100%),
        linear-gradient(to bottom, rgba(18,18,18,0.0) 0%, rgba(18,18,18,0.8) 90%);
}

.contact-has-love {
    width: 100%;
    z-index: 2;
    max-width: 380px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 0;
    box-shadow:
        0 40px 40px rgba(0, 0, 0, 0.5),
        0 4px 6px rgba(24, 24, 24, 0.76),
        0 0px 40px rgba(211, 211, 211, 0.753);
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.contact-copy {
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.contact-heading {
    margin-bottom: 15px;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
}

.contact-lead {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 380px;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.contact-details li {
    font-size: 0.85rem;
    color: var(--text-light);
    padding-left: 16px;
    position: relative;
}

.contact-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--accent-red);
    border-radius: 50%;
}

.contact-paper {
    background: var(--paper-bg);
    color: var(--paper-text);
    border-radius: 12px;
    padding: 32px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow:
        0 4px 6px rgba(197, 61, 61, 0.76),
        0 16px 40px rgba(160, 25, 25, 0.753);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}

.form-group input,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    color: var(--paper-text);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 88px;
}

.btn-send {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    background: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    align-self: flex-start;
    margin-top: 4px;
}

.btn-send:hover {
    background: #b00320;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.35);
}

/* --- FOOTER --- */
.site-footer {
    padding: 50px var(--section-pad) 36px;
    background-color: #0a0a0a;
    text-align: center;
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%);
}

.footer-brand {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.social-link {
    color: var(--white);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.social-link svg {
    width: 26px;
    height: 26px;
}

.social-link:hover {
    color: var(--accent-red);
    transform: scale(1.12);
}

.copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- AYA FAB & MODAL --- */
.aya-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 2000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.aya-fab-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 90px;
    height: 110px;
    position: relative;
}

.aya-fab-icon {
    width: 72px;
    height: auto;
    display: block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.aya-fab-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px) scale(0.85);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute;
    bottom: 4px;
    z-index: 1;
    white-space: nowrap;
}

.aya-fab:hover .aya-fab-icon,
.aya-fab:focus-visible .aya-fab-icon {
    transform: translateY(-22px) scale(1.05);
}

.aya-fab:hover .aya-fab-name,
.aya-fab:focus-visible .aya-fab-name {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.aya-fab:active .aya-fab-icon {
    transform: translateY(-18px) scale(0.98);
}

/* Modal */
.aya-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.4s, opacity 0.35s ease;
}

/* Anchor modal to bottom-right when opened (not fullscreen) */
.aya-modal.is-open:not(.fullscreen) {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 28px;
}

.aya-modal.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.35s ease;
}

.aya-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.aya-modal.is-open .aya-modal-backdrop {
    opacity: 1;
}

.aya-modal-window {
    position: relative;
    z-index: 2;
    width: min(380px, 92vw);
    height: min(680px, 85vh);
    background: #fff;
    border: 2px solid #111;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.88) translateY(30px);
    opacity: 0;
    transition: transform 0.45s var(--clip-ease), width 0.5s var(--clip-ease), height 0.5s var(--clip-ease), border-radius 0.5s ease;
}

/* When the modal is anchored bottom-right, keep transform origin bottom right for nicer animation */
.aya-modal.is-open:not(.fullscreen) .aya-modal-window {
    transform-origin: bottom right;
}

.aya-modal.is-open .aya-modal-window {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.aya-modal.fullscreen .aya-modal-window {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
}

.aya-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 2px solid #111;
    flex-shrink: 0;
}

.aya-modal-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #111;
    object-fit: cover;
    background: #f0f0f0;
}

.aya-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aya-modal-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: #111;
}

.aya-modal-status {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: #00c8c8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00c8c8;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.aya-modal-actions {
    display: flex;
    gap: 6px;
}

.aya-btn-icon {
    width: 32px;
    height: 32px;
    border: 2px solid #111;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.aya-btn-icon:hover {
    background: #111;
    color: #fff;
}

.aya-btn-close {
    font-size: 1.3rem;
}

.aya-modal-body {
    flex: 1;
    min-height: 0;
    background: linear-gradient(180deg, #e8d5f2 0%, #b8e4f0 100%);
}

/* Hide the top of the iframe UI when modal is reduced (masks external buttons inside the iframe) */
.aya-modal:not(.fullscreen) .aya-modal-body {
    position: relative;
}
.aya-modal:not(.fullscreen) .aya-modal-body::before {
    content: '';
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    top: 0;
    height: 86px; /* covers iframe header area when reduced */
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.0) 60%);
    pointer-events: none;
}

/* When fullscreen, hide our info text and keep only the controls as requested */
.aya-modal.fullscreen .aya-modal-info { display: none; }

.aya-btn-icon.aya-btn-mute { }

.aya-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
}

/* Pixel transition overlay */
.aya-pixel-grid {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(10, 1fr);
    pointer-events: none;
    visibility: hidden;
}

.aya-pixel-grid.active {
    visibility: visible;
    pointer-events: all;
}

.aya-pixel-cell {
    background: var(--bg-dark);
    transform: scale(0);
    opacity: 0;
}

.aya-pixel-grid.active .aya-pixel-cell {
    animation: pixelPop 0.45s ease forwards;
}

.aya-pixel-grid.active .aya-pixel-cell:nth-child(odd) {
    background: var(--accent-red);
}

@keyframes pixelPop {
    0% { transform: scale(0); opacity: 0; }
    40% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.aya-pixel-grid.fade-out .aya-pixel-cell {
    animation: pixelFade 0.5s ease forwards;
}

@keyframes pixelFade {
    to { transform: scale(0); opacity: 0; }
}

body.aya-modal-open {
    overflow: hidden;
}

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
        gap: 28px;
    }

    .hero-image-wrap {
        max-width: 70%;
    }

    .hero-image {
        -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero p {
        margin: 0 auto;
    }

    .portfolio-row {
        flex-direction: column;
        gap: 48px;
        padding-left: 0;
        align-items: center;
    }

    .portfolio-bg {
        right: 0;
        opacity: 0.3;
    }

    .portfolio-bg img {
        -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
        mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
    }

    .video-mockup {
        margin-top: 0;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-right {
        align-items: stretch;
    }

    .contact-paper {
        max-width: 100%;
    }

    .contact-left {
        min-height: auto;
        justify-content: center;
    }

    .contact-has-love {
        max-width: 320px;
        margin: 0 auto;
        -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .section-title-center,
    .services-lead {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .card-stack {
        width: 240px;
    }

    .slides-wrapper {
        max-width: 240px;
    }

    .stack-peek-left { left: -24px; }
    .stack-peek-right { right: -20px; }

    .phone-frame {
        width: 250px;
    }

    .aya-fab {
        bottom: 18px;
        right: 18px;
    }

    .aya-fab-icon {
        width: 60px;
    }

    .hero {
        align-items: flex-end;
        justify-content: center;
        padding-top: 0;
    }

    .hero-image-wrap {
        max-width: 100%;
        width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 100%;
        object-fit: cover;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-content {
        position: absolute;
        bottom: 68px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 92%;
        padding: 0 14px;
        text-align: center;
    }

    .hero h1,
    .hero p {
        margin-left: 0;
    }

    .hero h1 {
        margin-bottom: 12px;
    }

    .hero p {
        margin: 0 auto;
    }

    .contact-paper {
        padding: 24px 18px;
    }
}

/* removed experimental fullpage/carousel styles to restore normal scroll behavior */
/* keep aya-muted styles minimal and inline in JS-created elements if needed */
