:root {
    --blue: #0026B3;
    --cyan: #31D7FF;
    --coral: #FF6B57;
    --navy: #07153D;
    --ink: #111827;
    --muted: #64748B;
    --soft: #94A3B8;
    --paper: #FBFCFF;
    --line: rgba(7, 21, 61, 0.12);
    --line-soft: rgba(7, 21, 61, 0.045);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--navy);
    background:
        radial-gradient(circle at 76% 31%, rgba(49, 215, 255, 0.075), transparent 25rem),
        radial-gradient(circle at 14% 82%, rgba(0, 38, 179, 0.055), transparent 30rem),
        var(--paper);
    font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

::selection {
    color: white;
    background: var(--blue);
}

.page-grid {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(7, 21, 61, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 21, 61, 0.055) 1px, transparent 1px),
        linear-gradient(rgba(7, 21, 61, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 21, 61, 0.022) 1px, transparent 1px);
    background-position: -1px -1px;
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
}

.ambient {
    position: fixed;
    z-index: -4;
    border-radius: 50%;
    pointer-events: none;
}

.ambient-cyan {
    width: 660px;
    height: 660px;
    top: -500px;
    left: -300px;
    border: 110px solid rgba(49, 215, 255, 0.055);
}

.ambient-blue {
    width: 820px;
    height: 820px;
    right: -600px;
    bottom: -620px;
    border: 1px solid rgba(0, 38, 179, 0.16);
}

.side-rail {
    position: fixed;
    top: 13vh;
    right: 0;
    z-index: 30;
    display: flex;
    width: 5px;
    height: 42vh;
    flex-direction: column;
    pointer-events: none;
}

.side-rail span:nth-child(1) { flex: 7; background: var(--blue); }
.side-rail span:nth-child(2) { flex: 2; background: var(--cyan); }
.side-rail span:nth-child(3) { flex: 1; background: var(--coral); }

.maintenance-page {
    position: relative;
    display: flex;
    width: min(100%, 1600px);
    min-height: 100svh;
    margin: 0 auto;
    padding: 24px clamp(20px, 4vw, 68px) 18px;
    flex-direction: column;
    isolation: isolate;
    overflow-x: hidden;
}

.site-header {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
}

.brand-lockup {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 12px;
    color: var(--blue);
}

.brand-mark {
    width: 40px;
    height: auto;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.project-meta {
    display: flex;
    justify-self: end;
    flex-direction: column;
    align-items: flex-end;
}

.project-meta small {
    color: var(--soft);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.project-meta strong {
    margin-top: 4px;
    color: var(--blue);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.sun-stage {
    position: absolute;
    top: clamp(12px, 1.5vh, 18px);
    right: clamp(-72px, -1.8vw, 18px);
    z-index: 0;
    width: clamp(600px, 60vw, 900px);
    aspect-ratio: 1 / 1;
    opacity: 0.88;
    pointer-events: none;
}

.sun-stage::before,
.sun-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sun-stage::before {
    inset: 8% 6% 6% 8%;
    border-radius: 50%;
    /* background: radial-gradient(circle, rgba(49, 215, 255, .11), rgba(0, 38, 179, .04) 44%, transparent 72%); */
    filter: blur(22px);
}

.sun-stage::after {
    inset: 0;
    /* background:
        radial-gradient(circle at 24% 46%, rgba(251, 252, 255, 0.84), rgba(251, 252, 255, 0.55) 17%, rgba(251, 252, 255, 0.12) 36%, transparent 54%),
        linear-gradient(90deg, rgba(251, 252, 255, 0.62) 0%, rgba(251, 252, 255, 0.28) 18%, rgba(251, 252, 255, 0.06) 34%, transparent 50%); */
}

.sun-frame {
    position: relative;
    overflow: visible;
    width: 100%;
    height: 100%;
    background: transparent;
    isolation: isolate;
}

#sunCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.74;
}

.hero {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: min(700px, calc(100svh - 120px));
    grid-template-columns: 1fr;
    align-items: center;
    padding: clamp(44px, 6vh, 84px) clamp(260px, 27vw, 470px) clamp(36px, 5vh, 62px) 0;
}

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

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.eyebrow i {
    width: 24px;
    height: 1px;
    background: rgba(0, 38, 179, 0.28);
}

h1 {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--navy);
    font-size: clamp(58px, 7.3vw, 116px);
    font-weight: 900;
    letter-spacing: -0.072em;
    line-height: 0.84;
}

h1 span,
h1 strong {
    display: block;
}

h1 strong {
    color: var(--blue);
    font-weight: inherit;
}

.hero-description {
    max-width: 680px;
    margin: 30px 0 0;
    padding-left: 21px;
    border-left: 3px solid var(--cyan);
    color: #56637A;
    font-size: clamp(14px, 1.05vw, 17px);
    font-weight: 500;
    line-height: 1.72;
}

.service-line {
    display: grid;
    max-width: 650px;
    margin-top: 30px;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(7, 21, 61, 0.10);
    border-bottom: 1px solid rgba(7, 21, 61, 0.10);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
}

.service-line div {
    display: flex;
    min-height: 52px;
    padding: 0 15px;
    align-items: center;
    gap: 11px;
    border-right: 1px solid var(--line);
}

.service-line div:first-child {
    padding-left: 0;
}

.service-line div:last-child {
    border-right: 0;
}

.service-line small {
    color: var(--blue);
    font-size: 8px;
    font-weight: 900;
}

.service-line span {
    color: #536178;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.03em;
}

.contact-actions {
    display: flex;
    margin-top: 30px;
    align-items: center;
    gap: 26px;
}

.primary-action {
    display: inline-flex;
    min-width: 230px;
    min-height: 52px;
    padding: 0 18px 0 20px;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    border-radius: 9px;
    background: var(--blue);
    color: white;
    box-shadow: 0 14px 34px rgba(0, 38, 179, 0.17);
    font-size: 11px;
    font-weight: 850;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.primary-action svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
    transition: transform .25s ease;
}

.primary-action:hover {
    background: #001F96;
    box-shadow: 0 18px 40px rgba(0, 38, 179, 0.23);
    transform: translateY(-2px);
}

.primary-action:hover svg {
    transform: translate(2px, -1px) rotate(-4deg);
}

.text-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    padding: 0 0 0 20px;
}

.text-action span {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--blue);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.text-action:hover span {
    border-color: rgba(0, 38, 179, 0.25);
    background: rgba(0, 38, 179, 0.05);
    transform: translate(2px, -2px);
}

.lower-panel {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(251, 252, 255, 0.32), rgba(251, 252, 255, 0.16));
    backdrop-filter: blur(2px);
}

.contact-block,
.collaboration-block {
    min-width: 0;
    padding: 48px 0;
}

.contact-block {
    display: grid;
    grid-template-columns: minmax(180px, .35fr) minmax(0, .65fr);
    align-items: center;
    gap: 28px;
}

.collaboration-block {
    border-top: 1px solid var(--line);
    padding-bottom: 0;
}

.panel-label {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--blue);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.panel-label i {
    width: 36px;
    height: 1px;
    background: rgba(0, 38, 179, .25);
}

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

.contact-grid a {
    display: flex;
    min-width: 0;
    min-height: 54px;
    padding: 0 24px;
    justify-content: center;
    flex-direction: column;
    border-left: 1px solid var(--line);
}

.contact-grid small {
    color: var(--soft);
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .06em;
}

.contact-grid strong {
    overflow: hidden;
    margin-top: 6px;
    color: #526077;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s ease;
}

.contact-grid a:hover strong {
    color: var(--blue);
}

.collaboration-block > .panel-label {
    margin-bottom: 22px;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    padding: 0 0 32px 0;
}

.client-logo {
    display: flex;
    min-width: 0;
    min-height: 126px;
    padding: 18px 12px 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 13px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.client-logo:hover {
    z-index: 2;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 40px rgba(7, 21, 61, .065);
    transform: translateY(-3px);
}

.client-logo-art {
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: center;
}

.client-logo-art img {
    width: auto;
    max-width: 78px;
    max-height: 43px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .58;
    transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.client-logo:hover .client-logo-art img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.03);
}

.client-logo strong {
    color: #647086;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.35;
    transition: color .25s ease;
}

.client-logo strong span {
    color: #8993A5;
    font-size: 6.5px;
    font-weight: 650;
}

.client-logo:hover strong {
    color: var(--blue);
}

.site-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 56px;
    align-items: end;
    padding-top: 15px;
    color: var(--soft);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .05em;
}

.site-footer .footer-note {
    text-align: center;
}

.site-footer a {
    justify-self: end;
    color: var(--blue);
    font-weight: 850;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity .8s cubic-bezier(.22, 1, .36, 1),
        transform .8s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 1320px) {
    .client-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .maintenance-page {
        padding-inline: 28px;
    }

    .sun-stage {
        top: 78px;
        right: -54px;
        width: clamp(630px, 72vw, 940px);
        opacity: 0.78;
    }

    .hero {
        min-height: auto;
        padding-right: clamp(170px, 22vw, 300px);
    }

    h1 {
        font-size: clamp(58px, 8vw, 92px);
    }
}

@media (max-width: 860px) {
    .maintenance-page {
        padding: 18px 20px 14px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .hero {
        min-height: auto;
        padding-top: 48px;
        padding-right: 0;
        padding-bottom: 28px;
    }

    .hero-copy {
        max-width: none;
    }

    h1 {
        max-width: 690px;
        font-size: clamp(58px, 14vw, 96px);
    }

    .hero-description {
        max-width: 690px;
    }

    .sun-stage {
        top: 82px;
        right: -112px;
        width: clamp(460px, 92vw, 680px);
        opacity: 0.40;
    }

    #sunCanvas {
        opacity: 0.52;
    }

    .contact-block {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-grid a:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .site-footer {
        grid-template-columns: 1fr auto;
    }

    .site-footer .footer-note {
        display: none;
    }
}

@media (max-width: 640px) {
    .page-grid {
        background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
    }

    .side-rail {
        width: 3px;
    }

    .hero {
        padding-top: 38px;
    }

    .eyebrow {
        flex-wrap: wrap;
        gap: 8px;
    }

    .eyebrow i {
        width: 15px;
    }

    h1 {
        margin-top: 18px;
        font-size: clamp(52px, 17vw, 76px);
        letter-spacing: -.065em;
        line-height: .88;
    }

    .hero-description {
        margin-top: 24px;
        padding-left: 16px;
        font-size: 14px;
    }

    .service-line {
        grid-template-columns: 1fr;
    }

    .service-line div {
        min-height: 42px;
        padding: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .service-line div:last-child {
        border-bottom: 0;
    }

    .contact-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .primary-action {
        width: 100%;
    }

    .text-action {
        width: max-content;
    }

    .sun-stage {
        top: 78px;
        right: -128px;
        width: 448px;
        opacity: 0.27;
    }

    .lower-panel {
        margin-top: 6px;
    }

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

    .contact-grid a {
        min-height: 58px;
        padding: 11px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .contact-grid a:last-child {
        border-bottom: 0;
    }

    .contact-grid strong {
        font-size: 11px;
    }

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

    .client-logo {
        min-height: 116px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: start;
        padding: 15px 0 4px;
    }

    .site-footer a {
        justify-self: start;
    }
}

@media (max-width: 420px) {
    .sun-stage {
        right: -148px;
        width: 410px;
        opacity: 0.23;
    }

    .client-grid {
        grid-template-columns: 1fr;
    }
}

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

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