/* Fonts */
@font-face {
    font-family: 'Fairweather';
    src: url('../fonts/Fairweather_Heavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'ScrittePiccole';
    src: url('../fonts/Fairweather_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MozaicMedium';
    src: url('../fonts/MozaicHUM-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'MozaicHUM';
    src: url('../fonts/MozaicHUM-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

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

/* Variables — dark theme by default. Nav and footer are hard-coded light below. */
:root {
    --color-bg: #171717;
    --color-text: #fffcff;
    --color-accent: #fffcff;
    --color-light: #1f1f1f;
    --color-border: #2a2a2a;
    --font-main: 'MozaicHUM', 'Helvetica Neue', Arial, sans-serif;
    --font-title: 'Fairweather', 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1200px;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
}

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

img {
    max-width: 100%;
    display: block;
}

/* Header & Nav — hard-coded light so the navbar stays white on every page */
header {
    position: sticky;
    top: 0;
    background: #fffcff;
    color: #171717;
    border-bottom: 1px solid #e0dede;
    z-index: 100;
}

header .menu-toggle {
    color: #171717;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(1rem + 0.5cm) 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    display: flex;
    align-items: center;
}

.logo-text {
    display: inline-block;
    clip-path: inset(0 0% 0 0);
    transition: clip-path 0.6s ease;
}

.logo-img-wordmark {
    height: 38px;
    width: auto;
    display: block;
}

.logo-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    clip-path: inset(0 0 0 100%);
    transition: clip-path 0.6s ease;
}

.logo-img-icon {
    height: 56px;
    width: auto;
    display: block;
}

.logo.scrolled .logo-text {
    clip-path: inset(0 100% 0 0);
    pointer-events: none;
}

.logo.scrolled .logo-icon {
    clip-path: inset(0 0 0 0%);
}

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

.nav-links a {
    font-family: var(--font-title);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

/* Home - Hero */
.home-hero {
    width: 100%;
    min-height: 85vh;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.home-title-mobile{
    display: none;
}

.home-hero-overlay {
    text-align: right;
    color: var(--color-text);
    padding: 4rem;
    position: absolute;
    right: clamp(2rem, 8vw, 10rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.home-hero-overlay h1 {
    font-size: clamp(4rem, 13vw, 10rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.8;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}



.home-hero-overlay p {
    font-size: 1.15rem;
    opacity: 0.75;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Home - Intro */
.home-intro {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(30px, 4vw, 60px) 0;
    text-align: center;
}

.home-intro h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.home-intro p {
    font-size: 1.05rem;
    opacity: 0.6;
}

/* Home - Portfolio Grid */
.home-portfolio {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Home carousel — peek layout: active slide centered, neighbors visible at edges */
.home-carousel {
    --slide-width: 80;
    background: var(--color-bg);
}

.home-carousel .carousel-slide {
    flex: 0 0 calc(var(--slide-width) * 1%);
    min-width: 0;
    padding: 0 0.4rem;
    box-sizing: border-box;
}

.home-carousel-slide {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-carousel-img {
    position: relative;
    aspect-ratio: 21 / 9;
    max-height: 70vh;
    overflow: hidden;
    background: var(--color-bg);
}

.home-carousel-img img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.home-carousel-img img {
    transition: width 0.6s ease, height 0.6s ease;
}

.home-carousel-slide:hover img {
    width: 108%;
    height: 108%;
}

.home-carousel-img {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.50);
    pointer-events: none;
}



.home-carousel-name {
    position: absolute;
    bottom: 2rem;
    left: 2rem;

    display: block;

    color: #fff;
    font-family: var(--font-title);
    font-size: 4.3rem;
    text-transform: uppercase;
    letter-spacing: 0rem;

    pointer-events: none;
    
    
}


.portfolio-more {
    text-align: center;
    padding: 3rem 0;
}

.portfolio-more a {
    font-size: 3rem;
    font-family: 'Fairweather';
    font-weight: 600;
    opacity: 0.4;
    transition: opacity 0.2s;
    
}

.portfolio-more a:hover {
    opacity: 1;
}

/* Home - CTA */
.home-cta {
    background: var(--color-bg);
    color: var(--color-text);
}

.home-cta-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.home-cta-inner h2 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0rem;
    margin-bottom: 0.75rem;
}

.home-cta-inner p {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* HOME */

.home-cta {
    position: relative;
}

.home-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.7rem 2.5rem;

    font-family: var(--font-title);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0rem;

    border: 2px solid var(--color-text);
    border-radius: 2px;

    background: var(--color-text);
    color: var(--color-bg);

    transition: all 0.25s ease;
}
.btn:hover {
    background: transparent;
    color: var(--color-text);
}

/* Page Header */
.page-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2rem 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* =========================
   SERVICES
========================= */

/* =========================
   SERVICES ATMOSPHERE
========================= */

.srv-section {
    position: relative;
    overflow: hidden;
}

.srv-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2rem;
    width: calc(100% - 4rem);
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* INTRO */

.process-intro {
    width: 100%;
    max-width: none;
    margin-top: 6rem;
    margin-bottom: 7rem;

    padding-left: 2rem;
    padding-right: 2rem;
}

.process-intro p {
    width: 100%;
    max-width: 1400px;
    font-size: clamp(2rem, 2.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.03em;

    color: #f3f3f3;
}

/* HUGE BACKGROUND WORD */

.bg-word {
    position: absolute;
    top: 59%;
    left: 47%;
    transform: translate(-48%, -54%);
    font-size: clamp(10rem, 22vw, 24rem);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .82;
    color: rgba(255,255,255,.010);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
}

/* KEEP CONTENT ABOVE */

.srv-inner {
    position: relative;
    z-index: 2;
}

/* HOVER */

.service-item {
    transition: all .3s ease;
}

.service-item:hover {
    transform: translateX(8px);
    color: #fff;
}

.service-item::after {
    content: "↗";
    opacity: 0;
    margin-left: .5rem;
    transition: .3s ease;
}

.service-item:hover::after {
    opacity: 1;
}

.srv-section {
    padding: 5rem 0;
}

.srv-inner {
    width: min(1600px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 5rem;
    align-items: center;
}



/* =========================
   LEFT SIDE
========================= */

.srv-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    }

.srv-title {
    font-size: clamp(10rem, 16vw, 10rem);
    line-height: 0.85;
    letter-spacing: 0rem;
    text-transform: uppercase;

    margin: 0;

    text-align: right;
}



/* =========================
   RIGHT SIDE
========================= */

.srv-content {
    max-width: 370px;
   transform: translateY(12px);
}

.srv-description {
    font-size: 1.1rem;
    line-height: 1.1;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.srv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.srv-list li {
    font-size: 1.4rem;
    line-height: 0.8;
    letter-spacing: 0rem;
    opacity: 0.7;
    padding: 0.7rem 0;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.srv-list li:last-child {
    border-bottom: none;
}



/* =========================
   SERVICES FOOTER
========================= */

.srv-footer-cta {
    position: relative;
    text-align: center;
    padding: 6rem 2rem;
}

.srv-footer-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.srv-footer-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.srv-footer-button {
    display: inline-block;
    padding: 0.7rem 2.5rem;

    font-family: var(--font-title);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0rem;

    border: 2px solid var(--color-text);
    border-radius: 2px;

    background: var(--color-text);
    color: var(--color-bg);

    transition: all 0.25s ease;
}

.srv-footer-button:hover {
    background: transparent;
    color: var(--color-text);
}



/* Process Page — Hero */

.process-intro {
  width: 100%;
  max-width: 950px;
  margin-top: 4rem;
  margin-bottom: 5rem;
  padding-left: 12rem;
  padding-right: 2rem;
}

.process-intro p {
  max-width: 1100px;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  }



.process-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 0.5rem;
    text-align: left;
}

.process-hero h1 {
    font-size: clamp(3.5rem, 13vw, 10rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.process-hero p {
    font-size: 1.48rem;
    font-weight: 200;
    line-height: 1.4;
    opacity: 1;
    max-width: 965px;
    letter-spacing: 0cm
}

/* Process Page — Timeline */
.process-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 0.5rem;
}

.process-timeline-wrapper {
    position: relative;
}

.process-timeline-track {
    position: absolute;
    left: var(--timeline-x, 50%);
    top: 15px;
    height: calc(100% - 90px);
    width: 1px;
    transform: translateX(-50%);
    z-index: 0;

    /* base grigia (sempre visibile) */
    background: repeating-linear-gradient(
        to bottom,
        var(--color-border) 0,
        var(--color-border) 4px,
        transparent 6px,
        transparent 18px
    );
}

/* layer verde sopra */
.process-timeline-track::after {
    content: "";
    position: absolute;
    inset: 0;

    background: repeating-linear-gradient(
        to bottom,
        #c6f24a 0,
        #c6f24a 4px,
        transparent 6px,
        transparent 18px
    );

    /* 🔥 qui avviene la magia */
    height: var(--timeline-progress, 0%);
    overflow: hidden;
}

.process-step {
    display: grid;
    grid-template-columns: calc(var(--timeline-x, 50%) - 35px - 3.5rem) 70px 1fr;
    column-gap: 3.5rem;
    align-items: center;
    padding: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.process-step-title {
    text-align: right;
    justify-self: end;
}

.process-step-title h2 {
    font-size: 4.8rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.process-step-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 0.6rem 0;
    background: var(--color-bg);
}

.flag-icon {
    width: 50px;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.process-step-text {
    padding-left: 0.5rem;
}

.process-step-text p {
    font-size: 1.4rem;
    font-weight: 200;
    line-height: 1.5;
    opacity: 1;
    max-width: 620px;
}

/* Process Page — CTA */
.process-cta {
    text-align: center;
    padding: 6rem 2rem;
}
.process-cta h2 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0em;
    margin-bottom: 0.75rem;
}

/* PROCESS */

.process-timeline,
.process-cta {
    position: relative;
}

.process-timeline::before,
.process-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Clients Page — Hero */
.clients-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.clients-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.clients-hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Clients Page — Work Grid */
.clients-work {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.work-item {
    display: block;
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-4px);
}

.work-thumb {
    overflow: hidden;
}

/* B/W by default, color on hover. Works for both SVG placeholders and real <img> logos. */
.work-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.work-img-placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.work-item:hover .work-img-placeholder {
    filter: grayscale(0%);
}

.work-info {
    padding: 1.25rem 0;
    text-align: center;
}

.work-name {
    display: block;
    font-family: 'Fairweather';
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0rem;
    margin-bottom: 0.25rem;
}

.work-category {
    display: block;
    font-family: "ScrittePiccole";
    font-size: 0.9rem;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.02rem;
    margin-bottom: 0.75rem;
}

.work-link {
    display: inline-block;
    font-family: "ScrittePiccole";
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.work-item:hover .work-link {
    opacity: 0.7;
    transform: translateY(0);
}

/* Clients Page — CTA */
.clients-cta {
    text-align: center;
    padding: 6rem 2rem;
    border-top: 1px solid var(--color-border);
}

.clients-cta h2 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0em;
    margin-bottom: 0.75rem;
}

.clients-cta p {
    font-size: 1.1rem;
    opacity: 0.6;
    margin-bottom: 2rem;
}

/* About - Hero */
.about-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    background: #000;
}


.about-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: right center; /* 🔥 IMPORTANTE */
}


/* About - Bio */
.about-bio {
    padding: 4rem 2rem;
    background: var(--color-light);
}
.about-hero-overlay {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);


    width: 100%;
    max-width: var(--max-width);
    padding: 0 2rem;

    z-index: 2;
}

.about-hero-overlay h1 {
    font-size: clamp(4rem, 11vw, 10rem);
    line-height: 0.8;
    text-transform: uppercase;

    max-width: none; /* 🔥 fondamentale */
}
.about-hero-overlay h1 {
    width: 120%; /* 🔥 spinge leggermente fuori */
}
.about-hero-overlay h1 {
    margin-left: -2px;
}

.about-hero-text {
    font-family: 'MozaicHUM';
    font-size: 1.4rem;
    line-height: 2rem;
    opacity: 0.85;
    letter-spacing: 0rem;
    max-width: 900px;
    margin-top: 2rem;
}

.about-bio-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-photo {
    position: sticky;
    top: 6rem;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 1.25rem;
    max-width: 540px;
}

/* About - Philosophy */
.about-philosophy {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.philosophy-block {
    margin-bottom: 4rem;
    text-align: center;
}

.philosophy-block:last-child {
    margin-bottom: 0;
}

.philosophy-block h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.philosophy-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.philosophy-block p:last-child {
    margin-bottom: 0;
}

/* About - CTA */
.about-cta {
    background: var(--color-accent);
    color: #111;
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 2rem;
}

.about-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.about-cta p {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* btn-light was meant to invert .btn on light sections. In the dark theme the base
   .btn is already light (white bg, dark text), so .btn-light is a no-op alias. */
.btn-light {
    background: var(--color-accent);
    color: #111;
}

/* Contact Form */
.contact-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: left;
}

.contact-hero h1 {
    font-size: clamp(3.5rem, 13vw, 10.35rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.contact-hero p {
    font-size: 1.5rem;
    font-weight: 200;
    line-height: 1.2;
    opacity: 1;
    max-width: 900px;
}

.contact-form-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

.contact-form--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    column-gap: 3rem;
    row-gap: 1.5rem;
}

.contact-form-left,
.contact-form-right {
    display: contents;
}

.contact-form-left .form-group {
    grid-column: 1;
}

.contact-form-right-group {
    grid-column: 2;
    grid-row: 1 / 5;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.25rem;
}

.contact-form-right-group textarea {
    height: 100%;
    resize: none !important;
}


.form-group {
    display: grid;
    gap: 0.25rem;
}

.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 200;
    font-size: 0.95rem;
    appearance: none;
    cursor: pointer;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 200;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 200;
    font-size: 0.95rem;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

/* Project Detail — Hero */
.project-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.project-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.project-meta {
    font-size: 0.9rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.project-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Project Detail — Gallery */
.project-gallery {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.project-image {
    width: 100%;
    margin-bottom: 1.5rem;
}

.project-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.project-image-placeholder img {
    max-width: 50%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-text-block {
    max-width: 640px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.project-text-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.project-text-block p:last-child {
    margin-bottom: 0;
}

/* Project Detail — Carousel */
.project-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-bg);
}

.project-carousel .carousel-btn {
    mix-blend-mode: difference;
}

.carousel-track-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide .project-image-placeholder {
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    background: var(--color-light);
    overflow: hidden;
}

.carousel-slide .project-image-placeholder img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    background: transparent;
    border: none;

    cursor: pointer;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;
}

/* Linea freccia */
.carousel-btn .arrow {
    display: block;
    width: 14px;
    height: 14px;

    border-top: 2px solid rgba(255,255,255,0.7);
    border-right: 2px solid rgba(255,255,255,0.7);

    transform: rotate(45deg);
    margin: auto;

    transition: all 0.25s ease;
}

/* Direzioni */
.carousel-btn--prev .arrow {
    transform: rotate(-135deg);
}

.carousel-btn--next .arrow {
    transform: rotate(45deg);
}

/* Hover */
.carousel-btn:hover .arrow {
    border-color: #fff;
    transform: scale(1.1) rotate(45deg);
}

.carousel-btn--prev:hover .arrow {
    transform: scale(1.1) rotate(-135deg);
}

.carousel-btn:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.2);
}

.carousel-btn--prev { left: 2rem; }
.carousel-btn--next { right: 2rem; }

.home-carousel:hover .carousel-btn,
.project-carousel:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 0 1.25rem;
    background: var(--color-bg);
}

.carousel-dot {
    width: 17px;
    height: 2px;
    background: var(--color-text);
    border: none;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.25s ease;
}

.carousel-dot.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Project Detail — Description */
.project-description {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.85;
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

.project-description p:last-child {
    margin-bottom: 0;
}

/* Project Detail — Info (title + overview) */
.project-info {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    text-align: left;
}

.project-info h1 {
    font-size: 5.2rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.project-overview-label {
    font-size: 1rem;
    font-family: "ScrittePiccole";
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.project-overview-text {
    font-size: 1.1rem;
    font-family: 'MozaicHUM';
    line-height: 1.3;
    opacity: 1;
    max-width: 900px;
}

/* Project Detail — Metadata grid */
.project-details {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--color-border);
}

.project-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-detail-label {
    font-size: 1rem;
    font-family: "ScrittePiccole";
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    opacity: 0.5;
}

.project-detail-value {
    font-family: 'MozaicHUM';
    font-size: 1rem;
    line-height: 1.4;
}

/* Project Detail — Related */
.project-related {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--color-border);
}

.project-related h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
    margin-bottom: 2rem;
    text-align: center;
}

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

.project-related-item {
    display: block;
    transition: transform 0.3s ease;
}

.project-related-item:hover {
    transform: translateY(-4px);
}

.project-related-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    margin-bottom: 0.75rem;
}

.project-related-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.project-related-cat {
    font-size: 0.8rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Project Detail — CTA */
.project-cta {
    text-align: center;
    padding: 6rem 2rem;
}

.project-cta h2 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0Rem;
    margin-bottom: 0.75rem;
}

.project-cta {
    position: relative;
}

.project-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* CLIENTS */

.project-cta {
    position: relative;
}

.project-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Footer — hard-coded white so it stays consistent across all pages, even dark ones */
footer {
    background: #fffcff;
    color: #171717;
    border-top: 1px solid #e0dede;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-size: 0.85rem;
}

footer p {
    opacity: 0.6;
}

footer a {
    color: #171717;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fffcff;
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid #e0dede;
    }

    .nav-links.open {
        display: flex;
    }

    /* Home responsive */
    .home-hero {
        min-height: 70vh;
    }

    .home-hero-overlay h1 {
        font-size: 2.2rem;
    }

    .home-hero-overlay p {
        font-size: 1rem;
    }

    .home-carousel-name {
        font-size: 1.6rem;
        letter-spacing: 0.03em;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .home-cta-inner {
        padding: 4rem 1.5rem;
    }

    .home-cta-inner h2 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 4rem 1.5rem 2rem;
    }

    /* About responsive */
    .about-hero {
        padding: 5rem 1.5rem 3rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-bio-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-photo {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-philosophy {
        padding: 4rem 1.5rem;
    }

    .philosophy-block h3 {
        font-size: 1.4rem;
    }

    .about-cta {
        padding: 3.5rem 1.5rem;
    }

    .about-cta h2 {
        font-size: 1.6rem;
    }

    /* Process responsive */
    .process-hero {
        padding: 5rem 1.5rem 3rem;
    }

    .process-step {
        grid-template-columns: 40px 1fr;
        column-gap: 1.5rem;
        padding: 2.5rem 0;
    }

    .process-step-title {
        display: none;
    }

    .process-step-marker {
        grid-row: 1;
        grid-column: 1;
        justify-content: center;
    }

    .flag-icon {
        width: 28px;
    }

    .process-step-text {
        grid-column: 2;
        padding-left: 0;
    }

    .process-step-text::before {
    content: attr(data-title);

    display: block;

    font-family: var(--font-title);

    font-size: clamp(2.2rem, 9vw, 4rem);
    line-height: 0.85;

    text-transform: uppercase;

    margin-bottom: 1rem;
}

    .process-timeline-track {
        left: 20px;
    }

    /* Project detail responsive */
    .project-hero {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .project-hero h1 {
        font-size: 2rem;
    }

    .project-image-placeholder {
        aspect-ratio: 4 / 3;
    }

    .project-related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-cta {
        padding: 4rem 1.5rem;
    }

    .project-cta h2 {
        font-size: 1.8rem;
    }

    .carousel-btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.95rem;
    }

    .carousel-btn--prev { left: 0.75rem; }
    .carousel-btn--next { right: 0.75rem; }

    .project-description {
        padding: 3rem 1.5rem;
    }

    .project-description p {
        font-size: 1rem;
    }

}

/* Legal Pages (Privacy & Cookie) */
.legal-content {
    padding: 4rem 2rem 6rem;
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
}

.legal-inner h2 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.legal-inner p,
.legal-inner li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    opacity: 0.85;
}

.legal-inner ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}

.legal-inner a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Cookie table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.cookie-table th {
    background: var(--color-light);
    font-weight: 600;
    color: var(--color-accent);
}

.cookie-table td {
    opacity: 0.85;
}

/* Consent checkbox */
.form-group--consent {
    margin-top: 0.5rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.consent-label a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================
   ABOUT TEXT SWITCH
========================= */

/* desktop */

.about-text-mobile {
    display: none;
}

/* mobile */

@media (max-width: 900px) {

    .about-text-desktop {
        display: none;
    }

    .about-text-mobile {
        display: block;
    }

}

/* =========================
   MOBILE MENU — GLOBAL
========================= */

.mobile-menu {
    position: fixed;
    inset: 0;

    background: #fffcff;

    z-index: 99999;

    padding: 2rem;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

/* CLOSE */

.mobile-close {
    position: absolute;

    top: 1.5rem;
    right: 1.5rem;

    background: none;
    border: none;

    color: #111;

    font-size: 2.5rem;
    line-height: 1;

    cursor: pointer;
}

/* LINKS */

.mobile-nav {
    position: absolute;

    top: 6rem;
    right: 2rem;

    display: flex;
    flex-direction: column;

    align-items: flex-end;

    text-align: right;

    gap: 0.2rem;
}

.mobile-nav a {
    font-family: var(--font-title);

    font-size: clamp(5.5rem, 18vw, 9rem);

    line-height: 0.78;

    text-transform: uppercase;

    color: #171717;
}

/* DESKTOP */

@media (min-width: 901px) {

    .mobile-menu {
        display: none;
    }

}

/* =========================
   MOBILE MENU — GLOBAL
========================= */

.mobile-menu {
    position: fixed;
    inset: 0;

    background: #fffcff;

    z-index: 99999;

    padding: 2rem;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

/* CLOSE */

.mobile-close {
    position: absolute;

    top: 1.5rem;
    right: 1.5rem;

    background: none;
    border: none;

    color: #111;

    font-size: 2.5rem;
    line-height: 1;

    cursor: pointer;
}

/* LINKS */

.mobile-nav {
    position: absolute;

    top: 6rem;
    right: 2rem;

    display: flex;
    flex-direction: column;

    align-items: flex-end;

    text-align: right;

    gap: 0.2rem;
}

.mobile-nav a {
    font-family: var(--font-title);

    font-size: clamp(5.5rem, 18vw, 9rem);

    line-height: 0.78;

    text-transform: uppercase;

    color: #171717;
}

/* DESKTOP */

@media (min-width: 901px) {

    .mobile-menu {
        display: none;
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    /* HEADER */

    nav {
        padding: 1.5rem;
    }

    .logo-img-wordmark {
        height: 28px;
    }

    .logo-img-icon {
        height: 42px;
    }

    /* HAMBURGER */

.menu-toggle {
    display: block;

    position: relative;
    isolation: isolate;

    width: 42px;
    height: 42px;

    padding: 0;

    background: none;
    border: none;

    cursor: pointer;

    z-index: 100001;
}

.menu-toggle span {
    position: absolute;

    left: 50%;

    width: 30px;
    height: 2px;

    background: #111;

    transform: translateX(-50%);

    transition:
        top 0.35s cubic-bezier(.77, 0, .18, 1),
        transform 0.35s cubic-bezier(.77, 0, .18, 1),
        opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
    top: 15px;
}

.menu-toggle span:nth-child(2) {
    top: 25px;
}

.menu-toggle.active span:nth-child(1) {
    top: 20px;

    transform:
        translateX(-50%)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    top: 20px;

    transform:
        translateX(-50%)
        rotate(-45deg);
}

/* MENU OPEN */

body.menu-open header {
    z-index: 100000;

    background: transparent;
    border-bottom: none;
}

body.menu-open .logo {
    visibility: hidden;
}

.nav-links {
    display: none;
}
    /* HOME */

    .home-hero {
        min-height: 70vh;
    }

    .home-hero-overlay {
        right: 1.5rem;
        left: 1.5rem;

        padding: 0;
        
        text-align: right;
    }

   .home-hero-overlay h1{
    line-height: 0.82;
}



.home-title-desktop{
    display: none;
}

/* DESKTOP */

.home-title-mobile{
    display: none;
}

/* MOBILE */

@media (max-width: 900px){

    .home-title-desktop{
        display: none;
    }

    

}


.home-hero-video{
    object-position: 20% center;
}

    .home-hero-overlay p {
        font-size: 1rem;
    }

    .home-carousel-name {
        font-size: 1.8rem;
        left: 1rem;
        bottom: 1rem;
    }

    .home-cta-inner {
        padding: 4rem 1.5rem;
    }

    .home-cta-inner h2 {
        font-size: 2.4rem;
        line-height: 0.9;
    }

    /* SERVICES */
    
.process-intro {
    padding: 4rem 1.4rem 3rem;

    width: 100%;
    max-width: 100%;

    margin: 0 auto;
}
.process-intro p {
    width: 100%;
    max-width: 100%;

    text-align: left;
}
    .srv-section {
        padding: 4rem 1.5rem;
    }

    .srv-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .srv-left {
        justify-content: flex-start;
    }

    .srv-title {
        font-size: clamp(4rem, 20vw, 7rem);

        text-align: left;

        line-height: 0.82;
    }

    .srv-content {
        max-width: 100%;

        transform: none;
    }

    .srv-description {
        font-size: 1rem;
    }
    

    .srv-list li {
        font-size: 1.2rem;
    }

    .srv-footer-title {
        font-size: 2.6rem;
        line-height: 0.9;
    }

    /* PROCESS */

.process-hero {
    padding: 3rem 1.5rem 2rem;
}

.process-hero h1{
    font-size: 5.6rem;

    line-height: 0.85;
    margin-bottom: 1rem;
    max-width: 11ch;
}

.process-hero p {
    font-size: 1.1rem;
     max-width: 85%;
}

.process-hero p span{
    display: block;
}
.process-step {
    grid-template-columns: 40px 1fr;
    column-gap: 1rem;
}

.process-step-title {
    display: none;
}

.process-step-marker {
    grid-column: 1;
}

.process-step-text {
    grid-column: 2;
    padding-left: 0;
}

.process-step-text::before {
    content: attr(data-title);

    display: block;

    font-family: var(--font-title);

    font-size: clamp(2.2rem, 9vw, 4rem);
    line-height: 0.85;

    text-transform: uppercase;

    margin-bottom: 1rem;
}

.process-timeline-track {
    left: 20px;
    height: calc(100% - 120px);
}

.process-step-text p {
    font-size: 1rem;
}

.process-timeline-track {
    left: 20px;
}

/* CTA MOBILE FIX */

.process-cta h2,
.clients-cta h2 {
    font-size: 2.6rem;
    line-height: 0.9;
    white-space: nowrap;
}


    /* CLIENTS */

    @media (max-width: 900px) {

    /* CLIENTS */

    .work-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 1.5rem 3rem;
    }

    .work-item {
        text-align: center;
    }

    /* LOGO AREA */

    .work-thumb {
        margin-bottom: 0.8rem;
    }

    .work-img-placeholder {
        height: auto !important;
        min-height: auto !important;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* LOGOS */

    .work-img-placeholder img {
        width: auto !important;
        height: 300px !important;
        max-width: 85vw;

        object-fit: contain;

        filter: none !important;
        -webkit-filter: none !important;
        opacity: 1 !important;

        animation: clientFade 0.8s ease both;
    }
.work-item,
.work-thumb,
.work-img-placeholder,
.work-img-placeholder img {
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
}


    /* TEXT */

    .work-info {
    margin-top: -0.8rem !important;
}

    .work-name {
        font-size: 1.4rem;
        margin-bottom: 0.15rem;
        line-height: 1;
    }

    .work-category {
        font-size: 0.9rem;
        font-family: 'ScrittePiccole';
        opacity: 0.5;
    }

    .work-link {
        display: none;
    }

    /* STAGGER */

    .work-item:nth-child(1) img { animation-delay: 0.05s; }
    .work-item:nth-child(2) img { animation-delay: 0.1s; }
    .work-item:nth-child(3) img { animation-delay: 0.15s; }
    .work-item:nth-child(4) img { animation-delay: 0.2s; }
    .work-item:nth-child(5) img { animation-delay: 0.25s; }
    .work-item:nth-child(6) img { animation-delay: 0.3s; }

    /* FADE */

    @keyframes clientFade {

        from {
            opacity: 0;
            transform: translateY(25px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }

    }

}

    

    /* ABOUT */

    .about-hero {
    min-height: 100vh;

    position: relative;

    overflow: hidden;
}

.about-hero-img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 81% center;

    position: absolute;
    inset: 0;
}

.about-hero-overlay {
    position: relative;

    z-index: 2;

    padding: 7rem 1.5rem 3rem;
}

.about-hero-overlay h1 {
    font-size: clamp(5rem, 24vw, 8rem);

    line-height: 0.8;

    max-width: 3ch;

    margin-top: -5rem;

    margin-bottom: 2rem;
}

.about-hero-text {
    max-width: 95%;

    font-size: 1rem;

    line-height: 1.5;
}

.about-hero-text span{
    display: block;
}

    /* CONTACT */

    .contact-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .contact-hero h1 {
        font-size: clamp(3rem, 18vw, 6rem);
    }

    .contact-hero p {
        font-size: 1.1rem;
    }

    .contact-form--split {
        grid-template-columns: 1fr;
    }

    .contact-form-left .form-group,
    .contact-form-right-group {
        grid-column: auto;
        grid-row: auto;
    }

    /* =========================
       PROJECT
    ========================= */

    /* DESKTOP CAROUSEL OFF */

    .desktop-carousel {
        display: none;
    }

    /* MOBILE HERO */

    .project-mobile-hero {
        display: block;
    }

    .project-mobile-hero img {
        width: 100%;
        height: auto;
        display: block;
    }


    
    /* INFO */

    .project-info h1 {
        font-size: clamp(3rem, 16vw, 5rem);

    }

    .project-details {
        grid-template-columns: 1fr 1fr;
    }

    .project-related-grid {
        grid-template-columns: 1fr;
    }

    .project-cta h2 {
        font-size: 2.5rem;
    }

    /* CTA MOBILE FIX */

.process-cta h2,
.clients-cta h2 {
    font-size: 2.6rem;
    line-height: 0.9;
    white-space: nowrap;
}

    /* MOBILE STACKED GALLERY */

    .mobile-project-gallery {
        display: flex;
        flex-direction: column;
    }

    .mobile-project-gallery img {
        width: 100%;
        display: block;
    }

    .project-services .project-detail-value {
        white-space: nowrap;
    }


    /* FOOTER */

    footer {
        padding: 1.5rem;
    }

}

/* =========================
   MOBILE PROJECT
========================= */

.mobile-cover {
    display: none;
}

.mobile-project-gallery {
    display: none;
}

/* =========================
   MOBILE PROJECT
========================= */

.project-mobile-cover,
.mobile-project-gallery {
    display: none;
}

/* MOBILE */

@media (max-width: 900px) {

    /* MOBILE COVER */

    .project-mobile-cover {
        display: block;
    }

    .project-mobile-cover img {
        width: 100%;
        display: block;
    }

    /* HIDE DESKTOP CAROUSEL */

    .project-carousel {
        display: none;
    }

    /* KEEP HOME CAROUSEL VISIBLE ON MOBILE */

    .project-carousel.home-carousel {
        display: block;
    }

    .home-carousel {
        --slide-width: 100;
    }

    .home-carousel .carousel-slide {
        padding: 0;
    }

    .home-carousel-img {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .home-carousel .carousel-btn {
        opacity: 1;
        pointer-events: auto;
    }

    .home-carousel .carousel-dots {
        padding: 1.25rem 0 1.5rem;
        gap: 0.4rem;
    }

    .home-carousel .carousel-dot {
        width: 10px;
        height: 1px;
    }

    /* STACKED GALLERY */

    .mobile-project-gallery {
        display: flex;
        flex-direction: column;
    }

    .mobile-project-gallery img {
        width: 100%;
        display: block;
    }

@media (max-width: 900px){

    .home-hero-overlay .home-title-mobile{
        display: block;

        font-size: clamp(6rem, 24vw, 8.5rem);

        line-height: 0.8;

        letter-spacing: 0;
        
        
    }

    .home-hero-overlay .home-title-desktop{
        display: none;
    }

}


    
}