:root {
    --bg: #030607;
    --panel: #0a0f12;
    --panel-2: #10161a;
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(168, 255, 34, 0.42);
    --text: #f8f8f4;
    --muted: #aeb6b5;
    --lime: #a8ff22;
    --lime-2: #d5ff54;
    --amber: #f1c46a;
    --sky: #8cc9ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 8px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 58% 6%, rgba(168, 255, 34, 0.11), transparent 28rem),
        radial-gradient(circle at 12% 28%, rgba(140, 201, 255, 0.08), transparent 30rem),
        linear-gradient(180deg, #010304 0%, var(--bg) 48%, #050809 100%);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 55%);
}

img,
svg {
    display: block;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1080px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link,
.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;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    z-index: 20;
    left: 16px;
    top: 16px;
    padding: 10px 14px;
    color: #071004;
    background: var(--lime);
    border-radius: var(--radius);
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 5, 6, 0.78);
    backdrop-filter: blur(18px);
    transition: background .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
    background: rgba(2, 5, 6, .92);
    box-shadow: 0 14px 50px rgba(0,0,0,.32);
}

.header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(168,255,34,.18));
}

.brand span span,
h1 span,
h2 span {
    color: var(--lime);
}

.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 34px;
    font-weight: 700;
    font-size: .88rem;
}

.site-nav a {
    position: relative;
    color: #f1f4ef;
    transition: color .2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--lime);
    box-shadow: 0 0 16px rgba(168,255,34,.7);
    transition: transform .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: var(--lime);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    color: var(--text);
}

.nav-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: currentColor;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 900;
    font-size: .9rem;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.28) 42%, transparent 56%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn svg,
.card-icon svg,
.trust-row svg,
.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-img-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.discord-mark {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    background: currentColor;
    vertical-align: -0.18em;
    mask: url("../img/discord-icon.png") center / contain no-repeat;
    -webkit-mask: url("../img/discord-icon.png") center / contain no-repeat;
}

.btn-primary {
    color: #071004;
    background: linear-gradient(135deg, var(--lime), var(--lime-2));
    box-shadow: 0 0 30px rgba(168, 255, 34, 0.22);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0,0,0,.28), 0 0 28px rgba(168,255,34,.16);
}

.btn-small {
    min-height: 42px;
    padding-inline: 18px;
    font-size: .82rem;
}

.hero {
    min-height: 640px;
    display: grid;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
    align-items: center;
    gap: 42px;
    padding: 78px 0 42px;
}

.eyebrow {
    width: max-content;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 5px 12px;
    color: var(--lime);
    border: 1px solid rgba(168, 255, 34, 0.38);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
    overflow-wrap: anywhere;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2.35rem, 4.4vw, 4rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 560px;
    font-size: clamp(2.85rem, 5.35vw, 4.35rem);
    line-height: .98;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(1.65rem, 2.45vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.24;
}

.hero-text,
.page-hero p {
    max-width: 540px;
    color: var(--muted);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 44px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trust-row div {
    display: flex;
    gap: 12px;
    min-width: 0;
    color: var(--lime);
}

.trust-row span {
    display: grid;
    color: var(--muted);
    font-size: .84rem;
}

.trust-row strong {
    color: #fff;
    font-size: .92rem;
}

.hero-visual {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
    isolation: isolate;
    perspective: 900px;
}

.grid-glow {
    position: absolute;
    inset: 70px 30px 100px;
    border: 1px solid rgba(255,255,255,.04);
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: .7;
    mask-image: radial-gradient(circle, #000 15%, transparent 70%);
}

.hero-logo {
    position: relative;
    z-index: 3;
    width: min(390px, 72%);
    filter: drop-shadow(0 28px 45px rgba(168, 255, 34, .18));
    animation: logo-breathe 5s ease-in-out infinite;
}

.brand-word {
    position: absolute;
    z-index: 4;
    bottom: 76px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .22em;
}

.brand-word span {
    color: var(--lime);
}

.floating-field {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.spark {
    position: absolute;
    display: block;
}

.mc-block {
    position: absolute;
    display: block;
    z-index: 2;
    width: var(--size);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 22px 32px rgba(0,0,0,.46)) drop-shadow(0 0 16px rgba(168,255,34,.11));
    animation: block-float 6s ease-in-out infinite;
    transition: filter .2s ease, scale .2s ease, rotate .2s ease;
}

.mc-block:hover {
    scale: 1.12;
    rotate: 3deg;
    filter: drop-shadow(0 26px 40px rgba(0,0,0,.52)) drop-shadow(0 0 28px rgba(168,255,34,.34));
}

.block-a { left: 8%; top: 23%; --size: 58px; animation-delay: -.4s; }
.block-b { right: 7%; top: 36%; --size: 46px; animation-delay: -1.2s; }
.block-c { left: 23%; bottom: 18%; --size: 32px; animation-delay: -2s; }
.block-d { right: 23%; top: 16%; --size: 24px; animation-delay: -3s; }
.block-e { right: 14%; bottom: 17%; --size: 34px; animation-delay: -4s; }

.line {
    position: absolute;
    width: 170px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lime), transparent);
    transform: rotate(-47deg);
}

.line-a {
    left: 6%;
    bottom: 24%;
}

.line-b {
    right: 3%;
    top: 23%;
}

.spark {
    width: 8px;
    height: 8px;
    background: var(--lime);
    box-shadow: 0 0 26px var(--lime);
    transform: rotate(45deg);
    animation: spark-pulse 2.6s ease-in-out infinite;
}

.spark-a {
    left: 21%;
    bottom: 33%;
}

.spark-b {
    right: 12%;
    top: 23%;
    animation-delay: -1s;
}

.section {
    padding: 72px 0;
    border-bottom: 1px solid var(--line);
}

.section.compact {
    padding-top: 28px;
}

.section-heading {
    max-width: 540px;
}

.service-grid,
.project-grid,
.review-grid,
.contact-grid,
.admin-stats {
    display: grid;
    gap: 16px;
}

.service-grid {
    grid-template-columns: repeat(3, 1fr);
}

.project-grid {
    grid-template-columns: repeat(4, 1fr);
}

.project-grid-large {
    grid-template-columns: repeat(3, 1fr);
}

.review-grid {
    grid-template-columns: repeat(3, 1fr);
}

.contact-grid,
.admin-stats {
    grid-template-columns: repeat(3, 1fr);
}

.service-card,
.review-card,
.project-card,
.admin-card,
.admin-row {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.018));
    box-shadow: 0 12px 44px rgba(0,0,0,.22);
}

.service-card,
.review-card,
.admin-card {
    padding: 22px;
}

.service-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.service-card,
.review-card,
.project-card {
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.service-card:hover,
.review-card:hover,
.project-card:hover {
    border-color: rgba(168,255,34,.34);
    box-shadow: 0 18px 58px rgba(0,0,0,.36), 0 0 35px rgba(168,255,34,.09);
}

.card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    color: #071004;
    background: linear-gradient(135deg, var(--lime), var(--lime-2));
    border-radius: var(--radius);
    box-shadow: 0 0 34px rgba(168, 255, 34, 0.18);
}

.card-icon.image-icon {
    overflow: hidden;
    background: linear-gradient(135deg, #5865f2, #9aa6ff);
}

.card-icon.image-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.service-card p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .92rem;
}

.service-list {
    display: grid;
    gap: 9px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: #f3f5ef;
    font-size: .92rem;
}

.service-list li {
    position: relative;
    padding-left: 28px;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .02em;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--lime);
    border-radius: 50%;
    color: var(--lime);
    font-size: .72rem;
    font-weight: 900;
}

.service-included {
    display: grid;
    gap: 4px;
    margin: auto 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(168,255,34,.32);
    border-radius: var(--radius);
    background: rgba(168,255,34,.055);
}

.service-included strong {
    color: var(--lime);
    text-transform: uppercase;
    font-size: .84rem;
}

.service-included span {
    color: var(--muted);
    font-size: .9rem;
}

.service-card a {
    width: 32px;
    color: var(--lime);
}

.service-card a svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.portfolio-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 18px;
}

.portfolio-head .eyebrow {
    margin-bottom: 10px;
}

.portfolio-head h2 {
    margin-bottom: 0;
}

.project-card {
    overflow: hidden;
    background: var(--panel);
}

.project-art {
    position: relative;
    height: 128px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(95, 161, 242, .75), rgba(2, 5, 6, .22) 47%, rgba(2, 5, 6, .75) 100%),
        linear-gradient(135deg, #233d26, #889a4d);
}

.project-art > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease, filter .28s ease;
}

.project-card.has-image .project-art::before,
.project-card.has-image .project-art::after {
    content: none;
}

.project-card.has-image .project-art span {
    display: none;
}

.project-card:hover .project-art > img {
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.05);
}

.project-grid-large .project-art {
    height: 172px;
}

.project-art::before,
.project-art::after,
.project-art span {
    content: "";
    position: absolute;
    bottom: 0;
    display: block;
}

.project-art::before {
    left: -20px;
    width: 120%;
    height: 42px;
    background: repeating-linear-gradient(90deg, #20301f 0 24px, #2f4427 24px 48px);
    transform: skewY(-8deg);
}

.project-art::after {
    right: 26px;
    width: 54px;
    height: 86px;
    background: repeating-linear-gradient(0deg, #705638 0 18px, #87683f 18px 36px);
    box-shadow: -72px 16px 0 -10px #5f4935, -128px 28px 0 -14px #786039;
}

.project-art span:nth-child(1) {
    left: 28px;
    width: 46px;
    height: 82px;
    background: #d3d8c9;
    box-shadow: 0 0 0 8px rgba(0,0,0,.12);
}

.project-art span:nth-child(2) {
    left: 92px;
    width: 34px;
    height: 54px;
    background: #a8ff22;
    opacity: .72;
}

.project-art span:nth-child(3) {
    right: 88px;
    width: 26px;
    height: 62px;
    background: #242a30;
}

.theme-night .project-art {
    background:
        radial-gradient(circle at 34% 26%, rgba(168,255,34,.7), transparent 4px),
        radial-gradient(circle at 70% 22%, rgba(255,255,255,.8), transparent 2px),
        linear-gradient(180deg, #17233f 0%, #0b1022 52%, #060808 100%);
}

.theme-city .project-art {
    background: linear-gradient(180deg, #7eb8e6, #d2b985 54%, #29251f);
}

.theme-valley .project-art {
    background: linear-gradient(160deg, #89c9ff, #d8c38d 42%, #314f34 68%, #111714);
}

.project-info {
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, rgba(5,8,9,.58), rgba(5,8,9,.96));
}

.project-info h3,
.project-info p {
    margin: 0;
}

.project-info p {
    color: var(--muted);
    font-size: .86rem;
}

.project-tag {
    color: var(--lime) !important;
    font-weight: 800;
}

.review-card {
    min-height: 190px;
}

.stars {
    margin-bottom: 10px;
    color: var(--lime);
    font-size: 1.15rem;
    letter-spacing: 0;
}

blockquote {
    margin: 0 0 22px;
    font-size: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #071004;
    background: linear-gradient(135deg, #fff, var(--lime));
    font-weight: 900;
}

.review-author div {
    display: grid;
}

.review-author small {
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.about-grid p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.legal-content {
    max-width: 860px;
}

.legal-content h2 {
    margin-top: 34px;
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
}

.legal-content a {
    color: var(--lime);
}

.legal-content ul {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding-left: 20px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 44px;
    border-bottom: 1px solid var(--line);
}

.page-hero::after {
    content: none;
}

.page-hero-logo {
    position: absolute;
    right: max(24px, calc((100vw - 1080px) / 2));
    top: 50%;
    width: clamp(150px, 18vw, 250px);
    height: auto;
    opacity: .16;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 34px rgba(168,255,34,.22));
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.cta-section {
    padding-top: 28px;
}

.cta-box {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 30px 34px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background:
        linear-gradient(110deg, rgba(168,255,34,.12), transparent 38%),
        linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
}

.discord-cta {
    min-height: 218px;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 250px);
    padding: 32px 34px;
    border-color: var(--line-strong);
    background:
        radial-gradient(circle at 16% 52%, rgba(168,255,34,.16), transparent 14rem),
        linear-gradient(110deg, rgba(168,255,34,.12), transparent 42%),
        linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
}

.discord-cta::before,
.discord-cta::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background:
        linear-gradient(90deg, rgba(168,255,34,.11) 0 42px, rgba(255,255,255,.035) 42px 84px);
    border-radius: 0;
    opacity: .48;
    filter: none;
}

.discord-cta::before {
    left: -76px;
    top: -92px;
}

.discord-cta::after {
    right: -58px;
    top: -64px;
}

.discord-cta .cta-copy {
    grid-column: 1;
    max-width: 620px;
    align-self: center;
}

.discord-cta h2 {
    max-width: 560px;
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 2.25vw, 2.25rem);
    line-height: 1.08;
    text-transform: none;
}

.discord-cta h2 span {
    color: var(--lime);
}

.discord-cta h2 .discord-mark {
    width: .9em;
    height: .9em;
    color: var(--lime);
}

.discord-cta p {
    max-width: 560px;
    color: var(--muted);
    font-size: .98rem;
    font-weight: 400;
}

.discord-cta .btn-primary {
    min-width: min(100%, 430px);
    margin-top: 12px;
}

.cta-box:not(.discord-cta)::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -44px;
    width: 220px;
    height: 150px;
    background: repeating-linear-gradient(90deg, rgba(168,255,34,.12) 0 44px, rgba(255,255,255,.04) 44px 88px);
    transform: rotate(-12deg);
    opacity: .7;
}

.cta-box > div {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    max-width: 560px;
    margin-bottom: 8px;
}

.cta-box p {
    max-width: 560px;
    margin-bottom: 0;
    color: var(--muted);
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.cta-discord-art {
    position: relative;
    justify-self: end;
    align-self: end;
    z-index: 1;
    width: clamp(150px, 18vw, 220px);
    opacity: 1;
    margin: 0 2px -18px 0;
    transform: rotate(4deg);
    filter: drop-shadow(22px 28px 16px rgba(0,0,0,.28));
    pointer-events: none;
}

.cta-actions small {
    color: var(--lime);
}

.site-footer {
    padding: 34px 0 22px;
    background: rgba(0,0,0,.22);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .85fr 1fr 1.15fr;
    gap: 54px;
}

.footer-grid h3 {
    margin-bottom: 12px;
    font-size: .95rem;
}

.footer-grid a:not(.brand) {
    display: table;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .9rem;
}

.footer-grid a:hover {
    color: var(--lime);
}

.footer-brand p {
    max-width: 260px;
    margin: 12px 0 18px;
    color: var(--muted);
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 30px;
    height: 30px;
    display: grid !important;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(255,255,255,.08);
}

.socials .discord-mark {
    color: #fff;
    width: 22px;
    height: 22px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    color: var(--muted);
    font-size: .86rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom div {
    display: flex;
    gap: 28px;
}

.admin-page .page-hero {
    padding-top: 70px;
}

.contact-grid-visual {
    grid-template-columns: 1.15fr .85fr .85fr;
}

.contact-discord-feature {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding-right: 190px;
}

.contact-discord-art {
    position: absolute;
    right: -22px;
    bottom: -28px;
    width: clamp(150px, 18vw, 230px);
    filter: drop-shadow(0 24px 30px rgba(0,0,0,.4));
    pointer-events: none;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.admin-shell {
    display: grid;
    place-items: center;
}

.admin-card {
    width: min(100%, 460px);
    display: grid;
    gap: 14px;
}

.admin-card h1,
.admin-card h2 {
    margin-bottom: 4px;
}

.admin-help,
.alert {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.alert {
    padding: 10px 12px;
    border: 1px solid rgba(255, 106, 106, .34);
    border-radius: var(--radius);
    color: #ffd0d0;
    background: rgba(255, 106, 106, .08);
}

.alert.success {
    border-color: rgba(168,255,34,.34);
    color: var(--lime);
    background: rgba(168,255,34,.08);
}

label {
    display: grid;
    gap: 7px;
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 13px;
    color: var(--text);
    background: rgba(255,255,255,.055);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(168,255,34,.55);
    box-shadow: 0 0 0 3px rgba(168,255,34,.12);
}

.admin-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    align-items: start;
}

.admin-list {
    display: grid;
    gap: 12px;
}

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

.admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

.admin-row small {
    display: block;
    color: var(--muted);
}

.admin-preview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-actions form {
    margin: 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--lime);
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.icon-btn.danger {
    color: #ff8d8d;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px) scale(.98);
    transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes block-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -18px; }
}

@keyframes logo-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.015); }
}

@keyframes spark-pulse {
    0%, 100% { opacity: .55; scale: 1; }
    50% { opacity: 1; scale: 1.45; }
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav-toggle {
        display: grid;
    }

    .header-cta {
        display: none;
    }

    .site-nav {
        position: fixed;
        left: 20px;
        right: 20px;
        top: 88px;
        display: grid;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(6, 10, 12, .96);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 14px;
    }

    .site-nav a::after {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 54px;
    }

    .hero-visual {
        min-height: 380px;
    }

    .brand-word {
        bottom: 48px;
    }

    .service-grid,
    .project-grid,
    .project-grid-large,
    .review-grid,
    .contact-grid,
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .footer-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid-visual {
        grid-template-columns: 1fr 1fr;
    }

    .contact-discord-feature {
        grid-column: 1 / -1;
    }

    .cta-box {
        grid-template-columns: 1fr;
    }

    .discord-cta {
        grid-template-columns: minmax(0, 1fr) minmax(130px, 190px);
        padding: 28px 24px;
    }

    .cta-actions {
        justify-items: start;
    }

    .discord-cta .cta-copy {
        grid-column: 1;
    }

    .cta-discord-art {
        grid-column: 2;
        width: min(28vw, 180px);
        margin-bottom: -12px;
        transform: rotate(4deg);
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1080px);
    }

    .brand {
        font-size: 1.08rem;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 40px 0 22px;
    }

    .eyebrow {
        font-size: .68rem;
    }

    h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
        line-height: 1.06;
    }

    .hero h1 {
        max-width: 360px;
        font-size: clamp(2.25rem, 11.2vw, 3rem);
        line-height: 1.02;
    }

    h2 {
        font-size: clamp(1.45rem, 7.2vw, 1.85rem);
        line-height: 1.12;
    }

    h3 {
        font-size: .98rem;
    }

    .hero-actions,
    .portfolio-head,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn,
    .portfolio-head .btn,
    .cta-actions,
    .cta-actions .btn {
        width: 100%;
    }

    .trust-row,
    .service-grid,
    .project-grid,
    .project-grid-large,
    .review-grid,
    .contact-grid,
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .page-hero-logo {
        right: 14px;
        width: 130px;
        opacity: .1;
    }

    .contact-discord-feature {
        min-height: 250px;
        padding-right: 120px;
    }

    .contact-discord-art {
        width: 150px;
        right: -28px;
        bottom: -18px;
    }

    .hero-visual {
        min-height: 315px;
    }

    .hero-logo {
        width: min(290px, 76%);
    }

    .brand-word {
        bottom: 28px;
        letter-spacing: .14em;
    }

    .block-a {
        left: 1%;
    }

    .block-b {
        right: 0;
    }

    .section {
        padding: 52px 0;
    }

    .service-card {
        min-height: 190px;
    }

    .project-art,
    .project-grid-large .project-art {
        height: 152px;
    }

    .cta-box {
        padding: 24px 20px;
    }

    .discord-cta {
        grid-template-columns: 1fr;
        padding: 24px 18px 0;
    }

    .discord-cta h2 {
        max-width: 100%;
        font-size: clamp(1.35rem, 7.2vw, 1.75rem);
    }

    .discord-cta p {
        font-size: 1rem;
    }

    .cta-discord-art {
        grid-column: 1;
        justify-self: end;
        width: min(52vw, 170px);
        margin: -10px 0 -12px;
    }

    .footer-bottom div {
        flex-direction: column;
        gap: 8px;
    }

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

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

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
