/* Premium feature layer */
:root {
    --panel-solid: #080808;
    --panel-soft: rgba(10, 10, 10, 0.94);
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

.admin-gated {
    display: none !important;
}

body.admin-authorized .nav-admin-button {
    display: grid !important;
}

body.admin-authorized .mobile-menu-tools .admin-gated {
    display: flex !important;
}

body.admin-authorized .footer-tools .admin-gated {
    display: inline-flex !important;
}

body.admin-authorized #admin-modal {
    display: flex !important;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #030303;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-emblem {
    width: 86px;
    height: 86px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.loader-emblem::before,
.loader-emblem::after {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: loaderOrbit 2.2s linear infinite;
}

.loader-emblem::after {
    inset: -22px;
    animation-direction: reverse;
    animation-duration: 3.1s;
}

.loader-emblem img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.loader-emblem span {
    position: absolute;
    inset: -1px;
    border-top: 1px solid white;
    animation: loaderOrbit 1.1s linear infinite;
}

.loader-word {
    margin-top: 18px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.38em;
}

.loader-progress {
    width: 160px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.09);
}

.loader-progress span {
    display: block;
    width: 55%;
    height: 100%;
    background: #fff;
    animation: loaderLine 1.2s ease-in-out infinite;
}

@keyframes loaderOrbit {
    to { transform: rotate(360deg); }
}

@keyframes loaderLine {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(210%); }
}

.film-grain {
    position: fixed;
    inset: 0;
    z-index: 3000;
    opacity: 0.028;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

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

.header-cta {
    padding: 8px 16px;
    font-size: 13px;
}

.language-toggle {
    width: 38px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition-normal);
}

.nav-admin-button {
    width: 38px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.nav-admin-button:hover {
    color: #050505;
    background: #fff;
    border-color: #fff;
}

.nav-admin-button svg {
    width: 14px;
}

.language-toggle:hover {
    color: #050505;
    background: #fff;
    border-color: #fff;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 38px;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 12px;
    width: 17px;
    height: 1px;
    background: #fff;
    transition: var(--transition-normal);
}

.mobile-menu-toggle span:first-child { top: 14px; }
.mobile-menu-toggle span:last-child { top: 22px; }

.mobile-menu-toggle.active span:first-child {
    top: 18px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:last-child {
    top: 18px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 95;
    padding: 110px 24px 30px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.09), transparent 32%),
        rgba(3, 3, 3, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 520px;
    margin: 0 auto;
}

.mobile-menu-label {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: clamp(24px, 7vw, 38px);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.mobile-menu a svg {
    width: 20px;
}

.mobile-booking-link {
    margin-top: auto;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    color: #050505;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

.mobile-menu-tools button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-tools svg {
    width: 15px;
}

.service-marquee {
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.015);
    transform: rotate(-1.1deg) scale(1.02);
}

.service-marquee-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 26px;
    animation: marqueeMove 32s linear infinite;
}

.service-marquee span {
    color: #d4d4d8;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-marquee i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #71717a;
}

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

section.reveal::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1150px, calc(100% - 48px));
    height: 1px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
    transition: transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}

section.reveal.active::after {
    transform: translateX(-50%) scaleX(1);
}

.magnetic {
    will-change: transform;
}

/* Portfolio mockups and case studies */
.portfolio-card {
    isolation: isolate;
}

.portfolio-img-overlay {
    padding: 32px 22px 105px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-apex {
    background: radial-gradient(circle at 60% 20%, #3f3f46, #0a0a0b 55%);
}

.project-nova {
    background: radial-gradient(circle at 50% 25%, #eee9e2, #8f8982 48%, #191919 100%);
}

.project-taskflow {
    background: radial-gradient(circle at 70% 20%, #52525b, #111114 55%);
}

.project-browser {
    width: 92%;
    height: 88%;
    overflow: hidden;
    border-radius: 8px;
    transform: perspective(800px) rotateX(4deg) rotateY(-5deg);
    border: 1px solid rgba(255, 255, 255, 0.17);
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.48);
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .project-browser {
    transform: perspective(800px) rotateX(0) rotateY(0) scale(1.035);
}

.project-browser-bar {
    height: 18px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(10, 10, 10, 0.95);
}

.project-browser-bar span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #71717a;
}

.apex-visual {
    height: calc(100% - 18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.15) 49%, transparent 50%),
        #111;
}

.apex-visual b {
    font-family: var(--font-heading);
    font-size: 34px;
    letter-spacing: 0.28em;
}

.apex-visual small,
.nova-visual small {
    margin-top: 8px;
    font-size: 6px;
    letter-spacing: 0.22em;
}

.nova-visual {
    height: calc(100% - 18px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
    color: #131313;
    background: #ebe7e1;
}

.nova-visual b {
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: 0.14em;
}

.nova-product {
    position: absolute;
    top: 18px;
    right: 28px;
    width: 38px;
    height: 76px;
    border-radius: 5px 5px 12px 12px;
    background: linear-gradient(90deg, #d0cbc4, #fff, #b6afa7);
    box-shadow: 0 18px 20px rgba(0, 0, 0, 0.2);
}

.nova-product::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 9px;
    width: 20px;
    height: 12px;
    background: #292929;
}

.taskflow-visual {
    height: calc(100% - 18px);
    display: grid;
    grid-template-columns: 25% 1fr;
    gap: 8px;
    padding: 10px;
    background: #111114;
}

.taskflow-sidebar {
    border-radius: 4px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.12) 8px, transparent 8px) 8px 12px / 65% 24px repeat-y,
        #1a1a1e;
}

.taskflow-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.taskflow-board span {
    border-radius: 4px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.1) 20px, transparent 20px) 6px 8px / calc(100% - 12px) 38px repeat-y,
        #202026;
}

.portfolio-open-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition-normal);
}

.portfolio-open-hint svg {
    width: 13px;
}

.portfolio-card:hover .portfolio-open-hint,
.portfolio-card:focus-visible .portfolio-open-hint {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card.filter-enter {
    animation: portfolioEnter 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes portfolioEnter {
    from { opacity: 0; transform: translateY(22px) scale(0.95); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* FAQ and booking CTA */
.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 130px;
}

.faq-intro .section-header {
    text-align: left;
}

.faq-intro .section-title {
    max-width: 480px;
}

.faq-intro .section-desc {
    margin-bottom: 28px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border-radius: 12px;
}

.faq-item > button {
    width: 100%;
    min-height: 72px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-primary);
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.faq-item > button svg {
    width: 18px;
    flex: 0 0 18px;
    transition: transform var(--transition-normal);
}

.faq-item.open > button svg {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    overflow: hidden;
    padding: 0 22px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
    transition: padding var(--transition-normal);
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
    padding: 0 22px 22px;
}

.booking-cta {
    padding-top: 40px;
}

.booking-cta-card {
    padding: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 75% 0%, rgba(255, 255, 255, 0.12), transparent 33%),
        rgba(255, 255, 255, 0.025);
}

.booking-cta-card h2 {
    max-width: 650px;
    margin-bottom: 12px;
    font-size: 38px;
}

.booking-cta-card p {
    max-width: 650px;
    color: var(--text-secondary);
}

/* Chat attachment */
.assistant-composer {
    grid-template-columns: auto 1fr auto;
}

.assistant-attachment {
    width: 50px;
    height: 50px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: var(--transition-normal);
}

.assistant-attachment:hover,
.assistant-attachment.has-file {
    color: #050505;
    background: #fff;
}

.assistant-attachment input {
    display: none;
}

.assistant-attachment svg {
    width: 17px;
}

.attachment-name {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    max-width: 260px;
    display: none;
    padding: 7px 10px;
    overflow: hidden;
    color: #050505;
    background: #fff;
    border-radius: 7px;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.assistant-attachment.has-file .attachment-name {
    display: block;
}

.assistant-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-tools button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.footer-tools button:hover {
    color: var(--text-primary);
}

.footer-tools svg {
    width: 13px;
}

/* Shared experience modals */
.experience-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.experience-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.experience-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(14px);
}

.experience-close {
    width: 40px;
    height: 40px;
    z-index: 3;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-normal);
}

.experience-close:hover {
    color: #050505;
    background: #fff;
}

.experience-close svg {
    width: 17px;
}

.portfolio-case {
    width: min(1120px, 96vw);
    max-height: 90vh;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: #080808;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-modal.active .portfolio-case,
.experience-modal.active .booking-panel,
.experience-modal.active .admin-panel {
    transform: translateY(0) scale(1);
}

.portfolio-case > .experience-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.case-visual {
    min-height: 610px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #151515;
}

.case-visual .project-browser {
    width: 82%;
    height: 68%;
    min-height: 360px;
}

.case-content {
    padding: 64px 46px 46px;
    overflow-y: auto;
}

.case-content h2 {
    margin: 10px 0 18px;
    font-size: 42px;
}

.case-content > p {
    color: var(--text-secondary);
    font-size: 14px;
}

.case-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 28px 0;
}

.case-results article {
    padding: 15px 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
}

.case-results strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 20px;
}

.case-results span {
    color: var(--text-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.case-meta {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 30px;
}

.case-meta div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.case-meta small {
    color: var(--text-muted);
}

.case-meta strong {
    max-width: 65%;
    text-align: right;
    font-size: 12px;
}

.booking-panel,
.admin-panel {
    width: min(760px, 96vw);
    max-height: 90vh;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    padding: 42px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: #080808;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-panel > .experience-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.booking-heading h2 {
    margin: 8px 0 10px;
    font-size: 34px;
}

.booking-heading p,
.booking-note {
    color: var(--text-secondary);
    font-size: 12px;
}

.booking-step {
    margin-top: 28px;
}

.booking-step > label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.booking-dates,
.booking-times {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.booking-choice {
    padding: 12px 8px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.booking-choice:hover,
.booking-choice.selected {
    color: #050505;
    background: #fff;
    border-color: #fff;
}

.booking-choice strong,
.booking-choice span {
    display: block;
}

.booking-choice strong {
    font-size: 14px;
}

.booking-choice span {
    margin-top: 2px;
    font-size: 9px;
}

.booking-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 24px 0 14px;
}

.booking-fields input {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.booking-panel form > .btn {
    width: 100%;
}

.booking-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.booking-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
}

.booking-consent input {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: #fff;
}

.booking-panel form > .btn:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none !important;
}

.booking-note {
    margin-top: 11px;
    text-align: center;
}

.booking-note.is-success {
    color: #e4e4e7;
}

.booking-note.is-error {
    color: #fca5a5;
}

/* Local dashboard */
.admin-panel {
    width: min(1100px, 96vw);
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.admin-heading h2 {
    margin: 8px 0;
    font-size: 34px;
}

.admin-heading p {
    color: var(--text-secondary);
    font-size: 12px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.admin-stats article {
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-stats svg {
    width: 17px;
    grid-row: span 2;
    align-self: center;
}

.admin-stats span {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.admin-stats strong {
    font-family: var(--font-heading);
    font-size: 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-grid > section {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
}

.admin-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.admin-section-title h3 {
    font-size: 15px;
}

.admin-section-title button {
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
}

.admin-list {
    max-height: 310px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.admin-entry {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.admin-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.admin-entry strong {
    font-size: 12px;
}

.admin-entry time,
.admin-entry p,
.admin-entry span {
    color: var(--text-secondary);
    font-size: 10px;
}

.admin-entry p {
    margin-top: 7px;
}

.admin-empty {
    padding: 30px 15px;
    color: var(--text-muted);
    text-align: center;
    font-size: 11px;
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 6000;
    max-width: min(420px, calc(100% - 32px));
    padding: 12px 18px;
    color: #050505;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px);
    transition: var(--transition-normal);
}

.site-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

html.page-transitioning body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 4500;
    background: #050505;
    animation: pageCurtain 0.38s ease forwards;
    pointer-events: none;
}

@keyframes pageCurtain {
    0% { transform: translateY(100%); }
    45% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

@media (max-width: 1000px) {
    .nav-menu { gap: 18px; }
    .nav-link { font-size: 12px; }
    .faq-layout { gap: 40px; }
    .portfolio-case { grid-template-columns: 1fr; overflow-y: auto; }
    .case-visual { min-height: 410px; }
    .case-content { overflow: visible; }
}

@media (max-width: 768px) {
    .film-grain { opacity: 0.02; }
    .blob { animation-play-state: paused; }
    .glass,
    header.scrolled,
    .assistant-header,
    .assistant-composer,
    .experience-modal-backdrop {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .reveal,
    .reveal-item,
    .portfolio-card.filter-enter {
        filter: none;
    }
    .mobile-menu-toggle { display: block; }
    .language-toggle,
    .nav-admin-button { display: none; }
    .header-cta span { display: none; }
    .header-cta { width: 42px; height: 38px; padding: 0; }
    .nav-actions { margin-left: auto; }

    .service-marquee { margin-top: -1px; }
    .service-marquee span { font-size: 11px; }

    .portfolio-img-overlay { padding: 24px 18px 110px; }
    .project-browser { height: 80%; }
    .portfolio-open-hint { opacity: 1; transform: none; }

    .faq-layout { grid-template-columns: 1fr; }
    .faq-intro { position: static; }
    .booking-cta-card {
        padding: 30px 24px;
        align-items: flex-start;
        flex-direction: column;
    }
    .booking-cta-card h2 { font-size: 28px; }

    .assistant-composer { grid-template-columns: 44px 1fr 52px; }
    .assistant-attachment { width: 44px; }

    .footer-bottom,
    .footer-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .experience-modal { padding: 10px; }
    .portfolio-case,
    .booking-panel,
    .admin-panel { width: 100%; max-height: 94vh; border-radius: 16px; }
    .case-visual { min-height: 310px; }
    .case-visual .project-browser { min-height: 240px; }
    .case-content { padding: 34px 24px; }
    .case-content h2 { font-size: 32px; }
    .case-results { grid-template-columns: 1fr 1fr 1fr; }
    .case-results strong { font-size: 16px; }

    .booking-panel,
    .admin-panel { padding: 28px 20px; }
    .booking-dates,
    .booking-times { grid-template-columns: repeat(2, 1fr); }
    .booking-fields { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
}

.page-paused *,
.page-paused *::before,
.page-paused *::after {
    animation-play-state: paused !important;
}

@media (max-width: 430px) {
    .nav-container { padding: 0 16px; }
    .logo { gap: 8px; font-size: 18px; }
    .logo-img { height: 32px; }
    .nav-actions { gap: 6px; }
    .header-cta { display: none; }

    .assistant-composer {
        grid-template-columns: 42px 1fr 48px;
        gap: 7px;
    }
    .assistant-input-wrap { padding: 0 10px; }
    .assistant-input-wrap > svg { display: none; }
    .assistant-attachment { width: 42px; }
    .assistant-send { min-width: 48px; }

    .case-results { gap: 5px; }
    .case-results article { padding: 12px 5px; }
    .admin-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .film-grain,
    .loader-emblem::before,
    .loader-emblem::after,
    .loader-emblem span,
    .loader-progress span,
    .service-marquee-track {
        animation: none !important;
    }
}
