/* Neon Vision: neon on a night street, in the colours of the original's header (CONTENT_SOURCE.md, "Design"). */

@font-face {
    font-family: "Nunito";
    src: url("/fonts/nunito.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Sans";
    src: url("/fonts/pt-sans.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Sans";
    src: url("/fonts/pt-sans-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --night: #07070d;
    --night-2: #100e1c;
    --night-3: #191630;
    --line: #2c2850;
    --text: #ece0c5;
    --muted: #c3b9cc;
    --blue: #3d63ff;
    --blue-text: #a3b4ff;
    --violet: #a64dff;
    --violet-text: #d6adff;
    --amber: #f2a93b;
    --rose: #f684b8;
    --ink: #170f03;
    --radius: 18px;
    --display: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
    --body: "PT Sans", "Segoe UI", system-ui, sans-serif;
    --lb-bg: rgba(7, 7, 13, 0.96);
    --lb-text: #ece0c5;
    --lb-accent: #f2a93b;
    --lb-accent-soft: rgba(166, 77, 255, 0.35);
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue-text);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: #fff;
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    color: #fff4e3;
}

h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
}

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

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--amber);
    color: var(--ink);
    font-weight: 700;
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 7, 13, 0.78);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(166, 77, 255, 0.22);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    min-height: 68px;
    padding-block: 10px;
}

.brand {
    display: block;
    padding: 6px 0;
    flex-shrink: 0;
}

.brand img {
    width: 180px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-right: auto;
}

.nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.98rem;
}

.nav a:hover {
    background: rgba(166, 77, 255, 0.16);
    color: #fff;
}

.nav a[aria-current="page"] {
    color: #fff;
    box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 14px rgba(166, 77, 255, 0.45);
}

.top-end {
    display: flex;
    align-items: center;
    gap: 12px;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 22px rgba(242, 169, 59, 0.35);
}

.call:hover {
    background: #ffc46a;
    color: var(--ink);
}

.lang {
    display: flex;
    gap: 2px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.9rem;
}

.lang a,
.lang span {
    padding: 6px 8px;
    border-radius: 8px;
}

.lang span {
    color: #fff;
    background: var(--night-3);
}

.lang a {
    color: var(--muted);
    text-decoration: none;
}

.lang a:hover {
    color: #fff;
}

.menu-btn {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: 700 0.95rem var(--display);
    cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

@media (max-width: 899px) {
    .top-row {
        gap: 10px 12px;
    }

    .top-end {
        margin-left: auto;
    }

    .nav {
        order: 5;
        width: 100%;
        margin-right: 0;
    }

    /* With the script: a menu button opens the navigation. */
    .js-menu .menu-btn {
        display: inline-flex;
        order: 4;
    }

    .js-menu .nav {
        display: none;
        flex-direction: column;
        padding: 6px 0 12px;
    }

    .js-menu .nav.open {
        display: flex;
    }

    .js-menu .nav a {
        padding: 12px 14px;
        font-size: 1.1rem;
    }

    .js-menu .menu-btn[aria-expanded="true"] .menu-bars {
        background: transparent;
    }

    .js-menu .menu-btn[aria-expanded="true"] .menu-bars::before {
        transform: translateY(6px) rotate(45deg);
    }

    .js-menu .menu-btn[aria-expanded="true"] .menu-bars::after {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 599px) {
    .brand img {
        width: 150px;
    }

    .call {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .top-end {
        width: 100%;
        justify-content: space-between;
        order: 3;
    }

    .js-menu .menu-btn {
        margin-left: auto;
        order: 2;
    }
}

/* ---- buttons and links ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink);
    font: 800 1.02rem/1.2 var(--display);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(242, 169, 59, 0.5);
    transition: box-shadow 0.25s, transform 0.25s, background 0.25s;
}

.btn:hover {
    color: var(--ink);
    background: #ffc46a;
    box-shadow: 0 0 28px rgba(242, 169, 59, 0.55);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px var(--violet);
}

.btn-ghost:hover {
    background: rgba(166, 77, 255, 0.18);
    color: #fff;
    box-shadow: inset 0 0 0 2px var(--violet), 0 0 26px rgba(166, 77, 255, 0.55);
}

.btn-light {
    background: #fff;
    color: #2b0b57;
}

.btn-light:hover {
    background: #f4eaff;
    color: #2b0b57;
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.45);
}

.link-arrow {
    font-family: var(--display);
    font-weight: 800;
    color: var(--amber);
    text-decoration: none;
    white-space: nowrap;
}

.link-arrow::after {
    content: " →";
    display: inline-block;
    transition: transform 0.2s;
}

.link-arrow:hover {
    color: #ffc46a;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* ---- the tubes (signature) ---- */

.tubes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tube path {
    fill: none;
    stroke-linecap: round;
}

.tube-glow {
    stroke-width: 34;
    opacity: 0.5;
    filter: blur(14px);
}

.tube-glass {
    stroke-width: 9;
}

.tube-core {
    stroke-width: 3;
    stroke: #fff;
    opacity: 0.85;
}

.tube-blue .tube-glow,
.tube-blue .tube-glass {
    stroke: var(--blue);
}

.tube-violet .tube-glow,
.tube-violet .tube-glass {
    stroke: var(--violet);
}

@media (prefers-reduced-motion: no-preference) {
    .tube path {
        stroke-dasharray: 1;
        animation: strike 1.1s cubic-bezier(0.6, 0, 0.3, 1) both;
    }

    .tube {
        animation: flicker 1.6s linear both;
    }

    .tube-blue,
    .tube-blue path {
        animation-delay: 0.15s;
    }

    .tube-violet,
    .tube-violet path {
        animation-delay: 0.55s;
    }

    .lit {
        animation: flicker 1.8s linear 0.9s both;
    }

    .hero-text > * {
        animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero-text > :nth-child(2) {
        animation-delay: 0.08s;
    }

    .hero-text > :nth-child(3) {
        animation-delay: 0.16s;
    }

    .hero-text > :nth-child(4) {
        animation-delay: 0.24s;
    }

    .fan li {
        animation: deal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .fan li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .fan li:nth-child(3) {
        animation-delay: 0.3s;
    }
}

@keyframes strike {
    from {
        stroke-dashoffset: 1;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes flicker {
    0%,
    18% {
        opacity: 0.15;
    }

    20% {
        opacity: 1;
    }

    24% {
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }

    33% {
        opacity: 0.55;
    }

    40%,
    100% {
        opacity: 1;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

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

@keyframes deal {
    from {
        opacity: 0;
        transform: translateY(40px) rotate(0deg);
    }
}

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

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 78% 30%, rgba(61, 99, 255, 0.18), transparent 70%),
        radial-gradient(50% 60% at 95% 90%, rgba(166, 77, 255, 0.2), transparent 70%),
        var(--night);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
    min-height: min(86vh, 760px);
    padding-block: 64px 72px;
}

.kicker {
    margin-bottom: 14px;
    color: var(--rose);
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.3rem, 5.6vw, 4.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.lit {
    color: #ffe9fb;
    text-shadow:
        0 0 4px #ff8de0,
        0 0 14px #ff4fd0,
        0 0 34px #b13dff,
        0 0 70px #7a2dff;
}

.lead {
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
    max-width: 52ch;
    color: var(--text);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.fan {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 500px;
}

.fan li {
    position: absolute;
    width: 66%;
    border-radius: 16px;
    padding: 7px;
    background: linear-gradient(140deg, #2a2450, #0d0c18);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(166, 77, 255, 0.35);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fan li:nth-child(1) {
    top: 0;
    left: 0;
    transform: rotate(-6deg);
    z-index: 1;
}

.fan li:nth-child(2) {
    top: 96px;
    right: 0;
    transform: rotate(5deg);
    z-index: 2;
}

.fan li:nth-child(3) {
    bottom: 0;
    left: 4%;
    transform: rotate(-2deg);
    z-index: 3;
}

.fan li:hover {
    z-index: 4;
    transform: rotate(0deg) scale(1.04);
}

.fan img {
    width: 100%;
    border-radius: 11px;
}

@media (max-width: 899px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-block: 44px 56px;
        gap: 36px;
    }

    .fan {
        height: auto;
        aspect-ratio: 1.25;
        max-width: 520px;
        width: 100%;
    }

    .fan li {
        width: 70%;
    }

    .fan li:nth-child(2) {
        top: 22%;
    }

    .hero .tubes {
        opacity: 0.45;
    }
}

/* ---- sections ---- */

.band {
    padding-block: clamp(64px, 9vw, 112px);
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    max-width: 20ch;
}

.section-lead {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.12rem;
    margin-bottom: 40px;
}

/* the trail: consulting → design → making → installation, joined by a tube */

.trail-band {
    background: linear-gradient(180deg, var(--night-2), var(--night));
}

.trail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.trail::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 27px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue), var(--violet), var(--rose));
    box-shadow: 0 0 12px rgba(166, 77, 255, 0.8), 0 0 30px rgba(61, 99, 255, 0.5);
    transform-origin: left center;
}

.trail li {
    position: relative;
}

.trail-n {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--night);
    border: 3px solid var(--violet);
    box-shadow: 0 0 18px rgba(166, 77, 255, 0.6), inset 0 0 12px rgba(166, 77, 255, 0.4);
    color: #fff;
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.15rem;
}

.trail p {
    color: var(--muted);
}

@media (max-width: 799px) {
    .trail {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .trail::before {
        left: 27px;
        right: auto;
        top: 28px;
        bottom: 28px;
        width: 4px;
        height: auto;
        background: linear-gradient(180deg, var(--blue), var(--violet), var(--rose));
        transform-origin: center top;
    }

    .trail li {
        padding-left: 84px;
        min-height: 58px;
    }

    .trail-n {
        position: absolute;
        left: 0;
        top: 0;
    }
}

/* the bento of the advantages */

.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bento li {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--night-3);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.bento li:hover {
    border-color: var(--violet);
    box-shadow: 0 0 26px rgba(166, 77, 255, 0.3);
}

.bento h3 {
    margin: 0;
    font-size: 1.35rem;
}

.bento p {
    margin: 10px 0 0;
    color: var(--muted);
}

.bento-year {
    grid-row: span 2;
    background:
        radial-gradient(90% 70% at 20% 10%, rgba(61, 99, 255, 0.4), transparent 70%),
        linear-gradient(160deg, #1d1a45, #0e0c1d) !important;
}

.bento-year .big {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(4rem, 9vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #eef1ff;
    text-shadow: 0 0 10px #6f8bff, 0 0 34px #3d63ff;
    margin-bottom: 14px;
}

.bento-wide,
.bento li:last-child {
    grid-column: span 2;
}

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

    .bento-year {
        grid-row: auto;
        grid-column: span 2;
    }

    .bento li:last-child {
        grid-column: auto;
    }

    .bento li {
        padding: 22px;
        min-height: 120px;
    }

    .bento h3 {
        font-size: 1.12rem;
    }
}

/* what we make */

.make-band {
    background:
        radial-gradient(50% 80% at 0% 50%, rgba(166, 77, 255, 0.14), transparent 70%),
        var(--night-2);
    border-block: 1px solid var(--line);
}

.make-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
}

.make-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.make-list a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 20px 6px;
    border-bottom: 1px solid var(--line);
    color: #fff4e3;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    letter-spacing: -0.015em;
    transition: color 0.2s, text-shadow 0.2s, padding 0.25s;
}

.make-list a::after {
    content: "→";
    margin-left: auto;
    color: var(--amber);
    transition: transform 0.2s;
}

.make-list a:hover {
    color: #fff;
    padding-left: 14px;
    text-shadow: 0 0 12px rgba(214, 173, 255, 0.9), 0 0 30px rgba(166, 77, 255, 0.8);
}

.make-list a:hover::after {
    transform: translateX(6px);
}

.make-n {
    font-size: 0.95rem;
    color: var(--violet-text);
    min-width: 2ch;
}

@media (max-width: 799px) {
    .make-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* the sideways strip of portfolio photos */

.strip-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 28px;
}

.strip-head .section-title {
    margin: 0;
}

.strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    list-style: none;
    margin: 0;
    --edge: max(16px, (100% - 1180px) / 2);
    padding: 6px var(--edge) 22px;
    scroll-padding-inline: var(--edge);
    scrollbar-color: var(--violet) var(--night-3);
}

.strip li {
    flex: 0 0 min(300px, 78vw);
    scroll-snap-align: start;
}

.strip figure {
    margin: 0;
}

.strip a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.strip a:hover {
    border-color: var(--violet);
    box-shadow: 0 0 26px rgba(166, 77, 255, 0.45);
}

.strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s;
}

.strip a:hover img {
    transform: scale(1.05);
}

.strip figcaption {
    margin-top: 10px;
    font-size: 0.98rem;
    color: var(--muted);
}

/* the band for advertising agencies */

.agency {
    padding-block: clamp(56px, 8vw, 96px);
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(246, 132, 184, 0.35), transparent 60%),
        linear-gradient(120deg, #2b0b57, #5a1fb0 60%, #3b1585);
    color: #fff;
}

.agency-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 32px 56px;
    align-items: start;
}

.agency h2 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.agency p {
    font-size: 1.15rem;
}

.agency strong {
    color: #fff;
}

.agency a:not(.btn) {
    color: #fff;
}

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

/* the call band */

.call-band {
    position: relative;
    padding-block: clamp(64px, 9vw, 110px);
    text-align: center;
    background:
        radial-gradient(50% 90% at 50% 100%, rgba(61, 99, 255, 0.3), transparent 70%),
        var(--night);
    overflow: hidden;
}

.call-band h2 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 900;
    max-width: 18ch;
    margin-inline: auto;
}

.call-phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 36px;
    margin: 18px 0 14px;
}

.call-phones a {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    letter-spacing: -0.01em;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(242, 169, 59, 0.9), 0 0 32px rgba(242, 169, 59, 0.6);
    white-space: nowrap;
}

.call-phones a:hover {
    color: #ffe5bd;
}

/* ---- inner pages ---- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 8vw, 100px) clamp(40px, 6vw, 70px);
    background:
        radial-gradient(60% 90% at 85% 0%, rgba(61, 99, 255, 0.2), transparent 70%),
        radial-gradient(40% 70% at 100% 100%, rgba(166, 77, 255, 0.2), transparent 70%),
        var(--night);
    border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
    position: relative;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    max-width: 16ch;
}

.page-hero .lead {
    color: var(--text);
}

.page-hero .tubes {
    opacity: 0.55;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    padding: 0;
    list-style: none;
}

.chips a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    background: rgba(25, 22, 48, 0.7);
}

.chips a:hover {
    border-color: var(--violet);
    color: #fff;
    box-shadow: 0 0 16px rgba(166, 77, 255, 0.45);
}

/* services */

.svc {
    padding-block: clamp(56px, 8vw, 96px);
    border-bottom: 1px solid var(--line);
}

.svc:nth-of-type(even) {
    background: var(--night-2);
}

.svc-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px 56px;
    align-items: start;
}

.svc-n {
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--display);
    font-weight: 900;
    color: var(--violet-text);
    letter-spacing: 0.08em;
}

.svc h2 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 900;
}

.svc-text p {
    max-width: 60ch;
}

.figure-line {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 26px 0;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: var(--night-3);
    border: 1px solid var(--line);
}

.figure-line .big {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(242, 169, 59, 0.8), 0 0 28px rgba(242, 169, 59, 0.5);
    white-space: nowrap;
}

.shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shots.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shots li:only-child {
    grid-column: 1 / -1;
}

.shots figure {
    margin: 0;
}

.shots a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.shots a:hover {
    border-color: var(--violet);
    box-shadow: 0 0 22px rgba(166, 77, 255, 0.45);
}

.shots img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.shots.natural img {
    aspect-ratio: auto;
}

.shots figcaption {
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--muted);
}

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

@media (max-width: 559px) {
    .shots.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* portfolio */

.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
}

.filter[hidden] {
    display: none;
}

.filter button {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--night-3);
    color: var(--text);
    font: 700 0.98rem var(--display);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter button:hover {
    border-color: var(--violet);
}

.filter button[aria-pressed="true"] {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
    box-shadow: 0 0 18px rgba(242, 169, 59, 0.45);
}

.works {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.work[hidden] {
    display: none;
}

.work figure {
    position: relative;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--night-3);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.work figure:hover {
    border-color: var(--violet);
    box-shadow: 0 0 28px rgba(166, 77, 255, 0.35);
    transform: translateY(-3px);
}

.work-main {
    display: block;
    overflow: hidden;
}

.work-main img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-main:hover img {
    transform: scale(1.05);
}

.work-more {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30%;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

.work-more + .work-more {
    top: auto;
    right: 12px;
    margin-top: -40px;
    display: none;
}

.work-more img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.work figcaption {
    padding: 16px 18px 20px;
    color: var(--muted);
    font-size: 0.98rem;
}

.work figcaption strong {
    display: block;
    margin-bottom: 6px;
    color: #fff4e3;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.25;
}

.work-town {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(61, 99, 255, 0.18);
    color: var(--blue-text);
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

/* contact */

.duo {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 24px;
    background: var(--night-3);
    border: 1px solid var(--line);
}

.card h2 {
    font-size: 1.7rem;
    font-weight: 900;
}

.big-phones {
    display: grid;
    gap: 4px;
    margin-bottom: 22px;
}

.big-phones a {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(242, 169, 59, 0.7);
    white-space: nowrap;
}

.contact-list {
    margin: 0;
    display: grid;
    gap: 18px;
}

.contact-list dt {
    color: var(--amber);
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-list dd {
    margin: 4px 0 0;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #fff4e3;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #4a4478;
    background: var(--night);
    color: var(--text);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--violet);
    outline: none;
    box-shadow: 0 0 0 3px rgba(166, 77, 255, 0.35);
}

.contact-form ::placeholder {
    color: #9c93ad;
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: var(--rose);
}

.contact-form .btn {
    justify-self: start;
}

.form-hint {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(61, 99, 255, 0.18);
    border: 1px solid var(--blue);
}

.contact-sent strong {
    display: block;
    color: #fff;
}

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

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

.foot {
    position: relative;
    padding-top: 64px;
    background: #050509;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.98rem;
}

.foot::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue) 30%, var(--violet) 70%, transparent);
    box-shadow: 0 0 14px rgba(166, 77, 255, 0.8);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 36px;
}

.foot h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
}

.foot-logo {
    width: 180px;
    margin-bottom: 16px;
}

.foot-name {
    color: #fff4e3;
    font-weight: 700;
}

.foot address {
    font-style: normal;
}

.foot a {
    color: var(--text);
}

.foot a:hover {
    color: #fff;
}

.foot-phone {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.12rem;
    white-space: nowrap;
}

.foot-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.foot-bottom {
    margin-top: 44px;
    padding-block: 22px 28px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

.foot-bottom p {
    margin: 0;
}

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

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

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(50% 60% at 70% 20%, rgba(61, 99, 255, 0.25), transparent 70%),
        radial-gradient(50% 60% at 20% 90%, rgba(166, 77, 255, 0.25), transparent 70%),
        var(--night);
}

.not-found > div {
    position: relative;
    max-width: 620px;
}

.not-found img {
    width: 180px;
    margin-bottom: 30px;
}

.not-found h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 900;
}

.not-found h2 {
    margin-top: 40px;
    font-size: 1.6rem;
}

/* ---- scroll reveals: only where the browser ties animations to scrolling ---- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .trail::before {
            animation: light-up linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 45%;
        }

        .trail li,
        .bento li,
        .make-list li,
        .work,
        .shots li,
        .svc-text {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
    }
}

@keyframes light-up {
    from {
        transform: scaleX(0);
        opacity: 0.2;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@media (max-width: 799px) {
    @keyframes light-up {
        from {
            transform: scaleY(0);
            opacity: 0.2;
        }

        to {
            transform: scaleY(1);
            opacity: 1;
        }
    }
}

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

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

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

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
