/* ============================================================
   POLARITY — Prismatic Studio
   Design System: pastel refraction over deep space
   ============================================================ */

:root {
    /* Deep base palette */
    --ink-0: #050510;
    --ink-1: #0a0a18;
    --ink-2: #121222;
    --ink-3: #1a1a2e;
    --line: rgba(255, 255, 255, 0.08);
    --line-soft: rgba(255, 255, 255, 0.04);
    --line-bright: rgba(255, 255, 255, 0.18);

    /* Pastel rainbow (from the logo) */
    --p-pink:   #ffb5c5;
    --p-peach:  #ffcba4;
    --p-butter: #fff5b5;
    --p-mint:   #b5ffcb;
    --p-sky:    #a8d8ff;
    --p-lav:    #c9a8ff;

    /* Muted text */
    --text: #f5f5fa;
    --text-soft: rgba(245, 245, 250, 0.72);
    --text-mute: rgba(245, 245, 250, 0.48);
    --text-faint: rgba(245, 245, 250, 0.28);

    /* Glass */
    --glass: rgba(255, 255, 255, 0.035);
    --glass-strong: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Prismatic gradient (the signature) */
    --rainbow: linear-gradient(90deg,
        #ffb5c5 0%, #ffcba4 18%, #fff5b5 36%,
        #b5ffcb 54%, #a8d8ff 72%, #c9a8ff 90%, #ffb5c5 100%);
    --rainbow-soft: linear-gradient(90deg,
        rgba(255,181,197,0.6), rgba(255,203,164,0.6),
        rgba(255,245,181,0.6), rgba(181,255,203,0.6),
        rgba(168,216,255,0.6), rgba(201,168,255,0.6));

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--ink-0);
}

html, body {
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    /* Transparent so the fixed .bg-stack underneath is actually visible. */
    background: transparent;
    position: relative;
    min-height: 100vh;
}

/* Hide entrance elements until GSAP kicks in to prevent flash-of-unstyled */
.js-ready .hero-eyebrow,
.js-ready .hero-sub,
.js-ready .hero-actions,
.js-ready .hero-meta,
.js-ready .hero-scroll-cue,
.js-ready .hero-title .char,
.js-ready .nav {
    opacity: 0;
}

html {
    scroll-behavior: auto;
}

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

img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; color: inherit; }

::selection {
    background: rgba(255, 181, 197, 0.35);
    color: #fff;
}

/* Hide default cursor */
@media (pointer: fine) {
    * { cursor: none !important; }
}

/* Rainbow flow keyframes — used by a few gradient text elements */
@keyframes rainbow-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================================
   CUSTOM CURSOR — 4-point Prismatic Sparkle
   ============================================================ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
}

/* Outer container — positioned by JS (translate) */
.cursor-star {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    will-change: transform;
}

/* Middle layer — hover-scale via CSS transition */
.cursor-star-hover {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    transform: scale(1);
    transition: transform 0.55s cubic-bezier(0.33, 1.4, 0.52, 1);
}

.cursor.is-hover .cursor-star-hover { transform: scale(1.55); }
.cursor.is-label .cursor-star-hover { transform: scale(2.4); }
.cursor.is-click .cursor-star-hover { transform: scale(0.7); }

/* SVG — continuous pulse + slow rotation via CSS keyframe */
.cursor-star-hover svg {
    position: absolute;
    width: 46px;
    height: 46px;
    left: -23px;
    top: -23px;
    overflow: visible;
    filter: drop-shadow(0 0 10px rgba(255, 181, 197, 0.85))
            drop-shadow(0 0 22px rgba(168, 216, 255, 0.55))
            drop-shadow(0 0 36px rgba(201, 168, 255, 0.35));
    animation: sparkle-pulse 2.6s ease-in-out infinite;
    transform-origin: center;
    mix-blend-mode: screen;
}

.cursor-star-inner {
    mix-blend-mode: screen;
    animation: sparkle-inner 2.6s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes sparkle-pulse {
    0%   { transform: scale(0.62) rotate(0deg);   opacity: 0.85; }
    50%  { transform: scale(1.05) rotate(180deg); opacity: 1; }
    100% { transform: scale(0.62) rotate(360deg); opacity: 0.85; }
}

@keyframes sparkle-inner {
    0%, 100% { transform: scale(0.4); opacity: 0.4; }
    50%      { transform: scale(1.0); opacity: 1; }
}

.cursor-label {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
    mix-blend-mode: screen;
}

.cursor-label span {
    display: inline-block;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(0,0,0,0.8),
                 0 0 14px rgba(255,181,197,0.6);
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px;
    backdrop-filter: blur(6px);
    background: rgba(10,10,24,0.35);
}

.cursor.is-label .cursor-label {
    opacity: 1;
}

/* Click ripple host */
.click-ripple-host {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.click-ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    transform: translate(-50%, -50%);
    animation: ripple-out 0.9s var(--ease-out) forwards;
    mix-blend-mode: screen;
}

.click-ripple::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255,181,197,0.7);
    animation: ripple-out 0.9s var(--ease-out) forwards;
    animation-delay: 0.04s;
}

.click-ripple::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(168,216,255,0.7);
    animation: ripple-out 0.9s var(--ease-out) forwards;
    animation-delay: 0.08s;
}

@keyframes ripple-out {
    to {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}

/* ============================================================
   BACKGROUND STACK
   ============================================================ */
.bg-stack {
    position: fixed;
    inset: 0;
    z-index: 0;            /* Sits at the bottom of the root stacking context,
                              but NOT behind the body paint — so stars, nebula,
                              orbit rings, etc. are actually visible. */
    overflow: hidden;
    pointer-events: none;
}

/* Make sure the document flow (main + footer) paints ABOVE the fixed .bg-stack. */
main,
.footer {
    position: relative;
    z-index: 1;
}

.bg-deep {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 1200px 800px at 20% 10%, rgba(201, 168, 255, 0.08), transparent 60%),
        radial-gradient(ellipse 1000px 700px at 80% 20%, rgba(168, 216, 255, 0.08), transparent 60%),
        radial-gradient(ellipse 900px 600px at 50% 90%, rgba(255, 181, 197, 0.06), transparent 60%),
        linear-gradient(180deg, var(--ink-0) 0%, var(--ink-1) 50%, var(--ink-0) 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
    opacity: 0.7;
}

.bg-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.aurora-wrap {
    position: absolute;
    inset: 0;
    filter: blur(80px);
    opacity: 0.7;
}

.aurora {
    position: absolute;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}

.aurora-1 {
    top: -10%; left: -10%;
    background: radial-gradient(circle, rgba(255, 181, 197, 0.8), transparent 60%);
    animation: float-1 22s ease-in-out infinite;
}

.aurora-2 {
    top: 20%; right: -15%;
    background: radial-gradient(circle, rgba(168, 216, 255, 0.8), transparent 60%);
    animation: float-2 28s ease-in-out infinite;
}

.aurora-3 {
    bottom: -10%; left: 20%;
    background: radial-gradient(circle, rgba(201, 168, 255, 0.8), transparent 60%);
    animation: float-3 26s ease-in-out infinite;
}

.aurora-4 {
    bottom: 10%; right: 10%;
    background: radial-gradient(circle, rgba(181, 255, 203, 0.7), transparent 60%);
    animation: float-4 32s ease-in-out infinite;
}

@keyframes float-1 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(10vw, 6vh) scale(1.1); }
}
@keyframes float-2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-8vw, 8vh) scale(1.15); }
}
@keyframes float-3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(6vw, -8vh) scale(1.08); }
}
@keyframes float-4 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-10vw, -6vh) scale(1.12); }
}

.bg-caustics {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 245, 181, 0.4), transparent),
        radial-gradient(1px 1px at 80% 40%, rgba(168, 216, 255, 0.4), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 181, 197, 0.4), transparent),
        radial-gradient(1px 1px at 90% 90%, rgba(201, 168, 255, 0.4), transparent),
        radial-gradient(1px 1px at 30% 10%, rgba(181, 255, 203, 0.4), transparent),
        radial-gradient(1px 1px at 60% 60%, rgba(255, 203, 164, 0.4), transparent);
    background-size: 300px 300px;
    opacity: 0.4;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.3; }
    to { opacity: 0.55; }
}

/* ============================================================
   STAR FIELD — generated in JS, twinkles + sparkles
   ============================================================ */
.star-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tw-star {
    position: absolute;
    will-change: opacity, transform;
    mix-blend-mode: screen;
    animation: twinkle-fade ease-in-out infinite;
    pointer-events: none;
}

.tw-dot {
    border-radius: 50%;
    box-shadow:
        0 0 4px currentColor,
        0 0 8px currentColor;
    color: #fff;
    background: currentColor;
}

.tw-sparkle {
    color: #fff;
}

.tw-sparkle svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor);
    animation: tw-sparkle-spin 14s linear infinite;
    transform-origin: center;
}

.tw-sparkle path { fill: currentColor; }

@keyframes twinkle-fade {
    0%, 100% { opacity: 0.12; transform: translate(-50%, -50%) scale(0.55); }
    50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.2); }
}

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

/* ============================================================
   SHOOTING STARS
   ============================================================ */
.shooting-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 6px #fff,
        0 0 14px rgba(255, 181, 197, 0.9),
        0 0 24px rgba(168, 216, 255, 0.6);
    transform-origin: center;
    animation: shoot linear forwards;
    mix-blend-mode: screen;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    height: 1px;
    width: 200px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 245, 181, 0.3) 30%,
        rgba(255, 255, 255, 0.9) 100%
    );
    transform: translateY(-50%);
    filter: blur(0.5px);
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    height: 3px;
    width: 110px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(168, 216, 255, 0.25) 50%,
        rgba(201, 168, 255, 0.35) 100%
    );
    transform: translateY(-50%);
    filter: blur(2px);
}

@keyframes shoot {
    0%   { transform: rotate(var(--angle, 25deg)) translateX(0) scale(1);                      opacity: 0; }
    6%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: rotate(var(--angle, 25deg)) translateX(var(--dist, 900px)) scale(0.55); opacity: 0; }
}

/* ============================================================
   NEBULA — painterly drifting color mist
   ============================================================ */
.bg-nebula {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(40% 30% at 18% 22%, rgba(255, 181, 197, 0.18), transparent 70%),
        radial-gradient(35% 25% at 82% 32%, rgba(168, 216, 255, 0.18), transparent 70%),
        radial-gradient(45% 35% at 62% 78%, rgba(201, 168, 255, 0.16), transparent 70%),
        radial-gradient(30% 20% at 28% 72%, rgba(181, 255, 203, 0.14), transparent 70%),
        radial-gradient(25% 18% at 50% 10%, rgba(255, 245, 181, 0.12), transparent 70%);
    filter: blur(30px);
    opacity: 0.7;
    animation: nebula-drift 40s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

@keyframes nebula-drift {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    50%  { transform: translate(-2%, 1%) scale(1.05) rotate(6deg); }
    100% { transform: translate(1%, -1%) scale(1.02) rotate(-4deg); }
}

/* Two extra aurora blobs layered for density */
.aurora-5 {
    top: 40%; left: 35%;
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(255, 245, 181, 0.6), transparent 60%);
    animation: float-5 34s ease-in-out infinite;
}
.aurora-6 {
    top: 55%; right: 25%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(255, 203, 164, 0.55), transparent 60%);
    animation: float-6 30s ease-in-out infinite;
}
@keyframes float-5 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-6vw, -10vh) scale(1.12); }
}
@keyframes float-6 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(8vw, 6vh) scale(1.08); }
}

/* ============================================================
   PRISM ORBIT RINGS — slow-spinning elliptical gradients
   ============================================================ */
.prism-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140vmax;
    height: 140vmax;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.55;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid transparent;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        rgba(255, 181, 197, 0.35) 60deg,
        rgba(255, 245, 181, 0.35) 120deg,
        rgba(181, 255, 203, 0.35) 180deg,
        rgba(168, 216, 255, 0.35) 240deg,
        rgba(201, 168, 255, 0.35) 300deg,
        transparent 360deg) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: halo-rotate 60s linear infinite;
}

.orbit-ring-1 {
    width: 60vmax;
    height: 60vmax;
    transform: translate(-50%, -50%) rotate(-12deg);
    border-width: 2px;
}
.orbit-ring-2 {
    width: 90vmax;
    height: 90vmax;
    transform: translate(-50%, -50%) rotate(18deg);
    animation-duration: 110s;
    animation-direction: reverse;
    border-width: 2px;
}
.orbit-ring-3 {
    width: 125vmax;
    height: 125vmax;
    transform: translate(-50%, -50%) rotate(-28deg);
    animation-duration: 180s;
    border-width: 2px;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    /* Subtle edge-dim — strong enough to frame the content but soft enough
       that stars and auroras stay visible all the way to the corners. */
    background: radial-gradient(ellipse 120% 95% at 50% 50%, transparent 55%, rgba(5,5,16,0.55) 100%);
    pointer-events: none;
}

.spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.05),
        transparent 60%
    );
    transition: background 0.2s ease;
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 2000;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--rainbow);
    background-size: 200% 100%;
    animation: rainbow-flow 4s linear infinite;
    box-shadow: 0 0 12px rgba(255, 181, 197, 0.6);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1600px;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 1000;
    background: rgba(10, 10, 24, 0.55);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: background 0.5s;
}

.nav::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--rainbow-soft);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    pointer-events: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transition: transform 0.6s var(--ease-out);
}

.nav-brand:hover .nav-logo {
    transform: rotate(120deg);
}

.nav-brand-text {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    border-radius: 100px;
    transition: color 0.4s, background 0.4s;
    position: relative;
    overflow: hidden;
}

.nav-links a span {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    transition: color 0.4s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.4rem;
    height: 1px;
    background: var(--rainbow);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out);
    animation: rainbow-flow 4s linear infinite;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.is-active span {
    color: var(--p-pink);
}

.nav-cta {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.65rem 0.65rem 1.3rem;
    background: #fff;
    color: #000;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--rainbow);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s;
}

.nav-cta:hover::before { opacity: 1; animation: rainbow-flow 3s linear infinite; }

.nav-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cta-arrow {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 2rem 6rem;
    overflow: hidden;
}

.hero-ambient {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.hero-prism {
    width: min(1200px, 110vw);
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 0 80px rgba(255, 181, 197, 0.15));
}

.hero-core {
    mix-blend-mode: screen;
    animation: core-pulse 6s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes core-pulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-rays { transform-origin: 400px 400px; }

.ray { transform-origin: 400px 400px; mix-blend-mode: screen; opacity: 0.8; }
.ray-pink   { transform: rotate(0deg); animation: ray-sweep 18s linear infinite; }
.ray-peach  { transform: rotate(10deg); animation: ray-sweep 18s linear infinite; animation-delay: -3s; }
.ray-butter { transform: rotate(20deg); animation: ray-sweep 18s linear infinite; animation-delay: -6s; }
.ray-mint   { transform: rotate(30deg); animation: ray-sweep 18s linear infinite; animation-delay: -9s; }
.ray-sky    { transform: rotate(40deg); animation: ray-sweep 18s linear infinite; animation-delay: -12s; }
.ray-lav    { transform: rotate(50deg); animation: ray-sweep 18s linear infinite; animation-delay: -15s; }

@keyframes ray-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-triangle {
    transform-origin: 400px 400px;
    animation: triangle-spin 40s linear infinite;
}

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

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-soft);
    backdrop-filter: blur(12px);
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--p-sky);
    box-shadow: 0 0 10px var(--p-sky);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(3rem, 9vw, 10rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #fff;
    position: relative;
    perspective: 1400px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding: 0.08em 0.15em 0.12em;
    margin: 0 -0.15em;
    transform-style: preserve-3d;
}

.hero-title .char {
    display: inline-block;
    will-change: transform, opacity;
    transform-origin: 50% 100%;
    backface-visibility: hidden;
}

.hero-title .prismatic-word {
    display: inline-block;
}

.hero-title em {
    font-style: italic;
    background: var(--rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-flow 8s linear infinite;
    display: inline-block;
}

.prismatic-word {
    font-style: italic;
    background: var(--rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-flow 8s linear infinite;
}

.hero-sub {
    max-width: 620px;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--text-soft);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.6rem 1.1rem 1.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s, color 0.4s;
    white-space: nowrap;
    isolation: isolate;
}

/* Double-label slide */
.btn-label-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    line-height: 1;
    vertical-align: middle;
    z-index: 1;
}

.btn-label,
.btn-label-alt {
    display: inline-block;
    transition: transform 0.6s var(--ease-out), opacity 0.5s;
}

.btn-label-alt {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(120%);
}

.btn:hover .btn-label {
    transform: translateY(-120%);
}

.btn:hover .btn-label-alt {
    transform: translateY(0);
}

.btn.is-sent .btn-label,
.btn.is-sent .btn-label-alt {
    transform: none !important;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--rainbow);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.btn-primary:hover::before {
    opacity: 1;
    animation: rainbow-flow 3s linear infinite;
}

.btn-primary .btn-label-wrap,
.btn-primary .btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    transition: transform 0.5s var(--ease-out);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px) rotate(-20deg);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-bright);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1.3rem 2rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    margin-top: 1.5rem;
}

.meta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.meta-num {
    font-family: 'Instrument Serif', serif;
    font-size: 2.4rem;
    line-height: 1;
    color: #fff;
    font-style: italic;
}

.meta-sym {
    font-family: 'Instrument Serif', serif;
    font-size: 1.6rem;
    color: var(--p-pink);
    font-style: italic;
}

.meta-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-mute);
    margin-top: 0.4rem;
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--line-bright), transparent);
}

.hero-scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-mute);
}

.cue-line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.cue-line-fill {
    position: absolute;
    inset: 0;
    background: var(--rainbow);
    animation: cue-drop 2.5s ease-in-out infinite;
}

@keyframes cue-drop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.012);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.marquee-reverse .marquee-track {
    animation-direction: reverse;
    animation-duration: 55s;
}

.marquee-item.sub {
    font-size: clamp(1.6rem, 3vw, 3rem);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    font-style: italic;
}

.marquee-item.sub em {
    color: rgba(255, 181, 197, 0.5);
    -webkit-text-stroke: 0;
}

.marquee {
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-item {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 7vw, 7rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
    transition: color 0.6s;
}

.marquee-item em {
    font-size: 0.5em;
    background: var(--rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 0;
    animation: rainbow-flow 4s linear infinite;
}

.marquee:hover .marquee-item {
    color: rgba(255, 255, 255, 0.2);
}

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

/* ============================================================
   SECTION BASICS
   ============================================================ */
.section {
    position: relative;
    padding: 10rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.section-head {
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-head.center {
    align-items: center;
    text-align: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-soft);
    width: fit-content;
}

.kicker-num {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.55rem;
    color: var(--p-sky);
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.section-title em {
    font-style: italic;
    background: var(--rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-flow 8s linear infinite;
}

/* ============================================================
   PRISM CARD (shared)
   ============================================================ */
.prism-card {
    --cx: 50%;
    --cy: 50%;
    --spot: 0;
    position: relative;
    background:
        radial-gradient(360px circle at var(--cx) var(--cy),
            rgba(255, 181, 197, calc(0.12 * var(--spot))),
            rgba(168, 216, 255, calc(0.06 * var(--spot))) 40%,
            transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 30px 60px -20px rgba(0, 0, 0, 0.6);
    transition: border-color 0.6s, box-shadow 0.6s, background 0.4s;
}

.prism-card:hover { --spot: 1; }

/* Holographic edge (signature) */
.prism-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        rgba(255, 181, 197, 0.7) 60deg,
        rgba(255, 245, 181, 0.7) 120deg,
        rgba(181, 255, 203, 0.7) 180deg,
        rgba(168, 216, 255, 0.7) 240deg,
        rgba(201, 168, 255, 0.7) 300deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.8s var(--ease-out);
    animation: halo-rotate 8s linear infinite;
    pointer-events: none;
}

.prism-card:hover::before {
    opacity: 0.85;
}

@keyframes halo-rotate {
    to { --angle: 360deg; }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Iridescent sheen on hover */
.prism-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 245, 181, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 55%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 1.2s var(--ease-out);
    pointer-events: none;
}

.prism-card:hover::after {
    transform: translateX(100%);
}

.prism-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-bright);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 50px 100px -20px rgba(0, 0, 0, 0.8),
        0 0 60px -10px rgba(255, 181, 197, 0.15);
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto-statement {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.4vw, 3.4rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: var(--text);
    max-width: 1200px;
}

.manifesto-statement em {
    font-style: italic;
    background: var(--rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-flow 8s linear infinite;
}

.manifesto-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.signature {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sig-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-faint);
}

.sig-name {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text);
}

.manifesto-ticker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--text-soft);
}

.manifesto-ticker .tick {
    color: var(--p-pink);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-card {
    padding: 2.5rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    color: var(--text);
}

.pc-num {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-faint);
}

.pc-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--p-sky);
}

.pc-icon svg { width: 24px; height: 24px; }

.process-card h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.process-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

.pc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.pc-list li {
    font-size: 0.75rem;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pc-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--p-sky);
    box-shadow: 0 0 6px var(--p-sky);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 3rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.service-card.wide { grid-column: span 2; }

.service-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-tag {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--p-pink);
}

.service-card h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.service-card p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 540px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.service-tags span {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    background: rgba(255,255,255,0.02);
}

/* ============================================================
   CAPABILITIES MATRIX — 12-cell craft grid
   ============================================================ */
.capabilities .section-lede {
    max-width: 560px;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.capability-grid::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        rgba(255, 181, 197, 0.55),
        rgba(255, 245, 181, 0.55),
        rgba(181, 255, 203, 0.55),
        rgba(168, 216, 255, 0.55),
        rgba(201, 168, 255, 0.55),
        rgba(255, 181, 197, 0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: halo-rotate 12s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}

.cap-cell {
    position: relative;
    padding: 2.25rem 1.75rem;
    min-height: 220px;
    background:
        radial-gradient(180px circle at var(--cx, 50%) var(--cy, 50%),
            rgba(255, 181, 197, calc(0.2 * var(--spot, 0))),
            rgba(168, 216, 255, calc(0.1 * var(--spot, 0))) 40%,
            transparent 70%),
        linear-gradient(180deg, rgba(10,10,24,0.7), rgba(10,10,24,0.5));
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: background 0.5s, transform 0.6s var(--ease-out);
    overflow: hidden;
}

.cap-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.cap-cell:hover::before { opacity: 1; }

.cap-cell:hover {
    --spot: 1;
    background:
        radial-gradient(200px circle at var(--cx, 50%) var(--cy, 50%),
            rgba(255, 181, 197, 0.22),
            rgba(168, 216, 255, 0.12) 40%,
            transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.cap-glyph {
    font-size: 2.2rem;
    line-height: 1;
    background: var(--rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-flow 8s linear infinite;
    filter: drop-shadow(0 0 12px rgba(255, 181, 197, 0.3));
    margin-bottom: 0.4rem;
    transform: translateZ(0);
    transition: transform 0.6s var(--ease-out);
}

.cap-cell:hover .cap-glyph {
    transform: scale(1.15) rotate(8deg);
}

.cap-cell h4 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.01em;
}

.cap-cell p {
    font-size: 0.78rem;
    color: var(--text-mute);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Hidden initial state for GSAP scroll reveal */
.js-ready .cap-cell {
    opacity: 0;
}

/* ============================================================
   WORK
   ============================================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.work-item {
    border-radius: 28px;
    position: relative;
}

.work-media {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    transition: border-color 0.5s;
}

.work-item:hover .work-media {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Scan / sweep overlay (runs on hover) */
.work-scan {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 245, 181, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 70%);
    transform: translateX(-120%);
    transition: transform 1.2s var(--ease-out);
    mix-blend-mode: screen;
}

.work-item:hover .work-scan {
    transform: translateX(120%);
}

/* Rainbow edge halo on hover */
.work-media::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        rgba(255, 181, 197, 0.5) 60deg,
        rgba(255, 245, 181, 0.5) 120deg,
        rgba(181, 255, 203, 0.5) 180deg,
        rgba(168, 216, 255, 0.5) 240deg,
        rgba(201, 168, 255, 0.5) 300deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
    animation: halo-rotate 10s linear infinite;
    pointer-events: none;
    z-index: 4;
}

.work-item:hover .work-media::before {
    opacity: 1;
}

.work-gradient-1 {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 181, 197, 0.6), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(201, 168, 255, 0.5), transparent 55%),
        linear-gradient(135deg, #1a0f1f, #0a0a18);
}
.work-gradient-2 {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(168, 216, 255, 0.55), transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(181, 255, 203, 0.45), transparent 55%),
        linear-gradient(135deg, #0f1a1f, #0a0a18);
}
.work-gradient-3 {
    background:
        radial-gradient(ellipse at 30% 70%, rgba(255, 245, 181, 0.5), transparent 55%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 203, 164, 0.55), transparent 55%),
        linear-gradient(135deg, #1f1a0f, #0a0a18);
}
.work-gradient-4 {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(201, 168, 255, 0.55), transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(168, 216, 255, 0.5), transparent 55%),
        linear-gradient(135deg, #141028, #0a0a18);
}

.work-preview {
    width: 75%;
    max-width: 460px;
    background: rgba(10, 10, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.8s var(--ease-out);
}

.work-item:hover .work-preview {
    transform: translateY(-12px) scale(1.02);
}

.wp-row {
    height: 10px;
    border-radius: 100px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.wp-row.short { width: 60%; }

.wp-block {
    height: 80px;
    border-radius: 12px;
    background: var(--rainbow-soft);
    margin-top: 0.3rem;
}

.grid-preview {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.grid-preview > div {
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.grid-preview > div:nth-child(1) { background: rgba(255, 181, 197, 0.25); }
.grid-preview > div:nth-child(2) { background: rgba(168, 216, 255, 0.25); }
.grid-preview > div:nth-child(3) { background: rgba(201, 168, 255, 0.25); }
.grid-preview > div:nth-child(4) { background: rgba(255, 245, 181, 0.25); }
.grid-preview > div:nth-child(5) { background: rgba(181, 255, 203, 0.25); }
.grid-preview > div:nth-child(6) { background: rgba(255, 203, 164, 0.25); }

.circle-preview {
    align-items: center;
}

.pv-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--rainbow);
    background-size: 200% 100%;
    animation: rainbow-flow 6s linear infinite;
    align-self: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(255, 181, 197, 0.5);
}

.pv-line {
    height: 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
}

.pv-line.short { width: 60%; align-self: center; margin: 0 auto; }

.stack-preview {
    justify-content: center;
}

.pv-card {
    height: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pv-card:nth-child(1) { background: rgba(255, 181, 197, 0.2); }
.pv-card:nth-child(2) { background: rgba(168, 216, 255, 0.2); width: 80%; }
.pv-card:nth-child(3) { background: rgba(201, 168, 255, 0.2); width: 60%; }

.work-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.5rem 0.5rem 0;
}

.work-tag {
    display: block;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-mute);
    margin-bottom: 0.4rem;
}

.work-info h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.work-year {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-mute);
}

.work-foot {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-mute);
    font-size: 0.85rem;
}

.inline-link {
    color: #fff;
    border-bottom: 1px solid var(--line-bright);
    padding-bottom: 0.2rem;
    transition: border-color 0.4s, color 0.4s;
}

.inline-link:hover {
    color: var(--p-pink);
    border-color: var(--p-pink);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stars {
    font-size: 1rem;
    letter-spacing: 0.2em;
    background: var(--rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-flow 6s linear infinite;
    width: fit-content;
}

.testimonial blockquote {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--text);
    font-style: italic;
}

.testimonial figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.t-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.t-role {
    font-size: 0.75rem;
    color: var(--text-mute);
    letter-spacing: 0.02em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
}

/* FAQ — custom accordion with smooth height animation */
.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.6s, background 0.6s;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--rainbow);
    background-size: 100% 200%;
    animation: rainbow-flow-v 4s linear infinite;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
}

@keyframes rainbow-flow-v {
    0% { background-position: 50% 0%; }
    100% { background-position: 50% 200%; }
}

.faq-item.is-open {
    border-color: var(--line-bright);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.faq-item.is-open::before { opacity: 1; }

.faq-summary {
    padding: 1.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    cursor: pointer;
    transition: color 0.4s, padding 0.6s var(--ease-out);
    user-select: none;
}

.faq-item.is-open .faq-summary {
    padding-left: 2.5rem;
}

.faq-q {
    font-family: 'Instrument Serif', serif;
    font-size: 1.35rem;
    color: #fff;
    transition: transform 0.6s var(--ease-out);
}

.faq-item.is-open .faq-q {
    transform: translateX(4px);
}

.faq-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.5s, transform 0.6s var(--ease-out), background 0.5s;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: #fff;
    transition: transform 0.5s var(--ease-out);
}

.faq-toggle::before {
    top: 50%;
    left: 25%;
    right: 25%;
    height: 1px;
    transform: translateY(-50%);
}

.faq-toggle::after {
    left: 50%;
    top: 25%;
    bottom: 25%;
    width: 1px;
    transform: translateX(-50%);
}

.faq-item.is-open .faq-toggle {
    background: rgba(255,181,197,0.15);
    border-color: rgba(255,181,197,0.5);
    transform: rotate(180deg);
}

.faq-item.is-open .faq-toggle::after {
    transform: translateX(-50%) scaleY(0);
}

/* Custom height animation wrapper */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s var(--ease-out);
}

.faq-a {
    padding: 0 2rem 1.8rem 2.5rem;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 740px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.6s var(--ease-out) 0.15s, transform 0.6s var(--ease-out) 0.15s;
}

.faq-item.is-open .faq-a {
    opacity: 1;
    transform: translateY(0);
}

.faq-a em {
    color: var(--p-pink);
    font-style: italic;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.contact-sub {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.contact-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.contact-list span {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-faint);
}

.contact-list a {
    color: var(--text);
    transition: color 0.4s;
}

.contact-list a:hover { color: var(--p-pink); }

.contact-form {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-mute);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-faint);
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(255, 181, 197, 0.6);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 181, 197, 0.08);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.6rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-soft);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--ease-out);
}

.chip:hover {
    border-color: var(--line-bright);
    color: #fff;
}

.chip.is-active {
    background: var(--rainbow);
    background-size: 200% 100%;
    animation: rainbow-flow 4s linear infinite;
    color: #000;
    border-color: transparent;
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    padding: 6rem 2rem 2rem;
    max-width: 1500px;
    margin: 4rem auto 0;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 6rem;
}

.footer-mark {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 48px;
}

.footer-name {
    display: block;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: #fff;
}

.footer-tag {
    display: block;
    font-size: 0.75rem;
    color: var(--text-mute);
    margin-top: 0.25rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-nav > div {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--text-soft);
    font-size: 0.9rem;
    transition: color 0.4s, transform 0.4s var(--ease-out);
    width: fit-content;
}

.footer-nav a:hover {
    color: var(--p-pink);
    transform: translateX(6px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-mute);
}

.footer-signal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p-mint);
    box-shadow: 0 0 8px var(--p-mint);
    animation: dot-pulse 2s ease-in-out infinite;
}

.footer-giant {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(6rem, 22vw, 24rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-align: center;
    margin-top: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    user-select: none;
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

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

.char, .word {
    display: inline-block;
    will-change: transform, opacity;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card.wide { grid-column: span 2; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .capability-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .nav { padding: 0.75rem 1rem; }
    .nav-links { display: none; }
    .nav-brand-text { display: none; }
    .section { padding: 6rem 1.5rem; }
    .hero { padding: 9rem 1.5rem 5rem; }
    .hero-meta {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem;
    }
    .meta-divider { display: none; }
    .work-grid { grid-template-columns: 1fr; }
    .services-grid, .process-grid { grid-template-columns: 1fr; }
    .service-card.wide { grid-column: span 1; }
    .capability-grid { grid-template-columns: repeat(2, 1fr); }
    .cap-cell { min-height: 180px; padding: 1.75rem 1.4rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-nav { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .cursor { display: none; }
    * { cursor: auto !important; }
    .manifesto-foot { flex-direction: column; align-items: flex-start; }
    .prism-orbit { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }
}
