/* ================================================================
   LIVORK — Professional Landing + Portal
   ================================================================ */

:root {
    --bg:        #081424;
    --bg-alt:    #0a182c;
    --bg-card:   #0c1e34;
    --bg-deep:   #050c18;
    --bg-mid:    #0d1a2e;
    --bg-soft:   #122238;
    --gold:      #c59d5f;
    --gold-hi:   #d4b078;
    --white:     #ffffff;
    --text:      #b8c4d4;
    --text-dim:  #7a8898;
    --border:    rgba(197, 157, 95, 0.22);
    --font:      'Montserrat', system-ui, sans-serif;
    --container: 1180px;
    --gutter: clamp(16px, 4vw, 28px);
    --header-h: clamp(68px, 10.5vw, 78px);
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.36);
    --section-py: clamp(72px, 10vw, 108px);
    --text-base: clamp(18px, 1.12vw, 20px);
    --text-sm: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    font-size: var(--text-base);
}

body {
    font-family: var(--font);
    background-color: var(--bg-deep);
    color: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

/* Fundo liso fixo — sempre por trás do conteúdo */
.site-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #0a1a2e;
    background-image:
        radial-gradient(ellipse 110% 70% at 50% -15%, rgba(48, 78, 118, 0.42) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 100% 35%, rgba(36, 62, 96, 0.28) 0%, transparent 52%),
        radial-gradient(ellipse 60% 48% at 0% 72%, rgba(30, 54, 86, 0.24) 0%, transparent 50%),
        linear-gradient(180deg, #122238 0%, #0e1c32 42%, #0a1628 100%);
}

.site-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 62%),
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(120, 170, 220, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 80% 60%, rgba(255, 200, 120, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 0, 0, 0.16) 0%, transparent 65%);
}

::selection {
    background: rgba(197, 157, 95, 0.35);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10001;
    padding: 10px 18px;
    background: var(--gold);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-block {
    position: relative;
    z-index: 1;
    isolation: isolate;
    background: transparent;
}

.section-block > .container,
.section-block > .hero__slider,
.section-block > .hero__intro,
.section-block > .contact-cta,
.section-block > .about__watermark {
    position: relative;
    z-index: 1;
}

.section-block:not(.hero)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 720px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 157, 95, 0.22), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Fundo independente por seção — sobre o backdrop geral */
.hero.section-block::after,
.services.section-block::after,
.intro-video.section-block::after,
.portfolio.section-block::after,
.contact.section-block::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero.section-block::after {
    background: linear-gradient(180deg, #0a1628 0%, #0d1c32 52%, #10243e 100%);
    box-shadow:
        inset 0 1px 0 rgba(197, 157, 95, 0.14),
        0 12px 40px rgba(0, 0, 0, 0.18);
}

.services.section-block::after {
    background: linear-gradient(180deg, #0f2238 0%, #0c1c30 50%, #0a1828 100%);
    box-shadow:
        inset 0 1px 0 rgba(197, 157, 95, 0.12),
        0 10px 36px rgba(0, 0, 0, 0.16);
}

.intro-video.section-block::after {
    background: linear-gradient(180deg, #ead4a8 0%, #dfc388 48%, #d4b06a 100%);
    box-shadow:
        inset 0 1px 0 rgba(197, 157, 95, 0.32),
        inset 0 -1px 0 rgba(140, 100, 40, 0.22),
        0 10px 36px rgba(80, 60, 30, 0.12);
}

.portfolio.section-block::after {
    background: linear-gradient(180deg, #081424 0%, #0a1a2e 50%, #0d2038 100%);
    box-shadow:
        inset 0 1px 0 rgba(197, 157, 95, 0.1),
        0 10px 36px rgba(0, 0, 0, 0.14);
}

.contact.section-block::after {
    background: linear-gradient(180deg, #050c18 0%, #081424 50%, #0a1628 100%);
    box-shadow:
        inset 0 1px 0 rgba(197, 157, 95, 0.1),
        0 12px 40px rgba(0, 0, 0, 0.2);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Conteúdo acima do fundo fixo */
.site-header,
main,
.site-footer,
.site-intro {
    position: relative;
    z-index: 1;
}

body.is-intro-active,
body.is-nav-open {
    overflow: hidden;
}

body.is-intro-active {
    height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.icon-arrow { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- Logo (original do cliente + variantes por tamanho) ---- */
.livork-logo {
    display: block;
    object-fit: contain;
    object-position: left center;
    max-width: 100%;
    height: auto;
    filter:
        drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55))
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* wordmark header 399 × 52 (@2x → 26px display) */
.livork-logo--header {
    height: clamp(22px, 3.2vw, 26px);
    width: auto;
    aspect-ratio: 430 / 52;
    max-width: min(48vw, 200px);
}

/* wordmark footer 338 × 44 (@2x → 22px display) */
.livork-logo--footer {
    height: clamp(18px, 2.8vw, 22px);
    width: auto;
    aspect-ratio: 364 / 44;
    max-width: min(60vw, 170px);
}

/* marca completa (portal etc.) */
.livork-logo--hero-mark {
    width: min(100%, 380px);
    height: auto;
    aspect-ratio: 830 / 104;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.livork-logo--intro-mark {
    width: min(88vw, 340px);
    height: auto;
    aspect-ratio: 679 / 85;
    margin-inline: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.livork-tagline {
    margin: 0;
    font-size: clamp(0.78rem, 1.45vw, 0.92rem);
    font-weight: 300;
    line-height: 1.65;
    color: #ffffff;
    letter-spacing: 0.03em;
}

.livork-tagline strong {
    color: #ffb82e;
    font-weight: 600;
}

.livork-tagline--hero {
    margin-top: 12px;
    max-width: 46ch;
}

.livork-tagline--intro {
    margin-top: 14px;
    text-align: center;
    max-width: 36ch;
    margin-inline: auto;
}

.hero__brand-block {
    line-height: 0;
}

.hero__brand-block .livork-tagline {
    line-height: 1.65;
}

.site-intro__brand {
    text-align: center;
    line-height: 0;
}

.site-intro__brand .livork-tagline {
    line-height: 1.65;
}

.livork-logo--hero {
    width: min(100%, 440px);
    aspect-ratio: 594 / 120;
    height: auto;
    margin-bottom: 16px;
    filter:
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5))
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 24px rgba(152, 96, 22, 0.12));
}

.livork-logo--intro {
    width: min(88vw, 380px);
    aspect-ratio: 495 / 100;
    height: auto;
    margin-inline: auto;
    filter:
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55))
        drop-shadow(0 10px 28px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 32px rgba(152, 96, 22, 0.15));
}

.livork-logo--portal {
    width: min(100%, 340px);
    aspect-ratio: 475 / 96;
    height: auto;
    margin-inline: auto;
    filter:
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5))
        drop-shadow(0 6px 16px rgba(0, 0, 0, 0.32));
}

.site-header__logo,
.site-footer__logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    white-space: nowrap;
}

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

.btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.12s;
}

.btn--sm {
    padding: 10px 18px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}

.btn--outline,
.btn-outline {
    color: var(--gold);
    border-color: var(--gold);
    background: transparent;
}

.btn--outline:hover,
.btn-outline:hover {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 6px 20px rgba(197, 157, 95, 0.28);
}

.btn--primary,
.btn-primary {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.btn--primary:hover,
.btn-primary:hover {
    background: var(--gold-hi);
    box-shadow: 0 8px 24px rgba(197, 157, 95, 0.25);
}

.btn--primary:active,
.btn-primary:active {
    box-shadow: 0 2px 10px rgba(197, 157, 95, 0.2);
}

/* ---- Section headers ---- */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head--left { text-align: left; }

.section-head__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.section-head--left .section-head__label { justify-content: flex-start; }

.section-head__label span {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-head__line {
    width: 48px;
    height: 1px;
    background: var(--gold);
    opacity: 0.55;
}

.section-head__title {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.35;
}

.section-cta { text-align: center; margin-top: 48px; }

/* ---- Header ---- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(1, 12, 30, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(197, 157, 95, 0.32);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.48);
    transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s var(--ease);
}

.site-header--hero {
    background: rgba(1, 12, 30, 0.62);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(197, 157, 95, 0.38);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 36px rgba(0, 0, 0, 0.55);
}

.site-header--hero.is-scrolled {
    background: rgba(1, 12, 30, 0.97);
    backdrop-filter: blur(14px);
    border-bottom-color: rgba(197, 157, 95, 0.4);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 34px rgba(0, 0, 0, 0.52);
}

.site-header__inner {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.site-header__logo { justify-self: start; }

.site-nav {
    display: flex;
    gap: 34px;
    justify-self: center;
    align-items: center;
}

.site-nav__item {
    position: relative;
}

.site-nav__row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav__subtoggle {
    display: none;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    place-items: center;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.site-nav__subtoggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.25s var(--ease);
}

.site-nav__submenu {
    list-style: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 220px;
    padding: 10px;
    margin: 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 157, 95, 0.28);
    background: rgba(8, 20, 38, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    z-index: 30;
}

.site-nav__item--has-submenu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
}

.site-nav__item--has-submenu:hover .site-nav__submenu,
.site-nav__item--has-submenu:focus-within .site-nav__submenu,
.site-nav__item--has-submenu.is-open .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.site-nav__sublink {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}

.site-nav__sublink:hover,
.site-nav__sublink.is-active {
    color: #ffffff;
    background: rgba(197, 157, 95, 0.14);
}

.site-nav__item--has-submenu.is-active > .site-nav__row .site-nav__link--trigger {
    color: #ffffff;
    font-weight: 600;
}

.site-nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    padding: 8px 6px 7px;
    letter-spacing: 0.06em;
    transition:
        color 0.25s var(--ease),
        transform 0.2s var(--ease),
        text-shadow 0.25s var(--ease),
        background 0.25s var(--ease);
}

.site-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-hi));
    box-shadow: 0 0 10px rgba(197, 157, 95, 0.45);
    transition: width 0.28s var(--ease);
}

.site-nav__link:hover {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    width: 100%;
}

.site-nav__link.is-active {
    color: #ffffff;
    font-weight: 600;
}

.site-nav__link:active {
    transform: scale(0.96);
    color: var(--gold-hi);
}

.site-header__portal.btn--outline {
    color: #ffffff;
    border-color: rgba(197, 157, 95, 0.7);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    letter-spacing: 0.14em;
}

.site-header__portal.btn--outline:hover {
    color: var(--bg);
    background: var(--gold);
    border-color: var(--gold-hi);
    box-shadow: 0 6px 22px rgba(197, 157, 95, 0.38);
}

.site-header__portal.btn--outline:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 10px rgba(197, 157, 95, 0.25);
}

.site-header__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 6px;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.site-header__toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(197, 157, 95, 0.35);
}

.site-header__toggle:active {
    transform: scale(0.94);
    background: rgba(197, 157, 95, 0.12);
}

.site-nav__link--mobile { display: none; }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.lang-switcher {
    position: relative;
}

.lang-switcher__toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(197, 157, 95, 0.45);
    border-radius: 50%;
    background: rgba(5, 12, 24, 0.55);
    color: var(--gold-hi);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.lang-switcher__toggle svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 184, 46, 0.35));
}

.lang-switcher__toggle:hover {
    background: rgba(197, 157, 95, 0.16);
    border-color: rgba(255, 184, 46, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(197, 157, 95, 0.22);
}

.lang-switcher__menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 148px;
    margin: 0;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 157, 95, 0.28);
    background: rgba(8, 20, 38, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    z-index: 40;
}

.lang-switcher__menu[hidden] {
    display: none !important;
}

.lang-switcher__option {
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #ffffff;
    text-align: left;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-switcher__option:hover {
    background: rgba(197, 157, 95, 0.14);
    color: var(--gold-hi);
}

.site-header__portal {
    display: inline-flex;
}

.site-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.site-header__toggle span:nth-child(2) { width: 18px; margin-left: auto; }

/* ---- Hero: slider + intro reorganizado ---- */
.hero--cube {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.hero__slider {
    position: relative;
    width: 100%;
}

.hero-cube {
    position: relative;
    width: 100%;
    height: clamp(260px, 56.25vw, 92vh);
    max-height: 920px;
    outline: none;
}

.hero-cube:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(197, 157, 95, 0.55);
}

.hero-cube::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 35%;
    background: linear-gradient(to top, rgba(5, 12, 24, 0.55), transparent);
    pointer-events: none;
}

.hero-cube__scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1600px;
    perspective-origin: 50% 50%;
    overflow: hidden;
}

.hero-cube__rotator {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.45, 0.05, 0.2, 1);
    will-change: transform;
}

.hero-cube__face {
    position: absolute;
    inset: 0;
    margin: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.hero-cube__face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    filter: brightness(1.1) saturate(1.02);
}

.hero-cube__controls {
    position: absolute;
    inset: auto 0 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 24px);
    padding: 0 var(--gutter) clamp(18px, 3vw, 28px);
    pointer-events: none;
}

.hero-cube__arrow,
.hero-cube__dot {
    pointer-events: auto;
}

.hero-cube__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(197, 157, 95, 0.45);
    border-radius: 50%;
    background: rgba(5, 12, 24, 0.72);
    color: var(--gold);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.hero-cube__arrow svg {
    width: 20px;
    height: 20px;
}

.hero-cube__arrow:hover {
    background: rgba(197, 157, 95, 0.18);
    border-color: var(--gold);
    transform: scale(1.05);
}

.hero-cube__dots {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(5, 12, 24, 0.55);
    backdrop-filter: blur(8px);
}

.hero-cube__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.hero-cube__dot.is-active {
    background: var(--gold);
    transform: scale(1.2);
}

/* fallback sem efeito 3D */
.hero-cube--flat .hero-cube__rotator {
    transform: none !important;
}

.hero-cube--flat .hero-cube__face {
    opacity: 0;
    transition: opacity 0.65s ease;
    transform: none !important;
}

.hero-cube--flat .hero-cube__face.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-cube.is-paused .hero-cube__rotator {
    transition-duration: 1s;
}

.hero__intro {
    position: relative;
    z-index: 2;
    padding: clamp(28px, 5vw, 44px) 0;
    background: rgba(6, 14, 28, 0.62);
    border-top: 1px solid rgba(197, 157, 95, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.28);
}

.hero__intro-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 32px);
}

.hero__intro-copy {
    flex: 1 1 320px;
    min-width: 0;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(197, 157, 95, 0.35);
    border-radius: 999px;
    background: rgba(197, 157, 95, 0.08);
}

.hero__brand {
    margin-bottom: 14px;
    line-height: 0;
}

.hero__lead {
    max-width: 52ch;
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    font-weight: 300;
    color: var(--text);
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    flex-shrink: 0;
}

.hero__cta-secondary {
    color: #ffffff;
    border-color: rgba(197, 157, 95, 0.45);
    background: rgba(255, 255, 255, 0.04);
}

.hero__cta-secondary:hover {
    color: var(--bg);
    border-color: var(--gold);
    background: var(--gold);
}

/* ---- Services ---- */
.services {
    position: relative;
    padding: var(--section-py) 0;
}

.services .section-head {
    margin-bottom: 56px;
}

.services .section-head__title {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(16px, 2.5vw, 24px);
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 310px;
    padding: 46px 22px 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(72, 110, 150, 0.18);
    background: rgba(8, 20, 38, 0.72);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-card);
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card:hover {
    border-color: rgba(197, 157, 95, 0.32);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-card__icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: transparent;
    box-shadow: none;
    border: 2px solid #ffffff;
    padding: 8px;
    box-sizing: border-box;
}

.service-card__icon::before {
    display: none;
}

.service-card__icon svg {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
}

.service-card__icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

.service-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    color: var(--white);
}

.service-card__text {
    font-size: var(--text-sm);
    font-weight: 300;
    color: #b0bac8;
    margin-bottom: 28px;
    line-height: 1.75;
    max-width: 210px;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--gold);
    transition: gap 0.25s, color 0.25s;
}

.service-card__link:hover {
    gap: 10px;
    color: var(--gold-hi);
}

/* ---- Intro video ---- */
.intro-video {
    padding: var(--section-py) 0;
    background: transparent;
}

.intro-video__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
}

.intro-video .section-head__title {
    color: #0f1a2a;
}

.intro-video .section-head__label span {
    color: #7a5c28;
}

.intro-video .section-head__line {
    background: #b8894a;
    opacity: 0.85;
}

.intro-video__text {
    font-size: var(--text-sm);
    color: #3d4f63;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 46ch;
}

.intro-video .btn--outline {
    color: #7a5c28;
    border-color: #c59d5f;
    background: rgba(255, 255, 255, 0.45);
}

.intro-video .btn--outline:hover {
    color: #ffffff;
    background: #c59d5f;
    border-color: #b8894a;
}

.intro-video__player {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(197, 157, 95, 0.28);
    box-shadow: var(--shadow-card);
    background: rgba(8, 20, 38, 0.55);
}

.intro-video__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #050c18;
}

/* ---- Portfolio ---- */
.portfolio {
    padding: var(--section-py) 0;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(8, 20, 38, 0.5);
    border: 1px solid rgba(72, 110, 150, 0.12);
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.portfolio-card:hover {
    border-color: rgba(197, 157, 95, 0.25);
    transform: translateY(-3px);
}

.portfolio-card__link {
    display: block;
    color: inherit;
}

.portfolio-card__media {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 4 / 2.9;
}

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 16, 31, 0.55);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.portfolio-card__overlay span {
    padding: 8px 18px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
}

.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }

.portfolio-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050c18;
}

.portfolio-card__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px 20px;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
}

.portfolio-card__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 2px;
}

.portfolio-card__icon svg { width: 100%; height: 100%; }

.portfolio-card__title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.portfolio-card__text {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.55;
}

/* ---- Partnerships ---- */
.partners {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px) 0;
    background: #ffffff;
    color: #152033;
    box-shadow:
        inset 0 1px 0 rgba(197, 157, 95, 0.18),
        inset 0 -1px 0 rgba(197, 157, 95, 0.12);
    z-index: 1;
}

.partners__inner {
    text-align: center;
}

.partners .section-head {
    margin-bottom: 12px;
    text-align: center;
}

.partners .section-head__label {
    justify-content: center;
}

.partners .section-head__title {
    color: #0c1624;
}

.partners .section-head__label span {
    color: #8a6d3b;
}

.partners .section-head__line {
    background: rgba(197, 157, 95, 0.45);
}

.partners__text {
    max-width: 42rem;
    margin: 0 auto 22px;
    font-size: clamp(0.78rem, 2.2vw, 0.92rem);
    line-height: 1.55;
    color: #3a4a5c;
}

.partners__cta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.partners-carousel {
    margin: 0 auto;
    max-width: 100%;
}

.partners-carousel__viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners-carousel__track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: partners-marquee 36s linear infinite;
}

.partners-carousel:hover .partners-carousel__track {
    animation-play-state: paused;
}

.partners-carousel__item {
    flex: 0 0 auto;
    width: min(42vw, 168px);
    margin: 0;
    padding: 10px 12px;
    background: #f7f8fa;
    border: 1px solid rgba(21, 32, 51, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-carousel__item img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes partners-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.partners-page,
.partners-app-page {
    padding: clamp(16px, 3vw, 28px) 0 40px;
}

.partners-page .partners-carousel {
    margin: 0 0 28px;
}

.partners-page .section-head {
    text-align: center;
}

.partners-page .section-head__label {
    justify-content: center;
}

.partners-page__lead,
.partners-app-page__lead {
    max-width: 40rem;
    margin: 0 auto 24px;
    text-align: center;
    color: #a8b8c8;
    font-size: 0.88rem;
    line-height: 1.5;
}

.partners-page {
    background: #ffffff;
    color: #152033;
}

.partners-page .section-head__title {
    color: #0c1624;
}

.partners-page__lead {
    color: #3a4a5c;
}

.partners-page__grid,
.partners-app-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}

.partners-page__card,
.partners-app-page__card {
    margin: 0;
    padding: 14px 12px 10px;
    background: #f7f8fa;
    border: 1px solid rgba(21, 32, 51, 0.08);
    border-radius: 12px;
    text-align: center;
}

.partners-app-page__card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(197, 157, 95, 0.18);
}

.partners-page__card img,
.partners-app-page__card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.partners-page__card figcaption,
.partners-app-page__card figcaption {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: #5a6a7c;
}

.partners-app-page__card figcaption {
    color: #a8b8c8;
}

.partners-page__join,
.partners-app-page__join {
    text-align: center;
    padding: 22px 16px;
    border-radius: 14px;
    background: #f7f8fa;
    border: 1px solid rgba(197, 157, 95, 0.22);
}

.partners-app-page__join {
    background: rgba(255, 255, 255, 0.04);
}

.partners-page__join h2,
.partners-app-page__join h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.partners-page__join p,
.partners-app-page__join p {
    margin: 0 auto 16px;
    max-width: 34rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #3a4a5c;
}

.partners-app-page__join p {
    color: #a8b8c8;
}

.partners-carousel--app {
    margin-bottom: 22px;
}

.partners-carousel--app .partners-carousel__item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(197, 157, 95, 0.16);
}

/* ---- Portfolio page ---- */
.portfolio-page {
    padding: clamp(20px, 4vw, 40px) 0 24px;
    background: #081424;
}

.portfolio-page .section-head {
    text-align: center;
}

.portfolio-page .section-head__label {
    justify-content: center;
}

.portfolio-page__lead {
    max-width: 40rem;
    margin: 0 auto 22px;
    text-align: center;
    color: #a8b8c8;
    font-size: 0.88rem;
    line-height: 1.5;
}

.portfolio-page__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 28px;
}

.portfolio-page__filter {
    border: 1px solid rgba(197, 157, 95, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: #a8b8c8;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.portfolio-page__filter.is-active,
.portfolio-page__filter:hover {
    color: #0c1624;
    background: #c59d5f;
    border-color: #c59d5f;
}

.portfolio-page__service {
    margin-bottom: 36px;
}

.portfolio-page__service-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.portfolio-page__service-icon {
    width: 42px;
    height: 42px;
    color: #c59d5f;
    flex: 0 0 auto;
}

.portfolio-page__service-icon svg {
    width: 100%;
    height: 100%;
}

.portfolio-page__service-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #fff;
}

.portfolio-page__service-desc {
    margin: 0;
    font-size: 0.78rem;
    color: #8a9aac;
}

.portfolio-page__service-head .btn {
    margin-left: auto;
}

.portfolio-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.portfolio-page__card {
    margin: 0;
}

.portfolio-page__card-link {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #0c1e34;
}

.portfolio-page__card-link img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.portfolio-page__card-link:hover img {
    transform: scale(1.04);
}

.portfolio-page__card-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(5, 12, 24, 0.55);
    color: #ffd36a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.portfolio-page__card-link:hover .portfolio-page__card-overlay {
    opacity: 1;
}

.portfolio-page__card-title {
    margin: 8px 0 2px;
    font-size: 0.78rem;
    color: #fff;
}

.portfolio-page__card-text {
    margin: 0;
    font-size: 0.68rem;
    color: #8a9aac;
    line-height: 1.4;
}

.portfolio-lightbox[hidden] { display: none; }

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.portfolio-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.78);
    cursor: pointer;
}

.portfolio-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 96vw);
    max-height: 90vh;
    overflow: auto;
    background: #0a1528;
    border-radius: 16px;
    border: 1px solid rgba(197, 157, 95, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.portfolio-lightbox__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.portfolio-lightbox__image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #050c18;
    display: block;
}

.portfolio-lightbox__caption {
    padding: 14px 16px 18px;
}

.portfolio-lightbox__title {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #fff;
}

.portfolio-lightbox__text {
    margin: 0;
    font-size: 0.82rem;
    color: #a8b8c8;
}

/* ---- Instagram feed ---- */
.instagram-feed {
    padding: clamp(24px, 4vw, 44px) 0;
    background: #ffffff;
    color: #152033;
}

.instagram-feed .section-head {
    text-align: center;
}

.instagram-feed .section-head__label {
    justify-content: center;
}

.instagram-feed .section-head__title {
    color: #0c1624;
}

.instagram-feed__lead {
    max-width: 38rem;
    margin: 0 auto 22px;
    text-align: center;
    color: #3a4a5c;
    font-size: 0.86rem;
    line-height: 1.5;
}

.instagram-feed__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 720px) {
    .instagram-feed__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.instagram-feed__card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f2f5;
    aspect-ratio: 1;
}

.instagram-feed__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-feed__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(5, 12, 24, 0.7);
    color: #fff;
    font-size: 0.7rem;
}

.instagram-feed__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgba(5, 12, 24, 0.78));
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.35;
}

.instagram-feed__fallback {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.instagram-feed__embed-wrap {
    width: min(100%, 540px);
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(21, 32, 51, 0.1);
    background: #f7f8fa;
}

.instagram-feed__embed-wrap iframe {
    width: 100%;
    height: 540px;
    border: 0;
}

.instagram-feed__hint {
    max-width: 34rem;
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    color: #5a6a7c;
}

.instagram-feed__cta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}


/* ---- About (legacy) ---- */
.about {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 56px);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 52%, #eef2f7 100%);
    color: #152033;
    box-shadow:
        inset 0 1px 0 rgba(197, 157, 95, 0.2),
        inset 0 -1px 0 rgba(197, 157, 95, 0.14),
        0 18px 48px rgba(8, 20, 38, 0.1);
    z-index: 1;
}

.about__watermark {
    position: absolute;
    top: 50%;
    left: 54%;
    width: min(640px, 95%);
    transform: translate(-50%, -50%) rotate(-26deg);
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.about__watermark img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.07;
    filter: grayscale(1) contrast(1.05);
}

.about__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
}

.about .section-head__title {
    color: #0c1624;
}

.about .section-head__label span {
    color: #7a5c28;
}

.about .section-head__line {
    background: #b8894a;
    opacity: 0.85;
}

.about__highlights {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.about__highlights li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    color: #1e2d3d;
}

.about__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #b8894a;
    background: rgba(197, 157, 95, 0.22);
}

.about__content .section-head {
    margin-top: 0;
    margin-bottom: 16px;
}

.about__text {
    font-size: 0.86rem;
    color: #3d4f63;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 400px;
}

.about__visual {
    position: relative;
    width: min(300px, 78vw);
    aspect-ratio: 1;
    margin-inline: auto;
}

.about__ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.about__ring--outer {
    inset: 0;
    border: 1px solid rgba(197, 157, 95, 0.32);
}

.about__ring--accent {
    inset: 10px;
    border: 1.5px solid transparent;
    border-top-color: #c59d5f;
    border-right-color: #c59d5f;
    transform: rotate(-12deg);
}

.about__photo {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(15, 26, 42, 0.18);
}

.about .btn--outline {
    color: #8a6930;
    border-color: #c59d5f;
    background: rgba(255, 255, 255, 0.65);
}

.about .btn--outline:hover {
    background: #c59d5f;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(197, 157, 95, 0.28);
}

.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Contact CTA (bottom section) ---- */
.contact { background: transparent; }

.contact-cta {
    position: relative;
    padding: clamp(48px, 7vw, 88px) 0;
    overflow: hidden;
}

.contact-cta__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(197, 157, 95, 0.14) 0%, transparent 42%),
        linear-gradient(180deg, rgba(8, 20, 38, 0.92) 0%, rgba(5, 12, 24, 0.98) 100%);
    border-top: 1px solid rgba(197, 157, 95, 0.22);
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
}

.contact-cta__backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), #ffb82e, var(--gold), transparent);
}

.contact-cta__backdrop::after {
    content: '';
    position: absolute;
    right: -8%;
    bottom: -20%;
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 46, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.contact-cta__wrap {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(28px, 4vw, 40px);
}

.contact-cta__wrap--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}

.contact-cta__info {
    max-width: 520px;
}

.contact-cta__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-hi);
    border: 1px solid rgba(197, 157, 95, 0.35);
    border-radius: 999px;
    background: rgba(197, 157, 95, 0.08);
}

.contact-cta__title {
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 12px;
}

.contact-cta__text {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 20px;
}

.contact-cta__company {
    display: grid;
    gap: 8px;
}

.contact-cta__company-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 157, 95, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
}

.contact-cta__company-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: rgba(197, 157, 95, 0.1);
    border: 1px solid rgba(197, 157, 95, 0.22);
}

.contact-cta__company-icon svg {
    width: 13px;
    height: 13px;
}

.contact-cta__company-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1px;
}

.contact-cta__company-value {
    display: block;
    font-size: 0.8rem;
    color: #ffffff;
    line-height: 1.35;
}

.contact-cta__form-panel {
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 157, 95, 0.24);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(8, 20, 38, 0.72) 100%);
    box-shadow: var(--shadow-card);
}

.contact-cta__form-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.contact-cta__form-hint {
    font-size: var(--text-sm);
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-cta__form-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: #8dffb8;
    background: rgba(72, 180, 120, 0.12);
    border: 1px solid rgba(72, 180, 120, 0.28);
}

.contact-cta__form-status.is-error {
    color: #ffb0b0;
    background: rgba(220, 90, 90, 0.12);
    border-color: rgba(220, 90, 90, 0.28);
}

.livork-message-confirm {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    background: rgba(4, 12, 22, 0.82);
    backdrop-filter: blur(6px);
}

.livork-message-confirm__card {
    width: min(100%, 340px);
    padding: 22px 20px 18px;
    border-radius: 16px;
    background: linear-gradient(160deg, #12263a 0%, #0b1a2a 100%);
    border: 1px solid rgba(197, 157, 95, 0.35);
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.livork-message-confirm__eyebrow {
    margin: 0 0 6px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold, #c59d5f);
}

.livork-message-confirm__title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f5f0e8;
}

.livork-message-confirm__body {
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(245, 240, 232, 0.82);
}

.livork-message-confirm__card .btn {
    width: 100%;
}

.livork-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.livork-human-check,
.livork-human-math {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.88);
}

.livork-human-math {
    flex-direction: column;
}

.livork-human-math input {
    width: 100%;
    border: 1px solid rgba(197, 157, 95, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 10px 12px;
}

.livork-human-error {
    margin: 0 0 12px;
    color: #ffb0b0;
    font-size: 0.82rem;
}

.livork-human-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.livork-human-actions .btn {
    width: 100%;
}

.btn--ghost {
    background: transparent;
    border: 1px solid rgba(197, 157, 95, 0.35);
    color: #f5f0e8;
}

.contact-form__stack,
.livork-assistant__stack {
    display: grid;
    gap: 10px;
}

.contact-form__stack input,
.contact-form__stack textarea,
.livork-assistant__stack input,
.livork-assistant__stack textarea {
    width: 100%;
    border: 1px solid rgba(197, 157, 95, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
}

.contact-form__stack textarea,
.livork-assistant__stack textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__photos-label,
.livork-assistant__photos-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
}

.contact-form__photos-hint,
.livork-assistant__photos-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin: 0;
}

.contact-form__photos,
.livork-assistant__stack input[type="file"] {
    padding: 8px 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.78rem;
}

/* ---- Footer ---- */
.site-footer {
    padding: 56px 0 0;
    background: var(--bg);
    border-top: 1px solid rgba(197,157,95,0.1);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) minmax(110px, 0.85fr) minmax(110px, 0.85fr) minmax(110px, 0.85fr);
    gap: clamp(28px, 4vw, 44px);
    column-gap: clamp(44px, 6vw, 80px);
    padding-bottom: 40px;
    align-items: start;
}

.site-footer__brand {
    text-align: center;
    padding-right: clamp(8px, 2vw, 20px);
}

.site-footer__nav {
    margin-left: clamp(16px, 3.5vw, 48px);
}

.site-footer__services,
.site-footer__contact {
    padding-left: clamp(4px, 1.5vw, 12px);
}

.site-footer__logo {
    margin-inline: auto;
}

.site-footer__heading {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.site-footer__tagline {
    margin-top: 16px;
    margin-inline: auto;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    max-width: 360px;
    text-align: center;
}

.site-footer__links {
    list-style: none;
    display: grid;
    gap: 10px;
}

.site-footer__links a,
.site-footer__links span {
    font-size: 0.9rem;
    color: var(--text);
    transition: color 0.25s;
}

.site-footer__links a:hover { color: var(--gold); }

.site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid rgba(197,157,95,0.08);
}

.site-footer__copy {
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.03em;
}

.site-footer__social {
    display: flex;
    gap: 18px;
}

.site-footer__social a {
    color: var(--gold);
    opacity: 0.9;
    transition: opacity 0.25s, transform 0.25s;
}

.site-footer__social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.site-footer__social svg { width: 22px; height: 22px; }

.site-footer__app-label {
    margin: 18px 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.store-badges--footer {
    margin-top: 4px;
}

.store-badges--hero {
    justify-content: center;
    margin: 8px 0 28px;
    gap: 12px;
}

.store-badge {
    display: inline-flex;
    line-height: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.store-badge__svg {
    height: 40px;
    width: auto;
    display: block;
}

.download-page {
    padding: calc(var(--header-h) + 48px) 0 72px;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(197, 157, 95, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}

.download-page__inner {
    max-width: 720px;
    text-align: center;
}

.download-page__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.download-page__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text);
}

.download-page__lead {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted, rgba(255,255,255,0.72));
    margin-bottom: 8px;
}

.download-page__panels {
    display: grid;
    gap: 16px;
    margin-top: 8px;
    text-align: left;
}

@media (min-width: 640px) {
    .download-page__panels {
        grid-template-columns: 1fr 1fr;
    }
}

.download-panel {
    padding: 20px 18px;
    border: 1px solid rgba(197, 157, 95, 0.25);
    border-radius: 12px;
    background: rgba(8, 20, 36, 0.55);
}

.download-panel h2 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 600;
}

.download-panel ol {
    margin: 0 0 14px;
    padding-left: 1.2rem;
    color: var(--text-muted, rgba(255,255,255,0.75));
    font-size: 0.88rem;
    line-height: 1.45;
}

.download-panel li + li {
    margin-top: 8px;
}

.download-panel__link {
    display: inline-block;
    color: var(--gold-hi, var(--gold));
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ================================================================
   Portal
   ================================================================ */

.portal-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 32px) 24px 40px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(18, 36, 58, 0.85) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}

.portal-card {
    width: 100%;
    max-width: 420px;
    background: rgba(10, 21, 40, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 44px 36px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.portal-card--wide,
.portal-card-wide { max-width: 900px; }

.portal-logo {
    text-align: center;
    margin-bottom: 16px;
}

.portal-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 7px;
}

.portal-main {
    width: 100%;
    display: flex;
    justify-content: center;
}

.portal-card__header {
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197,157,95,0.12);
}

.form-actions { margin-top: 24px; }
.form-actions .btn { width: 100%; justify-content: center; }

.alert {
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.alert-error {
    background: rgba(229,62,62,0.1);
    border: 1px solid rgba(229,62,62,0.3);
    color: #fc8181;
}

.alert-success {
    background: rgba(72, 180, 120, 0.12);
    border: 1px solid rgba(72, 180, 120, 0.28);
    color: #8dffb8;
}

.portal-form select,
.conversation-reply select,
.livork-assistant__stack select {
    width: 100%;
    border: 1px solid rgba(197, 157, 95, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
}

.portal-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.portal-back:hover { color: var(--gold); }

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.dashboard-welcome h2 { font-size: 1.3rem; font-weight: 400; }
.dashboard-welcome p { color: var(--text-dim); font-size: 0.85rem; }

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 14px;
    margin-bottom: 36px;
}

.portal-page--dashboard {
    align-items: flex-start;
}

.dashboard-section-title {
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.dashboard-empty {
    color: var(--text-dim);
    text-align: center;
    padding: 40px 0;
}

.projects-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gutter) * -0.5);
    padding-inline: calc(var(--gutter) * 0.5);
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    border-radius: 2px;
}

.stat-number { font-size: 1.8rem; font-weight: 500; color: var(--gold); }
.stat-label { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

.projects-table { width: 100%; border-collapse: collapse; }
.projects-table th, .projects-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(197,157,95,0.08);
    font-size: 0.85rem;
}
.projects-table th {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.projects-table td { color: var(--text-dim); }

.projects-table__title {
    color: var(--white);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.status-completed { background: rgba(72,187,120,0.12); color: #68d391; }
.status-in_progress { background: rgba(197,157,95,0.12); color: var(--gold); }

.demo-credentials {
    margin-top: 20px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.8;
    border-radius: 2px;
}
.demo-credentials strong { color: var(--gold); }

/* ---- Intro / Splash ---- */
.site-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 90% 70% at 50% 35%, rgba(22, 42, 68, 0.45) 0%, transparent 62%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
    transition: opacity 0.85s var(--ease), visibility 0.85s;
}

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

.site-intro.is-exiting .site-intro__inner {
    animation: introExit 0.9s var(--ease) forwards;
}

.site-intro__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-intro__glow {
    position: absolute;
    width: min(90vw, 640px);
    height: min(90vw, 640px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 157, 95, 0.12) 0%, transparent 68%);
    opacity: 0;
    animation: introGlow 2.4s var(--ease) 0.2s forwards;
}

.site-intro__slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #050c18;
}

.site-intro__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.7s var(--ease), transform 1.4s var(--ease);
}

.site-intro__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.site-intro__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #050c18;
}

.site-intro__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 12, 24, 0.08) 0%, rgba(5, 12, 24, 0.12) 70%, rgba(5, 12, 24, 0.45) 100%);
    pointer-events: none;
}

.site-intro.is-logo-phase .site-intro__slides {
    opacity: 0.22;
    transition: opacity 0.7s var(--ease);
}

.site-intro__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    opacity: 0;
    transform: translateY(18px) scale(0.97);
}

.site-intro.is-logo-phase .site-intro__content,
.site-intro__content:not([hidden]) {
    animation: introLogoIn 0.9s var(--ease) forwards;
}

.site-intro__content[hidden] {
    display: none !important;
}

.site-intro__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(197, 157, 95, 0.12);
}

.site-intro__progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: introProgress 2.1s var(--ease) 0.2s forwards;
}

.site-intro__skip {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 2;
    background: rgba(5, 12, 24, 0.55);
    border: 1px solid rgba(197, 157, 95, 0.4);
    border-radius: 999px;
    color: var(--gold);
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 16px;
    opacity: 0;
    animation: introFadeIn 0.6s var(--ease) 0.7s forwards;
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.site-intro__skip:hover {
    color: var(--bg);
    background: var(--gold);
    border-color: var(--gold);
}

@keyframes introLogoIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes introGlow {
    0%   { opacity: 0; transform: scale(0.85); }
    40%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.08); }
}

@keyframes introProgress {
    to { width: 100%; }
}

@keyframes introFadeIn {
    to { opacity: 1; }
}

@keyframes introExit {
    to {
        opacity: 0;
        transform: scale(1.04);
    }
}

/* ---- Responsive ---- */

/* Tablet landscape / small laptop */
@media (max-width: 1200px) {
    .site-nav { gap: clamp(16px, 2.5vw, 28px); }
    .site-nav__link { font-size: 0.74rem; }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-cube {
        height: clamp(240px, 52vw, 72vh);
    }

    .hero__intro-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hero__actions {
        width: 100%;
    }

    .section-head--left {
        text-align: center;
    }

    .section-head--left .section-head__label {
        justify-content: center;
    }

    .about__content {
        text-align: center;
    }

    .about__text,
    .about__highlights {
        margin-inline: auto;
    }

    .about__highlights {
        max-width: 360px;
    }

    .about__watermark {
        width: 120%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-22deg);
    }

    .about__watermark img {
        opacity: 0.06;
    }

    .contact-cta__wrap--split {
        grid-template-columns: 1fr;
    }

    .contact-cta__info {
        max-width: none;
        text-align: center;
        margin-inline: auto;
    }

    .contact-cta__text {
        margin-inline: auto;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(28px, 4vw, 48px);
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .site-footer__nav {
        margin-left: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-header__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .site-header__logo {
        flex: 1 1 auto;
    }

    .site-nav {
        position: static;
        order: 3;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 6px 0 2px;
        gap: 6px 10px;
        background: transparent;
        border: none;
        transform: none;
        max-height: none;
        overflow: visible;
    }

    .site-nav__link {
        padding: 8px 10px;
        font-size: 0.76rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
        border-radius: var(--radius-sm);
        border: 1px solid transparent;
        transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
    }

    .site-nav__link:hover,
    .site-nav__link.is-active {
        color: #ffffff;
        background: rgba(197, 157, 95, 0.12);
        border-color: rgba(197, 157, 95, 0.28);
    }

    .site-nav__link:active {
        transform: scale(0.98);
        background: rgba(197, 157, 95, 0.2);
    }

    .site-nav__link::after { display: none; }

    .site-nav__link--mobile { display: block; }

    .site-nav__item--has-submenu {
        width: 100%;
    }

    .site-nav__row {
        justify-content: center;
    }

    .site-nav__subtoggle {
        display: grid;
    }

    .site-nav__item--has-submenu.is-open .site-nav__subtoggle svg {
        transform: rotate(180deg);
    }

    .site-nav__submenu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        margin-top: 4px;
        padding: 6px;
        border: none;
        background: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transition: max-height 0.3s var(--ease), padding 0.3s;
    }

    .site-nav__item--has-submenu.is-open .site-nav__submenu {
        max-height: 280px;
        pointer-events: auto;
        padding: 8px 6px 10px;
    }

    .site-nav__item--has-submenu::before {
        display: none;
    }

    .site-nav__sublink {
        text-align: center;
        font-size: 0.84rem;
    }

    .site-header__portal { display: none; }

    .lang-switcher__toggle {
        width: 40px;
        height: 40px;
    }

    .livork-logo--header {
        height: clamp(20px, 5vw, 24px);
        max-width: min(52vw, 160px);
    }

    .livork-logo--hero {
        width: min(100%, 320px);
    }

    .livork-logo--intro {
        width: min(90vw, 300px);
    }

    .livork-logo--footer {
        height: 18px;
        max-width: min(58vw, 140px);
        margin-inline: auto;
    }

    .btn {
        white-space: normal;
        text-align: center;
        min-height: 44px;
    }

    .hero-cube__arrow {
        width: 40px;
        height: 40px;
    }

    .hero-cube__controls {
        gap: 10px;
        padding-bottom: 14px;
    }

    .service-card {
        min-height: auto;
        padding: 36px 20px 32px;
    }

    .portfolio__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        column-gap: 0;
        gap: 32px;
    }

    .site-footer__brand {
        padding-right: 0;
    }

    .site-footer__nav,
    .site-footer__services,
    .site-footer__contact {
        margin-left: 0;
        padding-left: 0;
    }

    .site-footer__tagline { margin-inline: auto; }

    .site-footer__bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .portal-card {
        padding: 32px 24px;
    }

    .portal-card-wide {
        max-width: 100%;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .dashboard-header .btn {
        width: 100%;
    }

    .projects-table {
        min-width: 520px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --section-py: clamp(56px, 12vw, 80px);
    }

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

    .section-head__label span {
        letter-spacing: 0.18em;
        font-size: 0.68rem;
    }

    .section-head__title {
        font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    }

    .hero-cube {
        height: clamp(200px, 50vw, 360px);
    }

    .hero__intro {
        padding: 24px 0 28px;
    }

    .hero__intro-inner {
        align-items: stretch;
        text-align: center;
    }

    .hero__eyebrow { margin-inline: auto; }

    .hero__lead { margin-inline: auto; }

    .hero__actions {
        flex-direction: column;
        max-width: 320px;
        margin-inline: auto;
    }

    .hero__actions .btn { width: 100%; }

    .hero-cube__arrow {
        width: 36px;
        height: 36px;
    }

    .site-intro__skip {
        bottom: max(16px, env(safe-area-inset-bottom, 16px));
        right: var(--gutter);
    }

    .livork-logo--intro {
        width: min(94vw, 280px);
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .livork-logo--header {
        max-width: 130px;
        height: 20px;
    }
}

/* Large desktops / ultrawide */
@media (min-width: 1400px) {
    :root {
        --container: 1280px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-cube {
        height: clamp(180px, 70vh, 320px);
    }

    .site-intro__content {
        padding: 12px;
    }

    .livork-logo--intro {
        width: min(50vw, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }

    .site-intro__content,
    .site-intro__glow,
    .site-intro__progress-bar,
    .site-intro__skip {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .site-intro__progress-bar { width: 100% !important; }
}

/* ---- Service pages ---- */
.service-page__banner {
    position: relative;
    width: 100%;
    height: clamp(260px, 42vw, 440px);
    overflow: hidden;
    background: #050c18;
}

.service-page__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(1.1) saturate(1.02);
}

.service-page__banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: clamp(8px, 3vw, 40px);
    background: linear-gradient(to left, rgba(5, 12, 24, 0.95) 0%, rgba(5, 12, 24, 0.55) 22%, transparent 48%);
}

.service-page__banner-inner {
    width: min(38%, 360px);
    margin-left: auto;
    margin-right: 0;
    padding: clamp(24px, 5vw, 40px) clamp(12px, 2vw, 20px) clamp(24px, 5vw, 40px) var(--gutter);
    text-align: right;
}

.service-page__back {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.25s;
}

.service-page__back:hover { color: var(--gold-hi); }

.service-page__title {
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.service-page__tagline {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: #e2e8f0;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Banner com painel azul na arte + ícone/título em HTML (organizing, digital) */
.service-page__banner--brand img {
    object-position: center center;
    filter: brightness(1.04) contrast(1.08) saturate(1.05);
}

.service-page__banner--brand .service-page__banner-overlay {
    inset: 0;
    padding: 0;
    background: none;
    display: block;
    justify-content: unset;
    align-items: unset;
}

.service-page__banner--brand .service-page__back {
    position: absolute;
    top: clamp(16px, 3vw, 28px);
    left: var(--gutter);
    margin: 0;
    z-index: 3;
}

.service-page__banner--brand .service-page__banner-brand {
    position: absolute;
    top: 0;
    left: 0;
    width: min(50%, 500px);
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: clamp(52px, 8vw, 72px) clamp(16px, 3vw, 28px) clamp(28px, 5vw, 40px);
    z-index: 2;
}

.service-page__banner--brand .service-page__banner-icon {
    width: clamp(72px, 10vw, 96px);
    height: clamp(72px, 10vw, 96px);
    border-radius: 50%;
    border: 2px solid #ffffff;
    padding: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.service-page__banner--brand .service-page__banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.service-page__banner--brand .service-page__banner-divider {
    width: 1px;
    height: clamp(68px, 11vw, 92px);
    margin: 0 clamp(12px, 2vw, 20px);
    flex-shrink: 0;
    background: linear-gradient(180deg, transparent 0%, #c59d5f 18%, #ffb82e 50%, #c59d5f 82%, transparent 100%);
}

.service-page__banner--brand .service-page__banner-brand-text {
    max-width: min(220px, 42vw);
    text-align: left;
}

.service-page__banner--brand .service-page__title {
    font-size: clamp(1.35rem, 2.8vw, 1.95rem);
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-align: left;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.service-page__banner--brand .service-page__tagline {
    font-size: clamp(0.82rem, 1.4vw, 1rem);
    line-height: 1.5;
    text-align: left;
    color: #d8e2ec;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.service-page__about {
    padding: var(--section-py) 0;
}

.service-page__content-card {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 157, 95, 0.22);
    background:
        linear-gradient(135deg, rgba(12, 28, 48, 0.92) 0%, rgba(8, 18, 32, 0.78) 100%);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.service-page__content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-hi), var(--gold));
}

.service-page__content-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.service-page__content-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
}

.service-page__about-icon {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
}

.service-page__content-main {
    min-width: 0;
}

.service-page__intro {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(197, 157, 95, 0.2);
}

.service-page__text-block {
    margin-bottom: 24px;
}

.service-page__text {
    font-size: var(--text-md);
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 18px;
}

.service-page__text:last-child {
    margin-bottom: 0;
}

.service-page__features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px;
    margin: 0 0 32px;
}

.service-page__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

.service-page__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    min-height: 40px;
    gap: 6px;
}

.service-page__actions .btn .icon-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.service-page__feature-btn,
.service-page__feature-item {
    position: relative;
    padding: 14px 16px 14px 36px;
    font-size: var(--text-sm);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 157, 95, 0.15);
    border-radius: var(--radius-sm);
}

.service-page__feature-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.service-page__feature-btn:hover,
.service-page__feature-btn:focus-visible {
    transform: translateY(-2px);
    background: rgba(197, 157, 95, 0.1);
    border-color: rgba(197, 157, 95, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.service-page__feature-btn__text {
    flex: 1;
    min-width: 0;
}

.service-page__feature-btn__arrow {
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.85;
}

.service-page__feature-btn__arrow svg {
    width: 18px;
    height: 18px;
}

.service-page__feature-btn::before,
.service-page__feature-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.service-page__features li {
    position: relative;
    padding: 14px 16px 14px 36px;
    font-size: var(--text-sm);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 157, 95, 0.15);
    border-radius: var(--radius-sm);
}

.service-page__features li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.service-page__portfolio {
    padding-bottom: var(--section-py);
}

/* Portfolio — miniaturas em fileira de 4 */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 18px);
}

.service-gallery__item {
    position: relative;
    padding: 0;
    border: 1px solid rgba(197, 157, 95, 0.2);
    border-radius: var(--radius-md);
    background: #050c18;
    cursor: zoom-in;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.service-gallery__item:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 157, 95, 0.45);
    box-shadow: var(--shadow-hover);
}

.service-gallery__item.is-highlighted {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(197, 157, 95, 0.35), var(--shadow-hover);
    transform: translateY(-3px);
}

.service-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-gallery__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 12, 24, 0.35);
    color: #ffffff;
    pointer-events: none;
}

.service-gallery__play svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
}

/* ---- Flooring visualizer ---- */
.flooring-visualizer__lead {
    max-width: 640px;
    margin: 12px auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.flooring-visualizer__panel {
    margin-top: clamp(28px, 4vw, 40px);
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 157, 95, 0.18);
    background: linear-gradient(165deg, rgba(12, 24, 41, 0.95), rgba(5, 10, 20, 0.98));
}

.flooring-visualizer__grid {
    display: grid;
    gap: clamp(20px, 3vw, 28px);
}

.flooring-visualizer__uploads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.flooring-viz-drop {
    position: relative;
    min-height: 220px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(197, 157, 95, 0.35);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s;
}

.flooring-viz-drop.is-dragover,
.flooring-viz-drop.has-file {
    border-color: rgba(197, 157, 95, 0.6);
    background: rgba(197, 157, 95, 0.06);
}

.flooring-viz-drop__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    padding: 24px;
    cursor: pointer;
    text-align: center;
}

.flooring-viz-drop__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(197, 157, 95, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.flooring-viz-drop__icon svg {
    width: 28px;
    height: 28px;
}

.flooring-viz-drop__title {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.flooring-viz-drop__hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 220px;
}

.flooring-viz-drop__preview {
    position: relative;
    min-height: 220px;
}

.flooring-viz-drop__preview img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.flooring-viz-drop__clear {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(5, 10, 20, 0.75);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.flooring-visualizer__samples-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 12px;
}

.flooring-visualizer__samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
}

.flooring-visualizer__sample {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: #050c18;
    transition: border-color 0.2s, transform 0.2s;
}

.flooring-visualizer__sample:hover,
.flooring-visualizer__sample.is-selected {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.flooring-visualizer__sample img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.flooring-visualizer__actions {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.flooring-visualizer__btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.flooring-visualizer__note,
.flooring-visualizer__warn {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 640px;
}

.flooring-visualizer__warn {
    color: #e8c27a;
}

body.is-flooring-viz-open {
    overflow: hidden;
}

.flooring-viz-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flooring-viz-modal[hidden] {
    display: none !important;
}

.flooring-viz-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, 0.88);
    backdrop-filter: blur(8px);
}

.flooring-viz-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: clamp(28px, 4vw, 36px) clamp(24px, 4vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 157, 95, 0.28);
    background: linear-gradient(165deg, #0c1829 0%, #050a14 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    text-align: center;
    display: grid;
    gap: 16px;
    justify-items: center;
}

.flooring-viz-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.flooring-viz-modal__close:hover {
    background: rgba(197, 157, 95, 0.2);
}

.flooring-viz-modal__spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(197, 157, 95, 0.2);
    border-top-color: var(--gold);
    animation: flooringVizSpin 0.9s linear infinite;
}

.flooring-viz-modal__title {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.flooring-viz-modal__text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    max-width: 320px;
}

.flooring-viz-modal__btn-close {
    margin-top: 4px;
}

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

.flooring-visualizer__result {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(197, 157, 95, 0.15);
}

.flooring-visualizer__result-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.flooring-visualizer__result-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.flooring-visualizer__result-notice {
    font-size: var(--text-sm);
    color: #e8c27a;
    margin-bottom: 10px;
    line-height: 1.6;
}

.flooring-visualizer__result-figure {
    margin: 0 0 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(197, 157, 95, 0.2);
}

.flooring-visualizer__result-figure img {
    width: 100%;
    display: block;
}

.flooring-visualizer__result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.flooring-visualizer__error {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(180, 60, 60, 0.12);
    border: 1px solid rgba(220, 90, 90, 0.35);
    color: #ffb4b4;
    font-size: var(--text-sm);
}

.btn--ghost {
    background: transparent;
    border: 1px solid rgba(197, 157, 95, 0.25);
    color: var(--gold);
}

@media (max-width: 768px) {
    .flooring-visualizer__uploads {
        grid-template-columns: 1fr;
    }
}

/* ---- Roomvo-style flooring visualizer ---- */
.flooring-visualizer__steps {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 3vw, 32px);
    margin: clamp(20px, 3vw, 32px) 0 0;
    flex-wrap: wrap;
}

.flooring-viz-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.flooring-viz-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(197, 157, 95, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.78rem;
}

.flooring-viz-step.is-active {
    color: #fff;
}

.flooring-viz-step.is-active .flooring-viz-step__num {
    background: var(--gold);
    border-color: var(--gold);
    color: #050c18;
}

.flooring-viz-step.is-done {
    color: var(--gold);
}

.flooring-viz-step.is-done .flooring-viz-step__num {
    border-color: var(--gold);
    color: var(--gold);
}

.flooring-viz-capture {
    text-align: center;
    padding: clamp(32px, 5vw, 56px) 20px;
}

.flooring-viz-capture__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: clamp(28px, 4vw, 44px) clamp(32px, 5vw, 56px);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(197, 157, 95, 0.45);
    background: rgba(197, 157, 95, 0.06);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
    max-width: 420px;
    width: 100%;
}

.flooring-viz-capture__btn:hover {
    border-color: var(--gold);
    background: rgba(197, 157, 95, 0.12);
    transform: translateY(-2px);
}

.flooring-viz-stage.is-dragover .flooring-viz-capture__btn {
    border-color: var(--gold);
    background: rgba(197, 157, 95, 0.15);
}

.flooring-viz-capture__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(197, 157, 95, 0.15);
    border: 1px solid rgba(197, 157, 95, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.flooring-viz-capture__icon svg {
    width: 36px;
    height: 36px;
}

.flooring-viz-capture__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.flooring-viz-capture__hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.flooring-viz-capture__or {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.flooring-viz-workspace {
    display: grid;
    grid-template-columns: 1fr min(340px, 38%);
    gap: clamp(16px, 2.5vw, 24px);
    align-items: start;
}

.flooring-viz-preview-wrap {
    display: grid;
    gap: 12px;
}

.flooring-viz-preview {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #050c18;
    border: 1px solid rgba(197, 157, 95, 0.2);
    line-height: 0;
}

.flooring-viz-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.flooring-viz-quad {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.flooring-viz-quad:not([hidden]) {
    pointer-events: auto;
    touch-action: none;
    z-index: 3;
}

.flooring-viz-detecting {
    z-index: 4;
}

.flooring-viz-handle {
    cursor: grab;
    pointer-events: auto;
}

.flooring-viz-handle:active {
    cursor: grabbing;
}

.flooring-viz-preview-actions .btn.is-active {
    border-color: var(--color-gold, #c59d5f);
    color: var(--color-gold, #c59d5f);
    background: rgba(197, 157, 95, 0.12);
}

.flooring-viz-ai-hint {
    margin: 0 auto 16px;
    max-width: 720px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 184, 38, 0.35);
    background: rgba(245, 184, 38, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1.45;
    display: grid;
    gap: 4px;
}

.flooring-viz-ai-hint strong {
    color: #f5b826;
    font-weight: 600;
}

.flooring-viz-detecting {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(5, 12, 24, 0.82);
    color: #fff;
    font-size: var(--text-sm);
    z-index: 5;
}

.flooring-viz-detecting[hidden] {
    display: none !important;
}

.flooring-viz-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn--sm {
    padding: 8px 14px;
    font-size: 0.78rem;
}

.flooring-viz-compare {
    padding: 4px 0;
}

.flooring-viz-compare input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
}

.flooring-viz-compare__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.flooring-viz-catalog {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: min(72vh, 640px);
    overflow: hidden;
}

.flooring-viz-catalog__title {
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
}

.flooring-viz-catalog__sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.flooring-viz-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.flooring-viz-filter {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(197, 157, 95, 0.25);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.flooring-viz-filter.is-active,
.flooring-viz-filter:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(197, 157, 95, 0.1);
}

.flooring-viz-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
    flex: 1;
}

.flooring-viz-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    text-align: center;
}

.flooring-viz-product:hover,
.flooring-viz-product.is-active {
    border-color: var(--gold);
    background: rgba(197, 157, 95, 0.08);
    transform: translateY(-1px);
}

.flooring-viz-product[hidden] {
    display: none;
}

.flooring-viz-product img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.flooring-viz-product__name {
    font-size: 0.72rem;
    color: #fff;
    line-height: 1.3;
}

.flooring-viz-product__price {
    font-size: 0.65rem;
    color: var(--gold);
}

.flooring-viz-catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.flooring-viz-advanced {
    border: 1px solid rgba(197, 157, 95, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
}

.flooring-viz-advanced summary {
    cursor: pointer;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.flooring-viz-advanced__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.flooring-viz-advanced__grid label {
    display: grid;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.flooring-viz-advanced__grid select,
.flooring-viz-advanced__grid input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(197, 157, 95, 0.25);
    background: rgba(5, 12, 24, 0.8);
    color: #fff;
}

.flooring-viz-advanced__check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-direction: row !important;
}

.flooring-viz-quote {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 157, 95, 0.25);
    background: rgba(197, 157, 95, 0.06);
}

.flooring-viz-quote__title {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #fff;
}

.flooring-viz-quote__list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 0.8rem;
}

.flooring-viz-quote__list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
}

.flooring-viz-quote__list strong {
    color: #fff;
}

.flooring-viz-quote__total {
    padding-top: 8px;
    border-top: 1px solid rgba(197, 157, 95, 0.2);
    font-size: 0.9rem;
}

.flooring-viz-consultant {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
}

.flooring-viz-consultant[hidden] {
    display: none;
}

.flooring-viz-consultant__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 24, 0.75);
}

.flooring-viz-consultant__panel {
    position: relative;
    width: min(480px, 92vw);
    max-height: 85vh;
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: #0a1528;
    border: 1px solid rgba(197, 157, 95, 0.3);
}

.flooring-viz-consultant__panel h3 {
    margin: 0;
    color: #fff;
}

.flooring-viz-consultant__lead {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.flooring-viz-consultant__messages {
    min-height: 200px;
    max-height: 40vh;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
}

.flooring-viz-consultant__msg {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.flooring-viz-consultant__msg.is-user {
    background: rgba(197, 157, 95, 0.15);
    color: #fff;
    margin-left: 24px;
}

.flooring-viz-consultant__msg.is-assistant {
    background: rgba(255, 255, 255, 0.06);
    color: #e8edf5;
    margin-right: 24px;
}

.flooring-viz-consultant__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.flooring-viz-consultant__suggestion {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(197, 157, 95, 0.35);
    background: transparent;
    color: var(--gold);
    font-size: 0.72rem;
    cursor: pointer;
}

.flooring-viz-consultant__form {
    display: flex;
    gap: 8px;
}

.flooring-viz-consultant__form input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(197, 157, 95, 0.25);
    background: rgba(5, 12, 24, 0.8);
    color: #fff;
}

.flooring-viz-product__type {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flooring-viz-custom {
    border-top: 1px solid rgba(197, 157, 95, 0.15);
    padding-top: 12px;
}

.flooring-viz-custom__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(197, 157, 95, 0.35);
    color: var(--gold);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s;
}

.flooring-viz-custom__btn:hover {
    background: rgba(197, 157, 95, 0.08);
}

.flooring-viz-custom__hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.flooring-viz-result-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(197, 157, 95, 0.08);
    border: 1px solid rgba(197, 157, 95, 0.2);
}

.flooring-viz-result-bar[hidden] {
    display: none !important;
}

.flooring-viz-result-bar__name {
    font-size: var(--text-sm);
    color: #fff;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 900px) {
    .flooring-viz-workspace {
        grid-template-columns: 1fr;
    }

    .flooring-viz-catalog {
        max-height: none;
    }

    .flooring-viz-products {
        grid-template-columns: repeat(3, 1fr);
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .flooring-viz-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .flooring-viz-capture__btn {
        padding: 24px 20px;
    }
}

.flooring-visualizer__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.flooring-viz-badge {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(197, 157, 95, 0.3);
    color: var(--gold);
    background: rgba(197, 157, 95, 0.06);
}

.flooring-viz-capture__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
}

button.flooring-viz-capture__btn {
    font: inherit;
    color: inherit;
    width: 100%;
}

.flooring-viz-capture__btn--live {
    border-color: rgba(100, 180, 255, 0.4);
    background: rgba(60, 120, 200, 0.08);
}

.flooring-viz-capture__btn--live .flooring-viz-capture__icon {
    border-color: rgba(100, 180, 255, 0.45);
    color: #7ec8ff;
}

.flooring-viz-room-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(197, 157, 95, 0.06);
    border: 1px solid rgba(197, 157, 95, 0.15);
    font-size: 0.82rem;
}

.flooring-viz-room-info[hidden] { display: none !important; }

.flooring-viz-room-info__type {
    font-weight: 600;
    color: #fff;
}

.flooring-viz-room-info__lighting {
    color: var(--text-muted);
}

.flooring-viz-room-info__badge {
    margin-left: auto;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    border: 1px solid rgba(197, 157, 95, 0.4);
    padding: 3px 8px;
    border-radius: 999px;
}

.flooring-viz-measure {
    padding: 12px 0;
    border-top: 1px solid rgba(197, 157, 95, 0.12);
}

.flooring-viz-measure__title {
    font-size: 0.82rem;
    color: #fff;
    margin: 0 0 8px;
}

.flooring-viz-measure__input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.flooring-viz-measure__input-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.flooring-viz-measure__input-row input,
.flooring-viz-measure__input-row select {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 157, 95, 0.25);
    background: rgba(5, 12, 24, 0.8);
    color: #fff;
    min-width: 80px;
}

.flooring-viz-measure__results {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.flooring-viz-measure__area {
    color: #fff;
    margin: 0 0 4px;
}

.flooring-viz-measure__dims { margin: 0; }

.flooring-viz-product.is-custom {
    border-color: rgba(100, 180, 255, 0.25);
}

.flooring-viz-custom-form {
    border-top: 1px solid rgba(197, 157, 95, 0.15);
    padding-top: 10px;
    font-size: 0.82rem;
    color: var(--gold);
}

.flooring-viz-custom-form summary {
    cursor: pointer;
    padding: 6px 0;
}

.flooring-viz-custom-form__inner {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.flooring-viz-custom-form__inner input,
.flooring-viz-custom-form__inner select {
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 157, 95, 0.25);
    background: rgba(5, 12, 24, 0.8);
    color: #fff;
}

.flooring-viz-live,
.flooring-viz-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.flooring-viz-live[hidden],
.flooring-viz-share-modal[hidden] { display: none !important; }

.flooring-viz-live__backdrop,
.flooring-viz-share-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, 0.9);
    backdrop-filter: blur(8px);
}

.flooring-viz-live__panel,
.flooring-viz-share-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 157, 95, 0.25);
    background: linear-gradient(165deg, #0c1829, #050c18);
}

.flooring-viz-live__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.flooring-viz-live__view {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    line-height: 0;
}

.flooring-viz-live__view video {
    display: none;
}

.flooring-viz-live__view canvas {
    width: 100%;
    height: auto;
    display: block;
}

.flooring-viz-live__hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 12px 0;
    text-align: center;
}

.flooring-viz-live__products {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.flooring-viz-live__products .flooring-viz-product {
    flex: 0 0 72px;
    padding: 4px;
}

.flooring-viz-share-modal__panel h3 {
    margin: 0 0 16px;
    color: #fff;
}

.flooring-viz-share-modal__panel label {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.flooring-viz-share-modal__panel input,
.flooring-viz-share-modal__panel textarea {
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 157, 95, 0.25);
    background: rgba(5, 12, 24, 0.8);
    color: #fff;
}

.flooring-viz-share-result {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.flooring-viz-share-result input {
    flex: 1;
}

.flooring-share-page { padding: 100px 0 60px; }
.flooring-share-empty { text-align: center; padding: 60px 0; }
.flooring-share-head { margin-bottom: 28px; }
.flooring-share-head__title { color: #fff; margin: 12px 0 4px; }
.flooring-share-head__product { color: var(--gold); }
.flooring-share-grid {
    display: grid;
    grid-template-columns: 1fr min(320px, 35%);
    gap: 24px;
    align-items: start;
}
.flooring-share-preview img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 157, 95, 0.2);
}
.flooring-share-details {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 157, 95, 0.18);
    background: rgba(12, 24, 41, 0.6);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.flooring-share-measure__value {
    font-size: 1.5rem;
    color: #fff;
    margin: 8px 0 0;
}
.flooring-share-expires { font-size: 0.75rem; margin-top: 16px; }

@media (max-width: 768px) {
    .flooring-viz-capture__row { grid-template-columns: 1fr; }
    .flooring-share-grid { grid-template-columns: 1fr; }
}

/* ---- Media lightbox (popup cubo) ---- */
body.is-lightbox-open {
    overflow: hidden;
}

.media-lightbox[hidden] {
    display: none !important;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}

.media-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, 0.94);
    backdrop-filter: blur(10px);
}

.media-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.lightbox-cube {
    position: relative;
    width: min(100%, 980px);
    height: clamp(280px, 62vh, 700px);
    outline: none;
}

.lightbox-cube__scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1500px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 157, 95, 0.28);
    background: #050c18;
    box-shadow: var(--shadow-card);
}

.lightbox-cube__rotator {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.95s cubic-bezier(0.45, 0.05, 0.2, 1);
    will-change: transform;
}

.lightbox-cube__face {
    position: absolute;
    inset: 0;
    margin: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050c18;
}

.lightbox-cube__image,
.lightbox-cube__video {
    max-width: calc(100% - 16px);
    max-height: calc(100% - 16px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.lightbox-cube__video {
    width: 100%;
    background: #000;
}

.lightbox-cube--flat .lightbox-cube__rotator {
    transform: none !important;
    transition: none !important;
}

.lightbox-cube--flat .lightbox-cube__face {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none !important;
}

.lightbox-cube--flat .lightbox-cube__face.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.lightbox-cube--no-transition .lightbox-cube__rotator {
    transition: none !important;
}

.media-lightbox__close {
    position: absolute;
    top: -52px;
    right: 0;
    z-index: 3;
    min-width: 100px;
    padding: 12px 24px !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.14em !important;
    background: rgba(5, 12, 24, 0.9) !important;
    color: #ffffff !important;
}

.media-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(197, 157, 95, 0.45);
    background: rgba(5, 12, 24, 0.88);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: background 0.25s, transform 0.25s;
}

.media-lightbox__nav:hover {
    background: rgba(197, 157, 95, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-cube .media-lightbox__nav--prev { left: -64px; }
.lightbox-cube .media-lightbox__nav--next { right: -64px; }

.media-lightbox__nav svg {
    width: 24px;
    height: 24px;
}

.media-lightbox__counter {
    font-size: var(--text-sm);
    color: #ffffff;
    letter-spacing: 0.14em;
    font-weight: 600;
}

@media (max-width: 900px) {
    .service-page__banner-overlay {
        align-items: flex-end;
        justify-content: flex-end;
        padding-right: var(--gutter);
        background: linear-gradient(to top left, rgba(5, 12, 24, 0.94) 0%, transparent 62%);
    }

    .service-page__banner-inner {
        width: min(72%, 320px);
        padding-right: 0;
    }

    .service-page__banner--brand .service-page__banner-brand {
        width: 100%;
        flex-direction: column;
        gap: clamp(12px, 3vw, 18px);
        padding-top: clamp(56px, 14vw, 72px);
    }

    .service-page__banner--brand .service-page__banner-divider {
        width: clamp(48px, 14vw, 72px);
        height: 1px;
        margin: 0;
        background: linear-gradient(90deg, transparent 0%, #c59d5f 18%, #ffb82e 50%, #c59d5f 82%, transparent 100%);
    }

    .service-page__banner--brand .service-page__banner-brand-text,
    .service-page__banner--brand .service-page__title,
    .service-page__banner--brand .service-page__tagline {
        max-width: 300px;
        text-align: center;
    }

    .lightbox-cube .media-lightbox__nav--prev { left: 8px; }
    .lightbox-cube .media-lightbox__nav--next { right: 8px; }
    .media-lightbox__close { top: 8px; right: 8px; }
}

@media (max-width: 768px) {
    .service-page__content-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-page__content-side {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .service-page__features {
        text-align: left;
    }

    .service-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- LIVORK Assistant ---- */
.livork-assistant {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 12000;
}

.livork-assistant__toggle {
    position: relative;
    width: 68px;
    height: 68px;
    border: none;
    border-radius: 50%;
    background: rgba(5, 12, 24, 0.92);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s var(--ease);
}

.livork-assistant__toggle:hover {
    transform: scale(1.05);
}

.livork-assistant__glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 46, 0.55) 0%, rgba(197, 157, 95, 0.18) 45%, transparent 72%);
    animation: assistantPulse 2.2s ease-in-out infinite;
    z-index: 0;
}

.livork-assistant__ring {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 184, 46, 0.45);
    z-index: 1;
}

.livork-assistant__mark {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: block;
}

.livork-assistant__mark svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 184, 46, 0.45));
}

@keyframes assistantPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.65; }
    50% { transform: scale(1.08); opacity: 1; }
}

.livork-assistant__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: min(92vw, 390px);
    max-height: min(78vh, 620px);
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 157, 95, 0.28);
    background: linear-gradient(180deg, rgba(10, 24, 42, 0.98), rgba(6, 14, 28, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.livork-assistant__panel[hidden] {
    display: none !important;
}

.livork-assistant.is-open .livork-assistant__panel {
    display: flex;
}

.livork-assistant__confirm {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    background: rgba(4, 12, 22, 0.82);
    backdrop-filter: blur(6px);
}

.livork-assistant__confirm-card {
    width: min(100%, 320px);
    padding: 22px 20px 18px;
    border-radius: 16px;
    background: linear-gradient(160deg, #12263a 0%, #0b1a2a 100%);
    border: 1px solid rgba(197, 157, 95, 0.35);
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.livork-assistant__confirm-eyebrow {
    margin: 0 0 6px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold, #c59d5f);
}

.livork-assistant__confirm-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f5f0e8;
}

.livork-assistant__confirm-body {
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(245, 240, 232, 0.82);
}

.livork-assistant__confirm-card .btn {
    width: 100%;
}

.livork-assistant__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(197, 157, 95, 0.18);
}

.livork-assistant__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.livork-assistant__title {
    font-size: 1.15rem;
    font-weight: 500;
}

.livork-assistant__close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(197, 157, 95, 0.3);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.livork-assistant__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 14px;
}

.livork-assistant__tab {
    border: 1px solid rgba(197, 157, 95, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.livork-assistant__tab.is-active {
    color: #081424;
    background: linear-gradient(135deg, #ffd36a, #c59d5f);
    border-color: transparent;
}

.livork-assistant__body {
    min-height: 0;
    flex: 1;
    overflow: auto;
    padding: 0 14px 14px;
}

.livork-assistant__pane {
    display: none;
}

.livork-assistant__pane.is-active {
    display: block;
}

.livork-assistant__chat {
    min-height: 240px;
    max-height: 300px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 2px 12px;
}

.livork-assistant__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.livork-assistant__suggestion {
    border: 1px solid rgba(197, 157, 95, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.livork-assistant__suggestion:hover {
    background: rgba(197, 157, 95, 0.16);
    border-color: rgba(197, 157, 95, 0.45);
    color: #fff;
}

.livork-assistant__typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    min-height: 38px;
}

.livork-assistant__typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    animation: assistantTyping 1.2s infinite ease-in-out;
}

.livork-assistant__typing span:nth-child(2) { animation-delay: 0.15s; }
.livork-assistant__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes assistantTyping {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-4px); opacity: 1; }
}

.livork-assistant__bubble {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: var(--text-sm);
    line-height: 1.55;
}

.livork-assistant__bubble--assistant,
.livork-assistant__bubble--system {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(197, 157, 95, 0.18);
}

.livork-assistant__bubble--guest,
.livork-assistant__bubble--client {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(255, 184, 46, 0.22), rgba(197, 157, 95, 0.18));
    border: 1px solid rgba(255, 184, 46, 0.28);
}

.livork-assistant__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.livork-assistant__form input,
.livork-assistant__stack input,
.livork-assistant__stack textarea {
    width: 100%;
    border: 1px solid rgba(197, 157, 95, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
}

.livork-assistant__stack {
    display: grid;
    gap: 10px;
}

.livork-assistant__hint,
.livork-assistant__live-status {
    font-size: var(--text-sm);
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.6;
}

.livork-assistant__live-status {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 184, 46, 0.12);
    border: 1px solid rgba(255, 184, 46, 0.28);
}

/* ---- Panel navigation (portal/admin) ---- */
.panel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.panel-nav__link {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(197, 157, 95, 0.24);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-nav__link.is-active,
.panel-nav__link:hover {
    color: #081424;
    background: linear-gradient(135deg, #ffd36a, #c59d5f);
    border-color: transparent;
}

.panel-nav--admin .panel-nav__link.is-active,
.panel-nav--admin .panel-nav__link:hover {
    color: #fff;
    background: linear-gradient(135deg, #1d3550, #0d1a2e);
    border-color: rgba(197, 157, 95, 0.45);
}

.conversation-thread {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
    max-height: 420px;
    overflow: auto;
}

.conversation-message {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 157, 95, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.conversation-message--admin {
    border-color: rgba(255, 184, 46, 0.28);
    background: rgba(255, 184, 46, 0.08);
}

.conversation-message--assistant,
.conversation-message--system {
    opacity: 0.92;
}

.conversation-message__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.conversation-reply {
    display: grid;
    gap: 10px;
}

.conversation-reply textarea {
    width: 100%;
    border: 1px solid rgba(197, 157, 95, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
}

.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 184, 46, 0.14);
    color: var(--gold-hi);
    border: 1px solid rgba(255, 184, 46, 0.28);
}

.status-waiting_live {
    background: rgba(255, 184, 46, 0.18);
    color: #ffd36a;
}

.status-live_active,
.status-open {
    background: rgba(72, 180, 120, 0.18);
    color: #8dffb8;
}

.status-closed {
    background: rgba(122, 136, 152, 0.18);
    color: #b8c4d4;
}

.status-draft {
    background: rgba(122, 136, 152, 0.18);
    color: #b8c4d4;
}

.status-sent {
    background: rgba(72, 140, 220, 0.18);
    color: #9fd0ff;
}

.status-approved {
    background: rgba(72, 180, 120, 0.18);
    color: #8dffb8;
}

.status-rejected {
    background: rgba(220, 90, 90, 0.18);
    color: #ffb0b0;
}

@media (max-width: 768px) {
    .livork-assistant__panel {
        width: min(94vw, 390px);
        right: -4px;
    }

    .livork-assistant__toggle {
        width: 62px;
        height: 62px;
    }
}
