:root {
    --bg: #050914;
    --card: rgba(15, 25, 46, 0.72);
    --ink: #f7faff;
    --text: #d6e0f0;
    --muted: #a9b8d3;
    --line: rgba(159, 183, 224, 0.17);
    --blue: #2f62f5;
    --blue-dark: #1f4fd6;
    --sky: #74c6ff;
    --violet: #8a5cff;
    --gold: #ffd166;
    --radius: 22px;
    --container: min(1240px, calc(100% - 2.5rem));
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --display: Sora, Inter, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p,
dl,
dd {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

section[id] {
    scroll-margin-top: 84px;
}

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

.skip-link {
    position: absolute;
    left: -999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 40;
    padding: 0.6rem 1rem;
    color: #111;
    background: #fff;
    border-radius: 8px;
}

/* ---------- Ambient background: three slow colour pools, moved with transforms only ---------- */

.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}

.aurora span:nth-child(1) {
    width: 52vw;
    height: 52vw;
    top: -16vw;
    right: -8vw;
    background: rgba(47, 98, 245, 0.42);
    animation: float-a 22s ease-in-out infinite alternate;
}

.aurora span:nth-child(2) {
    width: 40vw;
    height: 40vw;
    top: 34vh;
    left: -16vw;
    background: rgba(138, 92, 255, 0.24);
    animation: float-b 26s ease-in-out infinite alternate;
}

.aurora span:nth-child(3) {
    width: 34vw;
    height: 34vw;
    bottom: -14vw;
    right: 18vw;
    background: rgba(50, 190, 230, 0.18);
    animation: float-c 30s ease-in-out infinite alternate;
}

@keyframes float-a {
    to {
        transform: translate3d(-16vw, 12vh, 0) scale(1.15);
    }
}

@keyframes float-b {
    to {
        transform: translate3d(14vw, -16vh, 0) scale(0.9);
    }
}

@keyframes float-c {
    to {
        transform: translate3d(-18vw, -14vh, 0) scale(1.2);
    }
}

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    height: 3px;
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    background: linear-gradient(90deg, var(--blue), var(--sky), var(--gold));
}

/* ---------- Floating header ---------- */

.header {
    position: sticky;
    top: 12px;
    z-index: 20;
    width: var(--container);
    margin: 12px auto 0;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 62px;
    padding: 0.45rem 0.55rem 0.45rem 1.25rem;
    border-radius: 999px;
    background: rgba(10, 18, 34, 0.68);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.brand img {
    width: 142px;
}

.nav {
    display: flex;
    gap: clamp(0.15rem, 1vw, 0.4rem);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav a {
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    transition: background 200ms ease, color 200ms ease;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- Buttons ---------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.75rem 1.6rem;
    overflow: hidden;
    border-radius: 999px;
    font-weight: 600;
    isolation: isolate;
    transition: transform 350ms var(--ease), box-shadow 250ms ease, border-color 200ms ease, background 200ms ease;
}

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

/* Light sweep across the button on hover */
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 700ms var(--ease);
}

.btn:hover::after {
    transform: translateX(110%);
}

.btn-small {
    flex: none;
    min-height: 46px;
    padding: 0.5rem 1.3rem;
    font-size: 0.94rem;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #3a6dff, var(--blue-dark));
    box-shadow: 0 12px 32px rgba(47, 98, 245, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 18px 46px rgba(47, 98, 245, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(159, 183, 224, 0.36);
}

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

.btn-white {
    color: #173aa8;
    background: #fff;
    box-shadow: 0 14px 32px rgba(5, 15, 50, 0.3);
}

.btn-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.arrow {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 300ms var(--ease);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
    color: var(--ink);
    font-family: var(--display);
    text-wrap: balance;
}

h1 {
    font-size: min(5.9vw, 11vh);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 700;
}

h3 {
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.accent,
.accent .word-in {
    background: linear-gradient(95deg, #a9d0ff, #74dcff 50%, #fff2cf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    /* keeps descenders from being clipped by the reveal mask */
    padding-bottom: 0.16em;
    margin-bottom: -0.16em;
}

.word-in {
    display: inline-block;
    transform: translateY(112%);
    transition: transform 950ms var(--ease);
    transition-delay: calc(var(--i, 0) * 45ms);
}

.shown .word-in {
    transform: none;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    color: var(--sky);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, var(--sky), transparent);
}

.lead {
    margin-top: 1.2rem;
    max-width: 48ch;
    font-size: 1.14rem;
}

.heading {
    max-width: 780px;
    margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.heading.center {
    text-align: center;
}

.section {
    padding-block: clamp(4.5rem, 9vw, 8rem);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100svh - 86px);
    padding-block: 1.5rem 3rem;
    /* The emblem's orbits reach past the screen edge on phones; they must not widen the page */
    overflow-x: clip;
}

.network {
    position: absolute;
    inset: -86px 0 0 0;
    width: 100%;
    height: calc(100% + 86px);
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 70%, transparent);
    mask: linear-gradient(#000 70%, transparent);
}

.hero-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    gap: 1.5rem;
    align-items: center;
}

.hero-copy {
    max-width: 50ch;
    margin-top: 1.5rem;
    font-size: 1.16rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.metrics {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.8rem clamp(1.4rem, 3vw, 2.6rem);
    margin-top: 2.4rem;
    padding: 1rem 1.6rem;
    border-radius: 20px;
    background: rgba(15, 25, 46, 0.55);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.metrics div {
    display: flex;
    flex-direction: column;
}

.metrics dd {
    color: #fff;
    font-family: var(--display);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.metrics dt {
    color: var(--muted);
    font-size: 0.86rem;
}

/* ---------- CSS 3D emblem ---------- */

.stage {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1;
    justify-self: center;
    perspective: 1100px;
}

.stage::before {
    content: "";
    position: absolute;
    inset: 2%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 120, 255, 0.55), rgba(138, 92, 255, 0.16) 45%, transparent 70%);
    animation: pulse 6s ease-in-out infinite alternate;
}

@keyframes pulse {
    to {
        transform: scale(1.1);
        opacity: 0.75;
    }
}

.emblem {
    --rx: 6deg;
    --ry: -24deg;
    position: absolute;
    inset: 20%;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
}

.layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.layer-front {
    filter: drop-shadow(0 0 22px rgba(90, 150, 255, 0.5));
}

/* Band of light that travels across the logo face, masked to the logo's own shape */
.sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%) 0 0 / 280% 100%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 428 430'%3E%3Cpath d='M233 8C205-4 168 0 140 25L20 145C-7 172-7 238 20 265L106 345V120L152 75L233 200ZM294 55L385 145C415 175 415 235 385 265L262 385C235 412 195 416 168 398V215L250 340L294 296Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 428 430'%3E%3Cpath d='M233 8C205-4 168 0 140 25L20 145C-7 172-7 238 20 265L106 345V120L152 75L233 200ZM294 55L385 145C415 175 415 235 385 265L262 385C235 412 195 416 168 398V215L250 340L294 296Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: sheen 5.5s ease-in-out infinite;
}

@keyframes sheen {
    0% {
        background-position: 130% 0;
    }

    60%,
    100% {
        background-position: -40% 0;
    }
}

.orbit {
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.orbit-a {
    transform: rotateX(72deg) rotateY(-10deg);
}

.orbit-b {
    inset: -26%;
    transform: rotateX(66deg) rotateY(36deg);
}

.orbit-c {
    inset: -33%;
    transform: rotateX(78deg) rotateY(-44deg);
}

.orbit i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(116, 198, 255, 0.5);
    animation: spin 12s linear infinite;
}

.orbit-b i {
    border-color: rgba(255, 209, 102, 0.5);
    animation-duration: 17s;
    animation-direction: reverse;
}

.orbit-c i {
    border-color: rgba(138, 92, 255, 0.55);
    animation-duration: 22s;
}

.orbit i::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: var(--sky);
    box-shadow: 0 0 18px 2px var(--sky);
}

.orbit-b i::after {
    background: var(--gold);
    box-shadow: 0 0 18px 2px var(--gold);
}

.orbit-c i::after {
    background: var(--violet);
    box-shadow: 0 0 18px 2px var(--violet);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.chip {
    position: absolute;
    padding: 0.6rem 1rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 14px;
    background: rgba(12, 22, 42, 0.74);
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: bob 5s ease-in-out infinite alternate;
}

.chip::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.55rem;
    vertical-align: 1px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.chip-a {
    top: 11%;
    left: 0;
}

.chip-b {
    right: 0;
    bottom: 13%;
    animation-delay: -2.5s;
}

@keyframes bob {
    to {
        transform: translateY(-14px);
    }
}

/* ---------- Outline text band ---------- */

.band {
    overflow: hidden;
    padding-block: 0.8rem;
    border-block: 1px solid var(--line);
}

.band-track {
    display: flex;
    align-items: center;
    width: max-content;
    font-family: var(--display);
    font-size: clamp(1rem, 1.7vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    white-space: nowrap;
    color: #c6d5ec;
    animation: band 60s linear infinite;
}

/* The service names matter: pause so they can be read at leisure */
.band:hover .band-track {
    animation-play-state: paused;
}

.band-track span::after {
    content: "";
    display: inline-block;
    width: 0.26em;
    height: 0.26em;
    margin-inline: 1.5rem;
    vertical-align: 0.22em;
    border-radius: 3px;
    transform: rotate(45deg);
    background: var(--sky);
}

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

/* ---------- About ---------- */

.about-row {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}

.about-visual {
    position: relative;
    padding-bottom: 9%;
    transform: perspective(1200px) rotateY(var(--turn, 0deg));
}

.about-main {
    filter: brightness(0.94);
}

.about-float {
    position: absolute;
    left: -3%;
    bottom: 0;
    width: 44%;
    padding: 6px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(116, 198, 255, 0.7), rgba(138, 92, 255, 0.6));
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- Service cards ---------- */

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

.span-4 {
    grid-column: span 4;
}

.span-5 {
    grid-column: span 5;
}

.span-7 {
    grid-column: span 7;
}

.span-12 {
    grid-column: span 12;
}

.card {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 0%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 262px;
    padding: 1.7rem;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 300ms var(--ease), opacity 700ms ease, translate 700ms var(--ease);
}

/* Bright border and soft surface light that follow the pointer */
.card::before,
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.card::before {
    padding: 1.5px;
    background: radial-gradient(320px circle at var(--mx) var(--my), #a6dcff, rgba(138, 92, 255, 0.6) 45%, transparent 72%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.card::after {
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(70, 130, 255, 0.2), transparent 70%);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.card-no {
    position: absolute;
    top: 0.7rem;
    right: 1.3rem;
    font-family: var(--display);
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: transparent;
    -webkit-text-stroke: 1px rgba(190, 215, 255, 0.3);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: auto;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(116, 198, 255, 0.2), rgba(138, 92, 255, 0.14));
    border: 1px solid var(--line);
    transition: transform 450ms var(--ease);
}

.card:hover .card-icon {
    transform: translateY(-4px) rotate(-5deg) scale(1.06);
}

.card-icon img {
    width: 44px;
    height: 44px;
}

.card h3 {
    margin-top: 1.3rem;
}

.card p {
    margin-top: 0.35rem;
    font-size: 0.98rem;
    color: var(--muted);
}

.card-wide {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.4rem;
    min-height: 0;
}

.card-wide .card-icon {
    flex: none;
    margin: 0;
}

.card-wide h3 {
    margin-top: 0;
}

/* ---------- Portfolio: swipeable row, upgraded to a 3D ring on desktop by simple.js ---------- */

.work {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.ring-view {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ring-view::-webkit-scrollbar {
    display: none;
}

.ring {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding-inline: max(1.25rem, calc((100vw - 1240px) / 2));
}

.project {
    position: relative;
    display: block;
    flex: none;
    width: min(76vw, 340px);
    aspect-ratio: 1;
    overflow: hidden;
    scroll-snap-align: center;
    background: #0d1729;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms var(--ease);
}

.project:hover img {
    transform: scale(1.06);
}

.project-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 3rem 1.25rem 1.1rem;
    line-height: 1.35;
    background: linear-gradient(transparent, rgba(3, 8, 15, 0.95) 55%);
}

.project-info strong {
    display: block;
    color: #fff;
    font-family: var(--display);
    font-size: 1.12rem;
    font-weight: 600;
}

.project-info small {
    color: var(--text);
    font-size: 0.9rem;
}

.ring-on.work {
    height: 340vh;
    padding: 0;
}

.ring-on .work-sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 92px;
    overflow: hidden;
}

.ring-on .work-heading {
    max-width: none;
    margin-bottom: 0.8rem;
}

.ring-on .work-heading .kicker {
    margin-bottom: 0.5rem;
}

.ring-on .work-heading h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.9rem);
}

.ring-on .ring-view {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    overflow: visible;
    perspective: 1500px;
    perspective-origin: 50% 42%;
}

.ring-on .ring {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    padding: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

.ring-on .project {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(60vh, 34vw);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(47, 98, 245, 0.28);
}

/* ---------- Partners ---------- */

.partners {
    padding-top: clamp(3.5rem, 7vw, 6rem);
}

.marquee {
    overflow: hidden;
    padding-block: 5rem;
    margin-block: -2.5rem;
    -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-plane {
    display: grid;
    gap: 0.9rem;
    transform: perspective(1100px) rotateX(14deg) rotateZ(-3deg) scale(1.08);
}

.marquee-track {
    display: flex;
    gap: 0.9rem;
    width: max-content;
    animation: marquee 36s linear infinite;
}

.marquee-track.reverse {
    animation-direction: reverse;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    to {
        transform: translateX(calc(-50% - 0.45rem));
    }
}

.logo {
    flex: none;
    display: grid;
    place-items: center;
    width: 190px;
    height: 92px;
    padding: 0.75rem 1.4rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.logo img {
    width: auto;
    max-height: 64px;
    object-fit: contain;
}

/* ---------- Contact ---------- */

.cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: end;
    margin-top: 3.5rem;
    border-radius: 30px;
    background: linear-gradient(120deg, #1a3fc4, #2f62f5, #6a4bf0, #2f62f5) 0 0 / 300% 100%;
    animation: cta-shift 16s ease-in-out infinite alternate;
    /* Trims the photo at the band's bottom and sides but lets his head rise above the top */
    clip-path: inset(-150px 0 0 0 round 30px);
}

@keyframes cta-shift {
    to {
        background-position: 100% 0;
    }
}

.cta-text {
    padding: clamp(2.25rem, 5vw, 4.25rem);
    align-self: center;
}

.cta h2 {
    max-width: 14ch;
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    font-weight: 800;
}

.cta-person {
    justify-self: center;
    width: min(100%, 420px);
    margin-top: -4rem;
}

/* ---------- Footer: full-width band, content kept inside side margins ---------- */

#contact {
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.footer {
    font-size: 0.9rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: linear-gradient(rgba(58, 109, 255, 0.07), rgba(3, 6, 14, 0.6));
}

.footer-inner {
    padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.25rem, 5vw, 6rem) 1.2rem;
}

.footer-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.14em;
    font-family: var(--display);
    font-size: min(11.4vw, 13rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.045em;
    white-space: nowrap;
    user-select: none;
}

.footer-name svg {
    flex: none;
    width: 0.96em;
    height: 0.96em;
    fill: rgba(150, 185, 255, 0.34);
    animation: foot-breathe 7s ease-in-out infinite;
}

@keyframes foot-breathe {
    50% {
        fill: rgba(170, 200, 255, 0.58);
    }
}

.footer-name span {
    background: linear-gradient(100deg, rgba(160, 190, 250, 0.3) 40%, rgba(238, 245, 255, 0.82) 50%, rgba(160, 190, 250, 0.3) 60%) 120% 0 / 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: foot-sheen 7s ease-in-out infinite;
}

/* A soft band of light passes across the letters */
@keyframes foot-sheen {
    0%,
    30% {
        background-position: 120% 0;
    }

    80%,
    100% {
        background-position: -20% 0;
    }
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
    margin-top: clamp(0.8rem, 1.6vw, 1.4rem);
}

@media (max-width: 560px) {
    .footer-row {
        justify-content: center;
        text-align: center;
    }
}

/* ---------- Scroll reveal: classes are applied by simple.js, so content shows without JS ---------- */

.reveal {
    opacity: 0;
    translate: 0 30px;
    transition: opacity 750ms ease, translate 750ms var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.card.reveal {
    transition: transform 300ms var(--ease), opacity 750ms ease calc(var(--i, 0) * 70ms), translate 750ms var(--ease) calc(var(--i, 0) * 70ms);
}

.reveal.shown {
    opacity: 1;
    translate: 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
    h1 {
        font-size: clamp(2.5rem, 8.4vw, 4.6rem);
    }

    .hero {
        min-height: 0;
    }

    .hero-row,
    .about-row {
        grid-template-columns: 1fr;
    }

    .stage {
        order: -1;
        width: min(84%, 400px);
    }

    .nav-about,
    .nav-partners {
        display: none;
    }
}

@media (max-width: 820px) {
    .span-4,
    .span-5,
    .span-7 {
        grid-column: span 12;
    }

    .card {
        min-height: 220px;
    }

    .card-wide {
        min-height: 0;
    }

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

    .cta-text {
        padding-bottom: 1rem;
    }

    .cta-person {
        width: min(72%, 280px);
        margin-top: 0;
    }
}

@media (max-width: 560px) {
    .header-row {
        padding-left: 0.95rem;
    }

    .brand img {
        width: 112px;
    }

    .nav {
        font-size: 0.86rem;
    }

    .nav a {
        padding-inline: 0.45rem;
    }

    .btn-small {
        padding-inline: 0.9rem;
        font-size: 0.86rem;
    }

    .actions .btn {
        flex: 1 1 100%;
    }

    .metrics {
        display: flex;
        justify-content: space-between;
        padding: 0.9rem 1rem;
        gap: 0.6rem;
    }

    .metrics dd {
        font-size: 1.45rem;
    }

    .metrics dt {
        font-size: 0.76rem;
        line-height: 1.3;
    }

    .metrics div {
        flex: 1 1 0;
    }

    .chip {
        font-size: 0.78rem;
        padding: 0.45rem 0.7rem;
    }

    .logo {
        width: 150px;
        height: 78px;
    }

    .logo img {
        max-height: 54px;
    }
}

@media (max-width: 360px) {
    .brand img {
        width: 94px;
    }

    .nav a:not(:last-child) {
        padding-inline: 0.3rem;
    }

    .btn-small {
        padding-inline: 0.7rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Less motion requested: slow ambient light stays, but anything that travels across the
   screen as content appears is replaced with a plain fade. */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        translate: none;
    }

    .word {
        overflow: visible;
    }

    .word-in {
        transform: none;
        opacity: 0;
        transition: opacity 600ms ease;
        transition-delay: calc(var(--i, 0) * 30ms);
    }

    .shown .word-in {
        opacity: 1;
    }
}
