:root {
    --brand-primary: #F2F427;
    --brand-secondary: #3B2B24;
    --surface-dark-base: #080D10;
    --surface-dark-deepest: #090A0B;
    --surface-dark-inset: #13110F;
    --surface-dark-elevated: #191613;
    --surface-dark-prominent: #231F1C;
    --surface-light-base: #FFFFEB;
    --surface-light-secondary: #F1EEE5;
    --text-dark-primary: var(--surface-light-secondary);
    --text-dark-emphasis: var(--surface-light-base);
    --text-light-primary: var(--brand-secondary);
    --action-light-primary: var(--brand-secondary);
    --action-light-text: var(--surface-light-base);

    --theme-text: var(--text-dark-primary);
    --theme-emphasis: var(--text-dark-emphasis);
    --theme-action: var(--brand-primary);
    --theme-focus: var(--brand-primary);
    --theme-action-ink: var(--surface-dark-base);
    --theme-action-hover: var(--text-dark-emphasis);
    --theme-action-pressed: var(--text-dark-primary);
    --theme-action-disabled: var(--surface-dark-prominent);
    --theme-action-disabled-ink: color-mix(in srgb, var(--text-dark-primary) 75%, var(--surface-dark-prominent));
    --theme-loading: var(--brand-primary);
    --theme-divider: color-mix(in srgb, var(--text-dark-primary) 24%, transparent);
    --theme-control-border: color-mix(in srgb, var(--text-dark-primary) 52%, transparent);
}

:is(body.home #about-section, body.home #featured-projects, .page-template-contact .main-content > .bg--white, .post-actions__item.bg--white) {
    --theme-text: var(--text-light-primary);
    --theme-emphasis: var(--text-light-primary);
    --theme-action: var(--action-light-primary);
    --theme-focus: var(--action-light-primary);
    --theme-action-ink: var(--action-light-text);
    --theme-action-hover: var(--surface-dark-prominent);
    --theme-action-pressed: var(--surface-dark-inset);
    --theme-action-disabled: var(--surface-light-secondary);
    --theme-action-disabled-ink: var(--text-light-primary);
    --theme-loading: var(--action-light-primary);
    --theme-divider: color-mix(in srgb, var(--text-light-primary) 35%, transparent);
    --theme-control-border: color-mix(in srgb, var(--text-light-primary) 65%, transparent);
    background-color: var(--surface-light-base);
    color: var(--theme-text);
}

body { background-color: var(--surface-dark-base); }
body, html { color: var(--theme-text); }
.bg--black { background-color: var(--surface-dark-deepest); }
.bg--black-bg { background-color: var(--surface-dark-inset); }
.bg--dark { background-color: var(--surface-dark-elevated); }
.bg--dark-op { background-color: var(--surface-dark-deepest); }
.bg--white, .bg--bg { background-color: var(--surface-light-base); }
.color--white, .color--grey-b { color: var(--theme-emphasis); }
.color--white-b, .color--grey, .color--letters, .color--letters-b { color: var(--theme-action); }
.color--black, .color--dark, .color--darker { color: var(--theme-text); }
.block-link, .block-link.grey, .post-link:hover { color: var(--theme-action); }
.block-link.white, .post-link:hover .post-link__title, .team-link:hover .post-link__title { color: var(--theme-emphasis); }
a:hover, .link:hover, .white-links a:hover, .white-link:hover { color: var(--theme-action); }
.white-links a, .white-link, .style-headings :is(h1, h2, h3, h4, h5, h6) { color: var(--theme-emphasis); }
.svg-scroll .svg__body, .svg-scroll .svg__dot,
.svg-scroll.clickable:hover :is(.svg__body, .svg__dot) { fill: var(--theme-emphasis); }
.svg-circle .svg-path { stroke: var(--theme-emphasis); }
.slider__nav-btn:hover { color: var(--theme-action); background-color: var(--surface-dark-elevated); }
.menu-holder .menu-item .menu-a { color: var(--theme-emphasis); }
.burger__line { background-color: var(--theme-emphasis); }
.go-next, .scroll-down { color: var(--theme-emphasis); }
.go-next:hover { background-color: var(--theme-action); color: var(--theme-action-ink); border-color: var(--theme-action); }
.project-cats__link.loc, .project-cats__link:hover { color: var(--theme-action); text-decoration: underline; }
.view-list, .view-grid { background-color: var(--surface-light-secondary); color: var(--text-light-primary); }
:is(.view-list, .view-grid):is(.loc, :hover) { background-color: var(--surface-dark-prominent); color: var(--text-dark-emphasis); }
.post-link { border-color: var(--theme-divider); }
.person-item { border-color: var(--theme-control-border); }
#about-section :is(.bt, .about__col-right) { border-color: var(--theme-divider); }
#about-section .highlighted-text { background-color: var(--action-light-primary); color: var(--action-light-text); }
#carousel-indicator__percentage { background-color: var(--action-light-primary); }
.post-actions__item.bg--white { color: var(--text-light-primary); }
.post-actions__item.bg--white:hover { background-color: var(--surface-light-secondary); }
.post-actions .liqrit-collection-return {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .5rem .85rem;
}
.liqrit-collection-return .icon { position: static; transform: none; }
.liqrit-edition { overflow-wrap: anywhere; text-wrap: balance; }
.liqrit-producer { margin-block: .45rem .8rem; color: var(--theme-text); }
.project-thumb:is(figure) { margin: 0 auto; }
.liqrit-office, .liqrit-environments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 4vw, 3rem);
}
.liqrit-office {
    align-items: center;
    padding-block: clamp(1rem, 3vw, 2rem);
    background: var(--surface-dark-elevated);
}
.liqrit-office img { display: block; width: 100%; height: auto; }
.liqrit-office address { font-style: normal; margin-top: .75rem; }
.liqrit-environments { margin-block: 1.5rem; text-align: left; }
.liqrit-environments section { border-top: 1px solid var(--theme-divider); padding-top: 1rem; }
.liqrit-environments h3 { margin-bottom: .5rem; color: var(--theme-action); }
@media (max-width: 600px) {
    .liqrit-office, .liqrit-environments { grid-template-columns: 1fr; }
}
.liqrit-mobile-bottles, .liqrit-bottle-controls { display: none; }
:is(#about-section, #services-section, #featured-projects, #news-section, #projects-list) { scroll-margin-top: 8rem; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
#featured-projects .carousel__item a.block-link { opacity: 1; background: var(--action-light-primary); color: var(--action-light-text); padding: .75rem; }
@media (max-width: 600px) {
    .liqrit-bottle-controls:not([hidden]) { display: flex; gap: .5rem; padding-inline: 1rem; }
    .liqrit-bottle-controls button {
        min-width: 44px;
        min-height: 44px;
        background: var(--action-light-primary);
        color: var(--action-light-text);
    }
    .liqrit-mobile-bottles {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 85%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin-block: 1.5rem;
        padding: .5rem 1rem;
    }
    .liqrit-mobile-bottles a { display: grid; gap: .25rem; scroll-snap-align: center; color: var(--text-light-primary); }
    .liqrit-mobile-bottles img { width: 100%; height: auto; }
    #news-section .post-link__content, .page-template-about .post-link__content {
        position: static;
        transform: none;
        padding: .75rem;
    }
}
.input, .textarea { background-color: var(--surface-light-secondary); border-color: var(--theme-control-border); color: var(--text-light-primary); }
.input::placeholder, .textarea::placeholder { color: var(--text-light-primary); opacity: .8; }
.submit__circle { background-color: var(--action-light-primary); color: var(--action-light-text); }
.btn-88 { background-color: var(--theme-action); color: var(--theme-action-ink); }
.btn-88:before { background-color: var(--theme-action-hover); }
.btn-88:hover svg { fill: currentColor; }
.tablet-white { color: var(--theme-emphasis); }
.loading-slider { color: var(--theme-loading); }
:is(.svg-scroll, .box-link, .block-link, .nav-link) { --theme-focus: var(--theme-action); }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--theme-focus);
    outline-offset: 3px;
}
::selection { color: var(--surface-dark-base); background-color: var(--brand-primary); }

.liqrit-wordmark { display: block; width: clamp(90px, 10vw, 150px); height: auto; }
.wxw-motion .header .header__inner { border-color: transparent; }
.hamburger[hidden] { display: none; }
.wxw-motion #menu-burger, .wxw-motion #menu-holder { display: none; }
.wxw-motion .hamburger {
    position: fixed;
    top: var(--liqrit-menu-top, 16px);
    right: var(--liqrit-menu-right, 20px);
    z-index: 100002;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: transparent;
    cursor: pointer;
}
.hamburger input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hamburger { --liqrit-menu-ink: var(--text-dark-primary); --liqrit-menu-hover: var(--brand-primary); }
.hamburger[data-tone="light"] {
    --liqrit-menu-ink: var(--text-light-primary);
    --liqrit-menu-hover: var(--surface-dark-base);
    --theme-focus: var(--action-light-primary);
}
.hamburger:focus-within { outline: 2px solid var(--theme-focus); outline-offset: 2px; }
.hamburger svg { width: 27px; height: 27px; pointer-events: none; transition: transform 600ms cubic-bezier(.4, 0, .2, 1); }
@media (min-width: 480px) { .hamburger svg { width: 28px; height: 28px; } }
@media (min-width: 768px) { .hamburger svg { width: 29px; height: 29px; } }
@media (min-width: 1200px) { .hamburger svg { width: 31px; height: 31px; } }
.hamburger .line {
    fill: none;
    stroke: var(--liqrit-menu-ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
    transition: stroke-dasharray 600ms cubic-bezier(.4, 0, .2, 1),
                stroke-dashoffset 600ms cubic-bezier(.4, 0, .2, 1),
                stroke 300ms ease;
}
.hamburger:hover .line { stroke: var(--liqrit-menu-hover); }
.hamburger .line-top-bottom { stroke-dasharray: 12 63; }
.hamburger input:checked + svg { transform: rotate(-45deg); }
.hamburger input:checked + svg .line-top-bottom { stroke-dasharray: 20 300; stroke-dashoffset: -32.42; }
#control-layer, #monolith-field, #identity-portal {
    --control-void: var(--surface-dark-deepest);
    --control-surface-1: var(--surface-dark-inset);
    --control-surface-2: var(--surface-dark-elevated);
    --control-surface-3: var(--surface-dark-prominent);
    --control-surface-4: var(--surface-dark-elevated);
    --monolith-base: var(--surface-dark-deepest);
    --monolith-1: var(--surface-dark-inset);
    --monolith-2: var(--surface-dark-elevated);
    --monolith-3: var(--surface-dark-prominent);
    --monolith-4: var(--surface-dark-elevated);
    --text-primary: var(--text-dark-primary);
    --text-dim: color-mix(in srgb, var(--text-dark-primary) 76%, var(--surface-dark-deepest));
    --hairline: color-mix(in srgb, var(--text-dark-primary) 10%, transparent);
    --accent: var(--brand-primary);
    --menu-header-clearance: 2rem;
    --font-mono: monospace;
    --nav-transition: 180ms ease;
}
#control-layer { z-index: 100001; }
#top-slider .slider-indicator-hor { pointer-events: none; }
#control-layer .control-editorial { display: flex; visibility: visible; }
#control-layer .nav-link { display: block; }
#control-layer .nav-item-title { color: var(--text-dark-primary); }
#control-layer .nav-link:focus-visible .nav-item-title,
#control-layer .nav-link:hover .nav-item-title { color: var(--brand-primary); text-decoration: underline; }
#control-layer.instant.active {
    background: var(--control-void);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#control-layer .control-content { overflow: auto; }
#control-layer.instant .control-content,
#control-layer.instant .nav-link { opacity: 1; transform: none; }
#control-layer .nav-item-title { font-family: inherit; }
#monolith-field, #identity-portal { display: none; z-index: 220; }
#identity-portal { z-index: 221; }
#identity-portal img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
    .hamburger svg, .hamburger .line { transition: none; }
}
