@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Orbitron:wght@500;600;700&display=swap");

:root {
    --bg: #0d1525;
    --bg-soft: #0d1525;
    --panel: rgba(13, 21, 37, 0.82);
    --panel-strong: rgba(13, 21, 37, 0.94);
    --line: rgba(72, 82, 101, 0.42);
    --line-bright: rgba(0, 229, 255, 0.48);
    --text: #f8fafc;
    --muted: #9aa6b8;
    --gray: #485265;
    --cyan: #00e5ff;
    --blue: #2563ff;
    --purple: #7c4dff;
    --shadow-cyan: 0 0 34px rgba(0, 229, 255, 0.2);
    --radius: 8px;
    --container: 1640px;
    --page-gutter: clamp(34px, 3.6vw, 66px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: clamp(14px, 2.4vw, 32px);
    color: var(--text);
    background:
        radial-gradient(circle at 78% 18%, rgba(0, 229, 255, 0.08), transparent 31rem),
        radial-gradient(circle at 92% 76%, rgba(124, 77, 255, 0.07), transparent 28rem),
        #000;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image:
        linear-gradient(rgba(37, 99, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 255, 0.10) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(circle at 60% 30%, #000, transparent 72%);
    opacity: 0.38;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(110deg, transparent 0 24%, rgba(0, 229, 255, 0.08) 24.1%, transparent 24.4% 100%),
        linear-gradient(150deg, transparent 0 62%, rgba(37, 99, 255, 0.08) 62.1%, transparent 62.4% 100%);
    opacity: 0.7;
    animation: circuitDrift 22s linear infinite;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: #001018;
    background: var(--cyan);
    transform: translateY(-160%);
}

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

.site-shell {
    width: 100%;
    max-width: var(--container);
    min-height: calc(100vh - clamp(28px, 4.8vw, 64px));
    margin: 0 auto;
    border: 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at 76% 18%, rgba(0, 229, 255, 0.05), transparent 28rem),
        #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.section-pad {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    min-height: 98px;
    padding: 20px var(--page-gutter);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.84));
    border-bottom: 1px solid rgba(72, 82, 101, 0.08);
    backdrop-filter: blur(18px);
}

.site-header::after {
    position: absolute;
    right: var(--page-gutter);
    bottom: 0;
    left: var(--page-gutter);
    height: 1px;
    pointer-events: none;
    content: "";
    background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), var(--purple), transparent);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.28);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: min(286px, 52vw);
}

.brand img {
    width: 100%;
    max-height: 72px;
    height: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    gap: clamp(20px, 3vw, 46px);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-nav a {
    position: relative;
    color: rgba(248, 250, 252, 0.82);
    transition: color 180ms ease;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--cyan);
    box-shadow: var(--shadow-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

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

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

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

.language-switch {
    display: inline-flex;
    gap: 2px;
    align-items: center;
    min-width: 72px;
    height: 38px;
    padding: 3px;
    border: 1px solid rgba(0, 229, 255, 0.34);
    border-radius: var(--radius);
    background: rgba(13, 21, 37, 0.72);
}

.language-switch span {
    display: grid;
    flex: 1;
    height: 30px;
    place-items: center;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.language-switch .is-current {
    color: #001018;
    background: var(--cyan);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 21, 37, 0.9);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.btn span {
    margin-left: 18px;
    font-size: 1.1rem;
}

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

.btn-primary {
    position: relative;
    overflow: hidden;
    color: #001018;
    border-color: rgba(0, 229, 255, 0.56);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 45%),
        linear-gradient(100deg, var(--cyan) 0%, #16a8ff 48%, var(--purple) 100%);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.26), 0 0 18px rgba(124, 77, 255, 0.16);
}

.btn-primary::before {
    position: absolute;
    inset: 1px;
    pointer-events: none;
    content: "";
    border-radius: 6px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 34%, rgba(255, 255, 255, 0.12));
    opacity: 0.74;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    box-shadow: 0 0 38px rgba(0, 229, 255, 0.34), 0 0 28px rgba(124, 77, 255, 0.22);
}

.btn-outline {
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.72);
    background: rgba(0, 229, 255, 0.02);
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.12);
}

.btn-ghost {
    color: rgba(248, 250, 252, 0.86);
}

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

.btn-small {
    min-height: 40px;
    padding: 0 20px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(330px, 0.7fr) minmax(560px, 1.3fr);
    gap: clamp(18px, 2.6vw, 46px);
    align-items: center;
    min-height: 560px;
    padding-top: 48px;
    padding-bottom: 24px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--cyan);
    font-family: "Orbitron", Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 34px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background:
        linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(100deg, var(--cyan), var(--blue), var(--purple)) border-box;
    box-shadow:
        0 0 18px rgba(0, 229, 255, 0.18),
        0 0 20px rgba(124, 77, 255, 0.14),
        inset 0 0 18px rgba(124, 77, 255, 0.15);
}

.eyebrow span,
.eyebrow i {
    font-style: normal;
    background: linear-gradient(90deg, var(--cyan), #49a6ff 52%, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.22);
}

.hero-badge {
    position: relative;
    gap: 8px;
}

.hero-badge span,
.hero-badge i {
    font-style: normal;
    background: linear-gradient(90deg, var(--cyan), #49a6ff 52%, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.22);
}

.hero-badge span:nth-of-type(1) {
    background-image: linear-gradient(90deg, var(--cyan), #18bfff);
}

.hero-badge span:nth-of-type(2) {
    background-image: linear-gradient(90deg, #18bfff, #4d7cff);
}

.hero-badge span:nth-of-type(3) {
    background-image: linear-gradient(90deg, #5c7cff, var(--purple));
}

.hero h1,
.page-hero h1,
.contact-cta h2,
.vision h2,
.legal-page h1 {
    margin: 0;
    max-width: 780px;
    color: #fff;
    font-size: clamp(2.18rem, 3.65vw, 3.65rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
}

.hero h1 span {
    color: var(--cyan);
    text-shadow: 0 0 28px rgba(0, 229, 255, 0.28);
}

.title-mark {
    display: block;
    width: 58px;
    height: 3px;
    margin: 34px 0 22px;
    background: var(--cyan);
    box-shadow: var(--shadow-cyan);
}

.hero-subtitle,
.page-hero p,
.vision p,
.contact-cta p,
.legal-panel p {
    max-width: 670px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 34px;
}

.hero-visual {
    position: relative;
    min-width: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 0;
}

.hero-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 430px;
    max-height: 610px;
    object-fit: cover;
    object-position: center;
    opacity: 0.98;
    mix-blend-mode: screen;
    filter: saturate(1.13) contrast(1.08);
}

.hero-glow {
    position: absolute;
    right: 16%;
    bottom: 12%;
    width: 34%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.38), transparent 66%);
    filter: blur(4px);
    animation: pulseGlow 4.8s ease-in-out infinite;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding-top: 16px;
    margin-bottom: 12px;
    border-top: 1px solid rgba(72, 82, 101, 0.16);
}

.section-kicker {
    margin: 0;
    color: var(--gray);
}

.section-kicker::before {
    display: inline-block;
    width: 24px;
    height: 2px;
    content: "";
    background: var(--cyan);
    box-shadow: var(--shadow-cyan);
}

.text-link {
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.text-link span {
    margin-left: 10px;
}

.featured {
    padding-bottom: 16px;
}

.project-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.projects-page .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 390px));
    justify-content: start;
}

.project-grid.project-grid-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
}

.project-card {
    --project-accent-rgb: 0, 229, 255;
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(var(--project-accent-rgb), 0.42);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(4, 8, 15, 0.96), rgba(2, 5, 12, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 34px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card.accent-purple {
    --project-accent-rgb: 124, 77, 255;
}

.project-card.accent-blue {
    --project-accent-rgb: 37, 99, 255;
}

.project-card::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: radial-gradient(circle at 72% 0%, rgba(var(--project-accent-rgb), 0.14), transparent 14rem);
    opacity: 0;
    transition: opacity 180ms ease;
}

.project-card:hover {
    border-color: rgba(var(--project-accent-rgb), 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), 0 0 28px rgba(var(--project-accent-rgb), 0.12);
    transform: translateY(-3px);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    border-bottom: 1px solid rgba(var(--project-accent-rgb), 0.28);
    background: rgba(2, 5, 12, 0.72);
    filter: saturate(1.04) contrast(1.03);
}

.project-grid-featured .project-card img {
    max-height: 200px;
}

.project-card-body {
    min-height: 116px;
    padding: 11px 14px 12px;
    background: linear-gradient(180deg, rgba(2, 5, 12, 0.86), rgba(2, 5, 12, 0.98));
}

.project-grid-featured .project-card-body {
    min-height: 0;
    padding: 11px 14px 13px;
}

.project-title-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.project-card h2,
.project-card h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(0.98rem, 1.05vw, 1.12rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

.project-title-row span {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(var(--project-accent-rgb), 0.30);
    border-radius: 6px;
    color: #fff;
    background: rgba(var(--project-accent-rgb), 0.08);
    font-size: 0.9rem;
}

.project-grid-featured .project-card h3 {
    font-size: 1.02rem;
}

.project-card p {
    margin: 5px 0 10px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.32;
}

.project-grid-featured .project-card p {
    font-size: 0.86rem;
}

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

.tag-list span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.04);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.accent-purple .tag-list span {
    color: #b994ff;
    border-color: rgba(124, 77, 255, 0.38);
    background: rgba(124, 77, 255, 0.09);
}

.accent-blue .tag-list span {
    color: #4db8ff;
    border-color: rgba(37, 99, 255, 0.42);
    background: rgba(37, 99, 255, 0.08);
}

.vision,
.contact-cta,
.projects-page,
.blog-page,
.contact-layout,
.legal-page {
    padding-top: 72px;
    padding-bottom: 72px;
}

.legal-panel,
.contact-intro-panel,
.contact-form-panel,
.blog-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(13, 21, 37, 0.88), rgba(13, 21, 37, 0.94));
}

.contact-intro-panel::after {
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 320px;
    height: 320px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.2), transparent 66%);
}

.vision {
    border-top: 1px solid rgba(72, 82, 101, 0.14);
}

.vision-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(66px, 3vw, 38px) 0 clamp(26px, 3.6vw, 44px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

.vision-panel::before {
    position: absolute;
    top: 0;
    left: 0;
    width: min(460px, 46vw);
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple), transparent);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.22);
}

.vision-panel::after {
    position: absolute;
    right: 6%;
    top: 22%;
    width: min(240px, 20vw);
    aspect-ratio: 1;
    pointer-events: none;
    content: "";
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 68%);
    filter: blur(10px);
}

.vision-panel > * {
    position: relative;
    z-index: 1;
}

.vision .section-kicker {
    margin-bottom: 18px;
    color: var(--cyan);
}

.vision .section-kicker::before {
    width: 38px;
}

.vision h2,
.contact-cta h2,
.legal-page h1,
.page-hero h1 {
    font-size: clamp(1.95rem, 3.35vw, 3.45rem);
}

.vision h2 {
    max-width: 760px;
    background: linear-gradient(90deg, #fff 0 58%, #c8f7ff 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-lead {
    max-width: 780px;
    margin-top: 18px;
    color: #f2fbff;
    font-size: clamp(1.08rem, 1.35vw, 1.24rem);
    font-weight: 800;
    line-height: 1.55;
}

.vision-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
    max-width: 1120px;
    margin-top: 22px;
}

.vision-copy {
    max-width: none;
    margin-top: 0;
    padding: 0;
    border-left: 0;
    color: #d3dceb;
    font-size: clamp(1rem, 1.16vw, 1.1rem);
    line-height: 1.78;
}

.vision-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    max-width: 100%;
    width: 100%;
}

.vision-points li {
    position: relative;
    min-width: 0;
    padding: 16px 18px 16px 40px;
    border: 1px solid rgba(72, 82, 101, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: #eef7ff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.6;
}

.vision-points li::before {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #4da4ff);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.28);
    transform: translateY(-50%);
}

.vision-points li + li {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 0;
}

.contact-cta {
    position: relative;
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    border-top: 0;
}

.contact-cta::before {
    position: absolute;
    top: 0;
    left: var(--page-gutter);
    width: min(460px, 46vw);
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple), transparent);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.22);
}

.contact-cta p {
    margin-top: 18px;
}

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

.page-hero p:not(.eyebrow) {
    margin-top: 22px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-chip {
    border-color: rgba(72, 82, 101, 0.25);
    color: var(--muted);
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #001018;
    border-color: var(--cyan);
    background: var(--cyan);
}

.empty-state {
    margin: 26px 0 0;
    color: var(--muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-intro-panel {
    min-height: 100%;
    background:
        linear-gradient(150deg, rgba(0, 229, 255, 0.08), transparent 42%),
        linear-gradient(135deg, rgba(13, 21, 37, 0.94), rgba(2, 5, 12, 0.96));
}

.contact-intro-panel h2 {
    max-width: 460px;
    margin: 18px 0;
    color: #fff;
    font-size: clamp(1.65rem, 2.8vw, 2.7rem);
    line-height: 1.05;
}

.contact-intro-panel p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.contact-intro-panel a {
    display: inline-flex;
    margin-top: 28px;
    color: var(--cyan);
    font-weight: 900;
}

.contact-form-panel {
    padding: clamp(22px, 3vw, 34px);
    background: rgba(2, 5, 12, 0.78);
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.field label {
    color: var(--text);
    font-size: 0.83rem;
    font-weight: 800;
    text-transform: uppercase;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(72, 82, 101, 0.22);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(13, 21, 37, 0.76);
}

.field input {
    height: 48px;
    padding: 0 14px;
}

.field textarea {
    resize: vertical;
    min-height: 160px;
    padding: 14px;
}

.field-hidden {
    position: absolute;
    left: -9999px;
}

.privacy-note {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-submit-row {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.form-status {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(0, 229, 255, 0.06);
}

.form-status a {
    margin-left: 10px;
    color: var(--cyan);
    font-weight: 800;
}

.form-status-error,
.form-status-spam {
    border-color: rgba(255, 99, 132, 0.42);
    background: rgba(255, 99, 132, 0.08);
}

.legal-panel {
    margin-top: 24px;
}

.legal-panel h2 {
    margin: 26px 0 8px;
    color: #fff;
    font-size: 1.05rem;
}

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

.legal-panel p + p {
    margin-top: 16px;
}

.cookie-table-wrap {
    max-width: 100%;
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid rgba(72, 82, 101, 0.22);
    border-radius: var(--radius);
}

.cookie-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.cookie-table th,
.cookie-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(72, 82, 101, 0.18);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
}

.cookie-table th {
    color: #fff;
    background: rgba(13, 21, 37, 0.76);
    font-weight: 800;
}

.cookie-table tr:last-child td {
    border-bottom: 0;
}

.cookie-table td:first-child {
    color: var(--cyan);
    font-weight: 800;
    white-space: nowrap;
}

.cookie-reset-panel {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(0, 229, 255, 0.06);
}

.cookie-reset-panel p {
    margin: 0;
}

.blog-page {
    max-width: 1260px;
    margin: 0 auto;
    padding-top: 42px;
}

.blog-hero,
.article-hero {
    display: grid;
    justify-items: center;
    text-align: center;
}

.blog-hero h1,
.blog-hero p,
.article-hero h1,
.article-hero p {
    max-width: 920px;
}

.blog-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    padding: 0;
    border-color: rgba(0, 229, 255, 0.28);
    background: linear-gradient(180deg, rgba(7, 13, 26, 0.96), rgba(2, 5, 12, 0.98));
}

.blog-card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: rgba(2, 5, 12, 0.72);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.blog-card-body {
    padding: clamp(24px, 3vw, 34px);
}

.blog-card span {
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.blog-card h2 {
    margin: 14px 0 10px;
    color: #fff;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.1;
}

.blog-card p {
    margin: 0;
    color: rgba(248, 250, 252, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.blog-card a {
    display: block;
}

.article-page {
    display: grid;
    justify-items: center;
    padding-top: 28px;
    padding-bottom: 84px;
}

.project-detail-page {
    display: grid;
    justify-items: center;
    padding-top: 28px;
    padding-bottom: 84px;
}

.article-featured-image {
    display: block;
    width: auto;
    max-width: min(100%, 1120px);
    height: auto;
    max-height: min(70vh, 720px);
    object-fit: contain;
    background: rgba(2, 5, 12, 0.72);
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.project-detail-image {
    border-color: rgba(37, 99, 255, 0.34);
}

.project-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(22px, 3vw, 38px);
    align-items: start;
    width: min(100%, 1120px);
    margin-top: 34px;
}

.project-article {
    color: #fff;
    font-size: clamp(1.04rem, 1.16vw, 1.16rem);
    line-height: 1.78;
}

.project-article .section-kicker {
    margin-bottom: 16px;
    color: var(--cyan);
}

.project-article h2,
.project-detail-panel h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.34rem, 1.75vw, 1.82rem);
    line-height: 1.16;
}

.project-article h2:not(:first-of-type) {
    margin-top: 34px;
}

.project-article p {
    margin: 0;
    color: rgba(248, 250, 252, 0.9);
}

.project-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.project-feature-card,
.project-detail-panel {
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(13, 21, 37, 0.88), rgba(2, 5, 12, 0.94));
}

.project-feature-card {
    padding: 18px;
}

.project-feature-card span {
    display: block;
    width: 34px;
    height: 3px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: var(--shadow-cyan);
}

.project-feature-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.project-detail-panel {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 20px;
    padding: 22px;
    overflow: hidden;
}

.project-detail-panel::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: radial-gradient(circle at 82% 0%, rgba(0, 229, 255, 0.13), transparent 12rem);
}

.project-detail-panel.accent-blue::before {
    background: radial-gradient(circle at 82% 0%, rgba(37, 99, 255, 0.16), transparent 12rem);
}

.project-detail-panel.accent-purple::before {
    background: radial-gradient(circle at 82% 0%, rgba(124, 77, 255, 0.16), transparent 12rem);
}

.project-detail-panel > * {
    position: relative;
    z-index: 1;
}

.project-detail-panel .btn {
    width: 100%;
}

.article-body {
    width: min(100%, 860px);
    margin-top: 34px;
    color: #fff;
    font-size: clamp(1.08rem, 1.25vw, 1.22rem);
    line-height: 1.8;
    white-space: pre-line;
}

.article-body p {
    max-width: none;
    color: #fff;
}

.article-body .text-link {
    display: inline-flex;
    margin-top: 34px;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 28px;
    align-items: end;
    padding: 34px var(--page-gutter);
    border-top: 1px solid rgba(72, 82, 101, 0.16);
    background: rgba(1, 5, 14, 0.72);
}

.footer-brand span {
    display: block;
    margin-bottom: 10px;
    font-family: "Orbitron", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

.footer-brand p,
.footer-copy {
    margin: 0;
    color: var(--gray);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.58;
        transform: scale(0.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes circuitDrift {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-48px, 24px, 0);
    }
}

@media (max-width: 1120px) {
    .site-header {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .site-nav,
    .header-actions {
        grid-column: 1 / -1;
        display: none;
    }

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

    .site-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding-top: 12px;
    }

    .header-actions {
        justify-content: space-between;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 28px;
    }

    .hero-visual {
        order: -1;
        margin: -8px 0 -46px;
    }

    .hero-visual img {
        min-height: 360px;
        max-height: 520px;
    }
}

@media (max-width: 860px) {
    .site-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .site-header {
        min-height: 82px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .brand {
        width: min(236px, 62vw);
    }

    .hero {
        min-height: auto;
        padding-bottom: 46px;
    }

    .hero h1,
    .page-hero h1,
    .vision h2,
    .contact-cta h2,
    .legal-page h1 {
        font-size: clamp(1.95rem, 8vw, 3.1rem);
    }

    .hero-actions,
    .contact-cta,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .project-grid,
    .blog-grid,
    .contact-layout,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .project-card img {
        max-height: none;
    }

    .project-article-layout,
    .project-feature-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-panel {
        position: relative;
        top: auto;
        width: 100%;
    }

    .project-grid.project-grid-featured {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .vision-content {
        grid-template-columns: 1fr;
    }

    .vision-points {
        grid-template-columns: 1fr;
    }

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

    .contact-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer {
        align-items: start;
    }
}

@media (max-width: 520px) {
    body {
        padding: 10px;
    }

    .section-pad {
        padding-right: 18px;
        padding-left: 18px;
    }

    .site-header,
    .site-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .language-switch {
        width: 100%;
    }

    .hero-visual {
        margin-right: 0;
        margin-left: 0;
    }

    .hero-visual img {
        min-height: 260px;
    }

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

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

.cookie-banner {
    position: fixed;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 80;
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.58), 0 0 24px rgba(0, 229, 255, 0.14);
    backdrop-filter: blur(16px);
}

.cookie-banner h2 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.cookie-banner p {
    margin: 0;
    color: var(--muted);
}

.cookie-banner a {
    color: var(--cyan);
    font-weight: 800;
}

.cookie-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.cookie-actions .btn {
    touch-action: manipulation;
}

.admin-body,
.admin-login-body {
    background: #000;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 28px 22px;
    border-right: 1px solid rgba(72, 82, 101, 0.16);
    background: rgba(13, 21, 37, 0.94);
}

.admin-brand img {
    width: 210px;
    height: auto;
    margin-bottom: 32px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    padding: 12px 14px;
    border: 1px solid rgba(72, 82, 101, 0.12);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(13, 21, 37, 0.58);
    font-weight: 800;
}

.admin-nav a:hover {
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.35);
}

.admin-content {
    padding: clamp(24px, 4vw, 46px);
}

.admin-topbar {
    margin-bottom: 26px;
}

.admin-topbar h1 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.admin-cards article,
.admin-panel,
.admin-login-card {
    border: 1px solid rgba(72, 82, 101, 0.18);
    border-radius: var(--radius);
    background: rgba(13, 21, 37, 0.82);
}

.admin-cards article {
    padding: 20px;
}

.admin-cards span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-cards strong {
    display: block;
    margin-top: 8px;
    color: var(--cyan);
    font-size: 2.5rem;
    line-height: 1;
}

.admin-panel {
    padding: 22px;
    margin-bottom: 22px;
}

.admin-panel-heading,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.admin-panel h2 {
    margin: 0 0 18px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(72, 82, 101, 0.14);
    text-align: left;
}

.admin-project-thumb {
    width: 116px;
    height: 72px;
    object-fit: contain;
    border: 1px solid rgba(72, 82, 101, 0.35);
    border-radius: 6px;
    background: #000;
}

.admin-table th {
    color: var(--cyan);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-row-actions {
    display: flex;
    gap: 12px;
}

.admin-row-actions a {
    color: var(--cyan);
    font-weight: 800;
}

.admin-form,
.admin-login-card form {
    display: grid;
    gap: 16px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-form label,
.admin-login-card label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-login-card input {
    width: 100%;
    border: 1px solid rgba(72, 82, 101, 0.22);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(13, 21, 37, 0.82);
}

.admin-form input,
.admin-form select,
.admin-login-card input {
    height: 46px;
    padding: 0 12px;
}

.admin-form input[type="file"] {
    height: auto;
    padding: 10px 12px;
}

.admin-upload-field {
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(0, 229, 255, 0.04);
}

.admin-upload-field span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.admin-form textarea {
    min-height: 130px;
    padding: 12px;
}

.admin-check {
    align-content: center;
    grid-template-columns: auto 1fr;
}

.admin-check input {
    width: 18px;
    height: 18px;
}

.admin-image-preview {
    margin: 0;
    border: 1px solid rgba(72, 82, 101, 0.24);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(2, 5, 12, 0.78);
}

.admin-image-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    background: #000;
}

.admin-image-preview figcaption {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
}

.admin-login-card {
    width: min(100%, 460px);
    padding: 28px;
}

.admin-login-card img {
    width: 220px;
    height: auto;
    margin-bottom: 22px;
}

.admin-login-card h1 {
    margin: 0 0 22px;
}

@media (max-width: 900px) {
    .cookie-banner,
    .admin-shell,
    .admin-cards,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .cookie-reset-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(72, 82, 101, 0.16);
    }
}
