:root {
    --bg: #0B0C10;
    --surface: #121316;
    --text: #F2F1ED;
    --text-dim: #8C8D93;
    --accent: #9FB4E8;
    --line: rgba(242, 241, 237, .08);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    /* clears the fixed nav on anchor jumps */
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -.015em;
}

a {
    color: inherit;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
}


/* ---------- cursor ---------- */

.cursor-dot,
.cursor-ring {
    display: none;
    /* hidden by default, before the media query */
}

@media (hover:hover) and (pointer:fine) {
    body {
        cursor: none;
    }
    .cursor-dot,
    .cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 999;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        display: block;
    }
    .cursor-dot {
        width: 4px;
        height: 4px;
        background: var(--accent);
    }
    .cursor-ring {
        width: 28px;
        height: 28px;
        border: 1px solid rgba(159, 180, 232, .5);
        transition: width .25s, height .25s, opacity .25s;
    }
    .cursor-ring.hovering {
        width: 44px;
        height: 44px;
        opacity: .7;
    }
}


/* ---------- nav ---------- */

nav {
    position: fixed;
    /* fixed, so it no longer takes space above the intro */
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(32px + env(safe-area-inset-top, 0px)) 40px 32px;
    background: rgba(11, 12, 16, .75);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity .3s ease;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.logo span {
    color: var(--accent);
}

nav a.navcta {
    font-size: .9rem;
    color: var(--text-dim);
    transition: color .2s;
}

nav a.navcta:hover {
    color: var(--text);
}


/* ---------- intro ---------- */

.intro {
    height: 300vh;
    /* padding:0 overrides section{padding:150px 0} */
    padding: 0;
    position: relative;
}

.intro-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: var(--bg);
}


/* image panel: JS opens the clip-path from a slit to the full frame */

.intro-media {
    position: absolute;
    inset: 0;
    clip-path: inset(24px 50% 24px 50% round 2px);
    opacity: 0;
    /* fixed: was an invalid value (6), which browsers ignore, forcing this fully opaque and skipping the scroll fade-in */
    will-change: clip-path, opacity;
}

.intro-img {
    position: absolute;
    top: -6%;
    left: -2%;
    width: 104%;
    height: 112%;
    /* spare room for drift + mouse depth */
    object-fit: cover;
    object-position: center;
    transform: scale(1.3) translateZ(0);
    will-change: transform;
}

.intro-shade {
    /* heavier at the bottom so the name stays readable */
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 12, 16, .55) 0%, rgba(11, 12, 16, .1) 30%, rgba(11, 12, 16, .15) 55%, rgba(11, 12, 16, .85) 100%);
}

.intro-develop {
    /* starts dark, lifts as you scroll */
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: .7;
}


/* hairline frame */

.intro-frame {
    position: absolute;
    inset: 24px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(242, 241, 237, .16);
    border-radius: 2px;
}


/* details */

.label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(242, 241, 237, .62);
}

.intro-ui {
    position: absolute;
    left: 56px;
    right: 56px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.intro-top {
    top: 52px;
}

.intro-bottom {
    bottom: 52px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
}

.intro-progress {
    position: relative;
    height: 1px;
    background: rgba(242, 241, 237, .18);
}

.intro-progress i {
    position: absolute;
    inset: 0;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
}

.intro-count {
    font-variant-numeric: tabular-nums;
}

.intro-tags {
    display: block;
    margin-top: 14px;
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(242, 241, 237, .42);
}


/* the name: stationary */

.intro-name {
    position: absolute;
    z-index: 4;
    left: 56px;
    right: 56px;
    bottom: 112px;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(3.2rem, 11.5vw, 10rem);
    line-height: .9;
    letter-spacing: -.035em;
    white-space: nowrap;
    color: var(--text);
}

.intro-name em {
    font-style: italic;
    color: var(--accent);
}

.intro-desc {
    position: absolute;
    z-index: 4;
    right: 56px;
    bottom: 122px;
    max-width: 300px;
    text-align: left;
    font-size: .82rem;
    line-height: 1.6;
    color: rgba(242, 241, 237, .62);
}


/* quiet load-in for everything except the image (JS fades that on scroll) */

.intro-frame,
.intro-ui,
.intro-desc {
    animation: introFade 1.4s cubic-bezier(.22, .61, .36, 1) var(--intro-delay, 0s) backwards;
}

.intro-name {
    animation: introRise 1.6s cubic-bezier(.22, .61, .36, 1) calc(var(--intro-delay, 0s) + .25s) backwards;
}

@keyframes introFade {
    from {
        opacity: 0;
    }
}

@keyframes introRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@media (max-width:900px) {
    .intro-desc,
    .intro-mid {
        display: none;
    }
}

@media (max-width:760px) {
    .intro-frame {
        inset: 12px;
    }
    .intro-ui,
    .intro-name {
        left: 28px;
        right: 28px;
    }
    .intro-top {
        top: 32px;
    }
    .intro-bottom {
        bottom: 32px;
    }
    .intro-name {
        bottom: 76px;
    }
}


/* ---------- hero ---------- */

.hero {
    height: 340vh;
    /* taller = slower */
    padding: 0;
    position: relative;
}

.hero-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--bg);
}

#three-hero {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#three-hero canvas {
    display: block;
}


/* giant outlined word, far back */

.hero-ghost {
    position: absolute;
    display: none;
    left: 0;
    bottom: -2vw;
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(9rem, 27vw, 30rem);
    line-height: .8;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(242, 241, 237, .09);
    will-change: transform;
}


/* framed image, middle layer */

.hero-card {
    position: absolute;
    z-index: 2;
    margin: 0;
    right: clamp(24px, 8vw, 140px);
    top: 50%;
    width: clamp(200px, 24vw, 380px);
    aspect-ratio: 3/4;
    overflow: hidden;
    clip-path: inset(100% 0 0 0);
    will-change: transform, clip-path;
}

.hero-card img {
    position: absolute;
    left: 0;
    top: -10%;
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: saturate(.8) contrast(1.05);
    opacity: .85;
    will-change: transform;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(242, 241, 237, .14);
    background: linear-gradient(180deg, rgba(11, 12, 16, .2), rgba(11, 12, 16, .55));
}


/* text, front layer */

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 56px;
    will-change: transform, opacity;
}

.hero h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.8rem, 7.4vw, 6.8rem);
    line-height: .98;
    letter-spacing: -.03em;
    margin: 28px 0 40px;
}

.hero h1 .line {
    display: block;
    width: max-content;
    will-change: transform;
}

.hero h1 .line:nth-child(2) {
    margin-left: clamp(0px, 9vw, 150px);
    /* staggered indent */
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    max-width: 420px;
    margin-bottom: 40px;
    color: var(--text-dim);
    font-size: 1rem;
}

.hero .btn-row {
    display: flex;
    gap: 28px;
    align-items: center;
}


/* entrance: uses the separate `translate` property, so it never fights JS's `transform` */

.hero .eyebrow,
.hero .line,
.hero p,
.hero .btn-row,
.hero-card {
    opacity: 0;
}

@keyframes heroRise {
    from {
        opacity: 0;
        translate: 0 28px;
        filter: blur(6px);
    }
    to {
        opacity: 1;
        translate: 0 0;
        filter: blur(0);
    }
}

@keyframes heroFade {
    to {
        opacity: 1;
    }
}

.hero.in-view .eyebrow {
    animation: heroRise 1.1s cubic-bezier(.16, 1, .3, 1) .05s forwards;
}

.hero.in-view .line:nth-child(1) {
    animation: heroRise 1.2s cubic-bezier(.16, 1, .3, 1) .15s forwards;
}

.hero.in-view .line:nth-child(2) {
    animation: heroRise 1.2s cubic-bezier(.16, 1, .3, 1) .3s forwards;
}

.hero.in-view p {
    animation: heroRise 1.1s cubic-bezier(.16, 1, .3, 1) .5s forwards;
}

.hero.in-view .btn-row {
    animation: heroRise 1.1s cubic-bezier(.16, 1, .3, 1) .65s forwards;
}

.hero.in-view .hero-card {
    animation: heroFade 1.4s ease .3s forwards;
}

@media (max-width:760px) {
    .hero-content {
        padding: 0 24px;
    }
    .hero-card {
        width: 52vw;
        right: 4vw;
    }
    .hero-card img {
        opacity: .55;
    }
}

.btn {
    padding: 15px 30px;
    border-radius: 3px;
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-link {
    font-size: .92rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
    transition: border-color .2s;
}

.btn-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* ---------- sections ---------- */

section {
    padding: 150px 0;
}

.reveal-el {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal-el.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-head {
    max-width: 460px;
    margin-bottom: 72px;
}

.section-head .kicker {
    color: var(--text-dim);
    font-size: .85rem;
    margin-bottom: 16px;
    display: block;
}

.section-head h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    margin-bottom: 16px;
    font-weight: 500;
}

.section-head p {
    color: var(--text-dim);
    font-size: 1rem;
}


/* ---------- services ---------- */

#services {
    position: relative;
}


/* micro-parallax watermark, sits behind the real content */

.section-mark {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 0;
    pointer-events: none;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(6rem, 14vw, 11rem);
    line-height: 1;
    letter-spacing: -.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(242, 241, 237, .07);
    will-change: transform;
}

#services>.section-head,
#services>.services,
#services>.capabilities {
    position: relative;
    z-index: 1;
}


/* kicker becomes a small badge instead of plain text */

.section-head .kicker {
    display: inline-block;
    margin-bottom: 20px;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
}

.service {
    position: relative;
    display: grid;
    grid-template-columns: clamp(90px, 12vw, 150px) 1fr;
    align-items: center;
    gap: 32px;
    padding: 44px 28px 44px 8px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease, background .4s ease;
    overflow: hidden;
}

.services.in-view .service {
    opacity: 1;
    transform: none;
}


/* draw-in divider (unchanged from before) */

.service::before,
.service::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
}

.service::before {
    background: var(--line);
}

.service::after {
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}

.services.in-view .service::after {
    transform: scaleX(1);
}

.services.in-view .service:nth-child(1) {
    transition-delay: .05s;
}

.services.in-view .service:nth-child(2) {
    transition-delay: .15s;
}

.services.in-view .service:nth-child(3) {
    transition-delay: .25s;
}

.services.in-view .service:nth-child(4) {
    transition-delay: .35s;
}

.services.in-view .service:nth-child(1)::after {
    transition-delay: .15s;
}

.services.in-view .service:nth-child(2)::after {
    transition-delay: .28s;
}

.services.in-view .service:nth-child(3)::after {
    transition-delay: .41s;
}

.services.in-view .service:nth-child(4)::after {
    transition-delay: .54s;
}

.services .service:last-child {
    border-bottom: 1px solid var(--line);
}


/* cursor-tracking spotlight, JS sets --x / --y */

.service::after {
    z-index: 1;
}

.service-spotlight {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(159, 180, 232, .08), transparent 70%);
    opacity: 0;
    transition: opacity .4s ease;
}

.service:hover .service-spotlight {
    opacity: 1;
}


/* left accent bar, draws in on hover */

.service {
    padding-left: 28px;
}

.service>.accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.service:hover>.accent-bar {
    transform: scaleY(1);
}


/* the big overlapping number */

.service-num {
    position: relative;
    z-index: 1;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(3.2rem, 6vw, 4.6rem);
    line-height: 1;
    letter-spacing: -.03em;
    color: rgba(159, 180, 232, .28);
    transition: color .4s ease, transform .4s ease;
    will-change: transform;
}

.service:hover .service-num {
    color: var(--accent);
    transform: scale(1.06);
}

.service-body {
    position: relative;
    z-index: 1;
}

.service h3 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 10px;
    transition: color .3s ease;
}

.service:hover h3 {
    color: var(--text);
}

.service p {
    color: var(--text-dim);
    font-size: .98rem;
    max-width: 460px;
}

@media (max-width:760px) {
    .service {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 20px;
    }
    .service-num {
        font-size: 2.6rem;
    }
}

@media (prefers-reduced-motion:reduce) {
    .service::after {
        transform: scaleX(1);
        transition: none;
    }
    .service-num {
        transform: none !important;
    }
    .service>.accent-bar {
        transform: scaleY(1);
    }
    .service-spotlight {
        display: none;
    }
}

.capabilities {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
    overflow: visible;
}

.capabilities .label {
    display: block;
    margin-bottom: 24px;
}

.cap-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;
    will-change: transform;
    /* JS drifts this on scroll */
}

.cap-list span {
    font-size: .85rem;
    color: var(--text-dim);
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 100px;
    transition: border-color .3s, color .3s, background .3s, opacity .5s ease, transform .5s ease;
    opacity: 0;
    transform: translateY(10px);
}

.capabilities.in-view .cap-list span {
    opacity: 1;
    transform: none;
}

.cap-list span:hover {
    border-color: var(--accent);
    color: var(--bg);
    background: var(--accent);
}

@media (max-width:760px) {
    .service {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .service-num {
        order: -1;
    }
}

@media (prefers-reduced-motion:reduce) {
    .service::after {
        transform: scaleX(1);
        transition: none;
    }
    .service-num,
    .cap-list {
        transform: none !important;
    }
}


/* ---------- approach ---------- */

.approach {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.approach-list {
    display: flex;
    flex-direction: column;
}

.approach-item {
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.approach-list .approach-item:last-child {
    border-bottom: 1px solid var(--line);
}

.approach-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.approach-item p {
    color: var(--text-dim);
    font-size: .96rem;
}


/* ---------- work (pinned, one project per scroll step) ---------- */

.wk {
    padding: 0;
    position: relative;
}


/* base = static stacked list (no JS / reduced motion) */

.wk-stage {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 56px 40px;
}

.wk-top {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 56px;
}

.wk-count {
    display: none;
}

.wk-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 96px;
}

.wk-media {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    order: 2;
}

.wk-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.85) contrast(1.05);
}

.wk-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(242, 241, 237, .14);
    background: linear-gradient(180deg, rgba(11, 12, 16, .1), rgba(11, 12, 16, .5));
}

.wk-copy {
    position: relative;
}

.wk-ghost,
.wk-nav {
    display: none;
}

.wk-tag {
    display: block;
    margin-bottom: 14px;
}

.wk-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.6rem, min(6.4vw, 11vh), 5.6rem);
    line-height: 1;
    letter-spacing: -.03em;
    overflow: hidden;
    padding-bottom: .14em;
    margin-bottom: 12px;
}

.wk-title span {
    display: block;
    will-change: transform;
}

.wk-desc {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 420px;
    margin-bottom: 28px;
}

.wk-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
    transition: border-color .2s, color .2s;
}

.wk-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.wk-link i {
    font-style: normal;
    transition: transform .3s ease;
}

.wk-link:hover i {
    transform: translateX(4px);
}

@media (max-width:900px) {
    .wk-stage {
        padding: 96px 24px 24px;
    }
    .wk-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 72px;
    }
    .wk-media {
        order: 0;
    }
}


/* live = pinned scene (JS adds .is-live) */

.wk.is-live {
    height: 330vh;
}

.wk.is-live .wk-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
}

.wk.is-live .wk-frame {
    position: relative;
    height: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.wk.is-live .wk-top {
    position: absolute;
    z-index: 6;
    left: 56px;
    top: 112px;
    margin: 0;
}

.wk.is-live .wk-count {
    display: inline-flex;
    gap: .6em;
    align-items: flex-start;
    font-variant-numeric: tabular-nums;
}

.wk-roll {
    display: block;
    height: 1.2em;
    overflow: hidden;
    line-height: 1.2;
}

.wk-roll-inner {
    display: block;
    will-change: transform;
}

.wk-roll-inner span {
    display: block;
    height: 1.2em;
}

.wk.is-live .wk-slide {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
}

.wk.is-live .wk-media {
    position: absolute;
    order: 0;
    aspect-ratio: auto;
    overflow: hidden;
    top: clamp(100px, 13vh, 128px);
    bottom: clamp(100px, 15vh, 140px);
    right: 56px;
    width: min(42vw, 600px);
    clip-path: inset(100% 0 0 0);
    will-change: clip-path, filter;
}

.wk.is-live .wk-img {
    inset: auto;
    left: 0;
    top: -12%;
    width: 100%;
    height: 124%;
    will-change: transform;
}

.wk.is-live .wk-copy {
    position: absolute;
    z-index: 3;
    left: 56px;
    bottom: clamp(110px, 16vh, 150px);
    width: min(44vw, 620px);
}

.wk.is-live .wk-ghost {
    display: block;
    position: absolute;
    left: -.04em;
    bottom: 100%;
    margin-bottom: -.3em;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(7rem, 17vw, 15rem);
    line-height: .8;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(242, 241, 237, .1);
    pointer-events: none;
    will-change: transform, opacity;
}

.wk.is-live .wk-tag,
.wk.is-live .wk-desc,
.wk.is-live .wk-link {
    will-change: transform, opacity;
}


/* bottom progress row */

.wk.is-live .wk-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 20px;
    position: absolute;
    z-index: 6;
    left: 56px;
    right: 56px;
    bottom: 44px;
}

.wk-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding-top: 16px;
    background: none;
    border: 0;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: inherit;
    opacity: .4;
}

.wk-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.wk-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
}

.wk-item-num {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--accent);
    font-size: 1rem;
}

.wk-item-name {
    font-size: .85rem;
}

.wk-item:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 6px;
}

@media (max-width:900px) {
    .wk.is-live .wk-top {
        left: 24px;
        top: 92px;
    }
    .wk.is-live .wk-media {
        left: 24px;
        right: 24px;
        width: auto;
        top: 128px;
        bottom: auto;
        height: 42svh;
    }
    .wk.is-live .wk-copy {
        left: 24px;
        right: 24px;
        width: auto;
        bottom: 112px;
    }
    .wk.is-live .wk-ghost {
        font-size: 34vw;
    }
    .wk.is-live .wk-desc {
        display: none;
    }
    .wk.is-live .wk-nav {
        left: 24px;
        right: 24px;
        bottom: 28px;
        gap: 10px;
    }
    .wk-item-name {
        display: none;
    }
}


/* ---------- contact ---------- */

#contact {
    position: relative;
    padding-top: clamp(120px, 18vh, 200px);
    padding-bottom: clamp(120px, 18vh, 200px);
}

.ct.reveal-el {
    opacity: 1;
    transform: none;
}


/* the lines animate instead of the whole block fading */

.ct-badge {
    display: inline-block;
    margin-bottom: 40px;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
}

.ct-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(3.2rem, 10vw, 9rem);
    line-height: .96;
    letter-spacing: -.04em;
}

.ct-title em {
    font-style: italic;
    color: var(--accent);
}

.ct-line {
    display: block;
    overflow: hidden;
    padding-bottom: .18em;
    margin-bottom: -.18em;
}

.ct-line>span {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.ct.in-view .ct-line>span {
    transform: none;
}

.ct.in-view .ct-line:nth-child(2)>span {
    transition-delay: .12s;
}

.ct-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: clamp(56px, 9vh, 96px);
}

.ct-copy {
    max-width: 420px;
}

.ct-copy p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.ct-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(242, 241, 237, .62);
}

.ct-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: ctPulse 2.4s ease-out infinite;
}

@keyframes ctPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(159, 180, 232, .5);
    }
    70%,
    100% {
        box-shadow: 0 0 0 10px rgba(159, 180, 232, 0);
    }
}


/* circular button; the wrapper gives the magnetic effect a stable hit area */

.ct-magnet {
    padding: 28px;
    margin: -28px;
}

.ct-orb {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: clamp(150px, 15vw, 190px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(242, 241, 237, .28);
    color: var(--text);
    text-align: center;
    text-decoration: none;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), border-color .4s, color .4s;
    will-change: transform;
}

.ct-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(101%);
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.ct-orb:hover {
    border-color: var(--accent);
    color: var(--bg);
}

.ct-orb:hover::before {
    transform: none;
}

.ct-orb-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.55rem;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.ct-orb-arrow {
    font-size: 1.2rem;
    transition: transform .4s ease;
}

.ct-orb:hover .ct-orb-arrow {
    transform: rotate(-45deg);
}

.ct-mail {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: clamp(72px, 12vh, 120px);
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.ct-email {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    letter-spacing: -.02em;
    text-decoration: none;
    padding-bottom: 4px;
    background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1px;
    transition: background-size .5s cubic-bezier(.22, .61, .36, 1);
}

.ct-email:hover {
    background-size: 100% 1px;
}

.ct-copy-btn {
    font: inherit;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(242, 241, 237, .62);
    background: none;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 8px 16px;
    transition: border-color .3s, color .3s;
}

.ct-copy-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.ct-copy-btn.is-copied {
    border-color: var(--accent);
    color: var(--accent);
}


/* ---------- footer ---------- */

.ft {
    position: relative;
    overflow: hidden;
    display: block;
    padding: clamp(80px, 12vh, 130px) 0 0;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 1rem;
}

.ft-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
}

.ft-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 64px;
}

.ft-logo {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 20px;
}

.ft-logo em {
    font-style: italic;
    color: var(--accent);
}

.ft-brand p {
    color: var(--text-dim);
    font-size: .95rem;
    max-width: 340px;
}

.ft-col .label {
    display: block;
    margin-bottom: 22px;
}

.ft-col ul {
    list-style: none;
    display: grid;
    gap: 14px;
}

.ft-col a {
    display: inline-block;
    font-size: .95rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .3s, transform .3s;
}

.ft-col a:hover {
    color: var(--text);
    transform: translateX(4px);
}

.ft-mark {
    margin-top: clamp(64px, 10vh, 110px);
    padding-bottom: .1em;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(5rem, 20vw, 20rem);
    line-height: .78;
    letter-spacing: -.045em;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(242, 241, 237, .14);
    -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 98%);
    mask-image: linear-gradient(180deg, #000 35%, transparent 98%);
    user-select: none;
    pointer-events: none;
    will-change: transform;
}

.ft-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px 0 32px;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: var(--text-dim);
}

.ft-top {
    text-decoration: none;
    transition: color .3s;
}

.ft-top:hover {
    color: var(--accent);
}

@media (max-width:760px) {
    .ct-row {
        gap: 40px;
    }
    .ct-mail {
        gap: 16px;
    }
    .ft-wrap {
        padding: 0 24px;
    }
    .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px 32px;
    }
    .ft-brand {
        grid-column: 1 / -1;
    }
    .ft-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .ct-line>span {
        transform: none;
    }
    .ft-mark {
        transform: none !important;
    }
}


/* ---------- loader ---------- */

.loader {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    transition: transform 1.1s cubic-bezier(.76, 0, .24, 1);
}

.loader.done {
    transform: translateY(-100%);
}

.loader-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--text);
    animation: loaderIn 1s cubic-bezier(.16, 1, .3, 1) .15s backwards;
    /* 'backwards' so it can't fight the fade-out */
    transition: opacity .5s ease;
}

.loader-name em {
    font-style: italic;
    color: var(--accent);
    letter-spacing: -.02em;
}

.loader-count {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: .78rem;
    letter-spacing: .14em;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    transition: opacity .5s ease;
}

.loader.finishing .loader-name,
.loader.finishing .loader-count {
    opacity: 0;
}

.loader-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--line);
}

.loader-line i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes loaderIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}


/* ---------- responsive ---------- */

@media (max-width:760px) {
    .wrap {
        padding: 0 24px;
    }
    nav {
        padding: calc(22px + env(safe-area-inset-top, 0px)) 24px 22px;
    }
    footer {
        padding: 32px 24px;
    }
    .approach {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .work-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    section {
        padding: 96px 0;
    }
}


/* ---------- device mockup ---------- */

.dev {
    position: relative;
    width: 100%;
}

.dev-win {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #0d0f13;
    border: 1px solid rgba(242, 241, 237, .14);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}

.dev-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    background: #14161b;
    border-bottom: 1px solid rgba(242, 241, 237, .08);
}

.dev-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(242, 241, 237, .18);
}

.dev-url {
    margin-left: 12px;
    padding: 0 12px;
    height: 18px;
    display: flex;
    align-items: center;
    border-radius: 100px;
    background: rgba(242, 241, 237, .06);
    font-size: .62rem;
    letter-spacing: .04em;
    color: rgba(242, 241, 237, .45);
}

.dev-screen {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0b0c10;
}

.dev-screen img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}


/* JS sets --travel (how far the page can scroll) and --dur (how long that takes) */

.dev:hover .dev-screen img {
    transform: translate3d(0, var(--travel, 0px), 0);
    transition-duration: var(--dur, 6s);
    transition-timing-function: cubic-bezier(.45, .05, .25, 1);
}

.dev-phone {
    position: absolute;
    right: -13%;
    bottom: -9%;
    width: 27%;
    padding: 5px;
    border-radius: 22px;
    background: #14161b;
    border: 1px solid rgba(242, 241, 237, .16);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

.dev-phone .dev-screen {
    aspect-ratio: 9/19;
    border-radius: 17px;
}

.dev-hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 3;
    padding: 6px 12px;
    border-radius: 100px;
    white-space: nowrap;
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: rgba(11, 12, 16, .72);
    backdrop-filter: blur(6px);
    color: rgba(242, 241, 237, .7);
    transition: opacity .4s ease;
    pointer-events: none;
}

.dev:hover .dev-hint {
    opacity: 0;
}


/* touch screens: no hover, so the page scrolls itself, slowly, back and forth */

@media (hover:none) {
    .dev-hint {
        display: none;
    }
    .dev-screen img {
        animation: devScroll calc(var(--dur, 6s) * 1.5) ease-in-out infinite alternate;
    }
}

@keyframes devScroll {
    to {
        transform: translate3d(0, var(--travel, 0px), 0);
    }
}

@media (prefers-reduced-motion:reduce) {
    .dev-screen img {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    .dev-hint {
        display: none;
    }
}


/* inside the pinned work section */

.wk-media.has-dev {
    background: radial-gradient(60% 55% at 50% 50%, rgba(159, 180, 232, .1), transparent 70%);
}

.wk-media.has-dev::after {
    display: none;
}


/* the old image border and gradient */

.wk-dev {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    padding: 0 clamp(50px, 6vw, 84px) 0 clamp(14px, 2vw, 28px);
    will-change: transform;
    /* the work JS drifts this, like it did the image */
}

@media (max-width:900px) {
    .wk-dev {
        padding: 0 14px;
    }
    .wk-dev .dev-phone {
        display: none;
    }
}


/* bigger mockups (desktop only, so the mobile layout keeps its own sizing) */

@media (min-width:901px) {
    .wk.is-live .wk-media {
        width: min(50vw, 740px);
    }
    .wk.is-live .wk-copy {
        width: min(42vw, 560px);
    }
    .wk-dev {
        padding: 0 14% 0 3%;
    }
    /* was 11%, which left no room for the phone */
}

.dev-phone {
    right: -9%;
}


/* was -13%, so it overhangs less */

.dev-hint {
    bottom: calc(12px + 0px);
}

.dev-win .dev-screen+.dev-hint {
    bottom: 16px;
}


/* ---------- reduced motion (keep last so it wins) ---------- */

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .loader {
        display: none;
    }
    nav {
        opacity: 1;
    }
    /* intro: fixed selectors — these used to target .intro-bg / .intro-screen .txt,
       which no longer exist in the current markup */
    .intro-media {
        opacity: 1;
        clip-path: inset(24px round 2px);
    }
    .intro-develop {
        opacity: 0;
    }
    .reveal-el {
        opacity: 1;
        transform: none;
    }
    /* hero: fixed selectors — these used to target .hero-content .eyebrow / p / .btn-row /
       h1 .line span, which no longer exist; the hero text lives directly under .hero now */
    .hero-content {
        opacity: 1 !important;
    }
    .hero .eyebrow,
    .hero .line,
    .hero p,
    .hero .btn-row,
    .hero-card {
        opacity: 1;
    }
    .hero-card {
        clip-path: none;
    }
}


/* ---------- process (stacking cards) ---------- */

#process {
    padding-top: clamp(120px, 18vh, 200px);
    /* the gap above, which was missing */
    padding-bottom: clamp(100px, 14vh, 160px);
}

.process {
    display: grid;
    grid-template-columns: .9fr 1.5fr;
    gap: 72px;
    align-items: start;
}


/* left: sticky heading + progress rail */

.process-side {
    position: sticky;
    top: 130px;
}

.process-side .section-head {
    margin-bottom: 48px;
}

.pr {
    position: relative;
    padding-left: 26px;
    display: grid;
    gap: 18px;
}

.pr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 1px;
    background: var(--line);
}

.pr-fill {
    position: absolute;
    left: 0;
    top: 9px;
    width: 1px;
    height: calc((100% - 18px) * var(--p, 0));
    background: var(--accent);
    transition: height .7s cubic-bezier(.22, .61, .36, 1);
}

.pr-item {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: baseline;
    font-size: .9rem;
    color: var(--text-dim);
    opacity: .5;
    transition: opacity .4s ease, color .4s ease;
}

.pr-item span {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--accent);
}

.pr-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: .6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid rgba(242, 241, 237, .3);
    transform: translateX(-50%);
    transition: background .4s, border-color .4s, box-shadow .4s;
}

.pr-item.is-done {
    opacity: .75;
}

.pr-item.is-done::before {
    background: rgba(159, 180, 232, .5);
    border-color: rgba(159, 180, 232, .5);
}

.pr-item.is-active {
    opacity: 1;
    color: var(--text);
}

.pr-item.is-active::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(159, 180, 232, .14);
}


/* right: cards that stack */

.pc {
    position: sticky;
    top: calc(120px + var(--i, 0) * 26px);
    margin-bottom: 22vh;
    min-height: 400px;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(180deg, #15171c, #0f1115);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
    transform-origin: top center;
    will-change: transform;
}

.pc:nth-child(1) {
    --i: 0;
}

.pc:nth-child(2) {
    --i: 1;
}

.pc:nth-child(3) {
    --i: 2;
}

.pc:nth-child(4) {
    --i: 3;
}

.pc:last-child {
    margin-bottom: 0;
}

.pc::after {
    /* dims as the next card covers it */
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: var(--bg);
    opacity: var(--dim, 0);
}

.pc-spot {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
    background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(159, 180, 232, .09), transparent 70%);
}

.pc:hover .pc-spot {
    opacity: 1;
}

.pc-ghost {
    position: absolute;
    right: 24px;
    bottom: -.1em;
    z-index: 1;
    pointer-events: none;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(9rem, 16vw, 14rem);
    line-height: .8;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(242, 241, 237, .07);
}

.pc-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 44px;
}

.pc-icon {
    width: 64px;
    height: 64px;
    color: var(--accent);
}

.pc-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pc-icon svg * {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s cubic-bezier(.22, .61, .36, 1);
}

.pc-icon svg *:nth-child(2) {
    transition-delay: .25s;
}

.pc-icon svg *:nth-child(3) {
    transition-delay: .5s;
}

.pc-icon svg *:nth-child(4) {
    transition-delay: .7s;
}

.pc.is-seen .pc-icon svg * {
    stroke-dashoffset: 0;
}

.pc-body {
    position: relative;
    z-index: 2;
}

.pc-body h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 3.6vw, 3rem);
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}

.pc-body p {
    color: var(--text-dim);
    font-size: .98rem;
    max-width: 440px;
}

.pc-list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.pc-list li {
    position: relative;
    padding-left: 18px;
    font-size: .85rem;
    color: rgba(242, 241, 237, .7);
}

.pc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

@media (max-width:900px) {
    .process {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .process-side {
        position: static;
    }
    .pr {
        display: none;
    }
    /* the rail only makes sense beside the cards */
    .pc {
        top: calc(92px + var(--i, 0) * 16px);
        padding: 28px;
        min-height: 0;
        margin-bottom: 14vh;
    }
    .pc-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion:reduce) {
    .pc {
        position: relative;
        top: auto;
        margin-bottom: 24px;
        transform: none !important;
    }
    .pc::after {
        display: none;
    }
    .pc-icon svg * {
        stroke-dashoffset: 0;
        transition: none;
    }
}


/* ---------- AI approach ---------- */

#ai {
    padding-top: clamp(120px, 18vh, 200px);
    padding-bottom: clamp(100px, 14vh, 160px);
}

.ai-hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: clamp(90px, 14vh, 150px);
}

.ai-copy .kicker {
    display: inline-block;
    margin-bottom: 28px;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
}


/* manifesto: JS lights the words as you scroll */

.ai-statement {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 3.9vw, 3.3rem);
    line-height: 1.16;
    letter-spacing: -.02em;
    max-width: 760px;
}

.ai-statement em {
    font-style: italic;
    color: var(--accent);
}

.ai-statement.is-live .w {
    opacity: .18;
    will-change: opacity;
}


/* venn: --p (0 to 1) is set by JS */

.ai-venn {
    --s: clamp(120px, 13vw, 180px);
    --p: 0;
    position: relative;
    height: calc(var(--s) * 1.3);
}

.venn-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--s);
    height: var(--s);
    margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    border-radius: 50%;
    display: grid;
    place-items: center;
    will-change: transform;
}

.venn-circle span {
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(242, 241, 237, .7);
}

.venn-ai {
    border: 1px solid rgba(159, 180, 232, .55);
    background: rgba(159, 180, 232, .09);
    transform: translateX(calc(var(--s) * (-0.3 - 0.3 * (1 - var(--p)))));
}

.venn-ai span {
    transform: translateX(calc(var(--s) * -0.22));
}

.venn-human {
    border: 1px solid rgba(242, 241, 237, .35);
    background: rgba(242, 241, 237, .06);
    transform: translateX(calc(var(--s) * (0.3 + 0.3 * (1 - var(--p)))));
}

.venn-human span {
    transform: translateX(calc(var(--s) * 0.22));
}

.venn-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(.85rem, 1.2vw, 1.05rem);
    line-height: 1.1;
    color: var(--text);
    opacity: calc(var(--p) * var(--p));
}


/* table */

.ai-matrix.reveal-el {
    opacity: 1;
    transform: none;
}


/* rows stagger instead of the whole block fading */

.ai-matrix {
    border-bottom: 1px solid var(--line);
}

.ai-row {
    display: grid;
    grid-template-columns: .9fr 1.3fr 1.3fr;
    gap: 40px;
    align-items: baseline;
    padding: 30px 8px;
    border-top: 1px solid var(--line);
    transition: background .3s ease, opacity .6s ease, transform .6s ease;
}

.ai-row.ai-head {
    padding-top: 0;
    padding-bottom: 18px;
    border-top: 0;
}

.ai-matrix .ai-row:not(.ai-head) {
    opacity: 0;
    transform: translateY(14px);
}

.ai-matrix.in-view .ai-row:not(.ai-head) {
    opacity: 1;
    transform: none;
}

.ai-matrix.in-view .ai-row:nth-child(2) {
    transition-delay: .05s;
}

.ai-matrix.in-view .ai-row:nth-child(3) {
    transition-delay: .13s;
}

.ai-matrix.in-view .ai-row:nth-child(4) {
    transition-delay: .21s;
}

.ai-matrix.in-view .ai-row:nth-child(5) {
    transition-delay: .29s;
}

.ai-matrix.in-view .ai-row:nth-child(6) {
    transition-delay: .37s;
}

.ai-row:not(.ai-head):hover {
    background: rgba(242, 241, 237, .025);
}

.ai-stage {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.ai-help {
    color: var(--text-dim);
    font-size: .95rem;
}

.ai-lead {
    position: relative;
    padding-left: 18px;
    color: var(--text);
    font-size: .95rem;
}

.ai-lead::before {
    content: '';
    position: absolute;
    left: 0;
    top: .78em;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

.ai-m {
    display: none;
}


/* principles */

.ai-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: clamp(64px, 10vh, 110px);
}

.ai-pr {
    position: relative;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.ai-pr::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.ai-pr:hover::before {
    transform: scaleX(1);
}

.ai-pr h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.ai-pr p {
    color: var(--text-dim);
    font-size: .95rem;
}

@media (max-width:900px) {
    .ai-hero {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .ai-venn {
        --s: clamp(100px, 30vw, 150px);
    }
    .ai-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 26px 0;
    }
    .ai-row.ai-head {
        display: none;
    }
    .ai-m {
        display: block;
        margin-bottom: 4px;
        font-size: .62rem;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: rgba(242, 241, 237, .42);
    }
    .ai-principles {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .ai-venn {
        --p: 1;
    }
    .ai-matrix .ai-row:not(.ai-head) {
        opacity: 1;
        transform: none;
    }
}


/* ---------- start a project modal ---------- */

.cta-actions {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}


/* native cursors on links and form fields ignore body{cursor:none}, so cover them */

@media (hover:hover) and (pointer:fine) {
    a,
    button,
    input,
    textarea,
    label {
        cursor: none;
    }
}

.pm {
    position: fixed;
    inset: 0;
    z-index: 800;
    /* below the custom cursor (999) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .4s ease, visibility 0s linear .4s;
}

.pm.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .4s ease, visibility 0s;
}

.pm [hidden] {
    display: none !important;
}

.pm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 12, .82);
    backdrop-filter: blur(8px);
}

.pm-panel {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100svh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(180deg, #15171c, #0f1115);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
    transform: translateY(24px) scale(.985);
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.pm.is-open .pm-panel {
    transform: none;
}

.pm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: none;
    color: var(--text);
    border: 1px solid var(--line);
    font-size: 1.3rem;
    line-height: 1;
    transition: border-color .3s, color .3s;
}

.pm-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pm-form {
    display: grid;
    gap: 26px;
}

.pm-form h2,
.pm-done h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 2.9rem);
    line-height: 1.02;
    letter-spacing: -.03em;
}

.pm-form h2 em,
.pm-done h2 em {
    font-style: italic;
    color: var(--accent);
}

.pm-sub {
    color: var(--text-dim);
    font-size: .95rem;
    max-width: 440px;
}

.pm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.pm-field {
    display: grid;
    gap: 8px;
}

.pm-field>span,
.pm-set legend {
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(242, 241, 237, .62);
}

.pm-field>span i {
    font-style: normal;
    opacity: .6;
    text-transform: none;
    letter-spacing: 0;
}

.pm-field input,
.pm-field textarea {
    width: 100%;
    padding: 10px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color .3s;
}

.pm-field textarea {
    resize: vertical;
    min-height: 112px;
    line-height: 1.6;
}

.pm-field input:focus,
.pm-field textarea:focus {
    border-bottom-color: var(--accent);
}

.pm-field.is-invalid input,
.pm-field.is-invalid textarea {
    border-bottom-color: #E8A0A0;
}

.pm-field input:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    transition: background-color 99999s;
}

.pm-set {
    border: 0;
    min-width: 0;
}

.pm-set legend {
    padding: 0;
    margin-bottom: 12px;
}

.pm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    position: relative;
}

.chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
}

.chip span {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: .85rem;
    color: var(--text-dim);
    transition: border-color .3s, color .3s, background .3s;
}

.chip:hover span {
    border-color: var(--accent);
    color: var(--text);
}

.chip input:checked+span {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.chip input:focus-visible+span,
.pm-close:focus-visible,
.pm-submit:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
}

.pm-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pm-error {
    color: #E8A0A0;
    font-size: .88rem;
}

.pm-error a {
    text-decoration: underline;
}

.pm-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.pm-submit {
    border: 0;
    font-family: inherit;
}

.pm-submit:disabled {
    opacity: .6;
}

.pm-alt {
    font-size: .85rem;
    color: var(--text-dim);
}

.pm-alt a {
    border-bottom: 1px solid var(--line);
    transition: border-color .2s, color .2s;
}

.pm-alt a:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* success state */

.pm-done {
    display: grid;
    gap: 18px;
    justify-items: start;
    padding: 24px 0 8px;
}

.pm-done h2:focus {
    outline: none;
}

.pm-done p {
    color: var(--text-dim);
    max-width: 420px;
}

.pm-done svg {
    width: 64px;
    height: 64px;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-done svg * {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: pmDraw 1s cubic-bezier(.22, .61, .36, 1) forwards;
}

.pm-done svg path {
    animation-delay: .35s;
}

@keyframes pmDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width:560px) {
    .pm-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .pm-done svg * {
        stroke-dashoffset: 0;
    }
}

.wk.is-live .wk-slide {
    pointer-events: none;
}

.wk.is-live .wk-media {
    pointer-events: auto;
}


/* ---------- anatomy of a website (exploded layers) ---------- */

.xp {
    padding: 0;
    position: relative;
}

.xp-stage {
    position: relative;
    padding: clamp(100px, 14vh, 160px) 0;
}

.xp-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 56px;
    display: grid;
    grid-template-columns: minmax(300px, .85fr) 1.35fr;
    gap: 48px;
    align-items: center;
}

.xp-kicker {
    display: inline-block;
    margin-bottom: 20px;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
}

.xp-copy h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 4.4vw, 3.8rem);
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: 18px;
}

.xp-copy h2 em {
    font-style: italic;
    color: var(--accent);
}

.xp-lead {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 420px;
}


/* list: only the active item opens up */

.xp-list {
    list-style: none;
    margin-top: clamp(24px, 5vh, 44px);
}

.xp-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 14px 0 14px 4px;
    border-top: 1px solid var(--line);
    opacity: .4;
    transition: opacity .5s ease;
}

.xp-list .xp-item:last-child {
    border-bottom: 1px solid var(--line);
}

.xp-item::before {
    content: '';
    position: absolute;
    left: -14px;
    top: -1px;
    bottom: -1px;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.xp-item.is-active::before {
    transform: scaleY(1);
}

.xp-item b {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    padding-top: .2em;
}

.xp-item h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 1.55rem;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.xp-item p {
    color: var(--text-dim);
    font-size: .88rem;
    max-width: 360px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .5s ease, opacity .5s ease, margin .5s ease;
}

.xp-item.is-active {
    opacity: 1;
}

.xp-item.is-active p {
    max-height: 90px;
    opacity: 1;
    margin-top: 6px;
}

.xp-list[data-mode="start"] .xp-item {
    opacity: .55;
}

.xp-list[data-mode="end"] .xp-item {
    opacity: .8;
}


/* scene (JS sets --go and --gs for the glow and grid) */

.xp-scene {
    position: relative;
    height: min(74vh, 680px);
    display: grid;
    place-items: center;
    perspective: 1800px;
    --go: 0;
    --gs: .55;
}

.xp-scene::before {
    /* blueprint grid */
    content: '';
    position: absolute;
    inset: -8%;
    pointer-events: none;
    opacity: calc(var(--go) * .8);
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 78%);
    mask-image: radial-gradient(closest-side, #000 25%, transparent 78%);
}

.xp-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88%;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(var(--gs));
    opacity: var(--go);
    filter: blur(8px);
    background: radial-gradient(closest-side, rgba(159, 180, 232, .22), transparent 72%);
}

.xp-stack {
    position: relative;
    width: min(40vw, 520px);
    aspect-ratio: 16/10;
    transform-style: preserve-3d;
    will-change: transform;
}

.xp-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(155deg, rgba(27, 30, 38, .97), rgba(13, 15, 19, .97));
    border: 1px solid rgba(242, 241, 237, .13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 36px 60px -22px rgba(0, 0, 0, .7);
    transition: border-color .4s ease, box-shadow .5s ease;
    will-change: transform, opacity;
}

.xp-layer.is-active {
    border-color: rgba(159, 180, 232, .9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(159, 180, 232, .25), 0 0 90px rgba(159, 180, 232, .28), 0 36px 60px -22px rgba(0, 0, 0, .7);
}

.xp-layer::after {
    /* light sweep, replays each time a layer becomes active */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    transform: translateX(-130%);
    background: linear-gradient(115deg, transparent 38%, rgba(159, 180, 232, .28) 50%, transparent 62%);
}

.xp-layer.is-active::after {
    animation: xpSheen 1.5s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes xpSheen {
    to {
        transform: translateX(130%);
    }
}


/* layer 1: a tiny rendered page */

.xp-d {
    position: absolute;
    inset: 0;
    padding: 6% 7% 8%;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 7%;
}

.xp-d-nav {
    display: flex;
    align-items: center;
    gap: 5%;
}

.xp-d-nav i {
    width: 16%;
    height: 10px;
    border-radius: 3px;
    background: var(--text);
}

.xp-d-nav b {
    width: 9%;
    height: 5px;
    border-radius: 3px;
    background: rgba(242, 241, 237, .28);
}

.xp-d-nav u {
    margin-left: auto;
    width: 14%;
    height: 14px;
    border-radius: 100px;
    background: var(--accent);
}

.xp-d-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6%;
    align-items: center;
}

.xp-d-txt {
    display: grid;
    gap: 7px;
}

.xp-d-txt span {
    display: block;
    border-radius: 3px;
}

.xp-d-txt .h1 {
    height: 11px;
    background: var(--text);
}

.xp-d-txt .s {
    width: 72%;
}

.xp-d-txt .a {
    width: 46%;
    background: var(--accent);
}

.xp-d-txt .p {
    height: 5px;
    background: rgba(242, 241, 237, .25);
}

.xp-d-txt .w {
    width: 80%;
}

.xp-d-txt .btn {
    width: 38%;
    height: 15px;
    border-radius: 100px;
    background: var(--text);
    margin-top: 6px;
}

.xp-d-img {
    position: relative;
    height: 100%;
    min-height: 62%;
    border-radius: 6px;
    border: 1px solid rgba(242, 241, 237, .1);
    background: linear-gradient(135deg, rgba(159, 180, 232, .55), rgba(159, 180, 232, .06) 62%), #0f1115;
}

.xp-d-card {
    position: absolute;
    left: -16%;
    bottom: 12%;
    width: 52%;
    padding: 8px;
    display: grid;
    gap: 5px;
    border-radius: 6px;
    background: rgba(15, 17, 21, .92);
    border: 1px solid rgba(242, 241, 237, .16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}

.xp-d-card b {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(242, 241, 237, .3);
}

.xp-d-card b:first-child {
    width: 70%;
    background: var(--accent);
}


/* layer 2: content */

.xp-c {
    position: absolute;
    inset: 0;
    padding: 8% 7%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6%;
    align-content: start;
}

.xp-aa {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1;
    color: var(--text);
}

.xp-c-lines {
    display: grid;
    gap: 8px;
    align-content: center;
}

.xp-c-lines span {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(242, 241, 237, .22);
}

.xp-c-imgs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4%;
}

.xp-c-imgs i {
    display: block;
    aspect-ratio: 16/8;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(242, 241, 237, .14), rgba(242, 241, 237, .03));
}


/* layer 3: SEO */

.xp-s {
    position: absolute;
    inset: 0;
    padding: 7% 7% 8%;
    display: grid;
    gap: 12px;
    align-content: center;
}

.xp-snip {
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(242, 241, 237, .12);
    background: rgba(242, 241, 237, .03);
}

.xp-snip small {
    font-size: .58rem;
    letter-spacing: .04em;
    color: rgba(242, 241, 237, .45);
}

.xp-snip strong {
    font-size: clamp(.7rem, 1.1vw, .86rem);
    font-weight: 500;
    color: var(--accent);
}

.xp-snip i {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(242, 241, 237, .2);
}

.xp-snip i.w {
    width: 72%;
}

.xp-s-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.xp-s-tags span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(.58rem, .9vw, .72rem);
    padding: 5px 10px;
    border-radius: 100px;
    border: 1px solid rgba(159, 180, 232, .4);
    color: var(--accent);
}


/* layer 4: code, with line numbers and a caret */

.xp-code {
    position: absolute;
    inset: 0;
    padding: 8% 7%;
    counter-reset: ln;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(.58rem, .95vw, .76rem);
    line-height: 1.75;
    color: rgba(242, 241, 237, .7);
}

.xp-code .l {
    display: block;
    white-space: pre;
    counter-increment: ln;
}

.xp-code .l::before {
    content: counter(ln);
    display: inline-block;
    width: 1.4em;
    margin-right: 1em;
    text-align: right;
    color: rgba(242, 241, 237, .2);
}

.xp-code .caret::after {
    content: '';
    display: inline-block;
    width: .5em;
    height: 1em;
    margin-left: .3em;
    vertical-align: -.15em;
    background: var(--accent);
    animation: xpBlink 1.1s steps(2, start) infinite;
}

@keyframes xpBlink {
    to {
        visibility: hidden;
    }
}

.xp-code .t {
    color: var(--accent);
}

.xp-code .a {
    color: rgba(242, 241, 237, .92);
}

.xp-code .s {
    color: #B9C8EE;
}


/* layer 5: infrastructure */

.xp-i {
    position: absolute;
    inset: 0;
    padding: 8% 7%;
    display: grid;
    gap: 10px;
    align-content: center;
}

.xp-i .row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: center;
    font-size: .64rem;
    letter-spacing: .14em;
    color: rgba(242, 241, 237, .55);
}

.xp-i .row i {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(242, 241, 237, .1);
}

.xp-i .row b {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(159, 180, 232, .5), var(--accent));
}

.xp-i .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.xp-i .chips span {
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 100px;
    border: 1px solid var(--line);
    color: rgba(242, 241, 237, .6);
}


/* callouts: JS positions each one next to its layer */

.xp-calls {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.xp-call {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    will-change: transform, opacity;
}

.xp-call .d {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(159, 180, 232, .2);
}

.xp-call .l {
    display: block;
    flex: none;
    height: 1px;
    width: var(--w, 60px);
    background: linear-gradient(90deg, var(--accent), rgba(159, 180, 232, .2));
}

.xp-call span {
    padding-left: 10px;
    white-space: nowrap;
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(242, 241, 237, .6);
    transition: color .3s ease;
}

.xp-call b {
    margin-right: 6px;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: .9rem;
    letter-spacing: 0;
    color: var(--accent);
}

.xp-call.is-active span {
    color: var(--text);
}


/* live = pinned scene (JS adds .is-live) */

.xp.is-live {
    height: 380vh;
}

.xp.is-live .xp-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding: 0;
    overflow: hidden;
    display: grid;
    align-items: center;
    background: var(--bg);
}

@media (max-width:900px) {
    .xp-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 24px;
    }
    .xp-copy {
        display: contents;
    }
    .xp-kicker,
    .xp-copy h2 {
        order: 1;
        justify-self: start;
    }
    .xp-lead {
        display: none;
    }
    .xp-scene {
        order: 2;
        height: 42vh;
    }
    .xp-stack {
        width: min(72vw, 380px);
    }
    .xp-calls {
        display: none;
    }
    .xp-list {
        order: 3;
        margin-top: 0;
    }
    .xp-item {
        display: none;
    }
    .xp-item.is-active {
        display: grid;
    }
}

@media (prefers-reduced-motion:reduce) {
    .xp-item {
        opacity: 1;
    }
    .xp-item p {
        max-height: none;
        opacity: 1;
        margin-top: 6px;
    }
    .xp-layer.is-active::after,
    .xp-code .caret::after {
        animation: none;
    }
}