:root {
    --deep-blue: #0a0c10;
    --dark-blue: #14171f;
    --mushroom: #e9e7e1;
    --light-grey: #f3f1ec;
    --beige: #dcd8cc;
    --orange: #ff7e15;
    --text-light: #ffffff;
    --text-dark: #14171f;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-muted-dark: rgba(20, 23, 31, 0.6);
    --border: rgba(255, 255, 255, 0.12);
    --border-dark: rgba(20, 23, 31, 0.12);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-slow: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: auto;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--deep-blue);
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a, button {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

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

.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
    mix-blend-mode: difference;
}

.cursor.expanded {
    width: 64px;
    height: 64px;
    background: rgba(255, 126, 21, 0.15);
    border: 1px solid var(--orange);
    mix-blend-mode: normal;
}

.cursor-label {
    position: fixed;
    top: 0;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

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

@media (pointer: coarse) {
    .cursor, .cursor-label {
        display: none;
    }
    body, a, button {
        cursor: auto;
    }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 900;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent calc(8.333% - 1px),
        rgba(255, 255, 255, 0.04) calc(8.333% - 1px),
        rgba(255, 255, 255, 0.04) 8.333%
    );
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.75rem 4vw;
    mix-blend-mode: difference;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
    mix-blend-mode: normal;
}

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

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.7;
    transition: opacity 0.3s var(--ease);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: width 0.4s var(--ease);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 1.8rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-light);
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.nav-cta:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.music-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-light);
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.music-toggle:hover,
.music-toggle.playing {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--text-light);
}

.music-toggle svg {
    display: block;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--text-light);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: var(--deep-blue);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 2rem;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-slow), opacity 0.6s var(--ease-slow), visibility 0.6s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu a {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--text-light);
    opacity: 0.7;
    transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    opacity: 1;
    color: var(--orange);
}

.mobile-menu .mobile-cta {
    margin-top: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    opacity: 1;
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-bg video {
    position: absolute;
    inset: 0;
}

@keyframes heroZoom {
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 12, 16, 0.85) 0%, rgba(10, 12, 16, 0.5) 45%, rgba(10, 12, 16, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 900px;
    padding: 0 6vw;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 0;
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hero-eyebrow span {
    display: inline-block;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4rem, 12vw, 11rem);
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    filter: blur(8px);
    will-change: transform, opacity, filter;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 520px;
    overflow: hidden;
}

.hero-subtitle span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    filter: blur(6px);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s var(--ease) 1.2s forwards;
}

.scroll-indicator span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--orange), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.5; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.section-header {
    padding: 10rem 0 4rem;
    text-align: center;
}

.section-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.25rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.1;
    color: var(--text-dark);
}

.projects-section {
    background-color: var(--mushroom);
    color: var(--text-dark);
    position: relative;
}

.accordion {
    display: flex;
    height: 85vh;
    min-height: 600px;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.accordion-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.8s var(--ease-slow);
    border-right: 1px solid var(--border-dark);
}

.accordion-item:last-child {
    border-right: none;
}

.accordion:hover .accordion-item {
    flex: 0.6;
}

.accordion:hover .accordion-item:hover {
    flex: 3.4;
}

.accordion-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.accordion-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-slow);
}

.accordion-item:hover .accordion-image {
    transform: scale(1.08);
}

.accordion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 23, 31, 0.2) 0%, rgba(20, 23, 31, 0.7) 100%);
    transition: background 0.6s var(--ease);
    z-index: 1;
}

.accordion-item:hover .accordion-overlay {
    background: linear-gradient(180deg, rgba(20, 23, 31, 0.4) 0%, rgba(20, 23, 31, 0.85) 100%);
}

.accordion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: var(--text-light);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
}

.accordion-number {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: auto;
    padding-top: 1rem;
}

.accordion-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: left bottom;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    transition: transform 0.6s var(--ease-slow);
}

.accordion:hover .accordion-item:hover .accordion-title {
    transform: rotate(0) translateX(0);
    position: relative;
    bottom: auto;
    left: auto;
}

.accordion-category {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s;
}

.accordion-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 360px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease) 0.2s, transform 0.5s var(--ease) 0.2s;
}

.accordion-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease) 0.3s, transform 0.5s var(--ease) 0.3s;
}

.accordion-cta::after {
    content: '\2192';
    font-size: 1rem;
    transition: transform 0.3s var(--ease);
}

.accordion-item:hover .accordion-category,
.accordion-item:hover .accordion-excerpt,
.accordion-item:hover .accordion-cta {
    opacity: 1;
    transform: translateY(0);
}

.accordion-item:hover .accordion-cta:hover::after {
    transform: translateX(6px);
}

.about {
    padding: 12rem 0;
    background-color: var(--mushroom);
    color: var(--text-dark);
    border-top: 1px solid var(--border-dark);
}

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

.about-label .section-eyebrow {
    color: var(--orange);
}

.about-body {
    max-width: 800px;
}

.about-lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.about-body > p:not(.about-lead) {
    font-size: 1.05rem;
    color: var(--text-muted-dark);
    margin-bottom: 1.5rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
    padding-top: 4rem;
    border-top: 1px solid var(--border-dark);
}

.service {
    position: relative;
}

.service-num {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 1rem;
}

.service h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.service p {
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    line-height: 1.6;
}

.about-cta {
    display: inline-flex;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1.1rem 2.2rem;
    border: 1px solid var(--border-dark);
    border-radius: 100px;
    color: var(--text-dark);
    transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.about-cta:hover {
    background: var(--text-dark);
    color: var(--text-light);
    border-color: var(--text-dark);
}

.footer {
    background-color: var(--deep-blue);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8rem 0 3rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.footer-top {
    text-align: center;
}

.footer-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.5rem;
}

.footer-email {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 500;
    font-style: italic;
    color: var(--text-light);
    transition: color 0.4s var(--ease);
}

.footer-email:hover {
    color: var(--orange);
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: flex-end;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: italic;
    line-height: 1.2;
}

.footer-quote span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer-links a:hover {
    color: var(--text-light);
    transform: translateX(6px);
}

.footer-credit {
    padding-top: 4rem;
    text-align: center;
}

.footer-credit p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* .reveal is animated by GSAP ScrollTrigger (desktop) — no CSS transition here, they fight.
   On touch devices the media-query override makes content instantly visible. */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

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

/* Project Landing Pages */
.project-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10rem 4vw 6rem;
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.2) 0%, rgba(10, 12, 16, 0.75) 100%);
}

.project-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: flex-end;
}

.project-hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.project-hero-lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-style: italic;
    color: var(--text-muted);
    max-width: 500px;
}

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

.meta-item h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.meta-item p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.project-description {
    background-color: var(--mushroom);
    color: var(--text-dark);
    padding: 8rem 0;
}

.description-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

.description-grid h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.1;
}

.description-grid p {
    font-size: 1.1rem;
    color: var(--text-muted-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-gallery {
    padding: 6rem 0;
    background-color: var(--mushroom);
}

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

.project-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-gallery-grid img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

/* Natural gallery stack — preserves artwork aspect ratios */
.project-gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-gallery-stack img {
    width: 100%;
    height: auto;
    display: block;
}

.project-nav {
    background-color: var(--deep-blue);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.project-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-nav a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-nav a span {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-nav a strong {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color 0.3s var(--ease);
}

.project-nav a:hover strong {
    color: var(--orange);
}

/* Responsive */
@media (max-width: 1024px) {
    .accordion {
        height: auto;
        min-height: auto;
        flex-direction: column;
    }

    .accordion-item {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
        height: 80px;
        transition: height 0.6s var(--ease-slow), flex 0.6s var(--ease-slow);
        flex: none !important;
    }

    .accordion:hover .accordion-item,
    .accordion:hover .accordion-item:hover {
        flex: none !important;
    }

    .accordion-item:hover {
        height: 320px;
    }

    .accordion-title {
        transform: none;
        position: relative;
        bottom: auto;
        left: auto;
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .accordion-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: auto;
        padding: 1.5rem;
    }

    .accordion-number {
        margin-bottom: 0;
        padding-top: 0;
    }

    .accordion-category,
    .accordion-excerpt,
    .accordion-cta {
        display: none;
    }

    .accordion-item:hover .accordion-category,
    .accordion-item:hover .accordion-excerpt,
    .accordion-item:hover .accordion-cta {
        display: block;
    }

    .accordion-item:hover .accordion-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .accordion-item:hover .accordion-number {
        margin-bottom: auto;
        padding-top: 1rem;
    }

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

    .services {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

@media (max-width: 768px) {
    .header {
        padding: 1.25rem 5vw;
    }

    .menu-toggle {
        display: flex;
    }

    .nav,
    .nav-cta {
        display: none;
    }

    .header-inner {
        gap: 1rem;
    }

    .nav {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .nav-cta {
        padding: 0.7rem 1.2rem;
        font-size: 0.65rem;
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 6rem);
    }

    .hero-content {
        text-align: center;
        margin: auto;
        padding: 0 6vw;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(10, 12, 16, 0.7) 0%, rgba(10, 12, 16, 0.5) 50%, rgba(10, 12, 16, 0.7) 100%);
    }

    .section-header {
        padding: 6rem 0 3rem;
    }

    .footer {
        padding: 6rem 0 2rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

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

    .project-gallery-grid img:first-child {
        aspect-ratio: 4 / 3;
    }

    .about {
        padding: 6rem 0;
    }

    .project-description {
        padding: 5rem 0;
    }

    .project-gallery {
        padding: 4rem 0;
    }

    .project-hero {
        min-height: 90vh;
        padding: 8rem 5vw 4rem;
    }

    .footer {
        padding: 5rem 0 2rem;
    }

    .hero {
        min-height: 100svh;
    }

    .services {
        margin: 2.5rem 0;
        padding-top: 2.5rem;
    }
}

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


/* ===== Mobile polish — phone-first refinements ===== */
@media (max-width: 768px) {
    /* Typography & rhythm */
    body { font-size: 15px; }
    .container { width: 88%; }
    .section-title { font-size: clamp(2rem, 9vw, 2.8rem); }
    .section-header { padding: 5rem 0 2.5rem; }

    /* Hero: use real mobile viewport height, centered content */
    .hero {
        height: 100svh;
        min-height: 100svh;
        align-items: flex-end;
    }
    .hero-content {
        text-align: left;
        padding-bottom: 5.5rem;
    }
    .hero-title { font-size: clamp(2.8rem, 15vw, 4.5rem); line-height: 0.95; }
    .hero-subtitle { font-size: 1.05rem; }
    .scroll-indicator { display: none; }

    /* Header: compact */
    .header { padding: 1rem 5vw; }
    .logo-img { height: 26px; }

    /* Projects accordion → tall clean cards, content pinned to bottom, no overlap */
    .accordion { border-top: none; display: block; padding: 0 4%; }
    .accordion-item {
        height: auto !important;
        flex: none !important;
        border-bottom: none;
        border-radius: 0 !important;
        overflow: hidden;
        margin: 0 0 1.5rem 0;
        position: relative;
    }
    .accordion-item:hover { height: auto !important; }
    .accordion-link {
        display: block;
        position: relative;
        height: 420px;
    }
    .accordion-image { height: 100% !important; width: 100%; object-fit: cover; }
    .accordion-overlay {
        background: linear-gradient(180deg, rgba(20,23,31,0) 30%, rgba(20,23,31,0.55) 62%, rgba(20,23,31,0.92) 100%) !important;
    }
    .accordion-content {
        position: absolute !important;
        inset: auto 0 0 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        padding: 1.5rem !important;
        min-height: 0 !important;
    }
    .accordion-number {
        position: absolute;
        top: 1.1rem;
        left: 1.5rem;
        margin: 0 !important;
        padding: 0.3rem 0.75rem !important;
        background: rgba(20,23,31,0.55);
        backdrop-filter: blur(6px);
        border-radius: 0 !important;
        font-size: 0.75rem !important;
    }
    .accordion-title {
        transform: none !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        white-space: normal !important;
        font-size: 1.6rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.05;
    }
    .accordion-category {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.65rem !important;
        color: var(--orange) !important;
        letter-spacing: 0.2em !important;
    }
    .accordion-excerpt { display: none !important; }
    .accordion-cta {
        display: inline-flex !important;
        opacity: 1 !important;
        transform: none !important;
        font-size: 0.7rem !important;
        background: var(--orange);
        color: #fff !important;
        padding: 0.7rem 1.4rem !important;
        border-radius: 0 !important;
    }
    .accordion-cta::after { font-size: 0.9rem; }

    /* About */
    .about { padding: 5rem 0; }
    .about-lead { font-size: 1.5rem; }
    .services { margin: 2rem 0; padding-top: 2rem; gap: 1.5rem; }

    /* Footer */
    .footer { min-height: auto; padding: 5rem 0 6rem; }
    .footer-inner { gap: 3rem; }
    .footer-email { font-size: clamp(1.4rem, 7vw, 2.2rem); word-break: break-all; }
    .footer-bottom { gap: 2rem; }
    .footer-quote { font-size: 1.25rem; }

    /* Project pages */
    .project-hero {
        min-height: 88svh;
        padding: 7rem 5vw 3rem;
        align-items: flex-end;
    }
    .project-hero-title { font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1; }
    .project-hero-lead { font-size: 1.1rem; }
    .project-meta { gap: 1rem; }
    .meta-item p { font-size: 0.8rem; word-break: break-word; }
    .project-description { padding: 4rem 0; }
    .description-grid p { font-size: 1rem; }
    .project-gallery { padding: 3rem 0; }
    .project-gallery-stack { gap: 0.75rem; }
    .project-gallery-grid { gap: 0.75rem; }
    .project-nav { padding: 2.5rem 0; }
    .project-nav a strong { font-size: 1.05rem; }
    /* Arabic RTL project nav spacing */
    .project-nav-inner { gap: 1rem; }

    /* Music + menu buttons: bigger touch targets, safe-area */
    .music-toggle, .menu-toggle { width: 40px; height: 40px; }
    .mobile-menu a { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* Very small phones */
@media (max-width: 380px) {
    .accordion-link { height: 380px; }
    .accordion { padding: 0 4%; }
    .accordion-title { font-size: 1.3rem !important; }
    .hero-title { font-size: 2.6rem; }
    .footer-email { font-size: 1.3rem; }
}

/* Tablet portrait fine-tuning */
@media (min-width: 769px) and (max-width: 1024px) {
    .accordion-item { height: 96px; }
    .accordion-item:hover { height: 380px; }
    .hero { min-height: 90svh; }
}

/* iOS: prevent auto-zoom on inputs + tap highlight */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }


/* ===== No reveal-lag on touch devices: content visible immediately ===== */
@media (hover: none) and (pointer: coarse) {
    .reveal,
    .section-header {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    /* gallery/clip reveal animations also skip */
    .project-gallery-grid img,
    .project-gallery-stack img {
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
        transition: none !important;
    }
}


/* IO-driven reveal — guaranteed visible once in view (works with or without GSAP) */
.reveal.io-visible, .section-header.io-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.9s var(--ease-slow), transform 0.9s var(--ease-slow);
}
/* Touch devices: everything visible instantly (no animation at all) */
@media (hover: none) and (pointer: coarse) {
    .reveal.io-visible, .section-header.io-visible { transition: none !important; }
}
