/*
Theme Name: Limaudio
Theme URI: https://limaudio.ru/
Author: Limaudio
Author URI: https://limaudio.ru/
Description: Custom WordPress theme for Limaudio multisite brand websites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.3
Text Domain: limaudio
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    color: #f4f4f2;
    background: #070707;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    color-scheme: dark;
}

.holding {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
}

.holding.person {
    height: 100dvh;
    overflow: hidden;
    align-content: center;
    padding-block: clamp(2.2rem, 7vh, 4.5rem);
}

.holding__vignette,
.holding__glow,
.holding__glow--soft,
.holding__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.holding__vignette {
    z-index: 0;
    background: radial-gradient(ellipse 72% 58% at 50% 44%, transparent 38%, rgba(0, 0, 0, 0.42) 100%);
}

.holding__glow {
    z-index: 0;
    background:
        radial-gradient(ellipse 40% 24% at 50% 44%, rgba(255, 255, 255, 0.1), transparent 68%),
        radial-gradient(ellipse 26% 16% at 47% 41%, rgba(196, 210, 224, 0.07), transparent 62%),
        radial-gradient(ellipse 78% 34% at 50% 108%, rgba(154, 168, 180, 0.055), transparent 56%);
    animation: holding-breathe 14s ease-in-out infinite;
}

.holding__glow--soft {
    z-index: 0;
    background: radial-gradient(circle at 50% 42%, rgba(228, 232, 236, 0.055), transparent 32%);
    filter: blur(36px);
    animation: holding-breathe 18s ease-in-out infinite reverse;
}

.holding__grain {
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.14;
    mix-blend-mode: overlay;
    image-rendering: auto;
}

.holding__waves {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 7%;
    z-index: 0;
    width: 100%;
    height: min(28vh, 220px);
    overflow: hidden;
    opacity: 0.42;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.holding__wave {
    fill: none;
    stroke: rgba(245, 245, 243, 0.62);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.holding__wave--a {
    stroke-width: 1.15;
    opacity: 0.5;
}

.holding__wave--b {
    stroke-width: 0.8;
    opacity: 0.26;
}

.holding__wave--c {
    stroke-width: 0.6;
    opacity: 0.14;
}

.holding__inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: clamp(1.5rem, 3.4vw, 2.4rem);
    width: min(780px, calc(100% - 3rem));
    text-align: center;
    animation: holding-rise 1.35s ease-out both;
}

.holding h1 {
    margin: 0;
    width: 100%;
}

.holding__logo {
    display: block;
    width: 100%;
    height: auto;
    color: #f6f6f4;
    filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.07));
}

.holding__rule {
    display: block;
    width: 2.5rem;
    height: 1px;
    background: rgba(244, 244, 242, 0.22);
}

.holding__copy {
    margin: 0;
    color: rgba(244, 244, 242, 0.58);
    font-size: clamp(0.78rem, 0.68rem + 0.45vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

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

@keyframes holding-breathe {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.035);
    }
}

@keyframes holding-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.person__inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    width: min(420px, calc(100% - 2.5rem));
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
    animation: holding-rise 1.2s ease-out both;
    scrollbar-width: thin;
}

.person__brand {
    display: block;
    width: min(248px, 64vw);
    margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
    color: inherit;
    text-decoration: none;
}

.person__logo {
    width: 100%;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.06));
}

.person__photo {
    width: min(16.875rem, 69vw);
    aspect-ratio: 1;
    margin-bottom: clamp(1.45rem, 3.2vw, 2rem);
    overflow: hidden;
    border-radius: 50%;
    outline: 1px solid rgba(244, 244, 242, 0.28);
    outline-offset: 4px;
}

@media (max-width: 480px) {
    .person__photo {
        width: min(8.4375rem, 34.5vw);
        margin-bottom: clamp(0.85rem, 2.4vw, 1.2rem);
    }
}

.person__photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.person__role {
    margin: 0 0 0.55rem;
    color: rgba(244, 244, 242, 0.48);
    font-size: clamp(0.72rem, 0.66rem + 0.28vw, 0.82rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.person__name {
    margin: 0;
    width: 100%;
    color: #f6f6f4;
    font-size: clamp(1.7rem, 1.05rem + 2.6vw, 2.55rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-wrap: balance;
}

.person .holding__rule {
    margin-block: clamp(1.15rem, 2.6vw, 1.55rem);
}

.person__contacts {
    display: grid;
    gap: 0.62rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.person__contact {
    color: rgba(244, 244, 242, 0.64);
    font-size: clamp(0.9rem, 0.84rem + 0.25vw, 1.02rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.person__contact:hover {
    color: #f6f6f4;
}

.person__actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: clamp(1.2rem, 2.8vw, 1.75rem);
}

button.person__action {
    padding: 0;
    font: inherit;
    cursor: pointer;
    appearance: none;
}

.person__action {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border: 1px solid rgba(244, 244, 242, 0.28);
    border-radius: 50%;
    background: rgba(244, 244, 242, 0.03);
    color: rgba(244, 244, 242, 0.82);
    text-decoration: none;
    transition:
        color 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease,
        opacity 0.22s ease;
}

.person__action svg {
    display: block;
    width: 1.18rem;
    height: 1.18rem;
}

.person__action:hover,
.person__action:focus-visible {
    color: #f6f6f4;
    border-color: rgba(244, 244, 242, 0.55);
    background: rgba(244, 244, 242, 0.07);
    outline: none;
    transform: translateY(-1px);
}

.person__action[aria-busy='true'] {
    opacity: 0.55;
    pointer-events: none;
}

.person__popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.78rem);
    z-index: 3;
    padding: 0.5rem 0.82rem;
    border: 1px solid rgba(244, 244, 242, 0.14);
    border-radius: 999px;
    background: rgba(12, 12, 12, 0.92);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    color: rgba(244, 244, 242, 0.9);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(12px);
}

.person__popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(244, 244, 242, 0.14);
    border-top: 0;
    border-left: 0;
    background: rgba(12, 12, 12, 0.92);
    transform: translate(-50%, -55%) rotate(45deg);
}

.person__action:hover .person__popover,
.person__action:focus-visible .person__popover,
.person__action.is-copied .person__popover {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.person__action:first-child:not(:only-child) .person__popover {
    left: 0;
    transform: translateY(6px);
}

.person__action:first-child:not(:only-child) .person__popover::after {
    left: 1.42rem;
}

.person__action:first-child:not(:only-child):hover .person__popover,
.person__action:first-child:not(:only-child):focus-visible .person__popover,
.person__action:first-child:not(:only-child).is-copied .person__popover {
    transform: translateY(0);
}

.person__action:last-child:not(:only-child) .person__popover {
    left: auto;
    right: 0;
    transform: translateY(6px);
}

.person__action:last-child:not(:only-child) .person__popover::after {
    left: auto;
    right: 1.42rem;
    transform: translate(50%, -55%) rotate(45deg);
}

.person__action:last-child:not(:only-child):hover .person__popover,
.person__action:last-child:not(:only-child):focus-visible .person__popover {
    transform: translateY(0);
}

@media (hover: none) {
    .person__action:hover .person__popover {
        opacity: 0;
        transform: translateX(-50%) translateY(6px);
    }

    .person__action:focus-visible .person__popover {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .holding__glow,
    .holding__glow--soft,
    .holding__inner,
    .person__inner,
    .person__action {
        animation: none;
    }

    .person__action,
    .person__popover {
        transition: none;
    }
}
