:root {
    --bg: #090b10;
    --bg-deep: #05070a;
    --surface: rgba(16, 20, 27, 0.78);
    --surface-strong: #10151d;
    --text: #eef4fb;
    --muted: #9ba9bb;
    --line: rgba(171, 192, 219, 0.2);
    --accent: #4da3ff;
    --accent-strong: #2d7cd2;
    --accent-soft: #88bfff;
    --teal: #53d6c7;
    --gold: #95f88d;
    --neon: #2ee6ff;
    --signal: #8dffb3;
    --shadow: 0 26px 90px rgba(2, 5, 9, 0.48);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-xs: 5px;
    --mono: "IBM Plex Mono", monospace;
    --container: min(1120px, calc(100vw - 2rem));
}

:root[data-theme="light"] {
    --bg: #eef4ff;
    --bg-deep: #dbe7f7;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #f7fbff;
    --text: #102137;
    --muted: #4f6884;
    --line: rgba(21, 53, 94, 0.2);
    --accent: #1d7fe4;
    --accent-strong: #0f5db0;
    --accent-soft: #1a76d2;
    --teal: #00a9c6;
    --gold: #1bbf65;
    --neon: #00bfdc;
    --signal: #0f9d58;
    --shadow: 0 24px 70px rgba(16, 34, 61, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(77, 163, 255, 0.28), transparent 34%),
        radial-gradient(circle at 82% 22%, rgba(46, 230, 255, 0.2), transparent 26%),
        radial-gradient(circle at 70% 74%, rgba(141, 255, 179, 0.12), transparent 34%),
        linear-gradient(160deg, #0d1119 0%, var(--bg) 48%, var(--bg-deep) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 320ms ease, color 220ms ease;
}

::selection {
    background: rgba(77, 163, 255, 0.34);
    color: #f4f9ff;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
    filter: blur(14px);
}

body::before {
    width: 18rem;
    height: 18rem;
    right: -5rem;
    top: 6rem;
    background: rgba(77, 163, 255, 0.22);
}

body::after {
    width: 22rem;
    height: 22rem;
    left: -6rem;
    bottom: 15%;
    background: rgba(46, 230, 255, 0.16);
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background-image: radial-gradient(rgba(219, 232, 250, 0.16) 0.5px, transparent 0.5px);
    background-size: 12px 12px;
    mix-blend-mode: soft-light;
    z-index: -1;
}

.noise::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(160, 183, 212, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 183, 212, 0.07) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
    animation: gridDrift 18s linear infinite;
}

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

button,
input,
textarea {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header,
.section,
.site-footer,
.marquee {
    width: var(--container);
    margin-inline: auto;
}

.header-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border: 1px solid rgba(124, 223, 248, 0.26);
    border-radius: 10px;
    background: rgba(11, 15, 21, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 44px rgba(2, 5, 9, 0.44), 0 0 28px rgba(46, 230, 255, 0.1);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(46, 230, 255, 0.22);
    pointer-events: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--neon) 100%);
    color: white;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.brand__text {
    display: grid;
    gap: 0.15rem;
}

.brand__text strong,
.site-nav a,
.button,
.project-card__button,
.modal__close {
    letter-spacing: 0.04em;
}

.brand__text strong {
    font-weight: 800;
}

.brand__text small,
.eyebrow,
.project-card__meta,
.card-label,
.tag-list,
.site-footer {
    font-family: var(--mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
}

.site-nav a {
    position: relative;
    padding: 0.5rem 0;
    color: var(--muted);
    transition: color 180ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--neon));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

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

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

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

.nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    margin: 0.28rem 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: rgba(20, 27, 36, 0.65);
    color: var(--text);
    text-transform: uppercase;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 230, 255, 0.54);
    background: rgba(21, 31, 44, 0.82);
}

.theme-toggle__icon {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid var(--neon);
    box-shadow: inset -0.25rem 0 0 rgba(46, 230, 255, 0.18);
}

:root[data-theme="light"] .theme-toggle__icon {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 0 0 3px rgba(29, 127, 228, 0.22);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.85rem 1.3rem;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.project-card__button:hover,
.modal__close:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: white;
    box-shadow: 0 18px 34px rgba(45, 124, 210, 0.36), 0 0 18px rgba(46, 230, 255, 0.28);
    position: relative;
    overflow: hidden;
}

.button--primary::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -35%;
    width: 40%;
    height: 320%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
    transform: rotate(18deg);
    animation: ctaSweep 3.2s ease-in-out infinite;
}

.button--secondary,
.button--ghost {
    border-color: var(--line);
    background: rgba(20, 27, 36, 0.65);
}

.button--ghost:hover,
.button--secondary:hover {
    border-color: rgba(46, 230, 255, 0.54);
    background: rgba(21, 31, 44, 0.82);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: 5rem 0 4rem;
}

.section {
    padding: 2rem 0 4rem;
    position: relative;
}

.section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(46, 230, 255, 0.42) 50%, transparent 100%);
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-panel h2,
.mission-panel h2 {
    margin: 0;
    font-family: "Teko", sans-serif;
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: 0.03em;
}

.hero h1 {
    max-width: 11ch;
    font-size: clamp(4rem, 9.4vw, 8rem);
}

.hero__lede,
.about-copy p,
.contact-panel p,
.service-card p,
.project-card p,
.process-step p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero__copy {
    display: grid;
    gap: 1.4rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-top: 0.3rem;
}

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

.metric-card,
.project-card,
.service-card,
.process-panel,
.contact-panel,
.modal__panel {
    border: 1px solid rgba(171, 192, 219, 0.24);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    position: relative;
}

.metric-card::after,
.project-card::after,
.service-card::after,
.process-panel::after,
.contact-panel::after,
.modal__panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(46, 230, 255, 0.12);
}

.metric-card {
    position: relative;
    padding: 1.3rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--neon), var(--gold));
}

.metric-card__value,
.metric-card__suffix {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 700;
}

.metric-card p {
    margin: 0.55rem 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.hero__visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: perspective(1200px) rotateX(calc(var(--rotate-x, 0) * 1deg)) rotateY(calc(var(--rotate-y, 0) * 1deg));
    transition: transform 220ms ease-out;
}

.hero__art {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(46, 230, 255, 0.14);
    background: rgba(7, 11, 18, 0.7);
    padding: 1.2rem 1rem;
}

.hero-art-svg {
    display: block;
    width: 100%;
    height: auto;
}

.mission-panel {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(46, 230, 255, 0.22);
    background:
        radial-gradient(circle at top left, rgba(46, 230, 255, 0.14), transparent 40%),
        linear-gradient(160deg, rgba(14, 20, 29, 0.96) 0%, rgba(11, 16, 23, 0.92) 100%);
    padding: 2.2rem;
    display: grid;
    gap: 1.6rem;
    box-shadow: 0 0 0 1px rgba(46, 230, 255, 0.06), 0 0 48px rgba(46, 230, 255, 0.07);
}

.mission-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, rgba(141, 255, 179, 0.03) 0 1px, transparent 1px 4px);
    pointer-events: none;
    mix-blend-mode: screen;
}

.mission-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3rem;
    height: 3rem;
    border-top: 2px solid var(--neon);
    border-right: 2px solid var(--neon);
    border-top-right-radius: var(--radius-lg);
    opacity: 0.7;
}

.mission-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mission-panel__header .card-label {
    margin-bottom: 0;
}

.mission-panel__status {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--signal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mission-panel h2 {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    margin: 0;
}

.mission-panel__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
    border-top: 1px solid rgba(46, 230, 255, 0.14);
    padding-top: 1.2rem;
}

.mission-panel__list li {
    color: var(--muted);
    font-size: 0.95rem;
}

.mission-panel__list li::before {
    content: ">";
    display: inline-block;
    width: 1rem;
    color: var(--neon);
    font-weight: 700;
}

.mission-panel__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    border-top: 1px solid rgba(46, 230, 255, 0.14);
    padding-top: 1.2rem;
}

.mission-panel__stat p:last-child {
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

.card-label {
    display: inline-block;
    margin-bottom: 0.8rem;
}

.marquee {
    overflow: hidden;
    padding: 0.5rem 0 2rem;
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: marquee 26s linear infinite;
}

.marquee__track span {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.15rem;
    border: 1px solid rgba(46, 230, 255, 0.28);
    border-radius: 6px;
    background: rgba(15, 20, 29, 0.66);
    color: #a6d2e0;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    font-family: var(--mono);
}

.section-heading {
    display: grid;
    gap: 0.8rem;
    max-width: 42rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.about-copy h2,
.contact-panel h2 {
    font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.projects-grid,
.services-grid,
.about-grid {
    display: grid;
    gap: 1.25rem;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card__thumb {
    overflow: hidden;
    flex-shrink: 0;
}

.project-thumb-svg {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 340ms ease;
}

.project-card:hover .project-thumb-svg,
.project-card:focus-within .project-thumb-svg {
    transform: scale(1.04);
}

.project-card__body {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    flex: 1;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(46, 230, 255, 0.52);
    background: rgba(18, 24, 34, 0.96);
    box-shadow: 0 20px 46px rgba(2, 5, 9, 0.6), 0 0 18px rgba(46, 230, 255, 0.2);
}

.project-card__meta,
.tag-list {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.project-card h3,
.service-card h3,
.process-step h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.tag-list {
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.tag-list li {
    padding: 0.55rem 0.75rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius-xs);
    background: rgba(11, 15, 22, 0.68);
    border: 1px solid rgba(46, 230, 255, 0.2);
}

.project-card__button,
.modal__close {
    width: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent-soft);
    font-weight: 700;
    cursor: pointer;
}

.about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
    align-items: start;
}

.process-panel {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.process-step:last-child {
    border-bottom: 0;
}

.about-visual {
    margin: 0 0 1.8rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(46, 230, 255, 0.14);
}

.about-visual-svg {
    display: block;
    width: 100%;
    height: auto;
}

.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius-xs);
    background: rgba(46, 230, 255, 0.16);
    color: #c5faff;
    font-weight: 700;
}

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

.service-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.service-card__icon {
    display: block;
    width: 2.8rem;
    height: 2.8rem;
    color: var(--neon);
    margin-bottom: 1.2rem;
}

.section--contact {
    padding-bottom: 5rem;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: calc(var(--radius-lg) + 6px);
    background:
        radial-gradient(circle at top right, rgba(46, 230, 255, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(13, 18, 26, 0.95) 0%, rgba(12, 16, 24, 0.84) 100%);
}

.contact-actions {
    display: grid;
    gap: 0.9rem;
}

.contact-panel__intro {
    display: grid;
    gap: 1.2rem;
}

.contact-direct {
    width: fit-content;
}

.contact-panel__form-wrap {
    display: grid;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form__field {
    display: grid;
    gap: 0.45rem;
}

.contact-form__field label {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.contact-form__field input,
.contact-form__field textarea {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: rgba(10, 14, 22, 0.7);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 180ms ease, box-shadow 180ms ease;
    resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: rgba(46, 230, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(46, 230, 255, 0.08);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--muted);
    opacity: 0.55;
}

.contact-form__required {
    color: rgba(255, 95, 95, 0.8);
}

.contact-form__field.has-error input,
.contact-form__field.has-error textarea {
    border-color: rgba(255, 95, 95, 0.6);
    border-style: dashed;
}

.contact-success:not([hidden]) {
    display: grid;
    gap: 1.2rem;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(46, 230, 255, 0.3);
    background: rgba(46, 230, 255, 0.06);
    text-align: center;
}

.contact-success__message {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon);
}

.contact-success .button {
    margin: 0 auto;
}

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

.testimonial-card {
    margin: 0;
    padding: 1.75rem;
    border: 1px solid rgba(171, 192, 219, 0.24);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.testimonial-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(46, 230, 255, 0.12);
}

.testimonial-card__quote {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    flex: 1;
}

.testimonial-card__quote::before {
    content: "\201C";
    display: block;
    font-family: "Teko", sans-serif;
    font-size: 2.8rem;
    line-height: 0.8;
    color: var(--neon);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.testimonial-card footer {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.testimonial-card__name {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.testimonial-card__role {
    margin: 0.2rem 0 0;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 3rem;
}

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

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

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
    z-index: 50;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 9, 0.68);
    backdrop-filter: blur(5px);
}

.modal__panel {
    position: relative;
    width: min(42rem, calc(100vw - 2rem));
    max-height: min(85vh, 44rem);
    overflow: auto;
    padding: 1.4rem;
    border-radius: calc(var(--radius-lg) + 2px);
    background: rgba(10, 14, 20, 0.96);
}

.modal__close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius-xs);
    background: rgba(46, 230, 255, 0.16);
    color: #c5faff;
    transform: rotate(45deg);
}

.modal__close:hover {
    box-shadow: 0 0 16px rgba(46, 230, 255, 0.24);
}

.modal__content {
    display: grid;
    gap: 1rem;
    padding-top: 0.5rem;
}

.modal__content h3,
.modal__content h4,
.modal__content p,
.modal__content ul {
    margin: 0;
}

.modal__content h3 {
    font-family: "Teko", sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 0.9;
    letter-spacing: 0.03em;
}

.modal__content h4 {
    font-size: 0.84rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.modal__content p,
.modal__content li {
    color: var(--muted);
    line-height: 1.75;
}

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

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at 18% 10%, rgba(29, 127, 228, 0.22), transparent 34%),
        radial-gradient(circle at 82% 22%, rgba(0, 191, 220, 0.14), transparent 26%),
        radial-gradient(circle at 70% 74%, rgba(15, 157, 88, 0.1), transparent 34%),
        linear-gradient(160deg, #f7fbff 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

:root[data-theme="light"] .noise {
    opacity: 0.22;
}

:root[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(17, 89, 173, 0.22);
    box-shadow: 0 16px 44px rgba(16, 34, 61, 0.14);
}

:root[data-theme="light"] .site-header::before {
    border-color: rgba(17, 89, 173, 0.14);
}

:root[data-theme="light"] .button--secondary,
:root[data-theme="light"] .button--ghost,
:root[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(17, 89, 173, 0.2);
}

:root[data-theme="light"] .button--ghost:hover,
:root[data-theme="light"] .button--secondary:hover,
:root[data-theme="light"] .theme-toggle:hover {
    background: rgba(242, 248, 255, 1);
    border-color: rgba(17, 89, 173, 0.44);
}

:root[data-theme="light"] .marquee__track span,
:root[data-theme="light"] .tag-list li {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(17, 89, 173, 0.2);
    color: #395775;
}

:root[data-theme="light"] .project-card:hover,
:root[data-theme="light"] .project-card:focus-within {
    background: rgba(245, 250, 255, 0.98);
    box-shadow: 0 20px 40px rgba(16, 34, 61, 0.16);
}

:root[data-theme="light"] .mission-panel {
    background:
        radial-gradient(circle at top left, rgba(29, 127, 228, 0.12), transparent 40%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 255, 0.92) 100%);
    border-color: rgba(29, 127, 228, 0.22);
}

:root[data-theme="light"] .mission-panel__footer {
    border-top-color: rgba(29, 127, 228, 0.14);
}

:root[data-theme="light"] .mission-panel__list {
    border-top-color: rgba(29, 127, 228, 0.14);
}

:root[data-theme="light"] .contact-panel {
    background:
        radial-gradient(circle at top right, rgba(0, 191, 220, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 249, 255, 0.88) 100%);
}

:root[data-theme="light"] .contact-form__field input,
:root[data-theme="light"] .contact-form__field textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(17, 89, 173, 0.22);
    color: var(--text);
}

:root[data-theme="light"] .contact-form__field input:focus,
:root[data-theme="light"] .contact-form__field textarea:focus {
    border-color: rgba(17, 89, 173, 0.5);
    box-shadow: 0 0 0 3px rgba(17, 89, 173, 0.08);
}

:root[data-theme="light"] .contact-form__required {
    color: rgba(200, 30, 30, 0.8);
}

:root[data-theme="light"] .contact-success {
    border-color: rgba(17, 89, 173, 0.3);
    background: rgba(17, 89, 173, 0.06);
}

:root[data-theme="light"] .contact-success__message {
    color: var(--accent);
}

:root[data-theme="light"] .modal__backdrop {
    background: rgba(16, 34, 61, 0.3);
}

:root[data-theme="light"] .modal__panel {
    background: rgba(252, 254, 255, 0.96);
}

.faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: 52rem;
}

.faq-item {
    border: 1px solid rgba(171, 192, 219, 0.24);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: border-color 180ms ease;
}

.faq-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(46, 230, 255, 0.12);
}

.faq-item[open] {
    border-color: rgba(46, 230, 255, 0.38);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 180ms ease;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: "+";
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-xs);
    background: rgba(46, 230, 255, 0.12);
    color: var(--neon);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 200ms ease, background 180ms ease;
}

.faq-item[open] .faq-item__question::after {
    transform: rotate(45deg);
    background: rgba(46, 230, 255, 0.2);
}

.faq-item__answer {
    padding: 0 1.5rem 1.3rem;
    border-top: 1px solid var(--line);
}

.faq-item__answer p {
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.75;
}

:root[data-theme="light"] .faq-item__question::after {
    background: rgba(17, 89, 173, 0.1);
    color: var(--accent);
}

:root[data-theme="light"] .faq-item[open] .faq-item__question::after {
    background: rgba(17, 89, 173, 0.18);
}

:root[data-theme="light"] .faq-item[open] {
    border-color: rgba(17, 89, 173, 0.4);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

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

    .hero__visual {
        max-width: 660px;
        margin-top: 0;
        margin-inline: auto;
        transform: none;
    }

}

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

    .header-controls {
        justify-self: end;
    }

    .nav-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.8rem);
        left: 0;
        right: 0;
        display: grid;
        gap: 0.85rem;
        padding: 1rem 1.2rem;
        border-radius: 10px;
        background: rgba(9, 12, 18, 0.97);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.5rem);
        transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    }

    :root[data-theme="light"] .site-nav {
        background: rgba(255, 255, 255, 0.97);
    }

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

    .hero,
    .about-grid,
    .contact-panel,
    .projects-grid,
    .services-grid,
    .testimonials-grid,
    .contact-form__row,
    .modal__grid {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 2rem;
        padding-bottom: 2.5rem;
    }

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

    .mission-panel {
        padding: 1.6rem;
        gap: 1.2rem;
    }

    .project-card__thumb {
        max-height: 200px;
    }

    .contact-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .contact-actions .button {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        justify-content: center;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .site-header {
        padding-inline: 0.75rem;
    }

    .brand__text small {
        display: none;
    }

    .theme-toggle__text {
        display: none;
    }

    .eyebrow,
    .card-label {
        letter-spacing: 0.1em;
    }

    .hero {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 13vw, 5rem);
        max-width: 100%;
    }

    .hero__copy {
        gap: 1.1rem;
    }

    .hero__metrics {
        gap: 0.6rem;
    }

    .metric-card {
        padding: 1rem 0.85rem;
    }

    .metric-card__value,
    .metric-card__suffix {
        font-size: 1.75rem;
    }

    .metric-card p {
        font-size: 0.78rem;
    }

    .hero__art {
        display: none;
    }

    .mission-panel {
        padding: 1.25rem;
        gap: 1rem;
    }

    .about-visual {
        margin-bottom: 1.25rem;
    }

    .project-card__body {
        padding: 1.25rem;
        gap: 0.85rem;
    }

    .service-card {
        padding: 1.25rem;
    }

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

    .contact-actions .button {
        width: 100%;
    }

    .section {
        padding-bottom: 3rem;
    }

    .section,
    .site-footer,
    .marquee,
    .site-header {
        width: min(1120px, calc(100vw - 1.25rem));
    }

    .modal__panel {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@keyframes orbitPulse {
    0%,
    100% {
        opacity: 0.65;
        filter: drop-shadow(0 0 0 rgba(46, 230, 255, 0));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(46, 230, 255, 0.4));
    }
}

@keyframes ctaSweep {
    0% {
        transform: translateX(-260%) rotate(18deg);
    }

    50% {
        transform: translateX(280%) rotate(18deg);
    }

    100% {
        transform: translateX(280%) rotate(18deg);
    }
}

@keyframes gridDrift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-34px, -18px);
    }
}