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

:root {
    --heading: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
    --black: #0c0c0c;
    --white: #fff;
    --gray-1: #f6f6f6;
    --gray-2: #e8e8e8;
    --gray-3: #bbb;
    --gray-4: #777;
    --pad: clamp(10px, 2.5vw, 40px);
    --ease: cubic-bezier(.16,1,.3,1);
    --card-bg: #fff;
    --border-subtle: rgba(0,0,0,.06);
    --shadow-subtle: rgba(0,0,0,.08);
    /* Hero liquid — tema chiaro: rosso / arancio */
    --hero-liquid-1: #e94235;
    --hero-liquid-2: rgba(255, 245, 235, 0.92);
    --hero-liquid-3: #1a0806;
    --hero-liquid-4: #ff8c42;
}

html { transition: background-color .4s ease, color .4s ease }
body, nav, footer, .reel-page, .home-card, .ai-cap-card { transition: background-color .4s ease, color .4s ease, border-color .4s ease }

[data-theme="dark"] {
    --black: #f0f0f0;
    --white: #0a0a0a;
    --gray-1: #161616;
    --gray-2: #222;
    --gray-3: #555;
    --gray-4: #999;
    --card-bg: #141414;
    --border-subtle: rgba(255,255,255,.08);
    --shadow-subtle: rgba(255,255,255,.04);
    --hero-liquid-1: #3d8fd9;
    --hero-liquid-2: rgba(220, 235, 255, 0.35);
    --hero-liquid-3: #020508;
    --hero-liquid-4: #1e4a72;
}
[data-theme="dark"] img {
    filter: brightness(.92) contrast(1.05);
}
[data-theme="dark"] .bg-blob {
    mix-blend-mode: screen;
    opacity: .6;
}
[data-theme="dark"] .bg-grain {
    opacity: .12;
}

/* ── Warm theme ── */
[data-theme="warm"] {
    --black: #3d2c1e;
    --white: #faf3eb;
    --gray-1: #f0e6d8;
    --gray-2: #e0d1be;
    --gray-3: #b89e7e;
    --gray-4: #8a7560;
    --card-bg: #faf3eb;
    --border-subtle: rgba(60,40,20,.06);
    --shadow-subtle: rgba(60,40,20,.08);
    --hero-liquid-1: #e8a55a;
    --hero-liquid-2: rgba(255, 248, 235, 0.9);
    --hero-liquid-3: #4a3020;
    --hero-liquid-4: #f5c77e;
}
[data-theme="warm"] nav:not(.nav--dark) {
    background: rgba(250,243,235,.92);
}
[data-theme="warm"] .hero-bg { mix-blend-mode: multiply }
[data-theme="warm"] .bg-blob::before {
    background: radial-gradient(circle, #f5c77e, #e8a55a, #d4845a);
}
[data-theme="warm"] .bg-blob::after {
    background: radial-gradient(circle, #e8c49a, #d4a574, #c48a5a);
}

/* ── Ocean theme ── */
[data-theme="ocean"] {
    --black: #d4e4ef;
    --white: #0b1929;
    --gray-1: #0f2236;
    --gray-2: #1a3450;
    --gray-3: #3a6080;
    --gray-4: #7aabc8;
    --card-bg: #0f2236;
    --border-subtle: rgba(120,180,220,.1);
    --shadow-subtle: rgba(120,180,220,.05);
    --hero-liquid-1: #2e9dd4;
    --hero-liquid-2: rgba(180, 220, 255, 0.35);
    --hero-liquid-3: #061a2a;
    --hero-liquid-4: #4ab8e8;
}
[data-theme="ocean"] nav:not(.nav--dark) {
    background: rgba(11,25,41,.92);
    border-bottom-color: rgba(120,180,220,.1);
}
[data-theme="ocean"] img { filter: brightness(.92) contrast(1.05) }
[data-theme="ocean"] .hero-bg { mix-blend-mode: lighten }
[data-theme="ocean"] .bg-blob { mix-blend-mode: screen; opacity: .5 }
[data-theme="ocean"] .bg-blob::before {
    background: radial-gradient(circle, #1a6fa0, #2e9dd4, #4ab8e8);
}
[data-theme="ocean"] .bg-blob::after {
    background: radial-gradient(circle, #1a4a7a, #2878aa, #3aa0d4);
}
[data-theme="ocean"] .bg-grain { opacity: .1 }

/* ── Moss theme ── */
[data-theme="moss"] {
    --black: #d4ddd2;
    --white: #111a0f;
    --gray-1: #182214;
    --gray-2: #253520;
    --gray-3: #4a6842;
    --gray-4: #8aaa7e;
    --card-bg: #182214;
    --border-subtle: rgba(140,180,120,.1);
    --shadow-subtle: rgba(140,180,120,.05);
    --hero-liquid-1: #5a9a48;
    --hero-liquid-2: rgba(200, 230, 190, 0.3);
    --hero-liquid-3: #0a1208;
    --hero-liquid-4: #7abb65;
}
[data-theme="moss"] nav:not(.nav--dark) {
    background: rgba(17,26,15,.92);
    border-bottom-color: rgba(140,180,120,.1);
}
[data-theme="moss"] img { filter: brightness(.9) contrast(1.05) saturate(1.1) }
[data-theme="moss"] .hero-bg { mix-blend-mode: lighten }
[data-theme="moss"] .bg-blob { mix-blend-mode: screen; opacity: .5 }
[data-theme="moss"] .bg-blob::before {
    background: radial-gradient(circle, #3a6830, #5a9a48, #7abb65);
}
[data-theme="moss"] .bg-blob::after {
    background: radial-gradient(circle, #2a5020, #488a38, #68aa55);
}
[data-theme="moss"] .bg-grain { opacity: .1 }

/* ── Ruby theme ── */
[data-theme="ruby"] {
    --black: #1a1a1a;
    --white: #fafafa;
    --gray-1: #f2f2f2;
    --gray-2: #e0e0e0;
    --gray-3: #999;
    --gray-4: #666;
    --accent: #c8102e;
    --card-bg: #fafafa;
    --border-subtle: rgba(200,16,46,.08);
    --shadow-subtle: rgba(200,16,46,.06);
    --hero-liquid-1: #e84860;
    --hero-liquid-2: rgba(255, 255, 255, 0.85);
    --hero-liquid-3: #1a0a0c;
    --hero-liquid-4: #f07888;
}
[data-theme="ruby"] nav:not(.nav--dark) {
    background: rgba(250,250,250,.92);
}
[data-theme="ruby"] .hero-bg { mix-blend-mode: multiply }
[data-theme="ruby"] .hero h1 em,
[data-theme="ruby"] .page-title em { color: var(--accent) }
[data-theme="ruby"] .hero-tagline em.hero-tagline-shimmer {
    background: linear-gradient(115deg, var(--accent) 0%, #ff9eb5 45%, var(--accent) 90%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: heroTaglineShimmer 4.5s ease-in-out infinite;
}
[data-theme="ruby"] .generations-headline.is-revealed .generations-index { color: var(--accent) !important }
[data-theme="ruby"] .ai-philosophy em { color: var(--accent) !important }
[data-theme="ruby"] .ai-philosophy .is-revealed em { color: var(--accent) !important }
body.page-ai .ai-philosophy em { color: var(--gray-3) !important }
body.page-ai .ai-philosophy .is-revealed em { color: var(--ai-accent) !important }
[data-theme="ruby"] .label-sm { color: var(--accent) }
[data-theme="ruby"] .hero-eyebrow { color: var(--accent) }
[data-theme="ruby"] .ticker-group span:hover { color: var(--accent) }
[data-theme="ruby"] .ticker-group span::before { background: var(--accent) }
[data-theme="ruby"] .cross { color: var(--accent) }
[data-theme="ruby"] .cross--inline { color: var(--accent) }
[data-theme="ruby"] .cross--accent { color: var(--accent) }
[data-theme="ruby"] .nav-link--indexed:hover .nav-link__label,
[data-theme="ruby"] .nav-link--indexed.is-active .nav-link__label {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
[data-theme="ruby"] .nav-link--indexed:hover .nav-link__idx { color: var(--accent); }
[data-theme="ruby"] .footer-links a:hover { color: var(--accent) }
[data-theme="ruby"] .footer-logo span { color: var(--accent) }
[data-theme="ruby"] .home-work-item:hover .home-work-info h3 { color: var(--accent) }
[data-theme="ruby"] .hero-scroll .line { background: var(--accent) }
[data-theme="ruby"] .divider-line { background: var(--accent) !important }
[data-theme="ruby"] .bg-blob { display: none }

/* ── Home hero — liquid gradient (ispirato a Framer AnimatedLiquidBackground / Prism) ── */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: var(--white);
}
.hero-liquid {
    position: absolute;
    inset: -18%;
    pointer-events: none;
    filter: blur(52px) saturate(1.15) contrast(1.02);
    opacity: 0.92;
}
.hero-liquid__blob {
    position: absolute;
    width: min(78%, 720px);
    height: min(78%, 720px);
    will-change: transform, border-radius;
    mix-blend-mode: soft-light;
}
.hero-liquid__blob--1 {
    top: -8%;
    left: -12%;
    background:
        radial-gradient(ellipse 80% 70% at 40% 45%, var(--hero-liquid-1) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 70% 70%, var(--hero-liquid-4) 0%, transparent 50%);
    opacity: 0.55;
    animation: heroLiquidDrift1 11s ease-in-out infinite, heroLiquidMorph1 9s ease-in-out infinite;
}
.hero-liquid__blob--2 {
    top: 18%;
    right: -18%;
    width: min(85%, 780px);
    height: min(85%, 780px);
    background: radial-gradient(circle at 45% 40%, var(--hero-liquid-2) 0%, transparent 62%);
    opacity: 0.5;
    mix-blend-mode: overlay;
    animation: heroLiquidDrift2 13s ease-in-out infinite, heroLiquidMorph2 10.5s ease-in-out infinite;
}
.hero-liquid__blob--3 {
    bottom: -22%;
    left: 8%;
    width: min(92%, 820px);
    height: min(80%, 700px);
    background:
        radial-gradient(ellipse 70% 60% at 50% 55%, var(--hero-liquid-3) 0%, transparent 58%),
        radial-gradient(ellipse 50% 45% at 30% 30%, var(--hero-liquid-1) 0%, transparent 45%);
    opacity: 0.35;
    mix-blend-mode: multiply;
    animation: heroLiquidDrift3 12s ease-in-out infinite, heroLiquidMorph3 9.5s ease-in-out infinite;
}
.hero-liquid__blob--4 {
    top: 35%;
    left: 28%;
    width: min(55%, 480px);
    height: min(55%, 480px);
    background: radial-gradient(circle at 50% 50%, var(--hero-liquid-4) 0%, transparent 65%);
    opacity: 0.42;
    animation: heroLiquidDrift4 10s ease-in-out infinite, heroLiquidMorph4 8s ease-in-out infinite;
}
.hero-liquid-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: url("https://framerusercontent.com/images/g0QcWrxr87K0ufOxIUFBakwYA8.png");
    background-size: 180px 180px;
    background-repeat: repeat;
    mix-blend-mode: overlay;
}
[data-theme="dark"] .hero-liquid-grain {
    opacity: 0.14;
    mix-blend-mode: soft-light;
}
@media (prefers-reduced-motion: reduce) {
    .hero-liquid__blob {
        animation: none !important;
        border-radius: 50%;
    }
}
@keyframes heroLiquidDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(12%, 8%) rotate(8deg) scale(1.08); }
    66% { transform: translate(4%, 18%) rotate(-3deg) scale(0.95); }
}
@keyframes heroLiquidDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    40% { transform: translate(-14%, 10%) rotate(-10deg) scale(1.06); }
    70% { transform: translate(-6%, -6%) rotate(5deg) scale(0.98); }
}
@keyframes heroLiquidDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, -12%) scale(1.1); }
}
@keyframes heroLiquidDrift4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-18%, 14%) rotate(12deg); }
}
@keyframes heroLiquidMorph1 {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
@keyframes heroLiquidMorph2 {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 70% 30% 50% 50% / 30% 70% 40% 60%; }
}
@keyframes heroLiquidMorph3 {
    0%, 100% { border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%; }
    50% { border-radius: 35% 65% 55% 45% / 45% 55% 35% 65%; }
}
@keyframes heroLiquidMorph4 {
    0%, 100% { border-radius: 50%; }
    50% { border-radius: 65% 35% 55% 45% / 50% 50% 50% 50%; }
}
@media (max-width: 768px) {
    .hero-liquid {
        filter: blur(36px) saturate(1.12) contrast(1.02);
        opacity: 0.88;
    }
    .hero-liquid-grain { opacity: 0.16; }
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }

/* ── Decorative Crosses ── */
.cross {
    position: absolute;
    font-family: var(--body);
    color: var(--gray-3);
    font-size: .7rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.cross--tl { top: var(--pad); left: var(--pad) }
.cross--tr { top: var(--pad); right: var(--pad) }
.cross--bl { bottom: var(--pad); left: var(--pad) }
.cross--br { bottom: var(--pad); right: var(--pad) }

/* Wordmark — crocini sugli angoli dell’immagine (home) */
.hero-wordmark-wrap {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}
.hero-wordmark-wrap .cross--wordmark {
    position: absolute;
    z-index: 2;
    font-size: 0.7rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.hero-wordmark-wrap .cross--wordmark-tl {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}
.hero-wordmark-wrap .cross--wordmark-tr {
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}
.hero-wordmark-wrap .cross--wordmark-bl {
    bottom: 0;
    left: 0;
    transform: translate(-50%, 50%);
}
.hero-wordmark-wrap .cross--wordmark-br {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
}
.cross--inline { font-size: .55rem; color: var(--gray-3) }
.cross--accent {
    position: relative;
    display: block;
    font-size: .6rem;
    color: var(--gray-3);
    margin-bottom: 12px;
}
.cross--accent.cross--right {
    text-align: right;
    margin-bottom: 0;
    margin-top: 12px;
}

/* ── Animated Gradient Blob ── */
.bg-blob {
    display: none;
}
.bg-blob::before,
.bg-blob::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .42;
    will-change: transform;
}
.bg-blob::before {
    width: clamp(350px, 45vw, 600px);
    height: clamp(350px, 45vw, 600px);
    background: radial-gradient(circle, #c4b5fd, #7dd3fc, #fbcfe8);
    top: 5%; left: 5%;
    animation: blobDrift1 20s ease-in-out infinite alternate;
}
.bg-blob::after {
    width: clamp(280px, 35vw, 480px);
    height: clamp(280px, 35vw, 480px);
    background: radial-gradient(circle, #fde68a, #f9a8d4, #a5b4fc);
    bottom: 10%; right: 5%;
    animation: blobDrift2 24s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
    0%   { transform: translate(0, 0) scale(1) }
    33%  { transform: translate(20vw, 15vh) scale(1.1) }
    66%  { transform: translate(5vw, 40vh) scale(.9) }
    100% { transform: translate(30vw, 20vh) scale(1.05) }
}
@keyframes blobDrift2 {
    0%   { transform: translate(0, 0) scale(1) }
    33%  { transform: translate(-20vw, -10vh) scale(1.12) }
    66%  { transform: translate(-30vw, -25vh) scale(.88) }
    100% { transform: translate(-10vw, -40vh) scale(1.08) }
}

.bg-grain { display: none }
@keyframes grainShift {
    0%   { transform: translate(0, 0) }
    16%  { transform: translate(-3%, -4%) }
    33%  { transform: translate(4%, 1%) }
    50%  { transform: translate(-1%, 3%) }
    66%  { transform: translate(2%, -2%) }
    83%  { transform: translate(-4%, 2%) }
    100% { transform: translate(1%, -3%) }
}

html { font-size: 16px }

body {
    font-family: var(--body);
    background: var(--white);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    cursor: auto;
}
body.body--dark { background: var(--black); color: var(--white) }

/* ═══════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════ */
.cursor, .cursor-follower {
    display: none;
    pointer-events: none; position: fixed; top: 0; left: 0;
    border-radius: 50%; z-index: 9999; will-change: transform;
}
.cursor {
    width: 8px; height: 8px; background: var(--black);
    margin: -4px 0 0 -4px;
    transition: width .25s, height .25s, margin .25s, opacity .25s;
}
.cursor--active {
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    background: transparent; border: 1.5px solid var(--black); opacity: .6;
}
.cursor-follower {
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1px solid rgba(12,12,12,.12);
    transition: width .4s var(--ease), height .4s var(--ease),
                margin .4s var(--ease), opacity .3s;
}
.follower--active { width: 60px; height: 60px; margin: -30px 0 0 -30px; opacity: 0 }

.cursor--light { background: var(--white) }
.cursor--light.cursor--active { border-color: var(--white) }
.cursor-follower--light { border-color: rgba(255,255,255,.12) }

@media (hover: none) {
    .cursor, .cursor-follower { display: none }
    body { cursor: auto }
}

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.label-sm {
    font-family: var(--body); font-size: .7rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--gray-3); display: block; margin-bottom: 12px;
}
em { font-style: italic }
img { width: 100%; height: auto; display: block; object-fit: cover; background: var(--gray-1) }

.reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none }

.text-reveal {
    opacity: 0; clip-path: inset(0 0 100% 0);
    transition: opacity .8s var(--ease), clip-path .8s var(--ease);
}
.text-reveal.is-revealed { opacity: 1; clip-path: inset(0 0 0% 0); transform: none }

.btn-outline {
    font-family: var(--heading); font-size: .82rem; font-weight: 600;
    color: var(--black); text-decoration: none;
    border: 1px solid var(--gray-2); padding: 10px 20px;
    border-radius: 100px; display: inline-block;
    transition: all .3s var(--ease);
}
.btn-outline:hover { background: var(--black); color: var(--white); border-color: var(--black) }

/* ═══════════════════════════════════════
   NAV
   ═══════════════════════════════════════ */
nav {
    position: fixed; inset: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 0 var(--pad);
    min-height: 64px;
    height: auto;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid var(--gray-2);
    transition: transform .4s var(--ease);
}
[data-theme="dark"] nav:not(.nav--dark) {
    background: rgba(10,10,10,.92);
    border-bottom-color: rgba(255,255,255,.08);
}
.nav--dark {
    background: rgba(12,12,12,.92);
    border-bottom-color: rgba(255,255,255,.08);
}
.nav--dark .nav-logo { color: var(--white) }
.nav--dark .nav-logo span { color: var(--gray-4) }
.nav--dark .nav-link__idx { color: var(--gray-4) }
.nav--dark .nav-link__label { color: var(--gray-4) }
.nav--dark .nav-link--indexed:hover .nav-link__label { color: var(--white) }
.nav--dark .nav-link--indexed.is-active .nav-link__label {
    color: var(--white);
    border-bottom-color: var(--white);
}

.nav-brand-row {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 22px);
    flex-shrink: 0;
    justify-self: start;
    grid-column: 1;
}

.nav-logo {
    font-family: var(--heading); font-weight: 700; font-size: 1.15rem;
    color: var(--black); text-decoration: none;
    min-width: 140px;
}
.nav-logo span {
    display: inline-block;
    color: var(--gray-3);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}
.nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.2vw, 28px);
    flex-wrap: wrap;
    row-gap: 8px;
    justify-self: center;
    grid-column: 2;
}
.nav-link--indexed {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    text-decoration: none;
    line-height: 1.12;
}
.nav-link__idx {
    font-family: var(--body);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gray-3);
    transition: color .25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link__label {
    font-family: var(--heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--gray-4);
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}
.nav-link--indexed:hover .nav-link__idx { color: var(--gray-4); }
.nav-link--indexed:hover .nav-link__label { color: var(--black); }
.nav-link--indexed:not(.is-active):hover .nav-link__label {
    border-bottom-color: var(--gray-2);
}
.nav-link--indexed.is-active .nav-link__idx { color: var(--gray-4); }
.nav-link--indexed.is-active .nav-link__label {
    color: var(--black);
    border-bottom-color: var(--black);
}
[data-theme="dark"] nav:not(.nav--dark) .nav-link--indexed:not(.is-active):hover .nav-link__label {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
.nav--dark .nav-link--indexed:not(.is-active):hover .nav-link__label {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.theme-toggle,
.font-toggle {
    background: none; border: 1px solid var(--gray-2);
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; line-height: 1;
    color: var(--black);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-toggle { font-size: 16px; }
.font-toggle {
    font-size: 11px; font-weight: 700; letter-spacing: -.01em;
    font-family: var(--heading);
}
.theme-toggle:hover,
.font-toggle:hover {
    background: var(--black); color: var(--white);
    border-color: var(--black);
}

/* ── Font style toast ── */
.font-toast {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--black);
    color: var(--white);
    font-family: var(--heading);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 9999;
    white-space: nowrap;
}
.font-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Nav — micro-interazioni hover (pointer + motion ok) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .nav-logo {
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .nav-logo:hover {
        transform: translateY(-2px);
    }
    .nav-logo:hover span {
        transform: translateX(2px);
    }
    .nav-link--indexed {
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .nav-link--indexed:hover {
        transform: translateY(-3px);
    }
    .nav-link--indexed:hover .nav-link__idx {
        transform: translateX(5px);
    }
    .theme-toggle:hover,
    .font-toggle:hover {
        transform: scale(1.07);
    }
}

/* ═══════════════════════════════════════
   HERO (HOME)
   ═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 55px var(--pad) 30px;
    position: relative;
}

/* Home — wordmark a tutto schermo, sfondo piatto (niente liquido / gradiente) */
.hero--wordmark-full {
    min-height: 100svh;
    /* subito sotto la nav fissa: altezza nav + piccolo respiro */
    padding: calc(64px + 10px) 0 clamp(16px, 3vh, 28px);
    justify-content: flex-start;
    background: var(--white);
    overflow-x: clip;
}
.hero--wordmark-full .hero-bg {
    display: none !important;
}
.hero--wordmark-full .hero-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
.hero--wordmark-full .hero-inner::before {
    display: none;
}
.hero--wordmark-full .hero-divider,
.hero--wordmark-full .hero-tagline,
.hero--wordmark-full .hero-bottom {
    padding-left: var(--pad);
    padding-right: var(--pad);
}
.hero--wordmark-full .hero-divider {
    order: 1;
    justify-content: center;
    gap: clamp(14px, 2.5vw, 28px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    animation: heroDividerRevealStars 1.15s var(--ease) 0.7s both;
}
.hero--wordmark-full .hero-tagline--lead {
    order: 2;
}
.hero--wordmark-full .hero-tagline:not(.hero-tagline--lead) {
    order: 3;
}
.hero--wordmark-full p.hero-tagline {
    margin: 0;
}
.hero--wordmark-full .hero-bottom {
    order: 4;
}
.hero--wordmark-full .hero-title-block {
    order: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
}
.hero--wordmark-full .hero-wordmark-img {
    display: flex;
    flex-flow: row;
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: min(calc((100svh - 200px) * 1.3), calc(85vh * 1.3), 94svh);
    margin: 0;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: normal;
    filter: none;
}
@media (max-width: 640px) {
    .hero--wordmark-full .hero-wordmark-img {
        max-height: min(calc((100svh - 240px) * 1.3), calc(78vh * 1.3), 90svh);
    }
}
.hero-eyebrow {
    font-size: .7rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gray-3); margin-bottom: 10px;
    display: flex;
}
.char-wrap { overflow: hidden; display: inline-block }
.char-wrap span {
    display: inline-block; transform: translateY(110%);
    transition: transform .5s var(--ease);
}
.hero h1 {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(2.8rem, 6.5vw, 5.6rem);
    line-height: 1.08; letter-spacing: -.04em;
    max-width: 900px;
}
.hero h1 em { font-style: italic; font-weight: 700 }

/* Homepage wordmark — illustrazione PNG (bianco → trasparente con multiply sul liquido) */
.hero-divider {
    display: flex; align-items: center; gap: 6px;
    margin: clamp(7px, 1vw, 12px) 0;
    max-width: 280px;
}
.divider-line {
    flex: 1; height: 1px; background: var(--gray-2);
}
.hero-tagline {
    font-family: var(--heading); font-weight: 500;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    line-height: 1.35; letter-spacing: -.01em;
    color: var(--gray-4);
}
.hero-tagline em { font-style: italic }
.line-wrap { overflow: hidden; display: block }
.line-inner {
    display: block; transform: translateY(110%);
    transition: transform .8s var(--ease);
}
.hero-bottom {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-top: clamp(20px, 3vw, 40px); padding-top: 0;
}
.hero-desc {
    font-size: clamp(.8rem, 1vw, .9rem); color: var(--gray-4);
    max-width: 400px; line-height: 1.7;
    opacity: 0; transform: translateY(16px);
    transition: all .6s var(--ease);
}
.hero-desc.is-visible { opacity: 1; transform: none }
.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 5px }
.hero-scroll .line {
    width: 1px; height: 48px; background: var(--gray-2);
    display: block; position: relative; overflow: hidden;
}
.hero-scroll .line::after {
    content: ''; position: absolute; top: -100%; left: 0;
    width: 1px; height: 100%; background: var(--black);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%{top:-100%} 50%{top:0} 100%{top:100%} }
.hero-scroll .label { font-size:.6rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--gray-3) }

/* ── Home hero — inner layout, meta, motion ── */
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(14px, 2.2vw, 26px);
}
.hero-inner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    bottom: 0.15em;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(185deg, var(--hero-liquid-1) 0%, var(--hero-liquid-4) 42%, var(--hero-liquid-3) 100%);
    opacity: 0.9;
    pointer-events: none;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: clamp(12px, 2vw, 18px);
}
.hero-meta__dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hero-liquid-1);
    animation: heroMetaPulse 2.5s ease-in-out infinite;
}
.hero-meta__line {
    font-family: var(--body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray-4);
}
@keyframes heroMetaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.82; transform: scale(1.14); }
}
.hero-title-block {
    position: relative;
    width: 100%;
    max-width: min(100%, 980px);
    margin: clamp(4px, 1vw, 10px) 0 0;
}
.hero-wordmark-img {
    display: flex;
    flex-flow: row;
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 0;
    object-fit: contain;
    object-position: left center;
    opacity: 0;
    animation: heroWordmarkIn 0.95s var(--ease) 0.22s forwards;
    mix-blend-mode: multiply;
}
@keyframes heroWordmarkIn {
    from { opacity: 0; transform: translate3d(0, 32px, 0) scale(0.96); filter: blur(6px); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
.hero-divider {
    animation: heroDividerReveal 1.15s var(--ease) 0.7s both;
}
@keyframes heroDividerReveal {
    from { max-width: 0; opacity: 0; gap: 0; }
    to { max-width: 280px; opacity: 1; gap: 6px; }
}
@keyframes heroDividerRevealStars {
    from { opacity: 0; transform: scale(0.92); filter: blur(4px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.hero-tagline em.hero-tagline-shimmer {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(115deg, var(--hero-liquid-1) 0%, var(--hero-liquid-4) 40%, var(--hero-liquid-1) 78%, var(--hero-liquid-3) 100%);
    background-size: 240% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: heroTaglineShimmer 5.5s ease-in-out infinite;
}
@keyframes heroTaglineShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
[data-theme="dark"] .hero-wordmark-img,
[data-theme="ocean"] .hero-wordmark-img,
[data-theme="moss"] .hero-wordmark-img {
    mix-blend-mode: normal;
    filter: invert(1) brightness(1.05) contrast(1.05);
}
@media (max-width: 640px) {
    .hero-inner::before { opacity: 0.75; width: 2px; }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (prefers-reduced-motion: reduce) {
    .hero-meta__dot { animation: none !important; }
    .hero-wordmark-img {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
    .hero-divider { animation: none !important; max-width: 280px; opacity: 1; }
    .hero-tagline em.hero-tagline-shimmer { animation: none !important; background-position: 40% 50%; }
    [data-theme="ruby"] .hero-tagline em.hero-tagline-shimmer { animation: none !important; }
}

/* ═══════════════════════════════════════
   PAGE HERO (INNER PAGES)
   ═══════════════════════════════════════ */
.page-hero {
    padding: 65px var(--pad) 30px;
}
.page-title {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    line-height: 1.1; letter-spacing: -.04em;
    max-width: 800px; margin-bottom: 12px;
}
.page-title em { font-style: italic; font-weight: 700 }
.page-intro {
    max-width: 520px;
}

/* ═══════════════════════════════════════
   TICKER
   ═══════════════════════════════════════ */
.ticker {
    border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2);
    padding: 10px 0; overflow: hidden; white-space: nowrap;
}
.ticker-track { display: flex; width: max-content; animation: slide 35s linear infinite }
.ticker-group { display: flex }
.ticker-group span {
    font-family: var(--heading); font-size: .75rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--gray-4);
    padding: 0 14px; transition: color .3s;
}
.ticker-group span:hover { color: var(--black) }
.ticker-group span::before {
    content: ''; display: inline-block; width: 5px; height: 5px;
    border-radius: 50%; background: var(--gray-2); margin-right: 14px;
    vertical-align: middle;
}
@keyframes slide { to { transform: translateX(-50%) } }

/* ═══════════════════════════════════════
   HOME — WORK TEASER
   ═══════════════════════════════════════ */
.home-work {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 26px var(--pad);
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 1);
}
.home-work-header,
.home-work-grid,
.home-work-cta {
    flex: 1 1 100%;
}
.home-work-header { max-width: 640px; margin-bottom: clamp(24px, 3vw, 40px) }
.home-work-header h2 {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.2; letter-spacing: -.03em;
}
.home-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    align-items: start;
    gap: 0;
    width: 100%;
    margin-bottom: clamp(20px, 2.5vw, 32px);
}
.home-work-item {
    text-decoration: none;
    color: var(--black);
    display: block;
    transform-style: preserve-3d;
    will-change: transform;
}
.home-work-item figure {
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--gray-2);
    transition: box-shadow .4s var(--ease);
}
.home-work-item:hover figure {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
    z-index: 1;
}
[data-theme="dark"] .home-work-item:hover figure {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.home-work-item img,
.home-work-item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-work-item video {
    pointer-events: none;
}
.home-work-item:hover img,
.home-work-item:hover video { transform: scale(1.09) }
@media (prefers-reduced-motion: reduce) {
    .home-work-item:hover img,
    .home-work-item:hover video { transform: none }
}
.home-work-info {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: clamp(14px, 2.5vw, 22px) clamp(12px, 2vw, 18px);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .78) 0%,
        rgba(0, 0, 0, .35) 55%,
        transparent 100%
    );
}
.home-work-info h3 {
    font-family: var(--heading);
    font-weight: 600;
    font-size: clamp(.72rem, 1.35vw, .85rem);
    letter-spacing: -.01em;
    line-height: 1.25;
    color: #fff;
    margin: 0;
    transition: color .3s var(--ease);
}
.home-work-info .card-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, .88);
    transition: transform .35s var(--ease), color .35s;
}
.home-work-item:hover .card-arrow {
    transform: translateX(6px);
    color: #fff;
}
.home-work-cta { text-align: center }

/* ═══════════════════════════════════════
   HOME — ABOUT TEASER
   ═══════════════════════════════════════ */
.home-about {
    padding: clamp(30px, 4vw, 60px) var(--pad);
    background: var(--gray-1);
}
.home-about-content {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 60px); align-items: center;
}
.home-about-text h2 {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2; letter-spacing: -.03em;
    margin-bottom: 12px;
}
.home-about-text p {
    font-size: clamp(.85rem, 1vw, .95rem); line-height: 1.85;
    color: var(--gray-4); margin-bottom: 14px;
}
.home-about-img { border-radius: 8px; overflow: hidden }
.home-about-img img { aspect-ratio: 3/4; transition: transform .1s linear }

/* ═══════════════════════════════════════
   HOME — BRANDS
   ═══════════════════════════════════════ */
.home-brands {
    padding: clamp(28px, 3.5vw, 50px) var(--pad);
    border-top: 1px solid var(--gray-2);
    background: var(--gray-1);
}
.home-brands-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.home-brands-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto clamp(20px, 2.5vw, 28px);
}
.home-brands-header .label-sm { margin-bottom: 8px; }
.home-brands-header h2 {
    font-family: var(--heading);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--black);
}
.home-brands-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-3) transparent;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding: 4px var(--pad) 14px;
    outline: none;
}
.home-brands-scroll:focus-visible {
    box-shadow: inset 0 0 0 2px var(--accent, var(--gray-3));
    border-radius: 8px;
}
.home-brands-scroll::-webkit-scrollbar {
    height: 7px;
}
.home-brands-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.home-brands-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-3);
    border-radius: 4px;
}
.home-brands-track {
    list-style: none;
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-auto-columns: clamp(104px, 18vw, 132px);
    column-gap: clamp(20px, 4vw, 40px);
    row-gap: clamp(12px, 2vw, 18px);
    align-items: center;
    justify-items: center;
    width: max-content;
    padding: 4px 2px 2px;
}
.home-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 6px 10px;
}
.home-brand img {
    max-height: clamp(26px, 3.5vw, 34px);
    width: auto;
    max-width: min(140px, 100%);
    height: auto;
    object-fit: contain;
    opacity: .78;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.home-brand:hover img {
    opacity: 1;
    transform: translateY(-2px);
}
[data-theme="dark"] .home-brands { background: var(--gray-1); }
[data-theme="dark"] .home-brand img {
    filter: brightness(0) invert(1);
    opacity: .72;
}
[data-theme="dark"] .home-brand:hover img { opacity: 1 }
[data-theme="ruby"] .home-brands-header h2 { color: var(--black) }

@media (max-width: 768px) {
    .home-brand {
        min-height: 40px;
        padding: 5px 8px;
    }
    .home-brands-track {
        grid-auto-columns: clamp(96px, 28vw, 120px);
        column-gap: clamp(14px, 4vw, 28px);
        row-gap: 10px;
    }
}
@media (max-width: 420px) {
    .home-brands-track {
        column-gap: 12px;
        row-gap: 8px;
    }
}

/* ═══════════════════════════════════════
   GENERATIONS (home)
   ═══════════════════════════════════════ */
.generations {
    position: relative;
    padding: clamp(36px, 5vw, 72px) var(--pad) clamp(28px, 4vw, 56px);
    border-top: 1px solid var(--gray-2);
    border-bottom: 1px solid var(--gray-2);
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-1) 52%);
}
.generations-grid {
    margin-top: clamp(24px, 3vw, 40px);
}
.generations-deco {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(10px, 2vw, 18px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}
.generations-orbit {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--gray-2);
    border-radius: 50%;
    background: var(--white);
}
.generations-orbit::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--black);
    opacity: 0.85;
}
.generations-header {
    max-width: min(1100px, 100%);
    margin: 0 auto;
}
.generations-kicker {
    margin: 0 0 clamp(6px, 1.2vw, 12px);
    font-family: var(--body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-3);
}
.generations-headline {
    font-family: var(--heading);
    font-weight: 700;
    font-size: clamp(2.1rem, 5vw, 3.85rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em 1rem;
}
.generations-title {
    flex: 1 1 auto;
    min-width: min(100%, 11ch);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.generations-index-pill {
    flex: 0 0 auto;
    padding: 0.28em 0.65em 0.32em;
    border: 1px solid var(--gray-2);
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: 0 1px 0 var(--shadow-subtle);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
/* pill quando si passa sul link anteprima */
.generations:has(.generations-preview:hover) .generations-index-pill {
    border-color: var(--gray-3);
    box-shadow: 0 4px 20px var(--shadow-subtle);
}
.generations-index {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--gray-3);
    transition: color 0.55s ease;
}
.generations-headline.is-revealed .generations-index {
    color: var(--black);
}

.generations-preview {
    display: block;
    margin: clamp(22px, 3.5vw, 40px) auto 0;
    max-width: min(1100px, 100%);
    text-decoration: none;
    color: inherit;
    border-radius: 2px;
}
.generations-preview:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 6px;
}
.generations-preview:hover .generations-preview-cta {
    color: var(--black);
}
.generations-preview:hover .generations-preview-arrow {
    transform: translateX(7px);
}
.generations-preview-strip {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vw, 14px);
    align-items: stretch;
    padding: 0;
}
.generations-frame {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: 4px;
    border: 1px solid var(--gray-2);
    background: var(--gray-1);
    box-shadow: 0 12px 40px -28px rgba(0, 0, 0, 0.18);
    transition: border-color 0.4s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.generations-preview:hover .generations-frame {
    border-color: var(--gray-3);
    box-shadow: 0 18px 48px -24px var(--shadow-subtle);
}
.generations-preview-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s var(--ease), filter 0.5s ease;
    filter: saturate(0.96) contrast(1.02);
}
.generations-preview:hover .generations-frame:nth-child(1) img { transition-delay: 0ms; }
.generations-preview:hover .generations-frame:nth-child(2) img { transition-delay: 35ms; }
.generations-preview:hover .generations-frame:nth-child(3) img { transition-delay: 70ms; }
.generations-preview:hover .generations-frame:nth-child(4) img { transition-delay: 105ms; }
.generations-preview:hover .generations-frame:nth-child(5) img { transition-delay: 140ms; }
.generations-preview:hover .generations-frame:nth-child(6) img { transition-delay: 175ms; }
.generations-preview:hover .generations-frame img {
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.04);
}
.generations-preview-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(12px, 2vw, 18px);
    font-family: var(--heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-4);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}
.generations-preview:hover .generations-preview-cta {
    border-bottom-color: var(--gray-2);
}
.generations-preview-arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease);
    font-size: 1.05em;
}
[data-theme="dark"] .generations-preview:hover .generations-preview-cta {
    color: var(--black);
}
[data-theme="ruby"] .generations-preview:hover .generations-preview-cta {
    color: var(--accent);
}
[data-theme="ruby"] .generations:has(.generations-preview:hover) .generations-index-pill {
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .generations-preview-strip {
        flex-direction: column;
        gap: 12px;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
        margin-inline: 0;
        padding-inline: 0;
    }
    .generations-frame {
        flex: none;
        width: 100%;
        scroll-snap-align: none;
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .generations-preview:hover .generations-frame img,
    .generations-frame img {
        transform: none !important;
        transition: none;
    }
    .generations-preview:hover .generations-frame:nth-child(n) img {
        transition-delay: 0ms !important;
    }
}

/* ═══════════════════════════════════════
   REELS / PORTFOLIO (work.html)
   ═══════════════════════════════════════ */
.reels { padding: 0 0 clamp(30px, 4vw, 50px) }

.reel {
    padding: clamp(10px, 1.25vw, 16px) 0;
}

.reel-header {
    padding: 0 var(--pad);
    margin-bottom: clamp(10px, 1.25vw, 16px);
    display: flex; align-items: center; gap: 8px;
}
.reel-num {
    font-family: var(--heading); font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700; letter-spacing: -.04em;
    color: var(--gray-2); line-height: 1;
}
.reel-dot {
    width: 6px; height: 6px; border-radius: 50%;
    display: inline-block; flex-shrink: 0;
}
.reel-year {
    font-family: var(--body); font-size: .7rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--gray-3);
}
.reel-count {
    font-size: .68rem; color: var(--gray-4);
    margin-left: auto;
}

.reel-track {
    display: flex; gap: clamp(4px, 0.5vw, 7px);
    padding: 20px var(--pad);
    margin: -20px 0;
    overflow-x: auto;
    overflow-y: clip;
    -webkit-overflow-scrolling: touch;
}
.reel-track::-webkit-scrollbar { display: none }
.reel-track { scrollbar-width: none; }

.reel-scrollbar {
    padding: 8px var(--pad) 0;
}
.reel-scrollbar-track {
    position: relative;
    width: 100%;
    height: 1px;
    background: var(--gray-2);
    border-radius: 1px;
    cursor: pointer;
}
.reel-scrollbar-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px; height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: var(--black);
    cursor: grab;
    transition: transform .15s var(--ease), background .2s;
}
.reel-scrollbar-thumb:hover {
    transform: scale(1.4);
}
.reel-scrollbar-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.reel-page {
    flex: 0 0 auto;
    width: clamp(240px, 24vw, 380px);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), z-index 0s;
    transform-origin: center center;
}
.reel-page.is-zoomed {
    transform: scale(1.3);
    z-index: 10;
}
.reel-page img {
    aspect-ratio: 16/9;
    border-radius: 8px;
    background: var(--gray-1);
}
.reel-page::after {
    content: ''; position: absolute; inset: 0;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    pointer-events: none;
    transition: border-color .3s;
}
.reel-page.is-zoomed::after {
    border-color: transparent;
}

/* ═══════════════════════════════════════
   AI PAGE
   ═══════════════════════════════════════ */
/* ── AI alternating blocks ── */
.ai-block {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(8px, 1.25vw, 20px);
    align-items: center;
    padding: clamp(20px, 3vw, 40px) var(--pad);
}
.ai-block--reverse {
    grid-template-columns: 1fr 1.15fr;
    direction: rtl;
}
.ai-block--reverse > * { direction: ltr }
.ai-block-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.ai-block-img img {
    width: 100%; aspect-ratio: 16/9;
    object-fit: cover; display: block;
    transition: transform .6s var(--ease);
}
.ai-block-img:hover img { transform: scale(1.04) }
.ai-block-text h2 {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.25; letter-spacing: -.02em;
    margin-bottom: 10px;
}
.ai-block-text p {
    font-size: clamp(.85rem, 1vw, .95rem); line-height: 1.85;
    color: var(--gray-4); margin-bottom: 10px;
}
.ai-block-text .label-sm { margin-bottom: 6px; display: block }

/* Capabilities */
.ai-capabilities { padding: clamp(20px, 3vw, 40px) var(--pad) }
.ai-cap-header { max-width: 500px; margin-bottom: clamp(24px, 3vw, 40px) }
.ai-capabilities--right .ai-cap-header {
    margin-left: auto; margin-right: 0; text-align: right;
}
.ai-cap-header h2 {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.2; letter-spacing: -.03em;
}
.ai-cap-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1px; background: var(--gray-2); border: 1px solid var(--gray-2);
}
.ai-cap-card {
    background: var(--card-bg); padding: clamp(14px, 1.5vw, 24px);
    display: flex; flex-direction: column; gap: 8px;
    transition: background .3s;
}
.ai-cap-card:hover { background: var(--gray-1) }
.ai-cap-card .card-num {
    font-family: var(--heading); font-size: .7rem; font-weight: 600;
    color: var(--gray-3); letter-spacing: .04em;
}
.ai-cap-card h3 {
    font-family: var(--heading); font-weight: 700; font-size: 1.15rem;
    letter-spacing: -.02em;
}
.ai-cap-card p { font-size: .85rem; line-height: 1.75; color: var(--gray-4) }

/* Philosophy statement */
.ai-philosophy {
    padding: clamp(30px, 4vw, 60px) var(--pad);
    border-top: 1px solid var(--gray-2);
    border-bottom: 1px solid var(--gray-2);
}
.ai-philosophy--right { text-align: right }
.ai-philosophy--right h2 { margin-left: auto }
.ai-philosophy h2 {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.15; letter-spacing: -.04em;
    max-width: 700px;
}
.ai-philosophy em { color: var(--gray-3); transition: color .6s }
.ai-philosophy .is-revealed em { color: var(--black) }

/* ── Filmstrip Gallery ── */
.filmstrip-spacer {
    height: 400vh;
    position: relative;
}
#filmstrip {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--white);
    cursor: grab;
    scroll-margin-top: 40px;
    border-top: 1px solid var(--gray-2);
    border-bottom: 1px solid var(--gray-2);
}
#filmstrip::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .09;
    background-image: radial-gradient(circle at center, var(--gray-3) 0.45px, transparent 0.46px);
    background-size: 22px 22px;
}
#filmstrip:active { cursor: grabbing }

.filmstrip-chrome {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

#filmstripTrack {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 50vw;
    will-change: transform;
}
.fs-img {
    flex-shrink: 0;
    width: 84px; height: 63px;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.72;
    box-shadow: 0 4px 20px var(--shadow-subtle);
    border: 1px solid var(--border-subtle);
}
.fs-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    pointer-events: none;
}

@media (max-width: 768px) {
    .filmstrip-spacer { height: 300vh }
    #filmstrip { height: 70vh }
    .fs-img { width: 56px; height: 42px }
}

/* ── AI image strips (interspersed) ── */
.ai-strip {
    padding: 0 var(--pad);
    margin-bottom: clamp(20px, 3vw, 40px);
}
.ai-strip-full,
.ai-strip-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.ai-strip-full img,
.ai-strip-item img {
    width: 100%; aspect-ratio: 16/9;
    object-fit: cover; display: block;
    transition: transform .6s var(--ease);
}
.ai-strip-full:hover img,
.ai-strip-item:hover img {
    transform: scale(1.04);
}
.ai-strip-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(4px, 0.6vw, 8px);
}
.ai-strip-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(4px, 0.6vw, 8px);
}
.bento-label {
    position: absolute;
    bottom: 12px; left: 14px;
    font-family: var(--heading);
    font-size: .65rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s var(--ease);
}
.ai-strip-full:hover .bento-label,
.ai-strip-item:hover .bento-label {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .ai-strip-trio { grid-template-columns: 1fr 1fr }
    .ai-strip-trio .ai-strip-item:last-child { grid-column: 1 / -1 }
    .bento-label { opacity: 1; transform: translateY(0) }
}
@media (max-width: 480px) {
    .ai-strip-pair,
    .ai-strip-trio { grid-template-columns: 1fr }
    .ai-strip-trio .ai-strip-item:last-child { grid-column: auto }
}

.ai-tools { padding: clamp(30px, 4vw, 50px) var(--pad) }
.ai-block-text .ai-tools-tags { margin-top: 12px }
.ai-tools-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px }
.ai-tools-tags span {
    font-family: var(--heading); font-size: .78rem; font-weight: 600;
    padding: 6px 12px; border: 1px solid var(--gray-2); border-radius: 100px;
    color: var(--gray-4); transition: all .3s;
}
.ai-tools-tags span:hover { border-color: var(--black); color: var(--black) }

/* ── AI capabilities list ── */
.ai-cap-list {
    list-style: none;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ai-cap-list li {
    font-size: clamp(.82rem, 1vw, .92rem);
    line-height: 1.5;
    color: var(--gray-4);
    padding: 9px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-cap-list li::before {
    content: '—';
    flex-shrink: 0;
    font-size: .65rem;
    color: var(--gray-3);
    letter-spacing: -.05em;
}
.ai-cap-list li:first-child { border-top: 1px solid var(--border-subtle) }

/* ── AI toolkit groups ── */
.ai-toolkit-groups {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ai-toolkit-group { display: flex; flex-direction: column; gap: 0 }
.ai-toolkit-category {
    font-family: var(--body);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-3);
    margin-bottom: 6px;
}

/* ── AI hero subtitle ── */
body.page-ai .ai-hero-desc {
    color: var(--gray-4);
    font-size: clamp(.85rem, 1.1vw, 1rem);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ═══════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════ */
.about-story { padding: clamp(20px, 3vw, 30px) var(--pad) clamp(30px, 4vw, 50px) }
.about-story-content {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 60px); align-items: start;
}
.about-story-text { padding-top: 8px }
.about-lead {
    font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.8;
    color: var(--black); margin-bottom: 12px;
}
.about-story-text p {
    font-size: clamp(.85rem, 1vw, .95rem); line-height: 1.85;
    color: var(--gray-4); margin-bottom: 8px;
}
.about-story-img { border-radius: 8px; overflow: hidden }
.about-story-img img { aspect-ratio: 3/4; transition: transform .1s linear }
.about-story-text a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 500;
}
.about-story-text a:hover { opacity: 0.72 }

.about-pivot {
    padding: clamp(36px, 5vw, 72px) var(--pad);
    border-top: 1px solid var(--border-subtle);
}
.about-pivot-inner { max-width: 38rem; margin: 0 auto }
.about-pivot-inner h2 {
    font-family: var(--heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0.35rem 0 1rem;
}
.about-pivot-lead {
    font-size: 0.9rem;
    color: var(--gray-4);
    margin: 0 0 1.25rem;
}
.about-pivot-list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.75;
    color: var(--gray-4);
}
.about-pivot-list li { margin-bottom: 0.65rem }
.about-pivot-list li strong { color: var(--black); font-weight: 600 }
.about-pivot-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 1.75rem;
}

.about-values { padding: clamp(30px, 4vw, 60px) var(--pad); background: var(--gray-1) }
.about-values-header { max-width: 500px; margin-bottom: clamp(24px, 3vw, 40px) }
.about-values-header h2 {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.2; letter-spacing: -.03em;
}
.about-values-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 1vw, 16px);
}
.about-value h3 {
    font-family: var(--heading); font-weight: 700; font-size: 1.1rem;
    letter-spacing: -.02em; margin-bottom: 6px;
}
.about-value p { font-size: .85rem; line-height: 1.75; color: var(--gray-4) }

.about-location {
    padding: clamp(30px, 4vw, 60px) var(--pad);
    border-bottom: 1px solid var(--gray-2);
    text-align: center;
}
.about-location h2 {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 1.1; letter-spacing: -.04em;
}
.about-location h2 span { color: var(--gray-3) }

.about-clients { padding: clamp(30px, 4vw, 50px) var(--pad) }
.about-clients-list {
    display: flex; flex-wrap: wrap; gap: 0;
    margin-top: 16px;
}
.about-clients-list span {
    font-family: var(--heading); font-weight: 600;
    font-size: clamp(.85rem, 1.2vw, 1rem);
    color: var(--gray-4); padding: 8px 0;
    border-bottom: 1px solid var(--gray-2);
    width: 50%; transition: color .3s;
}
.about-clients-list span:hover { color: var(--black) }

/* ═══════════════════════════════════════
   VAULT PAGE
   ═══════════════════════════════════════ */
.vault-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: var(--pad);
    position: relative; overflow: hidden;
}
.vault-page-inner { position: relative; z-index: 1 }
.vault-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,.03) 0%, transparent 70%);
    pointer-events: none;
    animation: vaultPulse 4s ease-in-out infinite;
}
@keyframes vaultPulse {
    0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(1) }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) }
}
.vault-lock-icon {
    margin-bottom: 16px; color: var(--gray-4);
}
.vault-lock-icon svg {
    transition: transform .6s var(--ease);
}
.vault-page:hover .vault-lock-icon svg { transform: scale(1.05) }
.vault-title {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -.04em; line-height: 1;
    margin-bottom: 8px; color: var(--white);
}
.vault-subtitle {
    font-size: clamp(.85rem, 1vw, .95rem);
    line-height: 1.7; color: var(--gray-4);
    margin-bottom: 20px;
}
.vault-input-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 20px;
}
.vault-input {
    font-family: var(--body); font-size: .85rem;
    padding: 7px 10px; border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px; background: rgba(255,255,255,.04);
    color: var(--white); width: 260px;
    outline: none; transition: border-color .3s;
}
.vault-input::placeholder { color: var(--gray-4) }
.vault-input:focus { border-color: rgba(255,255,255,.25) }
.vault-submit {
    font-size: 1rem; width: 48px; height: 48px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.1);
    background: transparent; color: var(--gray-4);
    cursor: pointer; transition: all .3s;
}
.vault-submit:hover { border-color: var(--white); color: var(--white) }
.vault-back {
    font-family: var(--heading); font-size: .78rem; font-weight: 500;
    color: var(--gray-4); text-decoration: none;
    transition: color .3s, transform .25s var(--ease);
    display: inline-block;
}
.vault-back:hover { color: var(--white) }

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact {
    position: relative;
    padding: clamp(35px, 5vw, 70px) var(--pad);
    text-align: center;
    border-top: 1px solid var(--gray-2);
}
.contact h2 {
    font-family: var(--heading); font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.1; letter-spacing: -.04em;
    margin-bottom: 18px;
}
.contact h2 span { color: var(--gray-3) }
.contact-link {
    font-family: var(--heading); font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600; color: var(--black); text-decoration: none;
    border-bottom: 2px solid var(--gray-2); padding-bottom: 4px;
    transition: border-color .3s, transform .25s var(--ease);
    display: inline-block;
}
.contact-link:hover { border-color: var(--black) }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
    padding: 16px var(--pad); border-top: 1px solid var(--gray-2);
    display: flex; align-items: center;
}
.footer-inner {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between;
}
.footer-logo { font-family: var(--heading); font-weight: 700; font-size: .9rem }
.footer-logo span { color: var(--gray-3) }
.footer-links { display: flex; gap: 16px }
.footer-links a {
    font-size: .72rem; font-weight: 500; color: var(--gray-4);
    text-decoration: none; transition: color .3s;
}
.footer-links a:hover { color: var(--black) }
.footer-copy { font-size: .7rem; color: var(--gray-3) }

/* ═══════════════════════════════════════
   PAGE AI — Dark editorial (always dark tones)
   ═══════════════════════════════════════ */
html:has(body.page-ai) {
    background-color: #060606;
}
body.page-ai {
    --black: #ebebeb;
    --white: #060606;
    --gray-1: #0c0c0c;
    --gray-2: #1c1c1c;
    --gray-3: #5a5a5a;
    --gray-4: #989898;
    --card-bg: #101010;
    --border-subtle: rgba(255, 255, 255, 0.09);
    --shadow-subtle: rgba(0, 0, 0, 0.45);
    --ai-accent: #7ec8ea;
    background-color: var(--white);
    color: var(--black);
}
body.page-ai img {
    filter: brightness(0.94) contrast(1.04);
}
body.page-ai .cursor-follower {
    border-color: rgba(255, 255, 255, 0.14);
}

.page-ai nav {
    background: rgba(8, 8, 8, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.page-ai .nav-logo {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}
.page-ai .nav-link__idx {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
}
.page-ai .nav-link__label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.page-ai .nav-lonesome {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
}

.page-ai .page-hero--editorial {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 88px) var(--pad) clamp(28px, 4vw, 48px);
    text-align: center;
}
.page-ai .page-hero-index {
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    margin-bottom: 20px;
}
.page-ai .page-title {
    font-weight: 600;
}
.page-ai .hero-desc.page-intro {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px;
    font-size: 0.82rem;
    line-height: 1.75;
}

.page-ai #filmstrip {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.08);
}
.page-ai #filmstrip::before {
    opacity: 0.04;
}

.page-ai .filmstrip-editorial-top,
.page-ai .filmstrip-editorial-bot {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    z-index: 21;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.page-ai .filmstrip-editorial-top { top: var(--pad); }
.page-ai .filmstrip-editorial-bot { bottom: var(--pad); }
.page-ai .filmstrip-cap {
    font-family: var(--body);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-4);
    line-height: 1.45;
    max-width: 42%;
}
.page-ai .filmstrip-cap--right {
    text-align: right;
    margin-left: auto;
}

.page-ai .ai-block {
    position: relative;
    z-index: 2;
    background: transparent;
}
.page-ai .ai-philosophy {
    position: relative;
    z-index: 2;
    background: transparent;
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.page-ai .ai-editorial-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 14px var(--pad);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--body);
    font-size: 0.54rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gray-4);
    background: #080808;
}
.page-ai .ai-editorial-brand {
    color: var(--black);
    font-weight: 700;
}
.page-ai .ai-editorial-back {
    color: var(--gray-4);
    text-decoration: none;
    transition: color 0.25s ease;
}
.page-ai .ai-editorial-back:hover {
    color: var(--black);
}
.page-ai .ai-editorial-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.page-ai .ai-editorial-links a {
    color: var(--gray-4);
    text-decoration: none;
    transition: color 0.25s ease;
}
.page-ai .ai-editorial-links a:hover,
.page-ai .ai-editorial-links a.is-active {
    color: var(--black);
}

.page-ai .contact--ai {
    position: relative;
    z-index: 2;
    background: #070707;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-ai footer {
    position: relative;
    z-index: 2;
    background: #050505;
    border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .page-ai .filmstrip-cap {
        font-size: 0.45rem;
        letter-spacing: 0.14em;
        max-width: 48%;
    }
    .page-ai .ai-editorial-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .page-ai .ai-editorial-links {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .home-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .reel-page { width: clamp(200px, 28vw, 300px) }
}
@media (max-width: 768px) {
    body { cursor: auto }
    .cursor, .cursor-follower { display: none }

    nav { min-height: 56px }
    .nav-logo { min-width: auto }
    .nav-brand-row { gap: 8px 12px }
    .nav-right { gap: 10px 14px }
    .nav-link__label { font-size: 0.66rem; padding-bottom: 3px; border-bottom-width: 2px }
    .nav-link__idx { font-size: 0.48rem }

    .hero { padding: 50px var(--pad) 30px }
    .hero--wordmark-full { padding: calc(56px + 8px) 0 18px; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 16px }
    .hero-scroll { display: none }

    .page-hero { padding: 60px var(--pad) 30px }

    .home-work-grid {
        grid-template-columns: 1fr;
    }
    .home-about-content { grid-template-columns: 1fr; gap: 20px }
    .home-about-img { order: -1 }

    .reel-page { width: 200px }
    .reel-header { gap: 10px }
    .reel-count { margin-left: 0 }

    .ai-block { grid-template-columns: 1fr; gap: 16px }
    .ai-block--reverse { direction: ltr }
    .ai-block-img { order: -1 }
    .ai-cap-grid { grid-template-columns: 1fr }
    .ai-capabilities--right .ai-cap-header { text-align: left; margin-left: 0 }
    .ai-philosophy--right { text-align: left }
    .ai-philosophy--right h2 { margin-left: 0 }

    .about-story-content { grid-template-columns: 1fr; gap: 20px }
    .about-story-img { order: -1 }
    .about-values-grid { grid-template-columns: 1fr }
    .about-clients-list span { width: 100% }

    .vault-input { width: 200px }

    .footer-inner { flex-direction: column; gap: 10px; text-align: center }
}
@media (max-width: 480px) {
    .contact h2 { font-size: 2rem }
    .reel-page { width: 160px }
}
