/* =========================================================
   WNSELIN — portfolio
   Type: Anton / Instrument Serif / Manrope / JetBrains Mono
   ========================================================= */

:root {
    --bg: #070908;
    --bg-soft: #0c100d;
    --surface: #0f1410;
    --ink: #f1f2ea;
    --muted: #8f978e;
    --muted-2: #778176;
    --line: rgba(241, 242, 234, 0.12);
    --line-strong: rgba(241, 242, 234, 0.26);
    --accent: #c8ff3d;
    --accent-soft: rgba(200, 255, 61, 0.1);
    --accent-ink: #080a07;
    --display: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1380px;
    --gutter: clamp(20px, 4vw, 64px);
    --header-h: 86px;
    --radius: 20px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.75;
    background-image:
        linear-gradient(rgba(241, 242, 234, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 242, 234, 0.035) 1px, transparent 1px);
    background-size: 84px 84px;
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 0%, transparent 75%);
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

p,
h1,
h2,
h3,
h4,
figure,
pre {
    margin: 0;
}

[id] {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

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

/* ---------- background atmosphere ---------- */

.aurora {
    position: fixed;
    z-index: -3;
    min-width: 460px;
    min-height: 460px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    will-change: transform;
}

.aurora--1 {
    top: -24vw;
    right: -12vw;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(200, 255, 61, 0.13), transparent 65%);
    animation: auroraOne 26s ease-in-out infinite alternate;
}

.aurora--2 {
    bottom: -22vw;
    left: -16vw;
    width: 48vw;
    height: 48vw;
    background: radial-gradient(circle, rgba(34, 120, 88, 0.22), transparent 68%);
    animation: auroraTwo 32s ease-in-out infinite alternate;
}

.spotlight {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(620px circle at var(--mx, 50%) var(--my, 30%), rgba(200, 255, 61, 0.06), transparent 65%);
    transition: opacity 0.7s ease;
}

body.has-pointer .spotlight {
    opacity: 1;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
    background-size: 240px 240px;
    mix-blend-mode: overlay;
}

/* ---------- custom cursor ---------- */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 400;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.has-cursor .cursor {
    opacity: 1;
}

.cursor__dot,
.cursor__ring {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    will-change: transform;
}

.cursor__dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    transition: opacity 0.25s ease;
}

.cursor__ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(241, 242, 234, 0.45);
    transition:
        width 0.3s var(--ease),
        height 0.3s var(--ease),
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.cursor.is-hover .cursor__ring {
    width: 54px;
    height: 54px;
    border-color: var(--accent);
    background: rgba(200, 255, 61, 0.09);
}

.cursor.is-hover .cursor__dot {
    opacity: 0;
}

body.has-cursor,
body.has-cursor * {
    cursor: none !important;
}

/* ---------- skip link ---------- */

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 500;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    transform: translateY(-180%);
    transition: transform 0.25s var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ---------- shared layout ---------- */

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

.section {
    position: relative;
    padding: clamp(90px, 13vh, 150px) 0;
}

.section--capabilities,
.section--work {
    border-top: 1px solid var(--line);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--muted);
}

.section-label::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(200, 255, 61, 0.4);
}

.section-title {
    margin-top: 18px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(48px, 6.5vw, 92px);
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.section-title em,
.about-title em,
.work-cta__title em,
.contact__title em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -0.02em;
    text-transform: none;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: clamp(38px, 5vw, 64px);
}

.section-head__note {
    max-width: 300px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

/* ---------- buttons ---------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 24px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.35s var(--ease);
}

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

.btn__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(200, 255, 61, 0.5);
}

.btn__arrow {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s var(--ease);
}

.btn:hover .btn__arrow {
    transform: translate(2px, -2px);
}

.btn--primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.btn--primary:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--accent-ink);
}

.btn--ghost {
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--dark {
    border-color: rgba(7, 9, 8, 0.3);
    color: var(--accent-ink);
}

.btn--dark:hover {
    border-color: var(--accent-ink);
    background: var(--accent-ink);
    color: var(--accent);
}

.btn--sm {
    padding: 11px 16px;
    font-size: 10px;
}

/* ---------- text links & chips ---------- */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.text-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.text-link__arrow {
    transition: transform 0.25s var(--ease);
}

.text-link:hover .text-link__arrow {
    transform: translate(3px, -3px);
}

.text-link__count {
    color: var(--muted);
}

.text-link--button {
    cursor: pointer;
    text-align: left;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips li {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.018);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

/* ---------- scroll reveal ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.9s var(--ease),
        transform 0.9s var(--ease);
    transition-delay: var(--delay, 0ms);
}

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

/* ---------- header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    border-bottom: 1px solid transparent;
    transition:
        background-color 0.4s ease,
        border-color 0.4s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(7, 9, 8, 0.72);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.menu-open .site-header {
    border-bottom-color: transparent;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: none;
}

body.menu-open .menu-toggle {
    pointer-events: auto;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    max-width: var(--container);
    height: var(--header-h);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.logo {
    display: inline-flex;
    align-items: baseline;
    color: var(--ink);
    font-family: var(--display);
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.logo:hover {
    color: var(--accent);
}

.logo__dot {
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.6vw, 40px);
}

.nav__link {
    position: relative;
    padding: 7px 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
    color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-toggle {
    position: relative;
    z-index: 130;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--accent);
}

.menu-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    transition:
        transform 0.35s var(--ease),
        background-color 0.3s ease;
}

body.menu-open .menu-toggle span:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- mobile menu ---------- */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 36px;
    background: rgba(6, 8, 6, 0.97);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.45s var(--ease),
        visibility 0.45s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu__nav a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(46px, 12vw, 80px);
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(18px);
    transition:
        color 0.25s ease,
        opacity 0.5s var(--ease),
        transform 0.5s var(--ease);
}

.mobile-menu.is-open .mobile-menu__nav a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.26s; }

.mobile-menu__nav a span {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a[aria-current="page"] {
    color: var(--accent);
}

.mobile-menu__foot {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.mobile-menu__mail {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.socials a {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.socials a:hover {
    color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + clamp(18px, 3vh, 36px)) 0 0;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.hero__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: clamp(18px, 2.4vh, 30px);
    animation: riseIn 0.8s var(--ease) both;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulseDot 2.4s infinite;
}

.hero__meta-right {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.hero__meta-right span {
    margin-inline: 4px;
    color: var(--accent);
}

.hero__main {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    grid-template-areas:
        "intro visual"
        "copy visual";
    grid-template-rows: auto auto;
    flex: 1;
    align-items: end;
    column-gap: clamp(22px, 4vw, 70px);
    row-gap: clamp(22px, 3.4vh, 44px);
    padding: clamp(20px, 3vh, 42px) 0 clamp(20px, 3vh, 38px);
}

.hero__intro {
    position: relative;
    z-index: 2;
    grid-area: intro;
    align-self: end;
}

.hero__title {
    font-family: var(--display);
    font-size: clamp(80px, 13.4vw, 200px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: riseIn 1s var(--ease) 0.08s both;
}

.hero__title > span {
    color: transparent;
    -webkit-text-stroke: clamp(1px, 0.13vw, 2px) var(--ink);
}

@supports not ((-webkit-text-stroke: 1px #fff)) {
    .hero__title > span {
        color: var(--ink);
    }
}

.hero__role {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
    margin-top: clamp(14px, 2.2vh, 24px);
    font-size: clamp(24px, 2.7vw, 40px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    animation: riseIn 0.9s var(--ease) 0.18s both;
}

.hero__role em {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 1.12em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

.hero__visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    grid-area: visual;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: min(100%, 620px);
    aspect-ratio: 1;
    transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px), 0);
    transition: transform 0.5s var(--ease-soft);
    animation: fadeIn 1.2s ease 0.25s both;
}

.hero__halo {
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, rgba(200, 255, 61, 0.17), rgba(200, 255, 61, 0.04) 45%, transparent 70%);
    filter: blur(24px);
    animation: haloPulse 6s ease-in-out infinite alternate;
}

.hero__orbit {
    position: absolute;
    width: 88%;
    aspect-ratio: 1;
    color: var(--muted);
    opacity: 0.55;
    animation: spin 42s linear infinite;
    will-change: transform;
}

.hero__orbit svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero__orbit text {
    fill: currentColor;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.portrait-float {
    position: relative;
    z-index: 2;
    width: 82%;
    max-width: 485px;
    animation: float 7s ease-in-out infinite;
    will-change: transform;
}

.portrait-float::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: -5%;
    left: 12%;
    z-index: -1;
    height: 8%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    filter: blur(20px);
}

.portrait {
    position: relative;
}

.portrait img {
    width: 100%;
    height: auto;
    filter: grayscale(1) contrast(1.06);
    -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
    transition: filter 0.8s ease;
}

.hero__visual:hover .portrait img {
    filter: grayscale(0) contrast(1);
}

.float-tag {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(9, 12, 9, 0.65);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    animation: tagFloat 6s ease-in-out infinite;
}

.float-tag i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(200, 255, 61, 0.7);
}

.float-tag--1 {
    top: 17%;
    left: 0;
    animation-delay: -1s;
}

.float-tag--2 {
    top: 45%;
    right: 0;
    animation-delay: -3s;
}

.float-tag--3 {
    bottom: 17%;
    left: 2%;
    animation-delay: -5s;
}

.hero__copy {
    grid-area: copy;
    align-self: start;
    max-width: 520px;
    animation: riseIn 0.9s var(--ease) 0.34s both;
}

.hero__lead {
    max-width: 470px;
    color: var(--muted);
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
    animation: riseIn 0.9s var(--ease) 0.42s both;
}

.hero__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 26px;
    animation: riseIn 0.9s var(--ease) 0.5s both;
}

.hero__socials a {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.hero__socials a span {
    display: inline-block;
    color: var(--accent);
    transition: transform 0.25s var(--ease);
}

.hero__socials a:hover {
    color: var(--ink);
}

.hero__socials a:hover span {
    transform: translate(2px, -2px);
}

.hero__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    animation: riseIn 0.9s var(--ease) 0.6s both;
}

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.scroll-cue__line {
    position: relative;
    width: 46px;
    height: 1px;
    overflow: hidden;
    background: var(--line-strong);
}

.scroll-cue__line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-100%);
    animation: scrollLine 2.6s var(--ease) infinite;
}

.scroll-cue:hover {
    color: var(--ink);
}

.hero__foot-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- ticker ---------- */

.ticker {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-block: 1px solid rgba(7, 9, 8, 0.2);
    background: var(--accent);
    color: var(--accent-ink);
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: marquee 110s linear infinite;
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

.ticker__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 26px;
    padding: 14px 26px 16px 0;
}

.ticker__group span {
    font-family: var(--display);
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ticker__group i {
    font-size: clamp(10px, 1vw, 14px);
    font-style: normal;
    opacity: 0.45;
}

/* ---------- about ---------- */

.section--about {
    padding-top: clamp(90px, 13vh, 160px);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: start;
    gap: clamp(40px, 6vw, 100px);
}

.about-title {
    margin-top: 18px;
    font-family: var(--display);
    font-size: clamp(44px, 5.2vw, 78px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

.about-title em {
    display: inline-block;
}

.about-text {
    display: grid;
    gap: 16px;
    max-width: 480px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.about-intro .text-link {
    margin-top: 30px;
}

/* ---------- code card ---------- */

.code-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.code-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(500px circle at 80% 0%, rgba(200, 255, 61, 0.08), transparent 60%);
    pointer-events: none;
}

.code-card__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.16);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.code-card__lights {
    display: flex;
    gap: 6px;
}

.code-card__lights i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #303730;
}

.code-card__lights i:first-child { background: #ff6b5e; }
.code-card__lights i:nth-child(2) { background: #ffc552; }
.code-card__lights i:nth-child(3) { background: var(--accent); }

.code-card__file {
    color: var(--muted);
}

.code-card__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.code-card__status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(200, 255, 61, 0.7);
}

.code-card__code {
    padding: clamp(22px, 3vw, 36px);
    overflow-x: auto;
    color: #c9cec4;
    font-family: var(--mono);
    font-size: clamp(11px, 1.05vw, 14px);
    line-height: 1.9;
    tab-size: 2;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 255, 61, 0.32) transparent;
}

.code-card__code::-webkit-scrollbar {
    height: 5px;
}

.code-card__code::-webkit-scrollbar-track {
    background: transparent;
}

.code-card__code::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(200, 255, 61, 0.32);
}

.code-card__code code {
    font-family: inherit;
}

.c-key { color: var(--accent); }
.c-var { color: #f1f2ea; }
.c-prop { color: #9be7c4; }
.c-str { color: #ffd08a; }
.c-bool { color: #8cc8ff; }
.c-comment { color: #7a8379; font-style: italic; }

.code-card__foot {
    display: flex;
    gap: 22px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.16);
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.code-card__foot span:last-child {
    margin-left: auto;
}

/* ---------- stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(60px, 8vw, 100px);
    border-block: 1px solid var(--line);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(24px, 3vw, 38px) clamp(16px, 2.4vw, 30px);
    border-right: 1px solid var(--line);
}

.stat:first-child {
    padding-left: 0;
}

.stat:last-child {
    padding-right: 0;
    border-right: 0;
}

.stat__value {
    font-family: var(--display);
    font-size: clamp(40px, 4.5vw, 64px);
    line-height: 0.9;
    letter-spacing: 0.01em;
}

.stat--accent .stat__value {
    color: var(--accent);
}

.stat__label {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ---------- capabilities ---------- */

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

.capability {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    transition:
        border-color 0.4s ease,
        transform 0.4s var(--ease),
        background-color 0.4s ease;
}

.capability::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.capability:hover {
    border-color: rgba(200, 255, 61, 0.35);
    transform: translateY(-4px);
}

.capability:hover::before {
    opacity: 1;
}

.capability__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.capability__num {
    color: var(--accent);
}

.capability__glyph {
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    transition:
        color 0.3s ease,
        transform 0.5s var(--ease);
}

.capability:hover .capability__glyph {
    color: var(--accent);
    transform: rotate(90deg);
}

.capability h3 {
    margin-top: clamp(34px, 4vw, 56px);
    font-family: var(--display);
    font-size: clamp(28px, 2.8vw, 42px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.capability p {
    min-height: 72px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.capability .chips {
    margin-top: 22px;
}

/* ---------- selected work ---------- */

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 3.4vw, 46px) clamp(18px, 2.6vw, 34px);
}

.work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-card--wide {
    grid-column: 1 / -1;
}

.work-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.work-card--wide .work-card__media {
    aspect-ratio: 21 / 9;
}

.work-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: saturate(0.9);
    transition:
        transform 1.1s var(--ease),
        filter 0.7s ease;
}

.work-card:hover .work-card__media img {
    filter: saturate(1.05);
    transform: scale(1.035);
}

.work-card__media--bot {
    cursor: default;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 60, 40, 0.22), rgba(7, 9, 8, 0.3) 60%),
        var(--bg-soft);
}

.work-card__media--bot:hover img {
    filter: none;
    transform: none;
}

.work-card__media--bot .bot-cover__caption {
    display: none;
}

.work-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(to top, rgba(6, 8, 6, 0.45), transparent 45%);
    transition: opacity 0.5s ease;
}

.work-card:hover .work-card__media::after {
    opacity: 1;
}

.work-card__type {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(7, 9, 8, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.work-card__arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 20px;
    line-height: 1;
    opacity: 0;
    transform: translateY(10px) rotate(-8deg);
    transition:
        opacity 0.4s ease,
        transform 0.5s var(--ease);
}

.work-card:hover .work-card__arrow {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

.work-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 0 4px 12px;
    border-bottom: 1px solid var(--line);
}

.work-card__title {
    font-family: var(--display);
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.work-card:hover .work-card__title {
    color: var(--accent);
}

.work-card__tags {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-align: right;
    text-transform: uppercase;
}

/* ---------- contact ---------- */

.contact {
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 11vh, 130px) 0 clamp(50px, 7vh, 80px);
    background: var(--accent);
    color: var(--accent-ink);
}

.contact .section-label {
    color: rgba(7, 9, 8, 0.62);
}

.contact .section-label::before {
    background: var(--accent-ink);
    box-shadow: none;
}

.contact :focus-visible {
    outline-color: var(--accent-ink);
}

.contact__title {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    font-family: var(--display);
    font-size: clamp(52px, 10.5vw, 160px);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

.contact__title em {
    color: var(--accent-ink);
}

.contact__row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: clamp(50px, 7vw, 90px);
    padding-top: 30px;
    border-top: 1px solid rgba(7, 9, 8, 0.22);
}

.contact__mail {
    position: relative;
    color: var(--accent-ink);
    font-family: var(--serif);
    font-size: clamp(22px, 3.2vw, 44px);
    font-style: italic;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.contact__mail::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 1px;
    background: rgba(7, 9, 8, 0.45);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
}

.contact__mail:hover::after {
    transform: scaleX(0);
}

.contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact__note {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    color: rgba(7, 9, 8, 0.62);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.contact__glyph {
    position: absolute;
    right: -2vw;
    bottom: -12vw;
    color: transparent;
    font-family: var(--display);
    font-size: 44vw;
    line-height: 0.7;
    pointer-events: none;
    user-select: none;
    -webkit-text-stroke: 1px rgba(7, 9, 8, 0.13);
    transform-origin: center;
    animation: spin 80s linear infinite;
}

/* ---------- footer ---------- */

.footer {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo--footer {
    font-size: 22px;
}

.footer__note {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    line-height: 1.6;
    text-align: center;
}

.footer__middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer__socials {
    gap: 16px;
}

.footer__top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.footer__top span {
    color: var(--accent);
}

.footer__top:hover {
    color: var(--ink);
}

/* =========================================================
   WORK PAGE
   ========================================================= */

.work-hero {
    padding: calc(var(--header-h) + clamp(70px, 9vw, 120px)) 0 clamp(50px, 6vw, 80px);
}

.work-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.work-hero__meta {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.work-hero__meta span {
    margin-inline: 5px;
    color: var(--accent);
}

.work-hero__title {
    display: flex;
    align-items: flex-start;
    margin-top: clamp(30px, 4vw, 50px);
    font-family: var(--display);
    font-size: clamp(100px, 26vw, 360px);
    font-weight: 400;
    line-height: 0.72;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.work-hero__count {
    margin-top: 0.35em;
    margin-left: 0.3em;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 0.17em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.work-hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-top: clamp(34px, 5vw, 64px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.work-hero__lead {
    max-width: 520px;
    color: var(--muted);
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.7;
}

.work-list {
    padding: 0 0 clamp(90px, 12vh, 150px);
}

.filter-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(34px, 4vw, 56px);
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 8, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.filter span {
    color: var(--muted-2);
    font-size: 9px;
}

.filter:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.filter.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.filter.is-active span {
    color: rgba(7, 9, 8, 0.65);
}

.filter-count {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.projects-grid {
    --grid-gap: clamp(20px, 3vw, 40px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(50px, 7vw, 90px) var(--grid-gap);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    scroll-margin-top: calc(var(--header-h) + 90px);
}

@media (min-width: 861px) {
    .projects-grid.is-single {
        grid-template-columns: minmax(0, 680px);
        justify-content: center;
    }

    .projects-grid.is-odd:not(.is-single) .project-card.is-last-visible {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - var(--grid-gap) / 2);
    }
}

.project-card.is-hidden {
    display: none;
}

.project-card.card-in {
    animation: cardIn 0.55s var(--ease) both;
}

.project-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    text-align: left;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: saturate(0.92);
    transition:
        transform 1.1s var(--ease),
        filter 0.6s ease;
}

.project-card__media:hover img {
    filter: saturate(1.05);
    transform: scale(1.035);
}

.project-card__index {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(7, 9, 8, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1;
}

.project-card__view {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(7, 9, 8, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.4s ease,
        transform 0.5s var(--ease),
        border-color 0.3s ease,
        color 0.3s ease;
}

.project-card__view span {
    color: var(--accent);
}

.project-card__media:hover .project-card__view,
.project-card__media:focus-visible .project-card__view {
    opacity: 1;
    transform: translateY(0);
}

.project-card__body {
    display: flex;
    flex-direction: column;
}

.project-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.project-card__type {
    color: var(--accent);
}

.project-card__count {
    color: var(--muted-2);
}

.project-card__title {
    margin-top: 18px;
    font-family: var(--display);
    font-size: clamp(30px, 3.4vw, 50px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.project-card:hover .project-card__title {
    color: var(--accent);
}

.project-card__desc {
    max-width: 520px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.project-card .chips {
    margin-top: 20px;
}

.project-card__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}

/* ---------- bot cover ---------- */

.project-card__media--bot {
    cursor: default;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 60, 40, 0.22), rgba(7, 9, 8, 0.3) 60%),
        var(--bg-soft);
}

.project-card__media--bot:hover img {
    filter: none;
    transform: none;
}

.bot-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.bot-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(241, 242, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 242, 234, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at center, #000, transparent 72%);
    mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.bot-cover__glow {
    position: absolute;
    width: 40%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 44, 30, 0.5);
    filter: blur(70px);
    opacity: 0.5;
}

.bot-cover__logo {
    position: relative;
    z-index: 1;
    width: clamp(96px, 12vw, 150px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(255, 30, 20, 0.25);
}

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

.bot-bubble {
    position: absolute;
    z-index: 2;
    padding: 10px 26px 10px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 13, 10, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.4;
    white-space: nowrap;
}

.bot-bubble::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

.bot-bubble--1 {
    top: 24%;
    left: 8%;
    transform: rotate(-3deg);
}

.bot-bubble--2 {
    right: 7%;
    bottom: 24%;
    transform: rotate(2deg);
}

.bot-cover__caption {
    position: absolute;
    right: 18px;
    bottom: 16px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
}

/* ---------- work CTA ---------- */

.work-cta {
    padding: clamp(60px, 8vw, 100px) 0;
    border-top: 1px solid var(--line);
}

.work-cta__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.work-cta__title {
    margin-top: 20px;
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.work-cta__title em {
    color: var(--accent);
}

/* ---------- lightbox ---------- */

.lightbox {
    --lightbox-image: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #050706;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s var(--ease),
        visibility 0.4s;
}

.lightbox::before,
.lightbox::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.lightbox::before {
    inset: -8%;
    background-image: var(--lightbox-image);
    background-position: center;
    background-size: cover;
    filter: blur(70px) saturate(0.85);
    opacity: 0.28;
    transform: scale(1.06);
}

.lightbox::after {
    background:
        radial-gradient(ellipse at center, transparent 24%, rgba(5, 7, 6, 0.58) 100%),
        linear-gradient(to bottom, rgba(5, 7, 6, 0.5), transparent 22%, transparent 76%, rgba(5, 7, 6, 0.72));
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 18px var(--gutter);
    border-bottom: 1px solid var(--line);
}

.lightbox__heading {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lightbox__eyebrow {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.lightbox__title {
    font-family: var(--display);
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.lightbox__counter {
    margin-left: auto;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1;
}

.lightbox__counter span:nth-child(2) {
    margin-inline: 3px;
    color: var(--muted-2);
}

.lightbox__close {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.lightbox__close:hover {
    border-color: var(--accent);
    background: rgba(200, 255, 61, 0.08);
}

.lightbox__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1px;
    background: var(--ink);
}

.lightbox__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox__stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: clamp(16px, 3vw, 36px) clamp(60px, 8vw, 100px);
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 280px);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-soft);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.55);
    object-fit: contain;
    opacity: 0;
    transform: scale(0.985);
    transition:
        opacity 0.3s ease,
        transform 0.35s var(--ease);
}

.lightbox__img.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(7, 9, 8, 0.5);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 20px;
    line-height: 1;
    transform: translateY(-50%);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.lightbox__arrow:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.lightbox__arrow--prev {
    left: clamp(10px, 2vw, 32px);
}

.lightbox__arrow--next {
    right: clamp(10px, 2vw, 32px);
}

.lightbox__thumbs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 var(--gutter) 24px;
    scrollbar-width: none;
}

.lightbox__thumbs::-webkit-scrollbar {
    display: none;
}

.lightbox__thumb {
    flex: 0 0 auto;
    width: 86px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 7px;
    opacity: 0.42;
    transition:
        opacity 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

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

.lightbox__thumb:hover {
    opacity: 0.8;
}

.lightbox__thumb.is-active {
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(200, 255, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); }
}

@keyframes auroraOne {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-4vw, 3vw, 0) scale(1.1); }
}

@keyframes auroraTwo {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(3vw, -3vw, 0) scale(1.08); }
}

@keyframes haloPulse {
    from { opacity: 0.65; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1.06); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    45%, 100% { transform: translateX(100%); }
}

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

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .hero__main {
        column-gap: 36px;
    }

    .hero__title {
        font-size: clamp(76px, 13vw, 175px);
    }

    .about-grid {
        gap: 50px;
    }
}

@media (max-width: 960px) {
    :root {
        --header-h: 76px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-text {
        max-width: 620px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .capability p {
        min-height: 0;
        max-width: 560px;
    }

    .capability h3 {
        margin-top: 30px;
    }

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

    .stat {
        padding: 26px 24px;
    }

    .stat:first-child,
    .stat:nth-child(3) {
        padding-left: 0;
    }

    .stat:nth-child(2n) {
        padding-right: 0;
        border-right: 0;
    }

    .stat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 860px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 30px);
    }

    .hero__main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "visual"
            "copy";
        row-gap: 18px;
        padding-top: 8px;
    }

    .hero__visual {
        width: min(82vw, 430px);
        margin: 0 auto;
    }

    .hero__copy {
        max-width: 620px;
    }

    .hero__title {
        font-size: clamp(74px, 18vw, 152px);
    }

    .hero__role {
        font-size: clamp(26px, 4vw, 36px);
    }

    .hero__foot {
        margin-top: 20px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .section-head__note {
        max-width: 420px;
        text-align: left;
    }

    .work-hero__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .work-hero__lead {
        max-width: 620px;
    }

    .filter-bar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .project-card__desc {
        max-width: none;
    }

    .work-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .work-cta__title {
        font-size: clamp(38px, 6vw, 60px);
    }
}

@media (max-width: 780px) {
    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card--wide {
        grid-column: auto;
    }

    .work-card--wide .work-card__media {
        aspect-ratio: 16 / 10;
    }

    .hero__foot-meta {
        display: none;
    }

    .contact__glyph {
        right: -10vw;
        bottom: -6vw;
        font-size: 70vw;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer__note {
        text-align: left;
    }

    .footer__middle {
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .work-hero__meta {
        display: none;
    }

    .work-hero__title {
        font-size: clamp(96px, 32vw, 220px);
    }

    .filter-bar {
        position: static;
        padding: 0 0 18px;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .contact__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact__mail {
        font-size: clamp(20px, 5.2vw, 32px);
    }

    .contact__actions {
        width: 100%;
    }

    .code-card__foot span:last-child {
        display: none;
    }

    .lightbox__top {
        gap: 14px;
        padding: 14px 20px;
    }

    .lightbox__eyebrow {
        display: none;
    }

    .lightbox__title {
        font-size: 18px;
    }

    .lightbox__counter {
        font-size: 10px;
    }

    .lightbox__close {
        width: 38px;
        height: 38px;
    }

    .lightbox__stage {
        padding: 12px 50px;
    }

    .lightbox__img {
        max-height: calc(100svh - 250px);
        max-height: calc(100dvh - 250px);
    }

    .lightbox__arrow {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .lightbox__thumbs {
        padding: 0 20px 16px;
    }

    .lightbox__thumb {
        width: 64px;
    }
}

@media (max-width: 560px) {
    :root {
        --header-h: 70px;
    }

    .header__actions > .btn {
        display: none;
    }

    .hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero__meta-right {
        font-size: 9px;
    }

    .hero__title {
        font-size: clamp(72px, 22vw, 110px);
    }

    .hero__role {
        gap: 8px;
        font-size: 24px;
    }

    .hero__visual {
        width: min(88vw, 370px);
    }

    .float-tag {
        padding: 8px 11px;
        font-size: 9px;
    }

    .float-tag--1 {
        top: 14%;
        left: -2%;
    }

    .float-tag--2 {
        right: -2%;
    }

    .float-tag--3 {
        bottom: 12%;
    }

    .hero__lead {
        font-size: 15px;
    }

    .hero__actions {
        gap: 10px;
    }

    .btn {
        padding: 14px 18px;
        font-size: 10px;
    }

    .hero__socials {
        gap: 16px;
    }

    .hero__foot {
        padding: 16px 0;
    }

    .scroll-cue {
        font-size: 8px;
    }

    .about-title {
        font-size: clamp(40px, 11vw, 58px);
    }

    .code-card__bar {
        gap: 10px;
        padding: 13px 14px;
        font-size: 9px;
    }

    .code-card__code {
        padding: 18px 16px;
        font-size: 10px;
        line-height: 1.9;
    }

    .code-card__foot {
        gap: 12px;
        padding: 10px 14px;
        font-size: 8px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .stat:nth-child(3) {
        padding-left: 0;
    }

    .contact__title {
        font-size: clamp(46px, 13vw, 72px);
    }

    .contact__row {
        gap: 24px;
    }

    .contact__mail {
        font-size: 20px;
    }

    .contact__actions .btn {
        flex: 1;
    }

    .project-card {
        gap: 18px;
    }

    .project-card__media {
        aspect-ratio: 16 / 10;
    }

    .project-card__view {
        opacity: 1;
        transform: none;
    }

    .bot-bubble--1 {
        top: 18%;
        left: 4%;
        font-size: 9px;
    }

    .bot-bubble--2 {
        right: 4%;
        bottom: 18%;
        font-size: 9px;
    }

    .filter {
        padding: 9px 12px;
        font-size: 9px;
    }

    .filter-count {
        display: none;
    }

    .work-hero {
        padding-top: calc(var(--header-h) + 56px);
    }

    .work-hero__title {
        font-size: clamp(84px, 31vw, 150px);
    }

    .work-hero__count {
        font-size: 0.14em;
    }

    .work-cta__title {
        font-size: 34px;
    }

    .work-cta .btn {
        width: 100%;
    }

    .lightbox__stage {
        padding: 10px 42px;
    }

    .lightbox__arrow {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .lightbox__arrow--prev {
        left: 6px;
    }

    .lightbox__arrow--next {
        right: 6px;
    }

    .lightbox__img {
        max-height: calc(100svh - 230px);
        max-height: calc(100dvh - 230px);
        border-radius: 6px;
    }

    .lightbox__thumbs {
        gap: 7px;
        padding: 0 14px 14px;
    }

    .lightbox__thumb {
        width: 54px;
    }
}

@media (max-width: 400px) {
    .hero__visual {
        width: 100%;
    }

    .float-tag--3 {
        display: none;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .contact__actions .btn {
        flex-basis: 100%;
    }

    .lightbox__title {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-height: 640px) {
    .mobile-menu {
        justify-content: flex-start;
        overflow-y: auto;
    }

    .mobile-menu__nav a {
        font-size: clamp(34px, 9vh, 58px);
    }

    .mobile-menu__foot {
        margin-top: 28px;
    }
}

@media (hover: none) {
    .project-card__view,
    .work-card__arrow {
        opacity: 1;
        transform: none;
    }

    .work-card__media::after {
        opacity: 0.45;
    }
}

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

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .hero__visual {
        transform: none !important;
    }

    .cursor {
        display: none;
    }
}
