/* ============================================
   YULIA SYTNIK — PORTFOLIO
   Dark theme based on Framer Zenify template
   Colors: #0a0a0c bg, #e85c4a coral accent
   Fonts: Inter + Manrope
   ============================================ */

/* === Layout System === */

:root {
    --max-w: 1440px;
    --px: clamp(24px, 5vw, 80px);
    --section-py: clamp(80px, 10vw, 140px);
}

/* === Reset & Base === */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    background: #0a0a0c;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* === Navigation === */

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 0.02em;
    position: absolute;
    text-transform: uppercase;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 36px;
}

.nav-left {
    margin-right: auto;
}

.nav-right {
    margin-left: auto;
}

.nav-left a,
.nav-right a {
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ababab;
    transition: color 0.3s;
}

.nav-left a:hover,
.nav-right a:hover {
    color: #fff;
}


/* === Hero Section === */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-py) var(--px);
    padding-top: 120px;
    max-width: var(--max-w);
    margin-inline: auto;
    position: relative;
    overflow: hidden;
}

/* Ambient gradient orb */
.hero-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(232, 92, 74, 0.15) 0%, rgba(232, 92, 74, 0.05) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: hero-orb-drift 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes hero-orb-drift {
    0% { transform: translate(-50%, -50%) scale(1) translate(0, 0); }
    33% { transform: translate(-50%, -50%) scale(1.1) translate(30px, -20px); }
    66% { transform: translate(-50%, -50%) scale(0.95) translate(-20px, 15px); }
    100% { transform: translate(-50%, -50%) scale(1.05) translate(10px, -10px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 16px;
    color: #ababab;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    color: #9a9a9a;
    font-weight: 300;
    line-height: 1.7;
}


/* === Section Labels & Titles === */

.section-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
}


/* === About Section === */

.about-section {
    padding: var(--section-py) var(--px);
    border-top: 1px solid #1a1a1a;
    max-width: var(--max-w);
    margin-inline: auto;
}

.about-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 48px;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-description {
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #ccc;
}

.about-stats {
    display: flex;
    gap: 48px;
    flex-shrink: 0;
}

.stat-block {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 14px;
    color: #9a9a9a;
}


/* === Buttons === */

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid #3d3d3d;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 400;
    color: #ccc;
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.btn-outline:hover {
    background: #fff;
    color: #0a0a0c;
    border-color: #fff;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: #e85c4a;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    transition: background 0.3s;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: #d14a39;
}

.cta-email {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    color: #9a9a9a;
    transition: color 0.2s;
}

.cta-email:hover {
    color: #e85c4a;
}


/* === Portfolio / Work Section === */

.work-section {
    padding: var(--section-py) var(--px);
    border-top: 1px solid #1a1a1a;
    max-width: var(--max-w);
    margin-inline: auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 72px;
}

/* === Card V2 — colored project tiles === */

.project-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.project-row--two {
    grid-template-columns: repeat(2, 1fr);
}

.card-v2 {
    position: relative;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 28px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.45s cubic-bezier(.16,1,.3,1),
                box-shadow 0.45s cubic-bezier(.16,1,.3,1);
}

.card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Content layout */
.card-v2__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.card-v2__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 80%;
    margin: 0;
}

/* Mockup image */
.card-v2__img {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 70%;
    height: auto;
    max-height: 75%;
    object-fit: contain;
    object-position: bottom right;
    border-radius: 12px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
    transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}

.card-v2:hover .card-v2__img {
    transform: scale(1.04) translateY(-4px);
}

/* Badge (arrow / icon) */
.card-v2__badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    transition: background 0.3s;
}

.card-v2:hover .card-v2__badge {
    background: rgba(255,255,255,0.35);
}

/* Tag label */
.card-v2__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}

/* Coming soon label */
.card-v2__coming {
    margin-top: auto;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Coming soon card — muted state */
.card-v2--coming {
    opacity: 0.6;
    cursor: default;
}

.card-v2--coming:hover {
    transform: none;
    box-shadow: none;
}

/* === Color themes === */

.card-v2--blue {
    background: linear-gradient(135deg, #7ec8e3 0%, #a8d8ea 100%);
    color: #0a1628;
}

.card-v2--red {
    background: linear-gradient(135deg, #d32f2f 0%, #e85c4a 100%);
    color: #fff;
}

.card-v2--yellow {
    background: linear-gradient(135deg, #f5b731 0%, #fdd835 100%);
    color: #1a1200;
}

.card-v2--green {
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    color: #fff;
}

.card-v2--purple {
    background: linear-gradient(135deg, #7b1fa2 0%, #ba68c8 100%);
    color: #fff;
}

.view-all {
    text-align: center;
    margin-top: 48px;
}


/* === Project Cards V3 — 2-col staggered with browser mockups === */

.projects-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.projects-grid-v3 .pcard:nth-child(even) {
    margin-top: 120px;
}

.pcard {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: transform 1.2s cubic-bezier(.16,1,.3,1),
                box-shadow 1.2s cubic-bezier(.16,1,.3,1);
}

.pcard:hover {
    transform: scale(0.98);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

/* Muted dark tints */
.pcard--nedv    { background: linear-gradient(160deg, #1e1214, #251618); }
.pcard--career  { background: linear-gradient(160deg, #0a0c08, #111510); }
.pcard--yplay   { background: linear-gradient(160deg, #111420, #151a2a); }
.pcard--kedu    { background: linear-gradient(160deg, #0f1710, #132016); }

/* Text */
.pcard__info {
    position: relative;
    z-index: 5;
    padding: 28px 28px 0;
}

.pcard__tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 8px;
    display: block;
}

.pcard__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Browser chrome */
.pcard__chrome {
    background: #f2f2f2;
    border-radius: 6px 6px 0 0;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pcard__chrome i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.pcard__chrome i:nth-child(1) { background: #ff5f57; }
.pcard__chrome i:nth-child(2) { background: #febc2e; }
.pcard__chrome i:nth-child(3) { background: #28c840; }

.pcard__bar {
    flex: 1;
    height: 12px;
    background: #e6e6e6;
    border-radius: 3px;
    margin-left: 6px;
}

.pcard__viewport {
    background: #fff;
    overflow: hidden;
}

.pcard__viewport img {
    display: block;
    width: 100%;
    height: auto;
}

/* Main mockup */
.pcard__mockup {
    position: absolute;
    bottom: -2%;
    left: 4%;
    width: 96%;
    z-index: 2;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.15));
    transition: transform 0.8s cubic-bezier(.16,1,.3,1),
                filter 0.8s cubic-bezier(.16,1,.3,1);
}

.pcard:hover .pcard__mockup {
    transform: translateY(-4px) scale(1.01);
    filter: drop-shadow(0 16px 44px rgba(0,0,0,0.2));
}

/* Float screen (second mockup on hover) */
.pcard__float {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
    opacity: 0;
    transition: transform 0.7s cubic-bezier(.16,1,.3,1),
                opacity 0.5s cubic-bezier(.16,1,.3,1),
                filter 0.7s;
}

.pcard:hover .pcard__float {
    opacity: 1;
    filter: drop-shadow(0 14px 44px rgba(0,0,0,0.6));
}

/* Float right */
.pcard__float--right {
    width: 60%;
    bottom: 4%;
    right: 0;
    transform: translate(20px, 16px);
}

.pcard:hover .pcard__float--right {
    transform: translate(0, 0);
}

/* Float left */
.pcard__float--left {
    width: 58%;
    bottom: 4%;
    left: 0;
    transform: translate(-20px, 16px);
}

.pcard:hover .pcard__float--left {
    transform: translate(0, 0);
}

/* Career portal floating cards */
.career-fcard {
    position: absolute;
    z-index: 4;
    background: rgba(20, 22, 18, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(163, 230, 53, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    opacity: 0;
    transition: transform 0.7s cubic-bezier(.16,1,.3,1),
                opacity 0.5s cubic-bezier(.16,1,.3,1);
}

.pcard:hover .career-fcard { opacity: 1; }

.career-fcard__title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.career-fcard__sub {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.career-fcard__salary {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #a3e635;
    margin-top: 6px;
}

.career-fcard__chips {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.career-fcard__chips span {
    font-size: 9px;
    font-weight: 600;
    color: #a3e635;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(163,230,53,0.2);
    background: rgba(163,230,53,0.06);
}

.career-fcard__stat {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #a3e635;
    line-height: 1;
}

/* Card 1: vacancy — top right */
.career-fcard--1 {
    top: 18%;
    right: 6%;
    transform: translate(12px, 10px);
    animation: floatCard1 5s ease-in-out infinite;
}
.pcard:hover .career-fcard--1 { transform: translate(0, 0); }

/* Card 2: match — mid right */
.career-fcard--2 {
    bottom: 38%;
    right: 4%;
    transform: translate(16px, 8px);
    text-align: center;
    animation: floatCard2 6s ease-in-out infinite;
}
.pcard:hover .career-fcard--2 { transform: translate(0, 0); }

/* Card 3: new vacancies — bottom left */
.career-fcard--3 {
    bottom: 22%;
    left: 4%;
    transform: translate(-14px, 10px);
    animation: floatCard3 7s ease-in-out infinite;
}
.pcard:hover .career-fcard--3 { transform: translate(0, 0); }

@keyframes floatCard1 { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(0, -6px); } }
@keyframes floatCard2 { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(0, -4px); } }
@keyframes floatCard3 { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(0, -5px); } }

/* Lime glow behind career card */
.pcard--career::before {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(163,230,53,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

/* Circle page transition */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.7s cubic-bezier(.7,0,.3,1);
}

.page-transition.active {
    clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%));
}

/* === Services Section === */

.services-section {
    padding: var(--section-py) var(--px);
    border-top: 1px solid #1a1a1a;
    max-width: var(--max-w);
    margin-inline: auto;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.3s;
}

.service-item:first-child {
    border-top: 1px solid #1a1a1a;
}

.service-number {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    min-width: 40px;
}

.service-item h3 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    letter-spacing: 0.02em;
    flex: 1;
}

.service-item p {
    font-size: 14px;
    color: #9a9a9a;
    max-width: 300px;
}


/* === CTA Section === */

.cta-section {
    padding: var(--section-py) var(--px);
    text-align: center;
    border-top: 1px solid #1a1a1a;
    max-width: var(--max-w);
    margin-inline: auto;
}

.cta-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 20px;
}

.cta-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 40px;
}

/* === Footer === */

.footer {
    padding: 48px var(--px);
    border-top: 1px solid #1a1a1a;
    max-width: var(--max-w);
    margin-inline: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-name {
    font-size: 14px;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: #666;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}


/* ======================
   CASE STUDY PAGE
   ====================== */

.case-page {
    padding: 140px var(--px) 80px;
    max-width: var(--max-w);
    margin-inline: auto;
    overflow-x: hidden;
}

.case-header {
    margin-bottom: 80px;
}

.case-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 10vw, 140px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.0;
    margin-bottom: 40px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.case-divider {
    height: 1px;
    background: #333;
    margin-bottom: 28px;
}

.case-meta {
    display: flex;
    gap: 80px;
}

.case-meta-left p {
    font-size: 15px;
    color: #9a9a9a;
    line-height: 1.8;
}

.case-meta-left strong {
    color: #ccc;
}

.case-meta-right p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.7;
    max-width: 520px;
}


/* === Case Hero Image === */

.case-hero-image {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
}

/* Hero mockup with ambient glow */
.mockup-hero {
    position: relative;
    padding: 60px 0 40px;
    margin-bottom: 60px;
    border-radius: 24px;
    background: linear-gradient(180deg, #111113 0%, #0a0a0c 100%);
    overflow: hidden;
    perspective: 1200px;
}

.mockup-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(232, 92, 74, 0.2) 0%, rgba(232, 92, 74, 0.08) 50%, transparent 80%);
    filter: blur(60px);
    pointer-events: none;
}

.mockup-hero .mockup-laptop {
    position: relative;
    z-index: 1;
}

/* Pouf photo with live screen overlay */
.pouf-mockup {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
    overflow: hidden;
    border-radius: 12px;
}

.pouf-photo {
    width: 110%;
    margin-left: -5%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.pouf-screen-overlay {
    position: absolute;
    top: 4%;
    left: 13.2%;
    width: 73.6%;
    height: 66%;
    overflow: hidden;
    border-radius: 5px 5px 2px 2px;
    background: #f5f0eb;
    z-index: 2;
    /* Match the photo's camera angle: slightly above, screen tilts back */
    transform: perspective(900px) rotateX(1.8deg);
    transform-origin: bottom center;
}

.pouf-screen-overlay iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 900px;
    border: none;
    pointer-events: none;
    transform-origin: 0 0;
}

.case-hero-image img {
    width: 100%;
}


/* === Case Thumbnails === */

.case-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 80px;
}

.case-thumbnails img {
    aspect-ratio: 4 / 3;
    background: #1a1a1a;
    border-radius: 8px;
    object-fit: cover;
}


/* === Case Sections === */

.case-section {
    margin-bottom: 60px;
}

.case-section h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.case-section h3::before {
    content: "\2022 ";
    color: #fff;
}

.case-section > p {
    font-size: 16px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 700px;
}


/* === Case Screen Gallery === */

.case-screens {
    margin-bottom: 80px;
}

.case-screen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-screen-grid-single {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.case-screen-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #151515;
    border: 1px solid #222;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.case-screen-item:hover {
    transform: translateY(-6px);
    border-color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.case-screen-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.case-screen-item:hover img {
    transform: scale(1.02);
}

.case-screen-caption {
    display: block;
    padding: 16px 20px;
    font-size: 13px;
    color: #777;
    letter-spacing: 0.01em;
}

/* === Horizontal Scroll Gallery (wow-effect) === */

.case-scroll-gallery {
    margin: 0 calc(-1 * var(--px)) 100px;
    padding: 0 var(--px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.case-scroll-gallery::-webkit-scrollbar {
    display: none;
}

.case-scroll-track {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    width: max-content;
}

.case-scroll-card {
    flex: 0 0 auto;
    width: clamp(300px, 40vw, 550px);
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    border: 1px solid #1a1a1a;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    position: relative;
}

.case-scroll-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 92, 74, 0.15);
}

.case-scroll-card img {
    width: 100%;
    height: auto;
    display: block;
}

.case-scroll-card-info {
    padding: 20px 24px;
}

.case-scroll-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 6px;
}

.case-scroll-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Scroll hint arrow */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 13px;
    margin-top: 16px;
    padding-left: 4px;
    animation: scrollHintPulse 2s ease-in-out infinite;
}

.scroll-hint svg {
    animation: scrollHintArrow 2s ease-in-out infinite;
}

@keyframes scrollHintArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* === Stat Cards === */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: #151515;
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.stat-card:hover {
    border-color: #2a2a2e;
}

.stat-card.stat-accent {
    background: #151515;
    border-left: 3px solid #e85c4a;
}

.stat-value {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-accent .stat-value {
    color: #e85c4a;
}

.stat-label {
    font-size: 15px;
    color: #777;
    line-height: 1.5;
}


/* === Solution List (editorial style) === */

.solutions-list {
    display: flex;
    flex-direction: column;
    position: relative;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 36px 0;
    border-bottom: 1px solid #1a1a1a;
    cursor: default;
    transition: padding-left 0.4s cubic-bezier(.16,1,.3,1);
    position: relative;
}

.solution-item:first-child {
    border-top: 1px solid #1a1a1a;
}

.solution-item:hover {
    padding-left: 16px;
}

.solution-num {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: #e85c4a;
    min-width: 56px;
    letter-spacing: -0.02em;
    line-height: 1;
    flex-shrink: 0;
}

.solution-item .solution-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ccc;
    transition: color 0.3s;
}

.solution-item:hover .solution-title {
    color: #fff;
}

/* === Solution Preview (hover UI elements) === */

.solution-preview {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(.16,1,.3,1), transform 0.45s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
    z-index: 10;
}

.solution-item:hover .solution-preview {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* -- 01: Filters (two-phase: scan → collapse) -- */
.preview-filters {
    width: 350px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
    background: #f5f0eb;
    font-family: 'Inter', sans-serif;
}

/* === Phase 1: Full filter form === */
.pf-phase1 {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.solution-item:hover .pf-phase1 {
    animation: phase1Cycle 3.5s 0.2s ease-in-out both infinite;
}

@keyframes phase1Cycle {
    0%   { opacity: 1; transform: scale(1); }
    40%  { opacity: 1; transform: scale(1); }
    50%  { opacity: 0; transform: scale(0.97) translateY(-4px); }
    85%  { opacity: 0; transform: scale(0.97) translateY(-4px); }
    95%  { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Search bar */
.pf-search-row {
    display: flex;
    gap: 6px;
}

.pf-search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 11px;
    color: #aaa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pf-search-btn {
    background: #e85c4a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Filter row */
.pf-filters-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pf-fi {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.pf-filter-sep {
    width: 1px;
    height: 18px;
    background: #eee;
    flex-shrink: 0;
}

.pf-filter-chips {
    display: flex;
    gap: 2px;
}

.pf-filter-chips span {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 600;
    color: #666;
    background: #f5f5f5;
}

.pf-filter-chips span.on {
    background: #e85c4a;
    color: #fff;
}

/* Quick tags */
.pf-tags-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pf-qtag {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid #e8e4df;
}

.pf-qtag.active {
    color: #e85c4a;
    border-color: #e85c4a;
    background: transparent;
}

/* === Lens (thick, visible, glass-like) === */
.pf-lens {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 3.5px solid #e85c4a;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5) 0%, rgba(232,92,74,0.06) 60%, transparent 100%);
    backdrop-filter: blur(1px);
    top: -60px;
    left: 50%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 2px 12px rgba(232,92,74,0.25), inset 0 0 12px rgba(255,255,255,0.3);
}

.pf-lens::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -8px;
    width: 16px;
    height: 4px;
    background: #e85c4a;
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: 0 1px 4px rgba(232,92,74,0.3);
}

.solution-item:hover .pf-lens {
    animation: lensScan 3.5s 0.2s ease-in-out both infinite;
}

/* One smooth pass top→bottom */
@keyframes lensScan {
    0%   { top: -4px;   left: 30%;  opacity: 0; }
    6%   { top: 6px;    left: 35%;  opacity: 1; }
    18%  { top: 44px;   left: 50%;  opacity: 1; }
    32%  { top: 82px;   left: 40%;  opacity: 1; }
    42%  { top: 110px;  left: 45%;  opacity: 0; }
    100% { top: 110px;  left: 45%;  opacity: 0; }
}

/* === Phase 2: Compact tags + result === */
.pf-phase2 {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    opacity: 0;
    pointer-events: none;
}

.solution-item:hover .pf-phase2 {
    animation: phase2Cycle 3.5s 0.2s ease-in-out both infinite;
}

@keyframes phase2Cycle {
    0%   { opacity: 0; transform: translateY(8px); }
    45%  { opacity: 0; transform: translateY(8px); }
    55%  { opacity: 1; transform: translateY(0); }
    87%  { opacity: 1; transform: translateY(0); }
    95%  { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 0; transform: translateY(-4px); }
}

/* Compact tags */
.pf-compact-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pf-ct {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #e85c4a;
    background: rgba(232,92,74,0.06);
    border: 1.5px solid rgba(232,92,74,0.12);
}

.pf-ct-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e85c4a;
}

.pf-ct-x {
    font-size: 14px;
    color: #ddd;
    line-height: 1;
}

.solution-item:hover .pf-ct:nth-child(1) { animation: ctPop 0.3s 2s cubic-bezier(.16,1,.3,1) both; }
.solution-item:hover .pf-ct:nth-child(2) { animation: ctPop 0.3s 2.12s cubic-bezier(.16,1,.3,1) both; }
.solution-item:hover .pf-ct:nth-child(3) { animation: ctPop 0.3s 2.24s cubic-bezier(.16,1,.3,1) both; }

@keyframes ctPop {
    0% { transform: scale(0.85) translateY(6px); }
    100% { transform: scale(1) translateY(0); }
}

/* Result row */
.pf-compact-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.pf-compact-num {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.pf-compact-label {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
    margin-right: auto;
}

.pf-compact-bar {
    flex: 1;
    max-width: 100px;
    height: 5px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.pf-compact-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #e85c4a, #f0866e);
    border-radius: 3px;
}

.solution-item:hover .pf-compact-bar-fill {
    animation: barGrow 0.6s 2.3s cubic-bezier(.16,1,.3,1) both;
}

@keyframes barGrow {
    0% { width: 0%; }
    100% { width: 65%; }
}

/* -- 02: Map (real SPB map + price markers) -- */
.preview-map {
    width: 350px;
    height: 220px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
}

.pm-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark pill markers (same style as map.html) */
.pm-marker {
    position: absolute;
    background: #1e1e24;
    color: #fff;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    z-index: 1;
}

.solution-item:hover .pm-marker:nth-child(2) { animation: markerIn 0.3s 0.15s cubic-bezier(.16,1,.3,1) both; }
.solution-item:hover .pm-marker:nth-child(3) { animation: markerIn 0.3s 0.25s cubic-bezier(.16,1,.3,1) both; }
.solution-item:hover .pm-marker:nth-child(4) { animation: markerIn 0.3s 0.35s cubic-bezier(.16,1,.3,1) both; }
.solution-item:hover .pm-marker:nth-child(5) { animation: markerIn 0.3s 0.45s cubic-bezier(.16,1,.3,1) both; }

@keyframes markerIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Active marker with popup card */
.pm-marker.pm-active {
    background: #e85c4a;
    z-index: 3;
    box-shadow: 0 2px 12px rgba(232,92,74,0.4);
}

/* Mini card popup */
.pm-card {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    width: 150px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
}

.pm-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

.solution-item:hover .pm-card {
    animation: cardUp 0.4s 0.6s cubic-bezier(.16,1,.3,1) both;
}

@keyframes cardUp {
    0% { opacity: 0; transform: translateX(-50%) translateY(6px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pm-card-img {
    height: 55px;
    background: linear-gradient(135deg, #e8ddd4 0%, #d4c5b8 100%);
}

.pm-card-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pm-card-price {
    font-size: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
}

.pm-card-meta {
    font-size: 10px;
    color: #999;
}

/* Cluster marker */
.pm-cluster {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(232,92,74,0.15);
    border: 2px solid #e85c4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #e85c4a;
    font-family: 'Inter', sans-serif;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1;
}

.solution-item:hover .pm-cluster {
    animation: markerIn 0.3s 0.55s cubic-bezier(.16,1,.3,1) both;
}

/* -- 03: Listing card -- */
.preview-card-listing {
    width: 260px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
}

.preview-card-img {
    height: 110px;
    background: linear-gradient(135deg, #e8ddd4 0%, #d4c5b8 100%);
    position: relative;
}

.preview-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e85c4a;
    color: #fff;
    font-size: 9px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(232,92,74,0.4);
}

.solution-item:hover .preview-badge {
    animation: badgeGlow 1.2s 0.2s ease-in-out both;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(232,92,74,0.4); }
    50% { box-shadow: 0 2px 16px rgba(232,92,74,0.7), 0 0 30px rgba(232,92,74,0.2); }
}

.preview-card-info {
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.preview-card-price {
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
}

.preview-card-meta {
    font-size: 11px;
    color: #9a9a9a;
    font-family: 'Manrope', sans-serif;
}

.preview-card-addr {
    font-size: 10px;
    color: #bbb;
    font-family: 'Manrope', sans-serif;
}

/* -- 04: Comparison -- */
.preview-compare {
    width: 300px;
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
}

.compare-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.compare-col-label {
    font-size: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: #e85c4a;
    text-align: center;
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-label {
    font-size: 10px;
    color: #999;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
}

.compare-val {
    font-size: 11px;
    color: #aaa;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    padding: 2px 6px;
    transition: all 0.3s 0.2s;
}

.compare-val.winner {
    color: #1a1a1a;
    font-weight: 800;
}

.solution-item:hover .compare-val.winner {
    background: rgba(232,92,74,0.12);
    color: #e85c4a;
}


/* === Role System Showcase === */

.role-section h3::before {
    content: none;
}

.role-selector {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #222;
    margin: 40px 0 32px;
}

.role-card {
    padding: 16px 32px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(.16, 1, .3, 1);
    margin-bottom: -1px;
}

.role-card:first-child {
    padding-left: 0;
}

.role-card:hover {
    color: #aaa;
}

.role-card.active {
    color: #fff;
    border-bottom-color: #e85c4a;
}

.role-icon {
    font-size: 20px;
    line-height: 1;
}

.role-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: inherit;
}

/* === Browser Mockup === */

.browser-mockup {
    position: relative;
    width: 100%;
}

.browser-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 130%;
    background: radial-gradient(
        ellipse at center,
        rgba(232, 92, 74, 0.1) 0%,
        rgba(232, 92, 74, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

.browser-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #161618;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 16px 56px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.browser-chrome {
    height: 44px;
    background: #1c1c1e;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    border-bottom: 1px solid #2a2a2e;
}

.browser-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #333;
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:last-child { background: #28c840; }

.browser-bar {
    flex: 1;
    height: 28px;
    background: #111113;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #2a2a2e;
}

.browser-url {
    font-size: 12px;
    color: #555;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.browser-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

.role-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}

.role-screen.active {
    opacity: 1;
}

.role-screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 900px;
    border: none;
    pointer-events: none;
    transform-origin: 0 0;
}


/* === Case Full Image === */

.case-full-image {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}


/* ======================
   CURSOR GLOW
   ====================== */

.cursor-glow {
    position: fixed;
    width: 64px;
    height: 64px;
    background: #d47060;
    border: none;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: exclusion;
    transition: width 0.4s cubic-bezier(.34,5.56,.64,1),
                height 0.4s cubic-bezier(.34,5.56,.64,1),
                border-color 0.3s,
                background 0.3s,
                opacity 0.3s;
    opacity: 0;
    will-change: transform;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Grow cursor on interactive elements */
.cursor-glow.cursor-hover {
    width: 100px;
    height: 100px;
}

/* Hide cursor glow on light content */
.cursor-glow.cursor-light {
    opacity: 0 !important;
}


/* ======================
   LAPTOP MOCKUP
   ====================== */

.mockup-scene {
    perspective: 1200px;
    margin-bottom: 80px;
}

.mockup-laptop {
    max-width: 900px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.laptop-screen {
    background: #1c1c1e;
    border-radius: 14px 14px 0 0;
    padding: 10px 10px 0;
    border: 2px solid #2a2a2e;
    border-bottom: none;
}

/* Laptop lid open animation */
.mockup-laptop.lid-anim .laptop-screen {
    transform-origin: bottom center;
    transform: perspective(1200px) rotateX(-90deg);
}

.mockup-laptop.lid-open .laptop-screen {
    transform: perspective(1200px) rotateX(0deg);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.laptop-screen-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    background: #fff;
}

.laptop-screen-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 900px;
    border: none;
    pointer-events: none;
    transform-origin: 0 0;
}

.laptop-base {
    height: 18px;
    background: linear-gradient(180deg, #2a2a2e 0%, #1c1c1e 100%);
    border-radius: 0 0 14px 14px;
    border: 2px solid #2a2a2e;
    border-top: 1px solid #3a3a3e;
    display: flex;
    justify-content: center;
    align-items: center;
}

.laptop-notch {
    width: 60px;
    height: 4px;
    background: #3a3a3e;
    border-radius: 2px;
}

.mockup-laptop-sticky {
    max-width: 800px;
    width: 100%;
}


/* ======================
   MARQUEE
   ====================== */

.marquee-section {
    overflow: hidden;
    padding: 48px 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 100px;
    /* Break out of constrained parent to full viewport width */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-item {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.marquee-outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.7);
    color: transparent;
}

.marquee-dot {
    font-size: 20px;
    color: #e85c4a;
    flex-shrink: 0;
}

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


/* ======================
   STICKY SCROLL SHOWCASE
   ====================== */

.sticky-showcase {
    min-height: 300vh;
    position: relative;
    margin-bottom: 80px;
}

.sticky-device-wrap {
    position: sticky;
    top: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.screen-info {
    text-align: center;
    margin-bottom: 32px;
    transition: opacity 0.3s;
}

.screen-number {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e85c4a;
    display: block;
    margin-bottom: 8px;
}

.screen-title {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: opacity 0.3s;
}

.screen-title::before {
    content: none;
}

.screen-desc {
    font-size: 15px;
    color: #9a9a9a;
}

.showcase-screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.showcase-screen.active {
    opacity: 1;
}

.showcase-screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 900px;
    border: none;
    pointer-events: none;
    transform-origin: 0 0;
}

.screen-dots {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.screen-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #333;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s;
}

.screen-dot.active {
    background: #e85c4a;
    width: 28px;
    border-radius: 4px;
}

/* Screens scroll section — sticky */
.screens-scroll-section {
    height: 300vh;
    position: relative;
    margin-bottom: 80px;
}

.screens-sticky {
    position: sticky;
    top: 80px;
    padding: 0 var(--px);
    max-width: var(--max-w);
    margin-inline: auto;
}

.screen-info-bar {
    margin-bottom: 16px;
}

.screen-info-bar .screen-number {
    font-size: 13px;
    font-weight: 700;
    color: #e85c4a;
    letter-spacing: 0.05em;
}

.screen-info-bar .screen-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0;
}

.screen-info-bar .screen-desc {
    font-size: 14px;
    color: #9a9a9a;
}


/* ======================
   MAGNETIC TILT CARDS
   ====================== */

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    will-change: transform;
    cursor: default;
}

.tilt-card:hover {
    box-shadow: 0 20px 40px rgba(232, 92, 74, 0.15);
}


/* === Next Project Navigation === */

.case-next-project {
    padding-top: 80px;
    border-top: 1px solid #1a1a1a;
    margin-top: 80px;
    text-align: center;
}

.case-next-link {
    display: inline-block;
    transition: color 0.3s;
}

.case-next-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    transition: color 0.3s;
}

.case-next-link:hover .case-next-title {
    color: #e85c4a;
}

/* === Other Projects === */

.case-other-projects {
    padding-top: 80px;
    border-top: 1px solid #1a1a1a;
    margin-top: 80px;
}

.case-other-projects .section-title {
    margin-bottom: 48px;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}


/* ======================
   ANIMATIONS
   ====================== */

.anim {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}

.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered line reveal for case title */
.case-title .line {
    display: block;
    overflow: hidden;
}

.case-title .line-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 0.9s cubic-bezier(.16,1,.3,1);
}

.case-title.revealed .line-inner {
    transform: translateY(0);
}

.case-title .line:nth-child(2) .line-inner {
    transition-delay: 0.12s;
}


/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 1024px) {
    .about-grid {
        flex-direction: column;
        gap: 40px;
    }

    .about-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 36px;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Burger Menu (hidden on desktop) --- */
.nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 201;
    padding: 0;
}

.nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-burger span:nth-child(3) { bottom: 0; }

.nav-burger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.nav-mobile-overlay {
    display: none;
}

@media (max-width: 768px) {

    .nav {
        padding: 20px 24px;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .nav-logo {
        font-size: 16px;
        position: static;
    }

    .nav-burger {
        display: block;
        position: absolute;
        right: 24px;
        z-index: 201;
    }

    .nav {
        background: rgba(10, 10, 12, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #0a0a0c;
        z-index: 199;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
    }

    .nav-mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-mobile-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        gap: 40px;
        padding-top: 80px;
    }

    .nav-mobile-menu a {
        font-family: 'Manrope', sans-serif;
        font-size: 28px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        color: #fff;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s, transform 0.3s, color 0.3s;
    }

    .nav-mobile-overlay.open .nav-mobile-menu a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-mobile-overlay.open .nav-mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
    .nav-mobile-overlay.open .nav-mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
    .nav-mobile-overlay.open .nav-mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
    .nav-mobile-overlay.open .nav-mobile-menu a:nth-child(4) { transition-delay: 0.25s; }

    .nav-mobile-menu a:active {
        color: #e85c4a;
    }

    /* ===== MOBILE: Left-align everything ===== */

    .hero {
        padding-top: 100px;
        min-height: auto;
        text-align: left;
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-subtitle br {
        display: none;
    }

    /* Main page sections — fluid width */
    .about-section,
    .work-section,
    .services-section,
    .cta-section,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-grid {
        flex-direction: column;
        gap: 32px;
    }

    .about-stats {
        justify-content: flex-start;
    }

    .stat-block {
        text-align: left;
    }

    .cta-section {
        text-align: center;
    }
    /* CTA на мобиле: по центру, кнопка во всю ширину контента */
    .cta-section .btn-primary {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
    }

    .section-header {
        align-items: flex-start;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .service-item p {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }

    /* Project grid */
    .project-row,
    .project-row--two {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* V3 cards mobile */
    .projects-grid-v3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-grid-v3 .pcard:nth-child(even) {
        margin-top: 0;
    }

    .pcard {
        aspect-ratio: 3 / 3.5;
    }

    .card-v2 {
        aspect-ratio: 3 / 2;
        padding: 24px;
    }

    .card-v2__title {
        font-size: 20px;
        max-width: 70%;
    }

    /* ===== Case pages — left-align, no overflow ===== */
    .case-page {
        padding-top: 100px;
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
        overflow-x: hidden;
    }

    .case-header {
        margin-bottom: 48px;
    }

    .case-meta {
        flex-direction: column;
        gap: 20px;
    }

    .case-meta-right p {
        max-width: 100%;
    }

    .case-section {
        margin-bottom: 60px;
    }

    .case-section h3 {
        font-size: clamp(20px, 6vw, 28px);
        word-break: break-word;
    }

    .case-section > p {
        word-break: break-word;
    }

    .case-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .solution-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 28px 0;
    }

    .solution-item:hover {
        padding-left: 0;
    }

    .solution-preview {
        position: static;
        opacity: 1;
        transform: none;
        margin-left: 0;
        pointer-events: auto;
        width: 100%;
        max-width: 100%;
    }

    .role-selector {
        overflow-x: auto;
        margin: 24px 0;
    }

    .role-card {
        padding: 12px 20px;
        font-size: 13px;
    }

    .other-projects-grid {
        grid-template-columns: 1fr;
    }

    /* Career Portal spotlights — fix overflow */
    .cp-spotlights {
        overflow: visible;
        padding-left: 0;
        padding-right: 0;
    }

    .cp-spotlight-content > p {
        word-break: break-word;
    }

    .cp-spotlight-features span {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Cursor glow — hide on mobile (no mouse) */
    .cursor-glow {
        display: none;
    }

    /* Marquee — smaller text */
    .marquee-item {
        font-size: 24px;
    }

    .marquee-section {
        padding: 32px 0;
        margin-bottom: 60px;
    }

    /* Sticky showcase — reduce height */
    .sticky-showcase {
        min-height: 300vh;
    }

    .sticky-device-wrap {
        padding: 20px 0;
    }

    .screen-title {
        font-size: 20px;
    }

    .screen-info {
        margin-bottom: 20px;
    }

    .mockup-scene {
        margin-bottom: 40px;
    }

    /* Screens scroll section */
    .screens-scroll-section {
        height: 200vh;
    }

    .screens-sticky {
        top: 60px;
    }

    .screen-info-bar .screen-title {
        font-size: 18px;
    }

    /* Case meta on mobile */
    .case-meta-item {
        min-width: auto;
    }

    /* Mood player — move up so not covered by thumb */
    .mood-player {
        bottom: 20px;
        right: 20px;
    }

    /* Case takeaway */
    .case-takeaway {
        padding-left: 20px;
        padding-right: 20px;
    }

    .case-other-projects {
        padding-left: 0;
        padding-right: 0;
    }

    /* ===== Solution previews: show everything (no hover on mobile) ===== */
    .solution-preview {
        max-width: 100%;
    }

    .preview-map {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
    }

    .pm-marker {
        opacity: 1;
    }

    .pm-marker.pm-active {
        opacity: 1;
    }

    .pm-card {
        opacity: 1;
        pointer-events: auto;
    }

    .pm-cluster {
        opacity: 1;
    }

    .preview-filters {
        width: 100%;
    }

    .preview-card-listing {
        width: 100%;
    }

    .preview-compare {
        width: 100%;
    }

    .pf-compact-bar-fill {
        width: 65%;
    }

    /* ===== EdTech (KEDU) — split hero, before/after, showcase ===== */
    .case-split-hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .case-split-desc {
        max-width: 100%;
    }

    .case-split-meta {
        flex-wrap: wrap;
        gap: 20px;
    }

    .before-after-block {
        gap: 12px;
    }

    .ba-frame {
        height: 300px;
    }

    .ba-frame-live {
        height: 300px;
    }

    .showcase-card-text {
        padding: 20px;
    }

    .showcase-card-screen {
        margin: 0 12px 12px;
    }

    /* ===== Feature tiles (KEDU, etc) ===== */
    .feature-tiles {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
    }

    .feature-tile-wide {
        grid-column: span 1;
    }

    /* ===== Browser mockup — scale on mobile ===== */
    .browser-chrome {
        height: 32px;
        padding: 0 10px;
        gap: 8px;
    }

    .browser-dots span {
        width: 8px;
        height: 8px;
    }

    .browser-bar {
        height: 22px;
    }

    .browser-url {
        font-size: 10px;
    }

    /* ===== Stat cards — comfortable mobile ===== */
    .stat-card {
        padding: 28px 24px;
    }

    /* ===== Case takeaway ===== */
    .case-takeaway {
        padding: 28px 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .case-takeaway blockquote {
        font-size: 16px;
    }

    /* ===== Screens scroll section ===== */
    .screens-scroll-section {
        height: auto;
        min-height: auto;
    }

    .screens-sticky {
        position: relative;
        top: auto;
    }

    /* ===== Mockup hero ===== */
    .mockup-hero {
        padding: 30px 0 20px;
        margin-bottom: 40px;
    }

    /* ===== Case cinema hero ===== */
    .case-cinema-hero {
        height: auto;
        min-height: 50vh;
    }

    /* ===== Constraint tags (KEDU) ===== */
    .constraint-tags {
        grid-template-columns: 1fr;
    }

    .constraint-tag {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .project-row {
        gap: 32px;
    }
}


/* ======================
   MUSIC MOOD SYSTEM
   ====================== */

/* Audio-reactive CSS custom properties (set by JS) */
:root {
    --beat: 0;
    --energy: 0;
    --sparkle: 0;
}

/* --- Grain Overlay --- */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.8s;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px;
    mix-blend-mode: overlay;
}

/* --- Disco Particles Canvas --- */
.disco-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.8s;
}

/* --- Mood Player --- */
.mood-player {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 10000;
}

/* Hint label */
.mood-player-hint {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s;
    animation: hint-pulse 3s ease-in-out 3s forwards;
}

@keyframes hint-pulse {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.mood-player.playing .mood-player-hint {
    opacity: 0;
}

.mood-player-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid #333;
    background: rgba(20, 20, 22, 0.9);
    backdrop-filter: blur(16px);
    color: #9a9a9a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mood-player-toggle:hover {
    border-color: #555;
    color: #fff;
}

.mood-player.playing .mood-player-toggle {
    border-color: #ff3c00;
    color: #ff3c00;
    box-shadow: 0 0 20px rgba(255, 60, 0, 0.3);
}

.mood-player.playing .mood-icon-music { display: none; }
.mood-player.playing .mood-icon-stop { display: block !important; }

.mood-player-panel {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 260px;
    background: rgba(20, 20, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid #2a2a2e;
    border-radius: 16px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transition: all 0.3s cubic-bezier(.16,1,.3,1);
}

.mood-player-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mood-player-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    margin-bottom: 12px;
    padding: 0 4px;
}

.mood-track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    color: #ccc;
    transition: background 0.2s;
}

.mood-track:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mood-track.active {
    background: rgba(255, 60, 0, 0.12);
}

.mood-track-art {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.mood-track-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.mood-track-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.mood-track-artist {
    font-size: 12px;
    color: #666;
}

/* EQ bars animation */
.mood-eq {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.mood-track.active .mood-eq {
    opacity: 1;
}

.mood-eq span {
    width: 3px;
    background: #ff3c00;
    border-radius: 1px;
    animation: eq-bar 0.6s ease-in-out infinite alternate;
}

.mood-eq span:nth-child(1) { height: 8px; animation-delay: 0s; }
.mood-eq span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.mood-eq span:nth-child(3) { height: 6px; animation-delay: 0.3s; }

@keyframes eq-bar {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}


/* ======================
   MA BAKER MOOD THEME
   ====================== */

body.mood-ma-baker {
    background: #1a0a0a;
    transition: background 1.2s, color 1.2s;
}

/* Nav */
body.mood-ma-baker .nav {
    background: rgba(26, 10, 10, 0.88);
}

/* Hero */
body.mood-ma-baker .hero-title {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    /* Beat-reactive scale */
    transform: scale(calc(1 + var(--beat) * 0.04));
    transition: font-family 0.6s, transform 0.08s;
}

body.mood-ma-baker .hero-greeting {
    color: #ff3c00;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

body.mood-ma-baker .hero-subtitle {
    color: #ffe8d6;
}

/* Section labels & titles */
body.mood-ma-baker .section-label {
    color: #ff3c00;
}

body.mood-ma-baker .section-title {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

/* About */
body.mood-ma-baker .about-description {
    color: #ffe8d6;
}

body.mood-ma-baker .stat-number {
    color: #ffd700;
}

/* Borders — warm */
body.mood-ma-baker .about-section,
body.mood-ma-baker .work-section,
body.mood-ma-baker .services-section,
body.mood-ma-baker .cta-section,
body.mood-ma-baker .footer,
body.mood-ma-baker .service-item,
body.mood-ma-baker .service-item:first-child {
    border-color: #331a1a;
}

/* Project cards */
body.mood-ma-baker .project-image {
    border-radius: 4px;
    /* Beat-reactive subtle pulse */
    box-shadow: 0 0 calc(var(--beat) * 30px) rgba(255, 60, 0, calc(var(--beat) * 0.3));
}

body.mood-ma-baker .card-v2__img {
    filter: contrast(1.2) saturate(1.3) sepia(0.1);
    transition: filter 0.6s, transform 0.6s;
}

body.mood-ma-baker .card-v2__title {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.04em;
}

body.mood-ma-baker .card-v2 {
    transform: rotate(calc(-1deg + var(--beat) * 2deg));
    transition: transform 0.15s;
}

body.mood-ma-baker .project-card:nth-child(even) {
    transform: rotate(calc(1.5deg - var(--beat) * 2deg));
}

body.mood-ma-baker .project-card:hover {
    transform: rotate(0deg) scale(1.03);
}

/* Services */
body.mood-ma-baker .service-number {
    color: #ffd700;
}

body.mood-ma-baker .service-item h3 {
    font-family: 'Anton', sans-serif;
}

body.mood-ma-baker .service-item:hover {
    background: rgba(255, 60, 0, 0.06);
}

/* CTA */
body.mood-ma-baker .cta-title {
    font-family: 'Anton', sans-serif;
    /* Beat-reactive skew */
    transform: skewX(calc(var(--beat) * -3deg));
    transition: transform 0.08s;
}

body.mood-ma-baker .cta-label {
    color: #ff3c00;
}

body.mood-ma-baker .btn-primary {
    background: #ff3c00;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Anton', sans-serif;
}

body.mood-ma-baker .btn-primary:hover {
    background: #ff5522;
    box-shadow: 0 0 30px rgba(255, 60, 0, 0.5);
}

body.mood-ma-baker .btn-outline {
    border-color: #ff3c00;
    color: #ff3c00;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.mood-ma-baker .btn-outline:hover {
    background: #ff3c00;
    color: #fff;
    border-color: #ff3c00;
}

/* Cursor */
body.mood-ma-baker .cursor-glow {
    border-color: rgba(255, 215, 0, 0.6);
}

body.mood-ma-baker .cursor-glow.cursor-hover {
    border-color: rgba(255, 215, 0, 0.8);
    background: rgba(255, 215, 0, 0.1);
}

/* Footer */
body.mood-ma-baker .footer-name {
    color: #ff3c00;
}

body.mood-ma-baker .footer-links a:hover {
    color: #ffd700;
}

/* Grain visible */
body.mood-ma-baker ~ .grain-overlay,
body.mood-ma-baker .grain-overlay {
    opacity: 0.05;
}

/* Disco particles visible */
body.mood-ma-baker ~ .disco-particles,
body.mood-ma-baker .disco-particles {
    opacity: 1;
}

/* Beat-reactive background glow */
body.mood-ma-baker::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 40%,
        rgba(255, 60, 0, calc(var(--beat) * 0.15)) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.1s;
}

/* Police siren flash on heavy beats */
body.mood-ma-baker::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: calc(var(--beat) * var(--beat) * 0.12);
    pointer-events: none;
    z-index: 0;
    animation: siren-flash 0.4s ease-in-out infinite alternate;
}

@keyframes siren-flash {
    0% { background: rgba(255, 0, 0, 0.08); }
    100% { background: rgba(0, 50, 255, 0.06); }
}

/* === Vinyl Record Visualizer === */

.vinyl-visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    z-index: 0;
    opacity: 0;
    scale: 0.6;
    pointer-events: none;
    transition: opacity 1.2s cubic-bezier(.16,1,.3,1), scale 1.2s cubic-bezier(.16,1,.3,1);
}

body.mood-ma-baker .vinyl-visualizer {
    opacity: 1;
    scale: 1;
}

body.mood-ma-baker .hero-content {
    position: relative;
    z-index: 1;
}

body.mood-ma-baker .hero {
    position: relative;
}

/* Reactive glow behind the vinyl */
.vinyl-glow {
    position: absolute;
    inset: -60%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 60, 0, 0.4),
        rgba(255, 215, 0, 0.3),
        rgba(255, 60, 0, 0.1),
        rgba(255, 215, 0, 0.4),
        rgba(255, 60, 0, 0.3),
        rgba(255, 215, 0, 0.1),
        rgba(255, 60, 0, 0.4)
    );
    filter: blur(80px);
    opacity: 0;
    animation: vinyl-glow-rotate 8s linear infinite;
    transition: opacity 0.1s;
}

body.mood-ma-baker .vinyl-glow {
    opacity: calc(0.3 + var(--beat) * 0.7);
}

@keyframes vinyl-glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* The vinyl record itself */
.vinyl-record {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        #1a1a1a 0%,
        #0d0d0d 30%,
        #1a1a1a 31%,
        #111 45%,
        #1a1a1a 46%,
        #0d0d0d 60%,
        #1a1a1a 61%,
        #111 80%,
        #1a1a1a 81%,
        #0a0a0a 100%
    );
    box-shadow:
        0 0 0 3px #222,
        0 0 40px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(0, 0, 0, 0.4);
    animation: vinyl-spin 2s linear infinite paused;
}

body.mood-ma-baker .vinyl-record {
    animation-play-state: running;
}

@keyframes vinyl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Vinyl grooves (subtle shine lines) */
.vinyl-grooves {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 3px,
        rgba(255, 255, 255, 0.03) 3.5px,
        transparent 4px
    );
    /* Light reflection */
    mask-image: linear-gradient(
        135deg,
        transparent 20%,
        rgba(255, 255, 255, 0.8) 45%,
        transparent 55%,
        rgba(255, 255, 255, 0.4) 75%,
        transparent 90%
    );
}

/* Center label */
.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    height: 35%;
    border-radius: 50%;
    background: radial-gradient(
        circle at 40% 35%,
        #ff5522 0%,
        #cc2200 50%,
        #991100 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.15);
}

.vinyl-label-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    /* Counter-rotate so text stays readable */
    animation: vinyl-spin-reverse 2s linear infinite paused;
}

body.mood-ma-baker .vinyl-label-text {
    animation-play-state: running;
}

@keyframes vinyl-spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.vinyl-track-name {
    font-family: 'Anton', sans-serif;
    font-size: 14px;
    color: #ffe8d6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vinyl-track-artist {
    font-size: 9px;
    color: rgba(255, 232, 214, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.vinyl-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a0a0a;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Beat-reactive vinyl scale */
body.mood-ma-baker .vinyl-record {
    transform-origin: center;
    scale: calc(1 + var(--beat) * 0.05);
}

/* Mood transition for all elements */
body.mood-ma-baker * {
    transition-duration: 0.15s;
}

/* Player panel in mood */
body.mood-ma-baker .mood-player-panel {
    border-color: #331a1a;
}


/* ======================
   CINEMATIC HERO (Career Portal)
   ====================== */

.case-cinema-hero {
    position: relative;
    margin-bottom: 60px;
    border-radius: 24px;
    overflow: hidden;
    background: #0a0a0c;
}

.cinema-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(232, 92, 74, 0.15) 0%, rgba(232, 92, 74, 0.05) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.cinema-hero-img {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.case-cinema-hero:hover .cinema-hero-img {
    transform: scale(1.02);
}


/* ======================
   BENTO GALLERY
   ====================== */

.bento-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 120px;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.bento-item.bento-wide {
    grid-column: span 2;
}

.bento-frame {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
    cursor: pointer;
}

.bento-frame img {
    width: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.5s ease;
}

.bento-frame:hover img {
    transform: scale(1.04);
    filter: brightness(0.7);
}

.bento-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    transform: translateY(60%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bento-frame:hover .bento-label {
    transform: translateY(0);
    opacity: 1;
}

.bento-num {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #e85c4a;
    letter-spacing: 0.05em;
}

.bento-name {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.bento-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    max-width: 400px;
}

/* Bento — wide items get taller treatment */
.bento-item.bento-wide .bento-frame img {
    max-height: 540px;
    object-fit: cover;
    object-position: top center;
}

.bento-item:not(.bento-wide) .bento-frame img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
}

/* Mobile */
@media (max-width: 768px) {
    .bento-gallery {
        grid-template-columns: 1fr;
    }

    .bento-item.bento-wide {
        grid-column: span 1;
    }

    .bento-label {
        transform: translateY(0);
        opacity: 1;
        padding: 24px 20px 20px;
    }

    .bento-name {
        font-size: 18px;
    }

    .bento-item.bento-wide .bento-frame img {
        max-height: 300px;
    }
}


/* ============================================
   KEDU CASE — Unique Blocks
   ============================================ */

/* --- Split Hero --- */
.case-split-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    padding: 160px var(--px) 80px;
    max-width: var(--max-w);
    margin-inline: auto;
    min-height: 80vh;
}

.case-split-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-split-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e85c4a;
}

.case-split-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 8vw, 120px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.case-split-desc {
    font-size: clamp(16px, 1.5vw, 20px);
    color: #999;
    line-height: 1.6;
    max-width: 480px;
}

.case-split-meta {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

.case-split-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-split-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
}

.case-split-meta-value {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
}

.case-split-right {
    position: relative;
}

.case-split-browser {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    background: #111;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.case-split-screen {
    overflow: hidden;
    max-height: 500px;
}

.case-split-screen img {
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.case-split-screen-live {
    position: relative;
}

.case-split-screen-live iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    zoom: 0.45;
    -moz-transform: scale(0.45);
    -moz-transform-origin: 0 0;
}

@media (max-width: 900px) {
    .case-split-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 120px;
        gap: 40px;
    }
}

/* --- Constraint Tags --- */
.kedu-context-text {
    font-size: clamp(18px, 2vw, 24px);
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 32px;
}

.constraint-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.constraint-tag {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.constraint-tag:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.constraint-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.constraint-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.constraint-text strong {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.constraint-text span {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .constraint-tags {
        grid-template-columns: 1fr;
    }
}

/* --- Before / After --- */
.before-after-block {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 60px;
}

.ba-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ba-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    padding: 6px 16px;
    background: #111;
    border: 1px solid #222;
    border-radius: 100px;
    align-self: flex-start;
}

.ba-label-accent {
    color: #e85c4a;
    border-color: rgba(232, 92, 74, 0.3);
    background: rgba(232, 92, 74, 0.08);
}

.ba-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    background: #111;
    flex: 1;
    height: 500px;
}

.ba-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.ba-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e85c4a;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .before-after-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ba-divider {
        padding: 8px 0;
    }

    .ba-arrow {
        transform: rotate(90deg);
    }
}

/* --- Feature Tiles --- */
.feature-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 var(--px) 80px;
    max-width: var(--max-w);
    margin-inline: auto;
}

.feature-tile {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    border: 1px solid #1a1a1a;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-tile:hover {
    border-color: #333;
    transform: translateY(-4px);
}

.feature-tile-wide {
    grid-column: span 2;
}

.feature-tile-img {
    overflow: hidden;
    max-height: 320px;
}

.feature-tile-wide .feature-tile-img {
    max-height: 400px;
}

.feature-tile-img img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.feature-tile:hover .feature-tile-img img {
    transform: scale(1.03);
}

.feature-tile-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-tile-num {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #e85c4a;
    letter-spacing: 0.05em;
}

.feature-tile-info h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feature-tile-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* === Showcase Grid (bento-style) === */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 80px;
}

.showcase-card {
    background: #151515;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.showcase-card-text {
    padding: 28px 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.showcase-num {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #e85c4a;
    letter-spacing: 0.05em;
}

.showcase-card-text h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.showcase-card-text p {
    font-size: 13px;
    color: #9a9a9a;
    line-height: 1.5;
}

.showcase-card-screen {
    margin: 0 16px 16px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.showcase-card-screen img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

/* Wide card spans both columns */
.showcase-card-wide {
    grid-column: span 2;
}

.showcase-card-wide .showcase-card-screen img {
    max-height: 400px;
}

.showcase-card:not(.showcase-card-wide) .showcase-card-screen img {
    max-height: 320px;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-card-wide {
        grid-column: span 1;
    }
}

/* Before/After live iframe */
.ba-frame-live {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.ba-frame-live iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    zoom: 0.42;
    -moz-transform: scale(0.42);
    -moz-transform-origin: 0 0;
}

@media (max-width: 768px) {
    .feature-tiles {
        grid-template-columns: 1fr;
    }

    .feature-tile-wide {
        grid-column: span 1;
    }

    .feature-tile-img,
    .feature-tile-wide .feature-tile-img {
        max-height: 240px;
    }

    .feature-tile-live iframe {
        width: 250%;
        transform: scale(0.4);
    }

    .ba-frame-live iframe {
        zoom: 0.3;
        -moz-transform: scale(0.3);
    }
}

/* --- Takeaway Quote --- */
.case-takeaway {
    position: relative;
    padding: 48px;
    background: linear-gradient(135deg, rgba(232, 92, 74, 0.06), rgba(232, 92, 74, 0.02));
    border: 1px solid rgba(232, 92, 74, 0.15);
    border-radius: 20px;
}

.case-takeaway-icon {
    font-family: 'Manrope', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: #e85c4a;
    line-height: 0.6;
    display: block;
    margin-bottom: 16px;
    opacity: 0.4;
}

.case-takeaway blockquote {
    font-size: clamp(16px, 1.8vw, 22px);
    color: #bbb;
    line-height: 1.6;
    font-style: italic;
    letter-spacing: -0.01em;
}

@media (max-width: 600px) {
    .case-takeaway {
        padding: 32px 24px;
    }
}


/* ============================================
   CAREER PORTAL — Unique Case Blocks
   ============================================ */

/* --- Hero: Floating Multi-Device Composition --- */
.cp-hero-devices {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto 0;
    padding: 40px var(--px) 80px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    perspective: 1200px;
}

.cp-device-laptop {
    width: 68%;
    transform: rotateY(2deg) rotateX(1deg);
    transition: transform 0.6s cubic-bezier(.16,1,.3,1);
    position: relative;
    z-index: 2;
}

.cp-device-laptop:hover {
    transform: rotateY(0) rotateX(0);
}

.cp-device-tablet {
    width: 28%;
    transform: rotateY(-4deg) rotateX(2deg) translateY(-30px);
    transition: transform 0.6s cubic-bezier(.16,1,.3,1);
    position: relative;
    z-index: 1;
}

.cp-device-tablet:hover {
    transform: rotateY(0) rotateX(0) translateY(-30px);
}

.cp-device-frame {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.cp-device-chrome {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cp-device-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.cp-device-frame iframe {
    width: 100%;
    aspect-ratio: 16/10;
    border: none;
    display: block;
    pointer-events: none;
}

.cp-device-base {
    width: 110%;
    height: 12px;
    background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
    position: relative;
    left: -5%;
}

.cp-device-base::before {
    content: '';
    display: block;
    width: 20%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 0 0 4px 4px;
    margin: 0 auto;
}

/* --- Project Brief Cards --- */
.cp-brief {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px var(--px) 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cp-brief-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.3s, transform 0.3s;
}

.cp-brief-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.cp-brief-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    font-weight: 500;
}

.cp-brief-value {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.cp-brief-detail {
    font-size: 13px;
    color: #9a9a9a;
    line-height: 1.5;
}

.cp-brief-accent {
    background: rgba(232, 92, 74, 0.08);
    border-color: rgba(232, 92, 74, 0.2);
}

.cp-brief-accent:hover {
    border-color: rgba(232, 92, 74, 0.4);
}

.cp-brief-accent .cp-brief-value {
    color: #e85c4a;
}

/* --- Hiring Funnel — horizontal bars --- */
.cp-funnel {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px var(--px) 80px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cp-funnel-step {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cp-funnel-bar {
    width: var(--width, 100%);
    background: rgba(232, 92, 74, 0.08);
    border: 1px solid rgba(232, 92, 74, 0.15);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 280px;
    gap: 16px;
}

.cp-funnel-step:first-child .cp-funnel-bar {
    background: rgba(232, 92, 74, 0.15);
    border-color: rgba(232, 92, 74, 0.3);
}

.cp-funnel-label {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.cp-funnel-pct {
    font-size: 28px;
    font-weight: 800;
    color: #e85c4a;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.cp-funnel-step:first-child .cp-funnel-pct {
    font-size: 32px;
    color: #fff;
}

.cp-funnel-loss {
    font-size: 13px;
    color: #999;
    flex-shrink: 1;
    min-width: 0;
}

/* --- Process Timeline --- */
.cp-process {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px) 100px;
}

.cp-process > h3 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.cp-process > h3::before {
    content: none;
}

.cp-process-timeline {
    display: flex;
    gap: 0;
    position: relative;
}

/* Background track line */
.cp-process-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.06);
}

/* Animated progress line */
.cp-process-timeline::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #e85c4a, #f5a623);
    border-radius: 2px;
    transition: width 0s;
}

.visible .cp-process-timeline::after {
    width: 100%;
    transition: width 2.5s cubic-bezier(.16,1,.3,1);
}

.cp-process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-top: 48px;
}

/* Dot */
.cp-process-step::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0a0a0c;
    border: 2px solid rgba(255,255,255,0.15);
    transition: all 0.4s cubic-bezier(.16,1,.3,1);
    z-index: 1;
}

/* Staggered dot activation on scroll */
.visible .cp-process-step:nth-child(1)::before { border-color: #e85c4a; background: #e85c4a; box-shadow: 0 0 20px rgba(232,92,74,.4); transition-delay: 0.3s; }
.visible .cp-process-step:nth-child(2)::before { border-color: #e85c4a; background: #e85c4a; box-shadow: 0 0 20px rgba(232,92,74,.4); transition-delay: 0.7s; }
.visible .cp-process-step:nth-child(3)::before { border-color: #e85c4a; background: #e85c4a; box-shadow: 0 0 20px rgba(232,92,74,.4); transition-delay: 1.1s; }
.visible .cp-process-step:nth-child(4)::before { border-color: #e85c4a; background: #e85c4a; box-shadow: 0 0 20px rgba(232,92,74,.4); transition-delay: 1.5s; }
.visible .cp-process-step:nth-child(5)::before { border-color: #e85c4a; background: #e85c4a; box-shadow: 0 0 20px rgba(232,92,74,.4); transition-delay: 1.9s; }

/* Staggered text fade-in */
.cp-process-step .cp-process-num,
.cp-process-step .cp-process-name,
.cp-process-step .cp-process-desc {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
}

.visible .cp-process-step:nth-child(1) .cp-process-num,
.visible .cp-process-step:nth-child(1) .cp-process-name,
.visible .cp-process-step:nth-child(1) .cp-process-desc { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

.visible .cp-process-step:nth-child(2) .cp-process-num,
.visible .cp-process-step:nth-child(2) .cp-process-name,
.visible .cp-process-step:nth-child(2) .cp-process-desc { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }

.visible .cp-process-step:nth-child(3) .cp-process-num,
.visible .cp-process-step:nth-child(3) .cp-process-name,
.visible .cp-process-step:nth-child(3) .cp-process-desc { opacity: 1; transform: translateY(0); transition-delay: 1.2s; }

.visible .cp-process-step:nth-child(4) .cp-process-num,
.visible .cp-process-step:nth-child(4) .cp-process-name,
.visible .cp-process-step:nth-child(4) .cp-process-desc { opacity: 1; transform: translateY(0); transition-delay: 1.6s; }

.visible .cp-process-step:nth-child(5) .cp-process-num,
.visible .cp-process-step:nth-child(5) .cp-process-name,
.visible .cp-process-step:nth-child(5) .cp-process-desc { opacity: 1; transform: translateY(0); transition-delay: 2.0s; }

.cp-process-num {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    font-family: 'Manrope', sans-serif;
}

.cp-process-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.cp-process-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    max-width: 200px;
}

/* --- Screen Spotlights: Alternating Layout --- */
.cp-spotlights {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    overflow: hidden;
}

.cp-spotlight {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cp-spotlight:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cp-spotlight-reverse {
    grid-template-columns: minmax(0, 1fr) 380px;
}

.cp-spotlight-reverse .cp-spotlight-content {
    order: 2;
}

.cp-spotlight-reverse .cp-spotlight-device {
    order: 1;
}

.cp-spotlight-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #e85c4a;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.cp-spotlight-content h3 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cp-spotlight-content h3::before {
    content: none;
}

.cp-spotlight-content > p {
    font-size: 15px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 24px;
}

.cp-spotlight-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-spotlight-features span {
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Browser Frame for Spotlights */
.cp-browser-frame {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
    transition: transform 0.5s cubic-bezier(.16,1,.3,1), box-shadow 0.5s;
}

.cp-spotlight:hover .cp-browser-frame {
    transform: translateY(-8px);
    box-shadow: 0 50px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

.cp-browser-chrome {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cp-browser-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.cp-browser-frame iframe {
    border: none;
    display: block;
    pointer-events: none;
}

/* --- Results: Horizontal Metric Bars --- */
.cp-results {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px var(--px) 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cp-result-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cp-result-row:last-child {
    border-bottom: none;
}

.cp-result-metric {
    font-size: 14px;
    font-weight: 500;
    color: #9a9a9a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cp-result-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-result-bar {
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    width: var(--val, 50%);
    transition: width 1s cubic-bezier(.16,1,.3,1);
}

.cp-result-bar span {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.cp-result-bar-before {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.cp-result-bar-before span {
    color: #666;
}

.cp-result-bar-after {
    background: linear-gradient(90deg, rgba(232, 92, 74, 0.2), rgba(232, 92, 74, 0.08));
    border: 1px solid rgba(232, 92, 74, 0.3);
}

.cp-result-bar-after span {
    color: #e85c4a;
}

.cp-result-value-big {
    font-size: 64px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: #fff;
    line-height: 1;
}

.cp-result-tags {
    display: flex;
    gap: 12px;
}

.cp-result-tags span {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    padding: 10px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
}

/* --- Career Portal Responsive --- */
@media (max-width: 1024px) {
    .cp-hero-devices {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .cp-device-laptop {
        width: 90%;
        transform: none;
    }

    .cp-device-tablet {
        width: 60%;
        transform: none;
    }

    .cp-brief {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-spotlight {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cp-spotlight-reverse .cp-spotlight-content {
        order: 1;
    }

    .cp-spotlight-reverse .cp-spotlight-device {
        order: 2;
    }

    .cp-process-timeline {
        flex-direction: column;
        gap: 0;
        padding-left: 30px;
    }

    .cp-process-timeline::before {
        top: 0;
        bottom: 0;
        left: 6px;
        width: 2px;
        height: auto;
        right: auto;
    }

    .cp-process-timeline::after {
        top: 0;
        left: 6px;
        width: 2px !important;
        height: 0%;
        right: auto;
    }

    .visible .cp-process-timeline::after {
        height: 100%;
        width: 2px !important;
    }

    .cp-process-step {
        padding: 0 0 24px 20px;
    }

    .cp-process-step::before {
        top: 4px;
        left: -24px;
        width: 10px;
        height: 10px;
    }

    .cp-process > h3 {
        margin-bottom: 32px;
    }

    .cp-process {
        padding-bottom: 60px;
    }

    .cp-process-desc {
        max-width: none;
    }

    .cp-result-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .cp-brief {
        grid-template-columns: 1fr;
    }

    .cp-funnel-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cp-funnel-bar {
        min-width: 100%;
        width: 100% !important;
    }
}


/* ======================
   ACCESSIBILITY
   ====================== */

/* Focus-visible styles */
a:focus-visible,
button:focus-visible,
.card-v2:focus-visible,
.btn-outline:focus-visible,
.btn-primary:focus-visible {
    outline: 2px solid #e85c4a;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .anim {
        opacity: 1;
        transform: none;
    }

    .hero-orb {
        animation: none;
    }

    .cursor-glow {
        display: none;
    }
}

/* Hide cursor glow on touch devices */
@media (hover: none) {
    .cursor-glow {
        display: none !important;
    }
}
