:root {
    --bg: #E8E5DE;
    --bg-elevated: rgba(255, 251, 245, 0.68);
    --text: #121212;
    --muted: #5f5a54;
    --line: rgb(255, 255, 255);
    --line-2: rgb(162, 162, 162);
    --line-left: rgba(255, 255, 255, 0);
    --accent: #111111;
    --overlay: rgba(244, 241, 234, 0.8);
    --shadow: 0 0 33px rgba(0, 0, 0, 0.20);
    --kurwa: 0px 0px 12px 25px rgba(191, 187, 176, 0.04) , 0px 0px 11px 20px rgba(191, 187, 176, 0.06) , 0px 0px 11px 15px rgba(191, 187, 176, 0.08) , 0px 0px 11px 10px rgba(191, 187, 176, 0.09) , 0px 0px 11px 5px rgba(191, 187, 176, 0.11);
    --aside-overlay: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.04));
    --hero-inner-shadow: inset -4px 4px 14px rgba(0, 0, 0, 0.18);
    --hero-bg: linear-gradient(to bottom left, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.49)),
    rgba(61, 61, 61, 0.01);
    --max-width: 1680px;
    --content-width: 740px;
    --sidebar-width: 333px;
    --header-height: 72px;
    --radius: 18px;
    --font-body: Georgia, "Times New Roman", serif;
    --font-ui: Arial, Helvetica, sans-serif;
    --link-red: #7F0C0C;
}

body.theme-dark {
    --bg: #0d0d0e;
    --bg-elevated: rgba(229, 226, 220, 0.14);
    --text: #f1eee7;
    --hero-bg: linear-gradient(to bottom left, rgba(70, 70, 70, 0.20), rgba(0, 0, 0, 0.49)),
    rgba(61, 61, 61, 0.40);
    --muted: #b8b0a6;
    --line: #808080;
    --line-2: #989898;
    --line-left: #98989800;
    --accent: #ffffff;
    --overlay: rgba(8, 8, 9, 0.82);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.34);
    --kurwa: 0px 0px 12px 25px rgba(0, 0, 0, 0.04) , 0px 0px 11px 20px rgba(0, 0, 0, 0.06) , 0px 0px 11px 15px rgba(0, 0, 0, 0.08) , 0px 0px 11px 10px rgba(0, 0, 0, 0.10) , 0px 0px 11px 5px rgba(0, 0, 0, 0.12);
    --link-red: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    transition: background 0.25s ease, color 0.25s ease;
    cursor: none;
    overflow-x: auto;
    min-width: 980px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.05), transparent 24%),
    linear-gradient(to bottom, rgba(127, 127, 127, 0.03), rgba(127, 127, 127, 0.01)),
    var(--bg);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;

    /* background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.095) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, 0.25) 1px, transparent 1px); */
    background-size: 100% 3px, 3px 100%;
    mix-blend-mode: multiply;
}

body.theme-dark::before {
    opacity: 0.16;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

body.theme-dark::after {
    opacity: 0.11;
    mix-blend-mode: screen;
}

::selection {
    background: var(--text);
    color: var(--bg);
}

/* cursor */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor {
    width: 12px;
    height: 12px;
    background: var(--link-red);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.cursor-follower {
    width: 42px;
    height: 42px;
    border: 1px solid var(--text);
    opacity: 0.45;
    transition: width 0.16s ease,
    height 0.16s ease,
    opacity 0.16s ease,
    border-color 0.16s ease;
}

body.cursor-hover .cursor-follower {
    width: 62px;
    height: 62px;
    opacity: 0.82;
}

/* shell */
.site-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 980px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0 32px;
    backdrop-filter: blur(14px);
    background: var(--bg-elevated);

    /* border-bottom: 1px solid var(--line) */
}

.site-header__left,
.site-header__right {
    display: flex;
    align-items: center;
}

.site-header__right {
    justify-content: flex-end;
}

.site-header__center {
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    position: relative;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
    color: var(--text);
}

.site-title {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    text-align: center;
    font-family: var(--font-ui);
    white-space: nowrap;
}

.header-button {
    appearance: rgba(18,18,18,0.06);
    border: 1px solid var(--line);
    background: rgba(18,18,18,0.06);
    color: var(--text);
    text-decoration: none;
    padding: 0.72rem 0.98rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.header-button:hover {
    transform: translateY(-1px);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 1px var(--line) inset;
}

/* hero */
.hero {
    height: calc(100svh - var(--header-height));
    padding: 32px;
}

.hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: calc(100svh - var(--header-height) - 64px);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    corner-shape: squircle;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--hero-inner-shadow);
    background: var(--hero-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

@supports (corner-shape: squircle) {
    .hero__inner {
        corner-shape: squircle;
        border-radius: 60px;
    }
}

/* .hero__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 12%),
    linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent 14%);
    mix-blend-mode: overlay;
} */
.hero__image {
    height: 100%;
    object-fit: cover;
    display: block;
}

/* content grid */
.content-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-box {
    border-left: 1px solid var(--line-left);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line-left);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--aside-overlay), var(--bg-elevated);
    backdrop-filter: blur(10px);
    box-shadow: var(--kurwa);
    position: relative;
    overflow: hidden;
}

.sidebar-box::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgba(127, 127, 127, 0.05), transparent 28%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent 22%);
    opacity: 0.65;
}

.sidebar-box h2 {
    position: relative;
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sidebar-box p {
    position: relative;
    margin-bottom: 0.05rem;
    line-height: 1.5;
    color: var(--muted);
}

.sidebar-box a {
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--link-red);

    /* text-transform: uppercase; */
}

.sidebar-box p:last-child {
    margin-bottom: 0;
}

.artifact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    position: relative;
}

.artifact-list img {
    display: block;
    width: 100%;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: rgba(127, 127, 127, 0.06);
    filter: contrast(1.04) saturate(0.96);
}

/* main */
.main-content {
    min-width: 0;
}

.manifest {
    max-width: var(--content-width);
    padding: 16px 8px 120px;
}

.manifest h1 {
    margin: 0 0 2.5rem;
    font-size: 3rem;
    font-weight: 400;
}

.manifest h2 {
    font-weight: 400;
    font-size: 3rem;
    text-wrap: pretty;
}

.manifest p {
    margin: 0 0 1.2rem;
    font-size: 1.2rem;
    line-height: 1.72;
    text-wrap: pretty;
}

.manifest em {
    font-style: italic;
}

.manifest strong {
    font-weight: 700;
}

.manifest hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.2rem 0;
}

.post-scriptum {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.92rem !important;
}

/* RESIZE OVERLAY */
.resize-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.14s ease;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 34%),    rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(5px);
}

.resize-overlay.is-visible {
    opacity: 1;
}

.resize-overlay.is-glitching .resize-overlay__text {
    animation: resizeBlink 0.14s steps(2, end) infinite,
  resizeJitter 0.18s steps(2, end) infinite;
}

.resize-overlay__noise {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    mix-blend-mode: screen;
    background-image: repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.09) 0px,
      rgba(255, 255, 255, 0.09) 1px,
      transparent 2px,
      transparent 4px
    );
}

.resize-overlay__text {
    position: relative;
    margin: 0;
    padding: 0 5vw;
    max-width: 90vw;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 0.95;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: clamp(2.2rem, 8vw, 7rem);
    color: #fff8ec;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4),
    -2px 0 rgba(255, 22, 22, 0.22),
    2px 0 rgba(33, 155, 255, 0.22),
    0 0 28px rgba(255, 255, 255, 0.08);
}

.resize-overlay__text::before,
.resize-overlay__text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
}

.resize-overlay__text::before {
    transform: translate(-2px, 0);
    color: rgba(255, 70, 70, 0.5);
    clip-path: inset(0 0 58% 0);
}

.resize-overlay__text::after {
    transform: translate(2px, 0);
    color: rgba(80, 170, 255, 0.5);
    clip-path: inset(56% 0 0 0);
}

@keyframes resizeBlink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.68;
    }
}

@keyframes resizeJitter {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-1px, 1px);
    }

    50% {
        transform: translate(1px, -1px);
    }

    75% {
        transform: translate(2px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* mobile gate */
.mobile-gate {
    display: none;
}

/* hover targets */
a,
button,
.sidebar-box,
.hero__inner {
    cursor: none;
}

@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .manifest {
        max-width: 700px;
    }
}

@media (max-width: 479px) {
    html,
    body {
        min-width: 0;
        overflow: hidden;
    }

    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower,
    .resize-overlay,
    .site-shell {
        display: none !important;
    }

    .mobile-gate {
        display: grid;
        place-items: center;
        min-height: 100svh;
        padding: 24px;
        background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 30%),
      var(--bg);
    }

    .mobile-gate__inner {
        max-width: 28rem;
        text-align: center;
        border: 1px solid var(--line);
        border-radius: 24px;
        padding: 28px 20px;
        background: var(--bg-elevated);
        backdrop-filter: blur(12px);
        box-shadow: var(--shadow);
    }

    .mobile-gate__inner p {
        margin: 0 0 1.1rem;
        line-height: 1.65;
        font-size: 1rem;
    }

    .mobile-gate__inner p:last-child {
        margin-bottom: 0;
    }
}

.strzalka {
    width: 100%;
    position: absolute;
    bottom: -5px;
}

.hide {
    display: none;
}

.strzalka-small {
    position: absolute;
    bottom: -3px;
}

.shadow-test {
    box-shadow: 0px 0px 12 25 rgba(191, 189, 183, 0.05) , 0px 0px 2px 1px #282828;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.19) 100%);
    border-left: 27px solid #ff0000;
    border-top: 27px solid #ffffff;
    border-right: 27px solid #ffffff;
    border-bottom: 27px solid #ff0000;
    display: none;
}

.hero-img-wrap {
    height: 100%;
    width: auto;
    max-width: 100%;
    position: relative;
}

.paragraf-short {
    width: 45%;
    font-size: 15px !important;
    text-align: justify;
}

.counter-box {
    margin-top: 32px;
}

.strzalka-wrap {
    float: right;
    margin-top: 60px;
    color: var(--link-red);
}

.strzala {
    animation: strzalka 1s linear infinite alternate;
    width: 93%;
}

@keyframes strzalka {
    from {
        transform: translateX(-8px);
    }

    to {
        transform: translateX(0px);
    }
}

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

.noise-wrap {
    position: absolute;
    top: 0px;
    right: 0px;
    left: 0px;
    bottom: 0px;
    padding: 4% 5% 7% 5.3%;
    animation: noise 6s ease-in forwards .2s;
    pointer-events: none;
}

@keyframes noise {
    from {
        opacity: 85%;
    }

    to {
        opacity: 0%;
    }
}

.hr {
    width: 100%;
}

.supremacja-section {
    height: 100vh;
    background-color: #282828;
    background-image: url('../assets/monitor%20zakas%202.png');
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hoverart-section {
    height: 100vh;
}

.margin-bottom-s {
    margin-bottom: 6px;
}

.spacer-m {
    padding-top: 26px;
}