:root {
    --bg: #01080e;
    --bg-soft: #0a1622;
    --bg-deep: #00060a;
    --bg-elev: #0d1a28;
    --ink: #ffffff;
    --muted: #a0aec0;
    --teal-deep: #07384a;
    --teal: #00d4ff;
    --teal-bright: #00d4ff;
    --mint: #e8f9ff;
    --line: rgba(0, 212, 255, 0.18);
    --line-strong: rgba(0, 212, 255, 0.45);
    --ink-on-accent: #01080e;
    --glow: 0 0 18px rgba(0, 212, 255, 0.45), 0 0 36px rgba(0, 212, 255, 0.22);
    --glow-strong: 0 0 24px rgba(0, 212, 255, 0.65), 0 0 48px rgba(0, 212, 255, 0.35);
    --glow-soft: 0 0 28px rgba(0, 212, 255, 0.18), 0 12px 40px rgba(0, 0, 0, 0.35);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-btn: 7px;
    --font-display: "Sora", sans-serif;
    --font-body: "IBM Plex Sans", sans-serif;
    --font-mono: "Share Tech Mono", ui-monospace, monospace;
    --font-ui: "Exo 2", "Sora", sans-serif;
    --shell: min(1180px, calc(100% - 2.5rem));
    --header-h: 4.25rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1100px 520px at 80% -8%, rgba(0, 212, 255, 0.12), transparent 55%),
        radial-gradient(900px 480px at -8% 18%, rgba(20, 60, 95, 0.35), transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    overflow-x: clip;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: var(--teal-bright);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--mint);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 1rem;
}

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

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.visually-hidden,
.skip-link {
    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 {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    padding: 0.75rem 1rem;
    background: var(--teal);
    color: var(--ink-on-accent);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.85rem 0 0;
    background: transparent;
    pointer-events: none;
}

.site-header .shell,
.site-header .header-block,
.site-header a,
.site-header button,
.site-header .site-nav {
    pointer-events: auto;
}

main {
    padding-top: calc(var(--header-h) + 1.4rem);
}

.page-home main,
.page-outsourcing main {
    padding-top: 0;
}

.header-block {
    position: relative;
    min-height: var(--header-h);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0 1.1rem;
    overflow: hidden;
    background: rgba(12, 18, 28, 0.42);
    border: 1px solid rgba(160, 174, 192, 0.38);
    border-radius: 16px;
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 8px 28px rgba(0, 0, 0, 0.28);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled .header-block {
    background: rgba(10, 16, 26, 0.55);
    border-color: rgba(160, 174, 192, 0.48);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 10px 32px rgba(0, 0, 0, 0.38);
}

.brand {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    min-width: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    padding: 0;
}

.brand:hover {
    color: inherit;
}

.brand-logo {
    width: auto;
    height: 3.15rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.28));
}

.site-nav {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.nav-list {
    display: flex;
    align-items: stretch;
    gap: 0.05rem;
}

.nav-list li {
    display: flex;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 100%;
    padding: 0.45rem 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.25s var(--ease);
}

/* Soft upward glow — blurred so edges don't show */
.nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 160%;
    height: 130%;
    translate: -50% 0;
    background: radial-gradient(
        ellipse 42% 55% at 50% 100%,
        rgba(0, 212, 255, 0.7) 0%,
        rgba(0, 212, 255, 0.28) 32%,
        rgba(0, 212, 255, 0.08) 55%,
        transparent 72%
    );
    filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease);
    z-index: 0;
}

/* Hard line on the bottom border of the header block */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0;
    height: 3px;
    background: #5cefff;
    border-radius: 2px 2px 0 0;
    box-shadow:
        0 0 8px rgba(0, 212, 255, 0.95),
        0 -4px 16px rgba(0, 212, 255, 0.55),
        0 -10px 28px rgba(0, 212, 255, 0.28);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s var(--ease);
    z-index: 1;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.is-active {
    color: #fff;
}

.nav-link:hover::before,
.nav-link.is-active::before {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-contact {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.45rem;
    min-height: 2.2rem;
    padding: 0.4rem 0.9rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 212, 255, 0.7);
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.16);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header-contact:hover,
.header-contact.is-active {
    color: #fff;
    border-color: #7aeeff;
    background: rgba(0, 212, 255, 0.12);
    box-shadow:
        0 0 16px rgba(0, 212, 255, 0.55),
        0 0 36px rgba(0, 212, 255, 0.28);
}

.header-contact-icon {
    flex: 0 0 auto;
    color: #5cefff;
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.35));
}

.nav-toggle {
    display: none;
    align-self: center;
    width: 2.85rem;
    height: 2.85rem;
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: var(--radius-sm);
    background: rgba(0, 212, 255, 0.08);
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.18);
    position: relative;
    z-index: 1;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    content: "";
    transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle-bars::before {
    transform: translateY(-6px);
}

.nav-toggle-bars::after {
    transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-2px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.05rem;
    padding: 0.8rem 1.45rem;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.25s var(--ease),
        color 0.25s var(--ease),
        border-color 0.25s var(--ease),
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}

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

.btn-primary {
    background: linear-gradient(180deg, #33ddff 0%, var(--teal) 100%);
    color: var(--ink-on-accent);
    border-color: rgba(122, 238, 255, 0.55);
    box-shadow: var(--glow);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #66e6ff 0%, #14d9ff 100%);
    color: var(--ink-on-accent);
    box-shadow: var(--glow-strong);
}

.btn-ghost {
    background: rgba(0, 212, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.6);
    color: var(--ink);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.12);
}

.btn-ghost:hover {
    border-color: #7aeeff;
    color: var(--mint);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow);
}

.btn-small {
    min-height: 2.4rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
}

.hero-home {
    align-items: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.04);
    animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(1, 8, 14, 0.92) 0%, rgba(4, 12, 14, 0.72) 48%, rgba(4, 12, 14, 0.35) 100%),
        linear-gradient(180deg, rgba(7, 20, 22, 0.2) 0%, rgba(4, 12, 14, 0.88) 100%);
}

.hero-content {
    padding: clamp(3rem, 10vh, 6rem) 0 clamp(3.5rem, 9vh, 5.5rem);
    max-width: 42rem;
}

.hero-home .hero-content {
    padding: 2rem 0;
}

.hero-heading {
    margin: 0 0 1rem;
    display: grid;
    gap: 1rem;
}

.hero-brand {
    display: block;
    font-family: var(--font-ui);
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.95;
    color: var(--mint);
}

.hero-title {
    display: block;
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    font-weight: 500;
    max-width: 18ch;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.hero-home .hero-title {
    max-width: none;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    color: var(--teal-bright);
}

.hero-compact {
    min-height: 78svh;
}

.hero-lead {
    margin: 0 0 1.75rem;
    max-width: 38ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@keyframes hero-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

/* Sections */
.section {
    padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-head {
    max-width: 38rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2,
.page-hero h1,
.coop-copy h2,
.cta-band h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.section-head p,
.page-lead {
    color: var(--muted);
    font-size: 1.08rem;
}

.page-hero {
    padding: clamp(3rem, 8vw, 5rem) 0 1rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--teal-bright);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* About */
.section-about {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13, 26, 40, 0.72), transparent 70%);
}

.about-layout {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.about-prose {
    max-width: 46rem;
    display: grid;
    gap: 1.15rem;
}

.about-prose p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.about-lead,
.about-closing {
    color: var(--ink) !important;
}

.about-lead {
    font-size: 1.18rem !important;
}

.about-closing {
    font-family: var(--font-display);
    font-size: 1.2rem !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0.55rem 0.9rem;
    color: var(--ink);
    text-decoration: none;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.18);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.about-link:hover {
    color: var(--mint);
    border-color: rgba(0, 212, 255, 0.55);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.about-link-code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--teal-bright);
}

.about-link-label {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.about-link-arrow {
    font-family: var(--font-mono);
    opacity: 0.7;
}

/* Services */
.section-services {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13, 26, 40, 0.72), transparent 70%);
}

.service-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.service-list li {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}

.service-index {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--teal-bright);
    font-weight: 600;
}

.service-text {
    font-size: 1.05rem;
}

/* Why */
.section-why {
    background:
        linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.08) 40%, transparent);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.why-item {
    position: relative;
    min-height: 11.5rem;
    padding: 1.35rem 1.25rem;
    overflow: hidden;
    background: rgba(13, 26, 40, 0.55);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
}

.why-icon {
    position: absolute;
    right: -0.6rem;
    bottom: -0.9rem;
    width: 8.5rem;
    height: 8.5rem;
    color: rgba(0, 212, 255, 0.12);
    pointer-events: none;
    z-index: 0;
}

.why-body {
    position: relative;
    z-index: 1;
    max-width: 18rem;
}

.why-item h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: var(--ink);
}

.why-item p {
    color: var(--muted);
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
}

/* Coop / payment */
.coop-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.coop-list {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.coop-list li {
    display: grid;
    gap: 0.35rem;
    padding-left: 1rem;
    border-left: 2px solid var(--teal-bright);
}

.coop-list strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.coop-list span {
    color: var(--muted);
}

.payment-panel {
    padding: 1.75rem;
    background: linear-gradient(160deg, rgba(0, 212, 255, 0.16), rgba(10, 22, 34, 0.92));
    border: 1px solid var(--line);
}

.payment-panel h3 {
    font-size: 1.3rem;
}

.payment-panel ul {
    margin: 1rem 0 1.5rem;
    display: grid;
    gap: 0.65rem;
}

.payment-panel li {
    padding-left: 1.1rem;
    position: relative;
    color: var(--mint);
}

.payment-panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--teal-bright);
}

/* CTA */
.section-cta {
    padding-top: 0;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.75rem, 4vw, 2.5rem) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-band p {
    margin: 0;
    color: var(--muted);
    max-width: 40ch;
}

/* Contacts — business card */
.section-vcard {
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.vcard {
    width: min(100%, 52rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: stretch;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background:
        linear-gradient(145deg, rgba(0, 212, 255, 0.12), rgba(1, 8, 14, 0.92) 55%),
        rgba(10, 22, 34, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.vcard::before,
.vcard::after {
    content: "";
    position: absolute;
    width: 5rem;
    height: 5rem;
    pointer-events: none;
}

.vcard::before {
    top: 0;
    left: 0;
    border-top: 2px solid var(--teal-bright);
    border-left: 2px solid var(--teal-bright);
}

.vcard::after {
    right: 0;
    bottom: 0;
    border-right: 2px solid var(--teal-bright);
    border-bottom: 2px solid var(--teal-bright);
}

.vcard-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.vcard-eyebrow {
    margin: 0 0 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-bright);
}

.vcard-title {
    margin: 0 0 0.85rem;
    font-family: var(--font-ui);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.vcard-lead {
    margin: 0 0 1.75rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 28ch;
}

.vcard-list {
    display: grid;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 212, 255, 0.18);
}

.vcard-list li {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
}

.vcard-key {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.vcard-list a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-bottom: 1px solid transparent;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.vcard-list a:hover {
    color: var(--mint);
    border-bottom-color: rgba(0, 212, 255, 0.55);
}

.vcard-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(1, 8, 14, 0.65);
    border: 1px solid rgba(0, 212, 255, 0.14);
    position: relative;
    z-index: 1;
}

.vcard-qr {
    width: min(100%, 13.5rem);
    height: auto;
    display: block;
}

.vcard-qr-caption {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Projects */
.page-projects {
    position: relative;
}

.page-projects main,
.page-projects .site-footer {
    position: relative;
    z-index: 1;
}

.page-projects .site-header {
    z-index: 50;
}

.projects-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 80% 10%, rgba(0, 212, 255, 0.08), transparent 60%),
        radial-gradient(700px 380px at 10% 70%, rgba(0, 120, 180, 0.1), transparent 65%);
}

.projects-fx-wave {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 160%;
    height: 160%;
    margin: 0;
    transform: translate(-50%, -50%) scale(1.35);
    transform-origin: center center;
    opacity: 0.72;
    filter: drop-shadow(0 0 2px rgba(0, 212, 255, 0.22));
    animation: projects-wave-drift 36s linear infinite;
}

@keyframes projects-wave-drift {
    from { transform: translate(-50%, -50%) scale(1.35) translate3d(-1.2%, 0, 0); }
    to { transform: translate(-50%, -50%) scale(1.35) translate3d(1.2%, -0.8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .projects-fx-wave {
        animation: none;
    }
}

.section-projects {
    padding-top: 1.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    align-items: stretch;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    height: 100%;
    padding: 1.2rem 1.2rem 1.15rem;
    background: rgba(13, 26, 40, 0.72);
    border: 1px solid rgba(0, 212, 255, 0.16);
    clip-path: none;
}

.project-code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--teal-bright);
    margin-bottom: 0.85rem;
}

.project-logo-wrap {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 4.75rem;
    height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: var(--radius);
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.4rem;
}

.project-copy {
    text-align: left;
    padding-right: 5.5rem;
    width: 100%;
    flex: 1 1 auto;
}

.project-name {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
}

.project-subtitle {
    margin: 0 0 0.75rem;
    color: var(--teal-bright);
    font-size: 0.95rem;
    font-weight: 500;
}

.project-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    margin-top: 1rem;
    min-height: 2.4rem;
    padding: 0.5rem 0.95rem;
    color: var(--ink-on-accent);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--teal);
    border: 0;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-link:hover {
    color: var(--ink-on-accent);
    background: var(--teal-bright);
    transform: translateY(-1px);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.gallery-item {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: #0a1b1e;
    cursor: zoom-in;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
    filter: saturate(0.92) contrast(1.05);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.08);
}

.lightbox {
    border: 0;
    padding: 0;
    max-width: min(1100px, 94vw);
    background: transparent;
}

.lightbox::backdrop {
    background: rgba(1, 8, 14, 0.92);
}

.lightbox img {
    max-height: 86vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    background: rgba(10, 22, 34, 0.92);
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

/* Footer */
.site-footer {
    padding: 2.75rem 0 2rem;
    border-top: 1px solid var(--line);
    background: rgba(1, 8, 14, 0.75);
}

.footer-inner {
    display: grid;
    gap: 1.25rem;
}

.footer-brand strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.footer-brand p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
}

.footer-links a {
    color: var(--ink);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--teal-bright);
}

.footer-copy {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Motion */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--delay, 0ms);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-media img { animation: none; transform: none; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn:hover,
    .gallery-item img {
        transition: none;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-link {
        padding: 0.5rem 0.65rem;
        font-size: 0.78rem;
    }

    .header-contact {
        padding: 0.5rem 0.85rem;
        font-size: 0.76rem;
    }
}

@media (max-width: 900px) {
    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 980px) {
    :root {
        --shell: min(1120px, calc(100% - 2rem));
        --header-h: 3.7rem;
    }

    body {
        background-attachment: scroll;
        font-size: 1rem;
    }

    .site-header {
        padding: 0.55rem 0 0;
    }

    .header-block {
        padding: 0 0.75rem;
        overflow: visible;
        border-radius: 14px;
        background: rgba(6, 12, 20, 0.92);
        border-color: rgba(160, 174, 192, 0.42);
        backdrop-filter: blur(20px) saturate(1.2);
        -webkit-backdrop-filter: blur(20px) saturate(1.2);
    }

    .site-header.is-scrolled .header-block {
        background: rgba(4, 10, 16, 0.96);
    }

    main {
        padding-top: calc(var(--header-h) + 1.25rem);
    }

    .page-home .hero,
    .page-outsourcing .hero {
        padding-top: calc(var(--header-h) + 1.1rem);
    }

    .brand-logo {
        height: 2.45rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.6rem;
        height: 2.6rem;
        flex: 0 0 auto;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.45rem);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-left: 0;
        padding: 0.75rem 0.85rem 1rem;
        background: rgba(4, 10, 16, 0.98);
        border: 1px solid rgba(0, 212, 255, 0.35);
        border-radius: var(--radius);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 212, 255, 0.12);
        max-height: min(70vh, 28rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.1rem;
    }

    .nav-link {
        min-width: 0;
        min-height: 2.85rem;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        overflow: visible;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link::after {
        left: 0.35rem;
        right: 0.35rem;
        bottom: 0.35rem;
        height: 2px;
    }

    .header-contact {
        width: 100%;
        justify-content: center;
        min-height: 2.85rem;
        border-radius: var(--radius);
    }

    .hero {
        min-height: 100svh;
        min-height: 100dvh;
    }

    .hero-compact {
        min-height: auto;
        padding-bottom: 2.5rem;
    }

    .hero-content {
        max-width: none;
        padding: 1.25rem 0 2.75rem;
    }

    .hero-home .hero-content {
        padding: 1rem 0 2.25rem;
    }

    .hero-brand {
        font-size: clamp(2rem, 11vw, 3.1rem);
        word-break: break-word;
    }

    .hero-title,
    .hero-home .hero-title {
        font-size: clamp(1.2rem, 4.6vw, 1.55rem);
        max-width: none;
    }

    .hero-lead {
        font-size: 0.98rem;
        max-width: none;
        margin-bottom: 1.35rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: clamp(2.75rem, 8vw, 4.5rem) 0;
    }

    .page-hero {
        padding: 1.25rem 0 0.5rem;
    }

    .page-hero h1 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .page-lead,
    .section-head p {
        font-size: 1rem;
    }

    .why-grid,
    .gallery-grid,
    .projects-grid,
    .coop-layout {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .why-item {
        min-height: 0;
        padding: 1.15rem 1.1rem;
    }

    .why-icon {
        width: 6.5rem;
        height: 6.5rem;
        opacity: 0.9;
    }

    .why-body {
        max-width: none;
        padding-right: 3.5rem;
    }

    .project-card {
        min-height: 0;
        padding: 1.1rem;
    }

    .project-logo-wrap {
        top: 1rem;
        right: 1rem;
        width: 3.75rem;
        height: 3.75rem;
    }

    .project-copy {
        padding-right: 4.4rem;
    }

    .project-name {
        font-size: 1.15rem;
    }

    .project-desc {
        font-size: 0.95rem;
    }

    .project-link {
        min-height: 2.75rem;
        width: 100%;
        align-self: stretch;
        margin-top: 1.1rem;
    }

    .projects-fx-wave {
        width: 140%;
        height: 140%;
        opacity: 0.45;
        animation-duration: 48s;
    }

    .cta-band {
        flex-direction: column;
        align-items: stretch;
        gap: 1.1rem;
        padding: 1.5rem 0;
    }

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

    .payment-panel {
        padding: 1.25rem;
    }

    .about-links {
        flex-direction: column;
        align-items: stretch;
    }

    .about-link {
        justify-content: space-between;
        min-height: 3rem;
    }

    .section-vcard {
        min-height: auto;
        align-items: start;
        padding: 1.5rem 0 3rem;
    }

    .vcard {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .vcard-list {
        gap: 0.35rem;
    }

    .vcard-list li {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        padding: 0.55rem 0;
    }

    .vcard-list a {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        font-size: 1.05rem;
        word-break: break-word;
    }

    .vcard-side {
        order: -1;
        padding: 1rem;
    }

    .vcard-qr {
        width: min(100%, 10.5rem);
    }

    .vcard-title {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .vcard-lead {
        max-width: none;
        margin-bottom: 1.1rem;
    }

    .service-list li {
        grid-template-columns: 2.5rem 1fr;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .site-footer {
        padding: 2rem 0 1.75rem;
    }
}

@media (max-width: 480px) {
    :root {
        --shell: min(100%, calc(100% - 1.5rem));
        --header-h: 3.5rem;
    }

    .brand-logo {
        height: 2.2rem;
    }

    .why-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .projects-fx {
        opacity: 0.85;
    }

    .projects-fx-wave {
        animation: none;
        transform: translate(-50%, -50%) scale(1.2);
    }
}



/* theme polish */
.project-card,
.payment-panel,
.vcard,
.vcard-side,
.project-logo-wrap {
    border-radius: var(--radius);
    clip-path: none;
}
.about-link,
.project-link {
    border-radius: var(--radius-btn);
    clip-path: none;
}
.project-card,
.vcard,
.payment-panel {
    border-color: rgba(0, 212, 255, 0.28);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.08);
}
.project-card:hover,
.vcard:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: var(--glow-soft);
}
.project-link,
.about-link {
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.12);
}
.project-link:hover,
.about-link:hover {
    box-shadow: var(--glow);
}
.hero-veil {
    background:
        linear-gradient(90deg, rgba(1, 8, 14, 0.92) 0%, rgba(1, 8, 14, 0.72) 48%, rgba(1, 8, 14, 0.35) 100%),
        linear-gradient(180deg, rgba(1, 8, 14, 0.2) 0%, rgba(1, 8, 14, 0.9) 100%);
}
.hero-brand { color: var(--ink); text-shadow: 0 0 24px rgba(0, 212, 255, 0.2); }
.hero-home .hero-title { color: var(--teal-bright); text-shadow: 0 0 22px rgba(0, 212, 255, 0.4); }
