/* Home — full-width, scroll-driven */

html:has(.page-home) {
    scroll-behavior: auto;
    overflow-x: clip;
    overflow-y: scroll; /* single page scroller */
}
html:has(.page-home) body {
    overflow: visible; /* prevent body becoming a 2nd scrollport */
}
.page-home {
    background: #030712;
    color: #f8fafc;
    overflow: visible;
}
.page-home .site-header {
    --header-bg: rgba(7, 11, 20, 0.55);
}
.page-home .site-header.scrolled {
    --header-bg: rgba(7, 11, 20, 0.88);
}
.page-home .site-header.scrolled::before {
    border-bottom-color: transparent;
}
body.is-tech-hover,
body.is-tech-hover * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='8' fill='none' stroke='%237dd3fc' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%23fff'/%3E%3Cpath d='M16 4v3M16 25v3M4 16h3M25 16h3' stroke='%23e0f2fe' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, pointer !important;
}
.hero-blast,
.hero-blast * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='9' fill='none' stroke='%237dd3fc' stroke-width='1.4' stroke-dasharray='4 3'/%3E%3Ccircle cx='16' cy='16' r='2.4' fill='%23e0f2fe'/%3E%3C/svg%3E") 16 16, pointer;
}
.hero-blast.is-held,
.hero-blast.is-held * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='10' fill='rgba(56,189,248,0.18)' stroke='%23e0f2fe' stroke-width='1.6'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%237dd3fc'/%3E%3C/svg%3E") 16 16, grabbing !important;
}

#universe {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
    background: #030712;
}
.universe-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 40% at 78% 42%, rgba(37, 99, 235, 0.22), transparent 70%),
        radial-gradient(ellipse 45% 35% at 18% 70%, rgba(56, 189, 248, 0.12), transparent 68%),
        radial-gradient(ellipse 40% 30% at 50% 20%, rgba(99, 102, 241, 0.1), transparent 65%);
    animation: universeDrift 28s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    opacity: 0.85;
}
@keyframes universeDrift {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.08) translate(-2%, 1.5%); opacity: 0.95; }
}
#bg3d {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
    filter: none;
    opacity: 1;
    transition: none;
    transform-origin: center center;
    will-change: filter, transform, opacity;
}
.bg-veil {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    background:
        radial-gradient(ellipse at 72% 48%, transparent 0%, rgba(3, 7, 18, 0.08) 42%, rgba(3, 7, 18, 0.28) 100%),
        rgba(3, 7, 18, var(--bg-fade, 0.04));
}
.tech-tip {
    position: fixed;
    z-index: 6;
    pointer-events: none;
    padding: 0.45em 0.9em;
    border-radius: 999px;
    background: rgba(8, 16, 32, 0.92);
    border: 1px solid rgba(125, 211, 252, 0.5);
    color: #e0f2fe;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.82rem, 2.2vw, 1.15rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
    transform: translate(-50%, calc(-100% - 14px));
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.18);
}
.tech-tip[hidden] { display: none; }

.page-home .site-main {
    position: relative;
    z-index: 2;
}
.page-home .site-main > section {
    position: relative;
}
#work { z-index: 5; }
#services { z-index: 6; }
#tales { z-index: 7; }
.page-home .site-footer { position: relative; z-index: 8; }

.page-home .wrap { width: 100%; }

.kicker {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header) + 40px) var(--pad) 12vh;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.88;
    font-size: clamp(3.6rem, 10vw, 9rem);
}
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--heading-accent); }
.hero-lead {
    margin-top: 28px;
    max-width: 40ch;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.7;
}
.hero-scroll {
    position: absolute;
    right: var(--pad);
    bottom: 10vh;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-scroll i {
    width: 1px;
    height: 52px;
    background: linear-gradient(#60a5fa, transparent);
    animation: drip 2.2s ease-in-out infinite;
}
.hero-blast {
    position: absolute;
    right: clamp(10vw, 20vw, 280px);
    top: auto;
    bottom: 18vh;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    font-family: inherit;
    transform: none;
}
.blast-label {
    position: relative;
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.4;
    color: transparent;
    background: linear-gradient(
        100deg,
        rgba(148, 163, 184, 0.55) 0%,
        rgba(148, 163, 184, 0.55) 38%,
        #e0f2fe 48%,
        #7dd3fc 52%,
        rgba(148, 163, 184, 0.55) 62%,
        rgba(148, 163, 184, 0.55) 100%
    );
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: blastShine 2.8s ease-in-out infinite;
}
.blast-label::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7dd3fc, transparent);
    opacity: 0.55;
    animation: blastLine 2.8s ease-in-out infinite;
}
.hero-blast:hover .blast-label,
.hero-blast.is-held .blast-label {
    animation-duration: 1.1s;
    background: linear-gradient(
        100deg,
        #93c5fd 0%,
        #e0f2fe 42%,
        #fff 50%,
        #7dd3fc 58%,
        #93c5fd 100%
    );
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
}
.hero-blast.is-held .blast-label::after {
    opacity: 1;
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.8);
}
@keyframes blastShine {
    0%, 100% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
}
@keyframes blastLine {
    0%, 100% { opacity: 0.3; transform: scaleX(0.55); }
    50% { opacity: 0.85; transform: scaleX(1); }
}
.tech-floats {
    position: fixed;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}
.tech-float {
    position: absolute;
    transform: translate(-50%, calc(-100% - 10px));
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.72rem, 1.35vw, 0.95rem);
    letter-spacing: 0.04em;
    color: #e0f2fe;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(8, 16, 32, 0.85), 0 0 16px rgba(56, 189, 248, 0.55);
    will-change: left, top, opacity;
}
@keyframes drip {
    0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.35; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* About */
.about {
    padding: clamp(80px, 16vh, 160px) var(--pad);
    max-width: none;
    width: 100%;
}
.about-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.6vw, 4rem);
    letter-spacing: -0.035em;
    line-height: 1.06;
    max-width: 18ch;
    margin-bottom: 24px;
}
.about-copy {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 48ch;
    margin-bottom: 28px;
}
.fx { opacity: 0; transform: translateY(36px); }

/* Section cut-in — vertical strip blinds */
.sec-cut {
    position: relative;
    overflow: hidden;
}
.cut-mask {
    position: absolute;
    inset: 0;
    z-index: 28;
    display: flex;
    pointer-events: none;
    background: transparent;
}
.cut-strip {
    flex: 1 1 0;
    height: 120%;
    margin-top: -10%;
    background: #070b14;
    position: relative;
    will-change: transform;
}
.cut-strip .cut-blade {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0f2fe;
    box-shadow: 0 0 12px 2px rgba(56, 189, 248, 0.75);
}

/* Facts */
.facts {
    padding: 0 var(--pad) clamp(80px, 14vh, 140px);
    width: 100%;
}
.sec-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 40px;
}
.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}
.fact {
    padding: 28px var(--pad) 8px 0;
}
.fact strong {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.2rem);
    display: block;
    line-height: 0.95;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fact span { color: var(--muted); font-size: 0.92rem; }

/* Works — title fixed left; cards scroll horizontally */
.works-stage {
    height: 300vh;
    position: relative;
}
.works-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    will-change: transform;
}
.works-heading {
    position: absolute;
    z-index: 5;
    left: var(--pad);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7.4rem);
    letter-spacing: -0.06em;
    line-height: 0.86;
    pointer-events: none;
}
.works-heading span { display: block; }
.wh-works { color: var(--heading-accent); }
.works-horizon {
    position: absolute;
    left: min(38vw, 360px);
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    overflow: hidden;
    z-index: 2;
}
.works-track {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: max-content;
    padding-right: var(--pad);
    will-change: transform;
}
.work-card {
    flex: 0 0 min(52vw, 440px);
    text-decoration: none;
    color: inherit;
}
.work-card.is-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--line);
    padding: 8px 8px 8px 28px;
}
.work-cta-btn {
    display: inline-flex;
    margin-top: 22px;
    width: fit-content;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    color: #070b14;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.work-num {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 10px;
}
.work-media {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    margin-bottom: 16px;
}
.work-media img,
.work-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: grid;
    place-items: center;
    font-size: 3.4rem;
}
.work-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    margin-bottom: 8px;
}
.work-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* Services — title, flat stone center, cards left/right, logo lights on scroll */
.services-stage {
    height: 320vh;
    position: relative;
    margin-top: -18vh;
    overflow: clip;
}
.services-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    display: grid;
    grid-template-columns: 1fr min(42vh, 380px) 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 18px;
    padding: calc(var(--header) + 12px) 2vw 6vh;
    overflow: hidden;
    overscroll-behavior: none;
}
.svc-col {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
}
.svc-heading {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    margin: 0;
    padding-top: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    letter-spacing: -0.055em;
    line-height: 0.86;
    pointer-events: none;
}
.svc-heading span { display: block; }
.sh-services { color: var(--heading-accent); }
.stone {
    grid-column: 2;
    grid-row: 2;
    width: min(46vh, 400px);
    justify-self: center;
    align-self: center;
    position: relative;
    background: transparent;
    overflow: visible;
    line-height: 0;
    isolation: isolate;
    will-change: transform, filter, opacity;
    z-index: 2;
}
.stone-wake {
    position: absolute;
    left: 50%;
    top: 8%;
    width: 55%;
    aspect-ratio: 1;
    transform: translate(-50%, -40%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(186, 230, 253, 0.55) 0%, rgba(56, 189, 248, 0.12) 42%, transparent 72%);
    opacity: 0;
    filter: blur(6px);
}
.stone-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    pointer-events: none;
}
.stone-recess,
.stone-carve,
.stone-glow {
    position: absolute;
    left: 44%;
    top: 45%;
    width: 54%;
    height: auto;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}
.stone-recess {
    transform: translate(calc(-50% + 2px), calc(-50% + 3px));
    mix-blend-mode: multiply;
    filter: brightness(0);
    opacity: 0.62;
}
.stone-carve {
    mix-blend-mode: overlay;
    filter: contrast(1.35) brightness(1.15) saturate(1.2);
    opacity: 0.92;
}
.stone-glow {
    mix-blend-mode: screen;
    opacity: 0.22;
    filter: brightness(2.4) contrast(1.25) saturate(1.7) drop-shadow(0 0 8px rgba(125, 211, 252, 0.55));
}
.svc-col.left { grid-column: 1; align-items: flex-end; }
.svc-col.right { grid-column: 3; align-items: flex-start; }
.svc-card {
    position: relative;
    isolation: isolate;
    width: min(100%, 340px);
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 16, 32, 0.72);
    backdrop-filter: blur(12px);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    will-change: transform, opacity, box-shadow, border-color;
    transition:
        border-color 0.35s var(--ease),
        box-shadow 0.35s var(--ease),
        transform 0.35s var(--ease),
        background 0.35s var(--ease);
}
.svc-card::before,
.svc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
/* Electric rim sweep */
.svc-card::before {
    padding: 1px;
    background: conic-gradient(
        from var(--elec-angle, 0deg),
        transparent 0%,
        transparent 35%,
        rgba(125, 211, 252, 0.15) 42%,
        #e0f2fe 48%,
        #7dd3fc 50%,
        #38bdf8 52%,
        rgba(125, 211, 252, 0.15) 58%,
        transparent 65%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
}
/* Soft plasma wash */
.svc-card::after {
    inset: -1px;
    background:
        radial-gradient(120% 80% at 10% 0%, rgba(125, 211, 252, 0.22), transparent 42%),
        radial-gradient(90% 70% at 90% 100%, rgba(56, 189, 248, 0.16), transparent 48%);
    mix-blend-mode: screen;
    z-index: 0;
}
.svc-card > * { position: relative; z-index: 2; }
.svc-card span { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--accent); transition: color 0.3s, text-shadow 0.3s; }
.svc-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 6px 0 8px;
    transition: color 0.3s, text-shadow 0.3s;
}
.svc-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; transition: color 0.3s; }

.svc-card:hover,
.svc-card:focus-visible {
    border-color: rgba(125, 211, 252, 0.75);
    background: rgba(10, 24, 48, 0.88);
    transform: translateY(-4px) scale(1.015);
    box-shadow:
        0 0 0 1px rgba(125, 211, 252, 0.35),
        0 0 18px rgba(56, 189, 248, 0.35),
        0 0 42px rgba(37, 99, 235, 0.28),
        0 18px 40px rgba(0, 0, 0, 0.45);
    outline: none;
    animation: svcCardZap 1.1s steps(2, end) infinite;
}
.svc-card:hover::before,
.svc-card:focus-visible::before {
    opacity: 1;
    animation: svcElecSpin 1.35s linear infinite;
}
.svc-card:hover::after,
.svc-card:focus-visible::after {
    opacity: 1;
    animation: svcElecPulse 1.2s ease-in-out infinite alternate;
}
.svc-card:hover span,
.svc-card:focus-visible span {
    color: #7dd3fc;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.85);
}
.svc-card:hover h3,
.svc-card:focus-visible h3 {
    color: #f8fafc;
    text-shadow: 0 0 16px rgba(147, 197, 253, 0.45);
}
.svc-card:hover p,
.svc-card:focus-visible p {
    color: #cbd5e1;
}

@property --elec-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
@keyframes svcElecSpin {
    to { --elec-angle: 360deg; }
}
@keyframes svcElecPulse {
    0% { opacity: 0.55; filter: brightness(0.95); }
    100% { opacity: 1; filter: brightness(1.2); }
}
@keyframes svcCardZap {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(125, 211, 252, 0.35),
            0 0 18px rgba(56, 189, 248, 0.35),
            0 0 42px rgba(37, 99, 235, 0.28),
            0 18px 40px rgba(0, 0, 0, 0.45);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(224, 242, 254, 0.7),
            0 0 10px rgba(186, 230, 253, 0.7),
            0 0 28px rgba(56, 189, 248, 0.55),
            0 0 56px rgba(37, 99, 235, 0.4),
            0 18px 40px rgba(0, 0, 0, 0.45);
    }
}

/* Client feedback — glass cards on universe; segmented scrubber (no thumb) */
.tales-stage {
    height: calc(var(--tales-count, 6) * 70vh);
    position: relative;
    z-index: 7;
}
.tales-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    color: #f8fafc;
}
.tales-heading {
    position: absolute;
    z-index: 5;
    right: var(--pad);
    top: 50%;
    margin: 0;
    text-align: right;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 7.2vw, 6.8rem);
    letter-spacing: -0.055em;
    line-height: 0.86;
    pointer-events: none;
}
.tales-heading span { display: block; }
.th-feedback { color: var(--heading-accent); }
.tales-horizon {
    position: absolute;
    left: var(--pad);
    right: min(38vw, 380px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.tales-track {
    position: relative;
    width: 100%;
    min-height: min(42vh, 400px);
}
.tale-card {
    position: absolute;
    left: 0;
    top: 0;
    width: min(100%, 680px);
    padding: 28px 32px 30px;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 20px;
    background: rgba(8, 16, 32, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    will-change: transform, opacity;
}
.tale-index {
    color: #60a5fa;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.tale-card blockquote {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.4vw, 1.95rem);
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: #f8fafc;
    margin: 0 0 22px;
}
.tale-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tale-who {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
}
.tale-org {
    font-style: normal;
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    max-width: 52%;
    overflow-wrap: anywhere;
}
.tale-who cite {
    font-style: normal;
    text-align: right;
    min-width: 0;
}
.tale-who cite b {
    display: block;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}
.tale-who cite em {
    display: block;
    font-style: normal;
    color: var(--muted);
    font-size: 0.9rem;
}
.tale-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}
.tale-stars svg {
    width: 16px;
    height: 16px;
    fill: transparent;
    stroke: rgba(147, 197, 253, 0.4);
    stroke-width: 1.4;
}
.tale-stars svg.is-on {
    fill: #60a5fa;
    stroke: #93c5fd;
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.55));
}

/* Our clientele — same pin + horizontal scrub as Our Works */
.cli-stage {
    height: max(240vh, calc(var(--cli-count, 4) * 55vh));
    position: relative;
    z-index: 7;
}
.cli-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    will-change: transform;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(24px, 3.2vw, 48px);
    padding-left: var(--pad);
}
.cli-heading {
    position: relative;
    z-index: 5;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 6.6rem);
    letter-spacing: -0.06em;
    line-height: 0.86;
    pointer-events: none;
    white-space: nowrap;
}
.cli-heading span { display: block; }
.ch-cli { color: var(--heading-accent); }
.cli-horizon {
    position: relative;
    overflow: hidden;
    z-index: 2;
    min-width: 0;
    width: 100%;
}
.cli-track {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 22px;
    width: max-content;
    padding-right: var(--pad);
    will-change: transform;
}
.cli-card {
    flex: 0 0 268px;
    width: 268px;
    padding: 16px 16px 18px;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background:
        linear-gradient(180deg, rgba(16, 36, 68, 0.55), rgba(8, 16, 32, 0.82));
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}
.cli-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 10px;
}
.cli-media {
    position: relative;
    isolation: isolate;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    padding: 28px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 50% 46%, rgba(125, 211, 252, 0.2), transparent 58%),
        linear-gradient(165deg, rgba(12, 28, 52, 0.96), rgba(6, 14, 28, 0.98));
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-shadow: inset 0 0 28px rgba(37, 99, 235, 0.12);
    transition: border-color 0.35s, box-shadow 0.35s;
}
.cli-media::before {
    content: '';
    position: absolute;
    width: 58%;
    height: 58%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(186, 230, 253, 0.38), rgba(37, 99, 235, 0.08) 55%, transparent 72%);
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}
.cli-sf {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #38bdf8;
    border-style: solid;
    pointer-events: none;
    z-index: 3;
}
.cli-sf.c-tl { top: 6px; left: 6px; border-width: 1.5px 0 0 1.5px; }
.cli-sf.c-tr { top: 6px; right: 6px; border-width: 1.5px 1.5px 0 0; }
.cli-sf.c-bl { bottom: 6px; left: 6px; border-width: 0 0 1.5px 1.5px; }
.cli-sf.c-br { bottom: 6px; right: 6px; border-width: 0 1.5px 1.5px 0; }
.cli-scan {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(96, 165, 250, 0.045) 3px,
        rgba(96, 165, 250, 0.045) 4px
    );
    mix-blend-mode: screen;
    opacity: 0.75;
}
.cli-scan::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30%;
    top: -30%;
    background: linear-gradient(to bottom, transparent, rgba(125, 211, 252, 0.18), transparent);
    animation: cliHudScan 3.4s linear infinite;
}
@keyframes cliHudScan {
    0% { top: -30%; }
    100% { top: 110%; }
}
.cli-media img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: 176px;
    max-height: 176px;
    object-fit: contain;
    object-position: center;
    filter:
        drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55))
        drop-shadow(0 6px 4px rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 18px rgba(56, 189, 248, 0.28));
}
.cli-card h3 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
}
.cli-card:hover,
.cli-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.55);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.22);
}
.cli-card:hover .cli-media,
.cli-card:focus-visible .cli-media {
    border-color: rgba(125, 211, 252, 0.55);
    box-shadow: inset 0 0 36px rgba(56, 189, 248, 0.16);
}
.cli-card:hover .cli-media img,
.cli-card:focus-visible .cli-media img {
    filter:
        drop-shadow(0 16px 22px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 26px rgba(125, 211, 252, 0.45));
}

.tales-nav {
    position: relative;
    width: min(100%, 340px);
    z-index: 6;
}
.tales-segs {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 24px;
}
.tales-seg {
    flex: 1 1 0;
    height: 3px;
    padding: 12px 0;
    border: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.tales-seg::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.35);
    transition: background 0.25s ease, transform 0.25s ease;
}
.tales-seg.is-on::before {
    background: #60a5fa;
    transform: scaleY(1.35);
}

.page-home .section-cta {
    display: none;
}
.page-home .site-footer {
    position: relative;
    z-index: 8;
}

@media (max-width: 900px) {
    html:has(.page-home),
    html:has(.page-home) body,
    .page-home,
    .page-home .site-main {
        overflow-x: clip;
        max-width: 100%;
    }
    .page-home .site-main > section {
        width: 100%;
        max-width: 100%;
        left: auto;
        right: auto;
    }
    .fx {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Hero — title first, 3D sits behind/below, no overlap */
    .hero {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding: calc(var(--header) + 20px) var(--pad) 20vh;
    }
    .hero-inner {
        position: relative;
        z-index: 4;
        width: 100%;
        max-width: 100%;
        transform: none !important;
    }
    .hero-title {
        font-size: clamp(2.4rem, 11vw, 3.4rem);
        line-height: 0.96;
        letter-spacing: -0.04em;
    }
    .hero-lead {
        margin-top: 14px;
        font-size: 1rem;
        max-width: 28ch;
    }
    .hero-scroll { display: none; }
    .hero-blast {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 28px;
        transform: none;
        z-index: 4;
    }
    #bg3d {
        top: 22%;
        height: 58%;
        opacity: 0.72;
        clip-path: inset(0);
    }

    .about {
        padding: 48px var(--pad) 36px;
    }
    .about-title {
        font-size: clamp(1.5rem, 6.5vw, 2.15rem);
        max-width: none;
        line-height: 1.2;
    }
    .about-copy {
        font-size: 0.98rem;
        max-width: none;
    }

    .facts { padding: 0 var(--pad) 48px; }
    .sec-title { font-size: clamp(1.5rem, 6vw, 2.1rem); margin-bottom: 24px; }
    .facts-grid { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
    .fact { padding: 12px 8px 8px 0; }
    .fact strong { font-size: clamp(2rem, 9vw, 2.8rem); }

    /* Works — normal vertical list */
    .works-stage {
        height: auto !important;
        padding: 12px 0 8px;
    }
    .works-sticky {
        position: relative !important;
        top: auto;
        height: auto !important;
        overflow: visible;
        will-change: auto;
        transform: none !important;
        display: block;
    }
    .works-heading {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        font-size: clamp(2.2rem, 12vw, 3.2rem);
        padding: 12px var(--pad) 20px;
        pointer-events: none;
    }
    .works-horizon {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    .works-track {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 22px;
        padding: 0 var(--pad) 36px;
        will-change: auto;
        transform: none !important;
    }
    .work-card {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .work-card.is-cta {
        padding: 8px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    /* Services — heading, stone, then stacked cards */
    .services-stage {
        height: auto !important;
        margin-top: 0;
        overflow: visible;
        padding: 8px 0 16px;
    }
    .services-sticky {
        position: relative !important;
        top: auto;
        height: auto !important;
        max-height: none;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        align-items: stretch;
        padding: 12px var(--pad) 36px;
        overflow: visible;
        gap: 16px;
        transform: none !important;
    }
    .svc-heading {
        grid-column: 1;
        grid-row: 1;
        padding-top: 0;
        font-size: clamp(2.1rem, 11vw, 3.2rem);
        text-align: left;
        pointer-events: none;
    }
    .stone {
        grid-column: 1;
        grid-row: 2;
        width: min(48vw, 200px);
        justify-self: center;
        align-self: center;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
        will-change: auto;
    }
    .svc-col {
        display: flex;
        flex-direction: column;
        overflow: visible !important;
        gap: 12px;
        min-height: 0;
        width: 100%;
        align-items: stretch !important;
        transform: none !important;
    }
    .svc-col.left { grid-column: 1; grid-row: 3; }
    .svc-col.right { grid-column: 1; grid-row: 4; }
    .svc-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        transform: none !important;
        opacity: 1 !important;
        will-change: auto;
    }
    .cut-mask { display: none !important; }

    /* Feedback — one card at a time */
    .tales-stage {
        height: auto !important;
        padding: 8px 0 32px;
    }
    .tales-sticky {
        position: relative !important;
        top: auto;
        height: auto !important;
        overflow: visible;
        display: flex;
        flex-direction: column;
        transform: none !important;
    }
    .tales-heading {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        text-align: left;
        font-size: clamp(2.1rem, 11vw, 3.2rem);
        padding: 12px var(--pad) 18px;
    }
    .tales-horizon {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        padding: 0 var(--pad) 28px;
        gap: 16px;
    }
    .tales-track {
        position: relative;
        min-height: 0;
        width: 100%;
        display: block;
    }
    .tale-card {
        position: relative;
        left: auto;
        top: auto;
        display: none;
        width: 100%;
        max-width: 100%;
        padding: 22px 18px;
        transform: none !important;
        opacity: 1 !important;
        will-change: auto;
    }
    .tale-card.is-active {
        display: flex;
    }
    .tale-card blockquote {
        font-size: clamp(1.05rem, 4.6vw, 1.35rem);
    }
    .tale-org {
        max-width: 48%;
        font-size: 0.95rem;
    }
    .tale-who cite b { font-size: 0.95rem; }

    /* Clientele — stacked like Works on narrow */
    .cli-stage {
        height: auto !important;
        padding: 12px 0 8px;
    }
    .cli-sticky {
        position: relative !important;
        top: auto;
        height: auto !important;
        overflow: visible;
        will-change: auto;
        transform: none !important;
        display: block;
        padding-left: 0;
        column-gap: 0;
    }
    .cli-heading {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        font-size: clamp(2.2rem, 12vw, 3.2rem);
        padding: 12px var(--pad) 20px;
        pointer-events: none;
    }
    .cli-horizon {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        overflow: visible;
    }
    .cli-track {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 16px;
        padding: 0 var(--pad) 36px;
        will-change: auto;
        transform: none !important;
    }
    .cli-card {
        flex: none;
        width: 220px;
        max-width: 220px;
        padding: 14px 14px 16px;
    }
    .cli-media {
        padding: 22px;
    }
    .cli-media img {
        max-width: 140px;
        max-height: 140px;
    }
    .tales-nav { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-scroll i { animation: none; }
    .blast-label,
    .blast-label::after { animation: none; }
    .universe-glow { animation: none; }
    .footer-fx .fx-orb,
    .footer-fx .fx-grid,
    .footer-fx .fx-scan { animation: none; }
    .cut-mask { display: none; }
    .cli-scan::after { animation: none; }
    .svc-card:hover,
    .svc-card:focus-visible {
        animation: none;
        transform: none;
    }
    .svc-card:hover::before,
    .svc-card:focus-visible::before,
    .svc-card:hover::after,
    .svc-card:focus-visible::after {
        animation: none;
        opacity: 1;
    }
}
