:root {
    --bg: #060b14;
    --bg-alt: #0a1120;
    --panel: rgba(13, 21, 38, 0.72);
    --panel-strong: rgba(10, 18, 34, 0.9);
    --border: rgba(147, 180, 255, 0.16);
    --text: #f4f7ff;
    --muted: #9cb1d1;
    --muted-strong: #c4d1e8;
    --accent: #6ca6ff;
    --accent-soft: rgba(108, 166, 255, 0.18);
    --accent-bright: #9bc5ff;
    --success: #4bda96;
    --danger: #ff7b96;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
    --radius: 24px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(48, 95, 172, 0.22), transparent 32%),
        radial-gradient(circle at 80% 10%, rgba(39, 132, 146, 0.16), transparent 24%),
        linear-gradient(180deg, #050913 0%, #08101d 48%, #060b14 100%);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

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

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

main {
    position: relative;
    z-index: 1;
}

.site-shell {
    position: relative;
    min-height: 100vh;
}

.site-grid-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.site-grid-plane,
.site-grid-glow,
.site-grid-noise {
    position: absolute;
}

.site-grid-plane {
    inset: 0 -8% -8% -8%;
    background-image:
        linear-gradient(rgba(117, 170, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 170, 255, 0.07) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: radial-gradient(circle at center, black 24%, transparent 84%);
    opacity: 0.32;
    transform: perspective(1400px) rotateX(74deg) translateY(18%);
    transform-origin: center top;
    animation: gridDrift 18s linear infinite;
}

.site-grid-glow {
    width: 38vw;
    height: 38vw;
    min-width: 360px;
    min-height: 360px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.18;
}

.site-grid-glow-one {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(68, 128, 255, 0.34), transparent 64%);
    animation: glowFloatOne 14s ease-in-out infinite;
}

.site-grid-glow-two {
    right: -14%;
    bottom: -10%;
    background: radial-gradient(circle, rgba(43, 205, 255, 0.2), transparent 68%);
    animation: glowFloatTwo 18s ease-in-out infinite;
}

.site-grid-noise {
    inset: 0;
    opacity: 0.045;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0.7px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.7) 0.7px, transparent 1px),
        radial-gradient(circle at 65% 75%, rgba(255, 255, 255, 0.6) 0.7px, transparent 1px),
        radial-gradient(circle at 35% 70%, rgba(255, 255, 255, 0.55) 0.7px, transparent 1px);
    background-size: 220px 220px;
    animation: noiseDrift 16s linear infinite;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.scroll-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #5da5ff, #7edfff);
    box-shadow: 0 0 16px rgba(110, 194, 255, 0.5);
    transform-origin: left center;
}

.ambient {
    position: fixed;
    inset: auto auto 15% -10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(68, 122, 216, 0.2), transparent 68%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}

.ambient-two {
    inset: 8% -6% auto auto;
    background: radial-gradient(circle, rgba(23, 169, 198, 0.16), transparent 70%);
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 166, 255, 0.16), transparent 65%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 180ms ease;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.narrow {
    max-width: 820px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(6, 11, 20, 0.44);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
    background: rgba(7, 12, 22, 0.82);
    border-color: rgba(137, 170, 246, 0.12);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    min-height: 88px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    height: 56px;
    overflow: hidden;
}

.brand-mark strong,
.section-kicker,
.card-kicker,
.footer-brand {
    font-family: "Space Grotesk", sans-serif;
}

.brand-logo {
    display: block;
    width: auto;
    height: 180px;
    transform: scale(1.55);
    transform-origin: left center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: var(--muted-strong);
    transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    margin: 6px 0;
    background: var(--text);
}

.button,
button,
input[type="submit"] {
    appearance: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #74acff, #4371bb);
    color: #f9fbff;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(52, 98, 173, 0.28);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
}

.button-sm {
    padding: 11px 18px;
    font-size: 0.95rem;
}

.button-ghost {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(162, 186, 237, 0.18);
    box-shadow: none;
}

.button-text {
    background: transparent;
    padding-inline: 0;
    color: var(--accent-bright);
    box-shadow: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    margin-top: 22px;
    color: var(--accent-bright);
    font-weight: 700;
}

.text-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 180ms ease;
}

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

.hero-section,
.page-hero {
    padding: 74px 0 32px;
}

.hero-section {
    position: relative;
    overflow: clip;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-backdrop-grid,
.hero-backdrop-scan,
.hero-backdrop-glow,
.hero-backdrop-line,
.hero-backdrop-noise {
    position: absolute;
}

.hero-backdrop-scan {
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(118, 191, 255, 0.12) 48%, transparent 100%);
    opacity: 0.28;
    transform: translateY(-100%);
    animation: scanSweep 10s ease-in-out infinite;
}


.hero-backdrop-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 203, 255, 0.55), transparent);
    opacity: 0.45;
    filter: blur(0.4px);
}

.hero-backdrop-line-one {
    top: 24%;
    left: -10%;
    width: 54%;
    transform: rotate(-10deg);
    animation: lineDriftOne 11s ease-in-out infinite;
}

.hero-backdrop-line-two {
    right: -8%;
    bottom: 19%;
    width: 44%;
    transform: rotate(14deg);
    animation: lineDriftTwo 13s ease-in-out infinite;
}


.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr;
    gap: 36px;
    align-items: center;
    min-height: calc(100vh - 110px);
    position: relative;
    z-index: 1;
}

.hero-copy h1,
.page-hero h1,
.section-head h2,
.split-grid h2,
.cta-panel h2 {
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 0 0 18px;
}

.page-hero h1,
.section-head h2,
.split-grid h2,
.cta-panel h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-lead,
.page-hero p,
.section-head p,
.project-copy p,
.blog-card p,
.article-summary {
    color: var(--muted-strong);
    font-size: 1.02rem;
    line-height: 1.78;
    max-width: 62ch;
}

.hero-copy,
.page-hero .narrow,
.section-head,
.split-grid > div:first-child,
.project-copy,
.blog-card-copy,
.contact-side,
.contact-panel,
.article-body,
.feature-card,
.service-panel,
.card-stack .glass-panel {
    text-wrap: pretty;
}

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

.glass-panel {
    background: linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(9, 16, 30, 0.7));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel,
.feature-card,
.service-panel,
.stack-item,
.project-card,
.blog-card,
.contact-panel,
.contact-side,
.article-image,
.article-body,
.filter-bar,
.cta-panel,
.card-stack .glass-panel {
    border-radius: var(--radius);
}

.hero-panel {
    padding: 28px;
    position: relative;
    overflow: hidden;
    transform: translate3d(calc(var(--stage-shift-x) * 0.16), calc(var(--stage-shift-y) * 0.16), 0);
    transition: transform 240ms ease;
}

.cinematic-stage {
    position: relative;
    min-height: 620px;
    isolation: isolate;
    --stage-shift-x: 0px;
    --stage-shift-y: 0px;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -20% -25% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(121, 178, 255, 0.18), transparent 68%);
}

.hero-beam,
.hero-orbit,
.hero-spark {
    position: absolute;
    pointer-events: none;
}

.hero-beam {
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.8;
    mix-blend-mode: screen;
}

.hero-beam-one {
    top: 6%;
    left: 8%;
    width: 58%;
    height: 18px;
    background: linear-gradient(90deg, rgba(57, 126, 255, 0), rgba(102, 176, 255, 0.92), rgba(57, 126, 255, 0));
    transform: translate3d(calc(var(--stage-shift-x) * 0.35), calc(var(--stage-shift-y) * 0.35), 0) rotate(-16deg);
    animation: beamSweep 9s ease-in-out infinite;
}

.hero-beam-two {
    right: -6%;
    bottom: 12%;
    width: 54%;
    height: 14px;
    background: linear-gradient(90deg, rgba(61, 202, 255, 0), rgba(132, 225, 255, 0.75), rgba(61, 202, 255, 0));
    transform: translate3d(calc(var(--stage-shift-x) * -0.4), calc(var(--stage-shift-y) * -0.28), 0) rotate(28deg);
    animation: beamSweepTwo 12s ease-in-out infinite;
}

.hero-orbit {
    border: 1px solid rgba(136, 180, 255, 0.15);
    border-radius: 50%;
    animation: slowSpin 22s linear infinite;
}

.hero-orbit-large {
    width: 440px;
    height: 440px;
    top: 12%;
    right: -4%;
    box-shadow: inset 0 0 40px rgba(94, 152, 255, 0.05);
    transform: translate3d(calc(var(--stage-shift-x) * 0.22), calc(var(--stage-shift-y) * 0.22), 0);
}

.hero-orbit-small {
    width: 220px;
    height: 220px;
    bottom: 8%;
    right: 10%;
    border-style: dashed;
    transform: translate3d(calc(var(--stage-shift-x) * -0.18), calc(var(--stage-shift-y) * -0.18), 0);
    animation-duration: 14s;
    animation-direction: reverse;
}

.hero-spark {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(99, 190, 255, 0.45), rgba(99, 190, 255, 0));
    box-shadow: 0 0 24px rgba(110, 194, 255, 0.45);
}

.hero-spark-one {
    top: 18%;
    right: 23%;
    transform: translate3d(calc(var(--stage-shift-x) * 0.6), calc(var(--stage-shift-y) * 0.6), 0);
    animation: orbitPulse 4s ease-in-out infinite;
}

.hero-spark-two {
    right: 12%;
    bottom: 20%;
    transform: translate3d(calc(var(--stage-shift-x) * -0.55), calc(var(--stage-shift-y) * -0.55), 0);
    animation: orbitPulse 5.2s ease-in-out infinite 0.8s;
}

.panel-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
}

.hero-terminal {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 20px;
    font-family: "Space Grotesk", sans-serif;
    background: rgba(5, 9, 17, 0.66);
    border: 1px solid rgba(164, 189, 248, 0.1);
}

.hero-signal-grid {
    position: absolute;
    inset: 18px 18px auto 18px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    opacity: 0.55;
}

.hero-signal-grid span {
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(92, 156, 255, 0.16), rgba(126, 219, 255, 0.95), rgba(92, 156, 255, 0.1));
    animation: signalFlicker 3.8s ease-in-out infinite;
}

.hero-signal-grid span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-signal-grid span:nth-child(3) {
    animation-delay: 0.45s;
}

.hero-signal-grid span:nth-child(4) {
    animation-delay: 0.7s;
}

.hero-signal-grid span:nth-child(5) {
    animation-delay: 0.95s;
}

.hero-signal-grid span:nth-child(6) {
    animation-delay: 1.2s;
}

.hero-terminal span {
    color: #dce8ff;
}

.hero-terminal span::before {
    content: ">";
    color: var(--accent-bright);
    margin-right: 10px;
}

.hero-radar {
    position: relative;
    height: 120px;
    margin-top: 22px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(95, 159, 255, 0.13), transparent 55%),
        linear-gradient(180deg, rgba(7, 12, 22, 0.9), rgba(6, 10, 18, 0.72));
    border: 1px solid rgba(164, 189, 248, 0.1);
}

.hero-radar-ring,
.hero-radar-core,
.hero-radar-sweep {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.hero-radar-ring {
    width: 150px;
    height: 150px;
    border: 1px solid rgba(117, 180, 255, 0.16);
}

.hero-radar-ring-two {
    width: 86px;
    height: 86px;
    border-color: rgba(117, 180, 255, 0.24);
}

.hero-radar-core {
    width: 10px;
    height: 10px;
    background: #def2ff;
    box-shadow: 0 0 18px rgba(130, 213, 255, 0.9);
}

.hero-radar-sweep {
    width: 170px;
    height: 170px;
    background: conic-gradient(from 0deg, rgba(116, 205, 255, 0.38), rgba(116, 205, 255, 0.02) 24%, transparent 38%, transparent 100%);
    animation: radarSweep 6s linear infinite;
}

.hero-stats {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.hero-stats article {
    display: grid;
    gap: 6px;
}

.hero-stats strong {
    font-size: 1.2rem;
}

.section {
    padding: 48px 0;
}

.section-head {
    margin-bottom: 26px;
}

.section-head-centered {
    text-align: center;
    max-width: 900px;
}

.section-head-centered .section-kicker,
.section-head-centered h2,
.section-head-centered p {
    margin-left: auto;
    margin-right: auto;
}

.section-kicker,
.card-kicker,
.blog-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    margin-bottom: 16px;
}

.section-kicker::before,
.card-kicker::before,
.blog-category::before {
    content: "";
    width: 32px;
    height: 1px;
    background: rgba(153, 188, 255, 0.45);
}

.card-grid {
    display: grid;
    gap: 22px;
}

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

.process-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
}

.feature-card,
.service-panel,
.card-stack .glass-panel {
    padding: 28px;
}

.feature-card h3,
.service-panel h2,
.stack-item h3,
.project-copy h2,
.project-copy h3,
.blog-card h2,
.blog-card h3,
.contact-panel h2,
.contact-side h2,
.card-stack h3 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    line-height: 1.15;
}

.feature-card p,
.service-panel p,
.stack-item p,
.contact-side p,
.muted,
.card-stack p {
    color: var(--muted);
    max-width: 58ch;
    line-height: 1.72;
}

.hero-copy,
.section-head,
.page-hero .narrow,
.split-grid > div:first-child {
    max-width: 70ch;
}

.hero-copy h1,
.page-hero h1 {
    max-width: 12ch;
}

.section-head h2,
.split-grid h2,
.cta-panel h2 {
    max-width: 17ch;
}

.project-copy p,
.blog-card p,
.contact-side p,
.contact-panel p,
.article-body p,
.article-body li {
    max-width: 66ch;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
}

.tag-list li {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(164, 187, 246, 0.1);
    color: var(--muted-strong);
    font-size: 0.94rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.detail-list li {
    position: relative;
    padding-left: 20px;
    color: var(--muted-strong);
}

.detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7edfff, #5da5ff);
    box-shadow: 0 0 12px rgba(110, 194, 255, 0.36);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.stack-list,
.card-stack {
    display: grid;
    gap: 18px;
}

.stack-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 24px;
}

.stack-item strong {
    font-size: 1.2rem;
    color: var(--accent-bright);
}

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

.project-card,
.blog-card {
    overflow: hidden;
}

.project-image,
.blog-card-image {
    min-height: 220px;
    background-position: center;
    background-size: cover;
}

.project-copy,
.blog-card-copy {
    padding: 24px;
}

.project-meta,
.blog-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 12px;
    padding: 16px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    background: rgba(8, 13, 24, 0.92);
    border: 1px solid rgba(164, 187, 246, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text);
    font: inherit;
}

.filter-bar input::placeholder {
    color: #7e90b1;
}

.blog-article {
    padding: 72px 0 56px;
}

.article-header {
    margin-bottom: 28px;
}

.article-image {
    overflow: hidden;
    margin-bottom: 22px;
}

.article-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.article-body {
    padding: 28px;
}

.article-body p,
.article-body li,
.article-body blockquote {
    color: var(--muted-strong);
    line-height: 1.82;
}

.article-body h2,
.article-body h3 {
    margin-top: 28px;
    line-height: 1.1;
}

.article-body a {
    color: var(--accent-bright);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 22px;
}

.contact-panel,
.contact-side {
    padding: 22px;
}

.form-embed-shell {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(164, 187, 246, 0.1);
    background: rgba(3, 7, 14, 0.7);
}

.form-embed-shell iframe {
    width: 100%;
    min-height: 980px;
    background: #ffffff;
}

.contact-points {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.contact-points span {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
}

.cta-band {
    padding-bottom: 80px;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 24px 0 36px;
    border-top: 1px solid rgba(156, 180, 223, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 20px;
}

.footer-grid a:not(.social-link),
.footer-grid span,
.footer-copy {
    display: block;
    color: var(--muted);
    margin-top: 10px;
}

.footer-logo {
    display: block;
    height: 156px;
    width: auto;
    margin-bottom: 12px;
}

.footer-socials {
    margin-top: 18px;
}

.footer-socials a {
    display: inline-block;
    color: var(--muted);
    margin-top: 10px;
    transition: color 180ms ease;
}

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

.footer-label {
    color: var(--muted-strong);
    margin: 0;
}

.flash-stack {
    position: fixed;
    top: 90px;
    right: 18px;
    z-index: 30;
    display: grid;
    gap: 10px;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(8, 16, 30, 0.92);
    border: 1px solid rgba(163, 189, 242, 0.14);
    box-shadow: var(--shadow);
}

.flash-success {
    border-color: rgba(75, 218, 150, 0.28);
}

.flash-error {
    border-color: rgba(255, 123, 150, 0.3);
}

.empty-state {
    color: var(--muted);
    padding: 24px 4px;
}

.feature-card h3,
.service-panel h2,
.stack-item h3,
.project-copy h2,
.project-copy h3,
.blog-card h2,
.blog-card h3,
.contact-panel h2,
.contact-side h2,
.card-stack h3,
.article-body h2,
.article-body h3 {
    text-wrap: balance;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 640ms ease, transform 640ms ease;
}

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

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 180ms ease;
}

@keyframes beamSweep {
    0%, 100% {
        opacity: 0.3;
        transform: translate3d(-12px, 0, 0) rotate(-16deg);
    }
    50% {
        opacity: 0.92;
        transform: translate3d(18px, -10px, 0) rotate(-13deg);
    }
}

@keyframes beamSweepTwo {
    0%, 100% {
        opacity: 0.18;
        transform: translate3d(0, 0, 0) rotate(28deg);
    }
    50% {
        opacity: 0.75;
        transform: translate3d(-24px, 8px, 0) rotate(24deg);
    }
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitPulse {
    0%, 100% {
        transform: scale(0.7);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes signalFlicker {
    0%, 100% {
        opacity: 0.25;
        transform: scaleX(0.82);
    }
    50% {
        opacity: 0.95;
        transform: scaleX(1);
    }
}

@keyframes radarSweep {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes gridDrift {
    from {
        transform: perspective(1200px) rotateX(70deg) translate3d(0, 12%, 0);
    }
    to {
        transform: perspective(1200px) rotateX(70deg) translate3d(0, 18%, 0);
    }
}

@keyframes scanSweep {
    0%, 100% {
        transform: translateY(-100%);
        opacity: 0;
    }
    18% {
        opacity: 0.18;
    }
    50% {
        transform: translateY(100%);
        opacity: 0.4;
    }
    82% {
        opacity: 0.08;
    }
}

@keyframes glowFloatOne {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(36px, 20px, 0) scale(1.08);
    }
}

@keyframes glowFloatTwo {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-30px, -24px, 0) scale(1.1);
    }
}

@keyframes lineDriftOne {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-10deg);
        opacity: 0.22;
    }
    50% {
        transform: translate3d(24px, -12px, 0) rotate(-8deg);
        opacity: 0.58;
    }
}

@keyframes lineDriftTwo {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(14deg);
        opacity: 0.18;
    }
    50% {
        transform: translate3d(-20px, 10px, 0) rotate(17deg);
        opacity: 0.48;
    }
}

@keyframes noiseDrift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-30px, 24px, 0);
    }
}

@media (max-width: 1100px) {
    .hero-grid,
    .split-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-backdrop-grid {
        background-size: 72px 72px;
    }

    .cinematic-stage {
        min-height: 560px;
    }
}

@media (max-width: 800px) {
    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        border-radius: 20px;
        background: rgba(7, 12, 22, 0.94);
        border: 1px solid rgba(160, 186, 240, 0.12);
        box-shadow: var(--shadow);
    }

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

    .nav-toggle {
        display: inline-block;
    }

    .services-grid,
    .project-grid,
    .blog-grid,
    .blog-preview-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .hero-section,
    .page-hero,
    .blog-article {
        padding-top: 48px;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-backdrop-line {
        display: none;
    }

    .cinematic-stage {
        min-height: 480px;
    }

    .hero-orbit-large {
        width: 320px;
        height: 320px;
        right: 2%;
    }

    .hero-orbit-small {
        width: 170px;
        height: 170px;
    }

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

@media (max-width: 560px) {
    .brand-logo {
        height: 120px;
        transform: scale(1.35);
    }

    .button,
    .button-sm {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }
}
