:root {
    --bg: #081114;
    --bg-soft: #102025;
    --panel: rgba(10, 22, 26, 0.78);
    --panel-strong: rgba(11, 28, 34, 0.92);
    --line: rgba(141, 197, 191, 0.16);
    --line-strong: rgba(141, 197, 191, 0.34);
    --text: #f6f0e6;
    --muted: #b4c2bd;
    --accent: #77f1cf;
    --accent-strong: #48d6b1;
    --accent-warm: #ff8c61;
    --accent-cool: #8ab8ff;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
    --radius: 26px;
    --shell: min(1180px, calc(100vw - 2rem));
    --header-height: 82px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Instrument Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(138, 184, 255, 0.12), transparent 28%),
        radial-gradient(circle at left 20%, rgba(255, 140, 97, 0.1), transparent 24%),
        linear-gradient(180deg, #071013 0%, #0a171b 55%, #081114 100%);
    line-height: 1.55;
    overflow-x: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
    color: inherit;
}

.page-grid,
.page-glow {
    pointer-events: none;
    position: fixed;
    inset: 0;
}

.page-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
    z-index: -2;
}

.page-glow {
    filter: blur(90px);
    opacity: 0.8;
    z-index: -3;
    animation: drift-glow 18s ease-in-out infinite;
}

.glow-a {
    top: -12rem;
    left: 10%;
    width: 24rem;
    height: 24rem;
    background: rgba(119, 241, 207, 0.14);
}

.glow-b {
    right: 6%;
    bottom: 8%;
    width: 28rem;
    height: 28rem;
    background: rgba(255, 140, 97, 0.11);
    animation-duration: 24s;
    animation-direction: alternate-reverse;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(7, 16, 19, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(246, 240, 230, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.nav {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.brand-mark {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #081114;
    background: linear-gradient(135deg, var(--accent) 0%, #c8fff3 48%, var(--accent-warm) 100%);
    box-shadow: 0 10px 30px rgba(119, 241, 207, 0.24);
}

.brand-copy {
    display: grid;
    gap: 0.1rem;
}

.brand-copy strong {
    font-size: 0.96rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-copy span {
    font-size: 0.82rem;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    font-size: 0.97rem;
    color: var(--muted);
    transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
}

.nav-button {
    padding: 0.84rem 1.2rem;
    border-radius: 999px;
    color: #081114 !important;
    background: linear-gradient(135deg, var(--accent) 0%, #d0fff4 48%, var(--accent-warm) 100%);
    box-shadow: 0 14px 35px rgba(119, 241, 207, 0.18);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(246, 240, 230, 0.12);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-toggle span {
    width: 1.2rem;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

.hero {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
    padding: 4.5rem 0 5rem;
}

.hero-copy {
    max-width: 42rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Syne", sans-serif;
    line-height: 1.02;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.95rem, 5.8vw, 5.15rem);
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero-text,
.section-heading p,
.split-copy p,
.service-card p,
.principle-card p,
.timeline-step p,
.engagement-card p,
.faq-item p,
.contact-copy p,
.form-note,
.hero-note p {
    color: var(--muted);
}

.hero-text {
    max-width: 62ch;
    margin: 1.2rem 0 0;
    font-size: clamp(1rem, 1.2vw, 1.14rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.45rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #081114;
    background: linear-gradient(135deg, var(--accent) 0%, #d0fff4 55%, var(--accent-warm) 100%);
    box-shadow: 0 18px 38px rgba(119, 241, 207, 0.2);
}

.button-secondary {
    border: 1px solid rgba(246, 240, 230, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.hero-list,
.contact-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.hero-list li,
.contact-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text);
}

.hero-list li::before,
.contact-list li::before {
    content: "";
    position: absolute;
    top: 0.62rem;
    left: 0;
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
    box-shadow: 0 0 0 6px rgba(119, 241, 207, 0.09);
}

.hero-visual {
    position: relative;
}

.system-panel,
.service-card,
.principle-card,
.timeline-step,
.engagement-card,
.contact-card,
.faq-item {
    background: var(--panel);
    border: 1px solid rgba(246, 240, 230, 0.08);
    box-shadow: var(--shadow);
}

.system-panel {
    border-radius: calc(var(--radius) + 6px);
    padding: 1.1rem;
    overflow: hidden;
    animation: panel-float 7s ease-in-out infinite;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.65rem 1rem;
}

.panel-header p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.panel-dots {
    display: flex;
    gap: 0.45rem;
}

.panel-dots span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(246, 240, 230, 0.24);
}

.panel-dots span:nth-child(1) {
    background: #ff8c61;
}

.panel-dots span:nth-child(2) {
    background: #ffd269;
}

.panel-dots span:nth-child(3) {
    background: #77f1cf;
}

.system-grid {
    display: grid;
    gap: 1rem;
}

.system-card {
    border-radius: 1.4rem;
    padding: 1.35rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.system-card-accent {
    background:
        radial-gradient(circle at top right, rgba(119, 241, 207, 0.14), transparent 35%),
        rgba(255, 255, 255, 0.03);
    border-color: rgba(119, 241, 207, 0.18);
}

.card-label {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
}

.system-card h2 {
    font-size: clamp(1.22rem, 2.3vw, 1.68rem);
}

.system-card ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
    color: var(--muted);
}

.signal-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.signal-strip span {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: var(--muted);
}

.hero-note {
    max-width: 21rem;
    margin-top: 1.2rem;
    margin-left: auto;
    padding: 1.15rem 1.2rem;
    border-radius: 1.3rem;
    background: rgba(10, 26, 31, 0.82);
    border: 1px solid rgba(119, 241, 207, 0.16);
    animation: note-drift 6s ease-in-out infinite 0.8s;
}

.hero-note-title {
    margin-bottom: 0.4rem;
    color: var(--text) !important;
    font-weight: 700;
}

.ticker {
    border-top: 1px solid rgba(246, 240, 230, 0.06);
    border-bottom: 1px solid rgba(246, 240, 230, 0.06);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 1rem;
    min-width: max-content;
    padding: 1rem 0;
    animation: ticker 26s linear infinite;
}

.ticker-track span {
    padding: 0.52rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.section {
    padding: 6.5rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
    border-top: 1px solid rgba(246, 240, 230, 0.05);
    border-bottom: 1px solid rgba(246, 240, 230, 0.05);
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 2.4rem;
}

.section-heading h2,
.split-copy h2,
.contact-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    text-wrap: balance;
}

.section-heading p,
.split-copy p,
.contact-copy p {
    margin-top: 1rem;
    max-width: 62ch;
    font-size: 1.05rem;
}

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

.service-card,
.engagement-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    min-height: 16rem;
    position: relative;
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card::before,
.engagement-card::before,
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(119, 241, 207, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 140, 97, 0.1), transparent 28%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.service-card:hover::before,
.engagement-card:hover::before,
.contact-card:hover::before {
    opacity: 1;
}

.service-card:hover,
.principle-card:hover,
.timeline-step:hover,
.engagement-card:hover,
.faq-item:hover {
    transform: translateY(-6px);
    border-color: rgba(119, 241, 207, 0.16);
}

.service-card > *,
.engagement-card > *,
.contact-card > * {
    position: relative;
    z-index: 1;
}

.card-index {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.service-card h3,
.principle-card h3,
.timeline-step h3,
.engagement-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.9rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.4rem;
    align-items: start;
}

.principle-stack {
    display: grid;
    gap: 1rem;
}

.principle-card {
    border-radius: var(--radius);
    padding: 1.35rem 1.45rem;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

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

.timeline-step {
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.timeline-step::after {
    content: "";
    position: absolute;
    top: 2.3rem;
    right: -0.5rem;
    width: 1rem;
    height: 1px;
    background: var(--line-strong);
}

.timeline-step:last-child::after {
    display: none;
}

.timeline-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: rgba(119, 241, 207, 0.1);
    color: var(--accent);
    font-weight: 700;
}

.engagement-card-featured {
    border-color: rgba(119, 241, 207, 0.28);
    background:
        radial-gradient(circle at top right, rgba(119, 241, 207, 0.16), transparent 34%),
        var(--panel-strong);
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border-radius: 1.4rem;
    padding: 1.25rem 1.35rem;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 1.08rem;
    font-weight: 700;
}

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

.faq-item p {
    margin: 0.85rem 0 0;
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
    gap: 2rem;
    border-radius: calc(var(--radius) + 6px);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

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

.contact-email {
    margin-top: 1.3rem;
    color: var(--muted);
}

@keyframes drift-glow {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(2rem, -1.5rem, 0) scale(1.08);
    }
}

@keyframes panel-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(-0.35deg);
    }
}

@keyframes note-drift {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.contact-form label {
    display: grid;
    gap: 0.55rem;
    color: var(--text);
    font-size: 0.96rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(246, 240, 230, 0.08);
    padding: 0.95rem 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 180ms ease, background-color 180ms ease;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(119, 241, 207, 0.34);
    background: rgba(255, 255, 255, 0.06);
}

.button-block {
    width: 100%;
}

.form-note {
    margin: 0;
    font-size: 0.93rem;
}

.site-footer {
    display: grid;
    gap: 1rem;
    padding: 2rem 0 3rem;
    border-top: 1px solid rgba(246, 240, 230, 0.06);
}

.footer-brand {
    width: fit-content;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
}

.footer-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

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

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

#services,
#process,
#engagements,
#faq,
#contact {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

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

    .hero h1 {
        max-width: 13ch;
    }

    .hero-note {
        margin-left: 0;
    }

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

    .timeline-step:nth-child(2)::after,
    .timeline-step:last-child::after {
        display: none;
    }

    .timeline-step::after {
        right: -0.6rem;
    }

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

@media (max-width: 760px) {
    :root {
        --shell: min(100vw - 1.2rem, 100vw - 1.2rem);
        --header-height: 74px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0.6rem;
        left: 0.6rem;
        display: grid;
        gap: 0.85rem;
        padding: 1rem;
        border-radius: 1.4rem;
        background: rgba(8, 17, 20, 0.94);
        border: 1px solid rgba(246, 240, 230, 0.08);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-button {
        text-align: center;
    }

    .hero {
        padding-top: 2.4rem;
        padding-bottom: 3rem;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.4rem, 12vw, 3.5rem);
    }

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

    .button {
        width: 100%;
    }

    .service-grid,
    .engagement-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline-step::after {
        display: none;
    }

    .service-card,
    .engagement-card {
        min-height: 0;
    }

    .section {
        padding: 4.6rem 0;
    }

    .site-footer {
        padding-bottom: 2rem;
    }
}

@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;
    }
}
