/* 
  Vibe Portfolio Theme 
  Aesthetic: High-contrast Editorial, Minimalist, Premium
  Colors: Light Brown Pastel (#F5F0E6), Black (#000000), Orange (#FF4500)
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #F5F0E6;
    --text-color: #000000;
    --accent-color: #FF4500;
    --secondary-text: #555555;
    --font-serif: "Fraunces", serif;
    --font-sans: "IBM Plex Sans", sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --spacing-xxl: 12rem;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 0;
    /* For page transition */
    animation: pageFadeIn 1s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

h1,
h2,
h3,
.serif {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.text-italic {
    font-style: italic;
    font-family: inherit;
}

p,
a,
span,
.sans {
    font-family: var(--font-sans);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.site-footer {
    color: rgba(0, 0, 0, 0.56);
}

.site-footer a {
    color: rgba(0, 0, 0, 0.56);
}

.site-footer a:hover {
    color: #000;
    opacity: 1;
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.section {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.flex {
    display: flex;
    gap: var(--spacing-md);
}

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

.justify-between {
    justify-content: space-between;
}

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

/* Taglines & Small Text */
.tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: calc(var(--spacing-md) * 0.8) 0;
    z-index: 1000;
    background: rgba(14, 14, 14, 0.72);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transform: translateY(0);
    transition: transform 0.32s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.header.is-scrolled {
    background: rgba(14, 14, 14, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.header.is-hidden:not(:focus-within) {
    transform: translateY(calc(-100% - 2px));
}

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

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

.nav-links {
    display: flex;
    gap: clamp(1.15rem, 1.9vw, 2rem);
    align-items: center;
}

.nav-links a {
    position: relative;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    color: #f4ede4;
    opacity: 1;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.6rem;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.logo,
.header.is-scrolled .logo {
    color: #f4ede4;
}

.nav-links a.btn-primary,
.header.is-scrolled .nav-links a.btn-primary {
    color: #fff;
}

.nav-links .header-cta {
    min-height: 2.9rem;
    padding: 0.72rem 1.25rem;
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: clamp(150px, 18vw, 240px);
    flex-shrink: 0;
}

.logo-image img {
    width: 100%;
    height: auto;
    display: block;
}

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border: 0;
    background: transparent;
    color: var(--accent-color);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
    flex-shrink: 0;
    opacity: 1;
    visibility: visible;
}

.nav-toggle:hover {
    background: transparent;
    color: #ff6a2a;
}

.nav-toggle-lines {
    position: relative;
    width: 24px;
    height: 16px;
    display: block;
    color: var(--accent-color);
}

.nav-toggle-lines::before,
.nav-toggle-lines::after,
.nav-toggle-lines span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle-lines::before {
    top: 0;
}

.nav-toggle-lines span {
    top: 7px;
}

.nav-toggle-lines::after {
    top: 14px;
}

.menu-open .nav-toggle-lines::before {
    top: 7px;
    transform: rotate(45deg);
}

.menu-open .nav-toggle-lines span {
    opacity: 0;
}

.menu-open .nav-toggle-lines::after {
    top: 7px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(14, 14, 14, 0.92);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

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

.mobile-menu-panel {
    min-height: 100svh;
    padding: calc(96px + 1.25rem) 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.mobile-menu-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.mobile-menu-links a {
    position: relative;
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 10vw, 4.4rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    color: #f4ede4;
}

.mobile-menu-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-links a.is-active,
.mobile-menu-links a[aria-current="page"] {
    color: var(--accent-color);
}

.mobile-menu-cta {
    width: fit-content;
    min-width: 13rem;
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.mobile-menu-social a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(244, 237, 228, 0.76);
}

.mobile-menu-social a:hover {
    color: var(--accent-color);
}

/* Updated Squared Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.95rem 2.35rem;
    border: 1px solid var(--accent-color);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 0;
    /* Squared */
}

.btn:hover {
    background: var(--text-color);
    border-color: var(--text-color);
    color: var(--bg-color);
}

.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background: #ff6a2a;
    border-color: #ff6a2a;
    color: #fff;
}

.btn-secondary {
    border: 1px solid var(--accent-color);
    color: var(--text-color);
}

/* White Text for Hero Buttons */
.hero .btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.hero .btn-secondary:hover {
    background: #ffffff;
    color: #000000;
}

/* Hero Section Refinement */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-illustrated {
    min-height: 100svh;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    padding: calc(110px + 2rem) 0 0;
    background: #0e0e0e;
}

.hero-illustrated::after {
    display: none;
}

.hero-content {
    max-width: 1100px;
    /* Wider for impact */
    z-index: 2;
    color: #fff;
    /* Contrast with dark background */
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    transform: translateY(clamp(2.5rem, 5vw, 4.75rem));
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    /* Reduced by ~30% for elegance */
    line-height: 0.95;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    max-width: 650px;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.about-hero {
    padding-top: calc(var(--spacing-xl) * 1.3);
}

.hero .flex {
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

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

.hero-illustrated .hero-content .tagline {
    margin-bottom: 1.1rem;
}

.hero-illustrated .hero-content h1 {
    max-width: 27ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(3.1rem, 6.4vw, 5.75rem);
    line-height: 0.92;
    color: #f4ede4;
}

.hero-typing {
    position: relative;
    display: block;
    overflow: visible;
}

.hero-typing-sizer,
.hero-typing-live,
.hero-typing-line,
.hero-typing-segment {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.hero-typing .text-italic {
    font-family: inherit;
}

.hero-typing-live {
    position: absolute;
    inset: 0;
    display: none;
}

.hero-typing.is-enhanced .hero-typing-sizer {
    visibility: hidden;
}

.hero-typing.is-enhanced .hero-typing-live {
    display: block;
}

.hero-typing-line {
    display: block;
    min-height: 1em;
}

.hero-typing-line.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.84em;
    margin-left: 0.08em;
    background: rgba(244, 237, 228, 0.92);
    vertical-align: -0.06em;
    animation: heroCaretBlink 0.8s steps(1) infinite;
}

.hero-illustrated .hero-subtitle {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(244, 237, 228, 0.84);
    font-size: clamp(0.82rem, 1.45vw, 1.1rem);
    margin-bottom: calc(var(--spacing-lg) * 0.7);
}

.hero-illustrated .hero-actions .btn {
    padding: 0.8rem 2rem;
    font-size: 0.68rem;
}

.hero-illustrated .btn-secondary {
    color: #f4ede4;
    border-color: rgba(255, 255, 255, 0.38);
}

.hero-illustrated .btn-secondary:hover {
    background: #f4ede4;
    color: #0e0e0e;
    border-color: #f4ede4;
}

.hero-art {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: clamp(2rem, 7vw, 6rem);
}

.hero-art img {
    width: min(100vw, 1600px);
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    opacity: 0;
    animation: heroArtworkIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.45s;
}

@keyframes heroArtworkIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }

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

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

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

@keyframes heroCaretBlink {
    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }
}

/* Quote Section */
.quote-section {
    background: #000;
    color: #fff;
    padding: var(--spacing-xxl) 0;
}

.quote-content {
    max-width: 1000px;
    margin: 0 auto;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.quote-author {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.quote-author-meta {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.quote-author-name {
    opacity: 0.68;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

.quote-author-note {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.quote-author-photo {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 32%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

/* About Timeline */
.about-timeline {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
    gap: var(--spacing-xl);
    align-items: start;
}

.about-timeline__intro {
    position: sticky;
    top: 140px;
}

.about-timeline__intro h2 {
    max-width: 9ch;
    font-size: 3.6rem;
    line-height: 0.98;
}

.timeline-list {
    position: relative;
    display: grid;
    gap: 0;
}

.timeline-list::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.44rem;
    width: 1px;
    background: rgba(0, 0, 0, 0.16);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(9rem, 0.36fr) minmax(0, 1fr);
    gap: clamp(1.2rem, 3vw, 2.4rem);
    padding: 0 0 var(--spacing-lg) 2.4rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.38rem;
    width: 0.88rem;
    height: 0.88rem;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--bg-color);
}

.timeline-date {
    color: var(--accent-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.timeline-content {
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: 0.45rem;
}

.timeline-content p {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.timeline-content span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(0, 0, 0, 0.58);
    font-size: 0.92rem;
}

.about-timeline__cta {
    grid-column: 2;
    padding-left: 2.4rem;
}

/* Brand Grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: calc(var(--spacing-md) * 0.7);
    align-items: center;
    padding: var(--spacing-lg) 0;
    filter: none;
    opacity: 1;
}

.brand-grid--four {
    grid-template-columns: repeat(4, 1fr);
}

.brand-strip {
    padding-top: calc(var(--spacing-xl) * 0.45);
    padding-bottom: calc(var(--spacing-xl) * 0.45);
}

.brand-strip--worked-at {
    padding-top: calc(var(--spacing-xl) * 0.3);
    padding-bottom: calc(var(--spacing-xl) * 0.55);
}

.brand-strip .tagline {
    margin-bottom: calc(var(--spacing-sm) * 0.45);
}

.brand-strip .brand-grid {
    padding: calc(var(--spacing-lg) * 0.3) 0 0;
}

.brand-grid img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
}

.brand-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.brand-logo-item img {
    max-width: 100%;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-logo-reveal {
    transform: translateY(18px) scale(0.96);
}

.brand-logo-reveal.active {
    transform: translateY(0) scale(1);
}

.brand-grid .brand-logo-item:nth-child(1) {
    transition-delay: 0.04s;
}

.brand-grid .brand-logo-item:nth-child(2) {
    transition-delay: 0.12s;
}

.brand-grid .brand-logo-item:nth-child(3) {
    transition-delay: 0.2s;
}

.brand-grid .brand-logo-item:nth-child(4) {
    transition-delay: 0.28s;
}

.brand-grid .brand-logo-item:nth-child(5) {
    transition-delay: 0.36s;
}

/* Works Fluid */
.work-grid-fluid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
}

.work-item-large {
    grid-column: span 12;
    margin-bottom: var(--spacing-xl);
}

.work-item-half {
    grid-column: span 6;
    margin-bottom: var(--spacing-lg);
}

.fluid-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.fluid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover img {
    transform: scale(1.03);
}

/* Process Section (Refinement) */
.process-title {
    font-size: clamp(4rem, 15vw, 12rem);
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.process-intro {
    max-width: 800px;
    margin-bottom: var(--spacing-lg);
    font-size: 1.2rem;
    opacity: 0.8;
}

.process-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl) var(--spacing-md);
}

.process-card {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding-top: var(--spacing-sm);
}

.process-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: var(--spacing-xs) 0;
}

.process-card p {
    font-size: 0.9rem;
    text-transform: none;
    opacity: 0.7;
    line-height: 1.4;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-32px);
}

.reveal-right {
    transform: translateX(32px);
}

.reveal-soft {
    transform: translateY(18px) scale(0.985);
    filter: blur(4px);
}

.reveal-left.active,
.reveal-right.active,
.reveal-soft.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
}

.vibe-highlight {
    color: var(--accent-color);
    font-weight: inherit;
}

/* Case Hero Refinement */
.case-hero {
    min-height: min(96svh, 980px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    padding: calc(110px + var(--spacing-lg)) 0 var(--spacing-xxl);
}

.case-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 40%, rgba(0, 0, 0, 0.18) 100%);
    z-index: 1;
}

.case-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.case-page .case-hero .tagline {
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
}

.case-page .case-hero h1 {
    max-width: 10.5ch;
    font-size: clamp(3.6rem, 8vw, 7.2rem);
    line-height: 0.9;
    margin-bottom: 1rem;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.25s;
}

.case-page .case-hero .hero-subtitle {
    max-width: 40rem;
    margin-bottom: 0;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

/* Projects Case Content */
.case-section {
    padding: clamp(2.2rem, 4.3vw, 4.8rem) 0;
}

.case-content {
    padding-bottom: 0;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 4vw, 5rem);
    row-gap: 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-top: clamp(5rem, 8vw, 7rem);
    padding-bottom: 1.15rem;
    margin-bottom: clamp(2.8rem, 6vw, 4.8rem);
}

.case-meta-item {
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.case-meta-item p {
    max-width: 30rem;
    line-height: 1.45;
    opacity: 0.82;
}

.case-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: start;
}

.case-split--sidebar {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
}

.case-lead {
    max-width: 38rem;
    font-size: clamp(1.08rem, 1.6vw, 1.32rem);
    line-height: 1.55;
}

.case-sidebar {
    display: grid;
    gap: var(--spacing-md);
}

.case-detail-list {
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.case-detail-item,
.case-step {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 1.1rem;
}

.case-detail-item h3,
.case-step h3,
.case-card h3 {
    font-size: 1.05rem;
    margin-bottom: var(--spacing-xs);
}

.case-detail-item p,
.case-step p,
.case-card p,
.case-caption {
    opacity: 0.76;
}

.case-page h2.serif {
    max-width: 14ch;
    font-size: clamp(1.9rem, 3.2vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.8rem;
}

.case-steps {
    display: grid;
    gap: 0.9rem;
}

.case-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.case-card {
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding: 1rem 0 0;
}

.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.case-gallery-grid--story {
    align-items: start;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.case-gallery-story {
    display: grid;
    align-content: start;
    gap: 0.9rem;
}

.case-gallery-story .case-lead {
    max-width: 100%;
}

.case-image-fluid--story {
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

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

.case-gallery-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-gallery-card {
    display: grid;
    gap: var(--spacing-xs);
}

.case-gallery-card p {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-gallery-card:hover img,
.case-image-fluid:hover img {
    transform: scale(1.02);
}

@media (min-width: 993px) {
    .case-gallery-grid--three .case-gallery-card:nth-child(2),
    .case-gallery-grid--three .case-gallery-card:nth-child(5) {
        margin-top: 2.5rem;
    }
}

.case-highlight {
    position: relative;
    min-height: 74vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.case-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.case-highlight-card {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    padding-left: var(--spacing-md);
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--bg-color);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-highlight-card .case-lead,
.case-highlight-card p,
.case-highlight-card h2 {
    color: var(--bg-color);
}

.case-highlight.active .case-highlight-card {
    opacity: 1;
    transform: translateY(0);
}

.case-dark-band {
    background: var(--text-color);
    color: var(--bg-color);
    padding: clamp(4rem, 7vw, 7rem) 0;
    margin: clamp(3rem, 6vw, 5rem) 0;
}

.case-dark-band .tagline {
    color: var(--accent-color);
}

.case-dark-band .container {
    display: grid;
    gap: var(--spacing-lg);
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-dark-band p {
    opacity: 0.78;
}

.case-dark-band.active .container {
    opacity: 1;
    transform: translateY(0);
}

.case-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #111;
}

.case-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.case-video--flush {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
}

.case-solution-copy {
    max-width: 980px;
    display: grid;
    gap: 0.65rem;
}

.case-solution-copy .case-lead {
    max-width: 100%;
}

.case-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* Interactive Slider */
.slider-container {
    position: relative;
    margin: var(--spacing-xl) 0;
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: var(--spacing-md);
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.slider-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.slider-item {
    flex: 0 0 100%; /* Full width mobile */
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .slider-item {
        flex: 0 0 80%; /* Peek ahead desktop */
    }
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.slider-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.5);
}

/* Next Project CTA */
.next-project-cta {
    background: var(--bg-color);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.next-project-cta .tagline {
    opacity: 0.5;
}

.next-project-cta h3 {
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 0.9;
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-smooth);
}

.next-project-cta a:hover h3 {
    color: var(--accent-color);
    transform: skewX(-5deg);
}

.gallery-item:hover img {
    transform: translateY(-5px);
}

.case-image-fluid {
    margin: clamp(1.4rem, 3.6vw, 3.5rem) 0;
    width: 100%;
    overflow: hidden;
}

.case-image-fluid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-image-fluid--immersive img {
    width: 100%;
    height: clamp(28rem, 60vw, 52rem);
    object-fit: cover;
}

.case-image-fluid--showcase {
    padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.case-image-fluid--edge img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.case-image-fluid--flush {
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 clamp(1.2rem, 2.4vw, 2rem);
    margin-left: calc(50% - 50vw);
}

.case-image-fluid--flush img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    object-fit: cover;
}

.case-image-fluid--window {
    margin: 0;
    padding: 0;
    background: transparent;
}

.case-image-fluid--window img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    object-fit: cover;
    object-position: center center;
}

.case-image-fluid.reveal img {
    opacity: 0.82;
    transform: scale(1.03);
    filter: blur(2px);
}

.case-image-fluid.reveal.active img {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.case-equals .case-problem-section,
.case-equals .case-result-section {
    max-width: 960px;
}

.case-equals .case-problem-image,
.case-equals .case-device-image {
    background: transparent;
}

.case-equals .case-equals-process {
    max-width: none !important;
}

.case-equals .case-equals-process .case-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
}

.case-equals .case-equals-process .case-image-fluid {
    margin-bottom: 0;
}

.case-equals .case-problem-image img,
.case-equals .case-device-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.case-equals .case-device-image img {
    max-height: 48rem;
    margin: 0 auto;
}

.case-equals .case-key-screens .case-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.case-equals .case-key-screens .case-gallery-card {
    gap: 0.9rem;
}

.case-equals .case-key-screens .case-gallery-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.case-equals .case-key-screens .case-caption {
    font-size: 0.8rem;
}

.case-play .case-interface-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: 0 var(--spacing-md);
}

.case-play .case-interface-gallery .case-gallery-card {
    gap: 0.9rem;
}

.case-play .case-interface-gallery .case-gallery-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mockup Specifics to avoid squeezing */
.mockup-contain {
    object-fit: contain !important;
    aspect-ratio: auto !important;
}

/* Footer CTA */
.footer-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(32rem, 58vw, 46rem);
    background: #050505;
    color: var(--bg-color);
    padding: clamp(5rem, 10vw, 8rem) 0;
    text-align: center;
}

.footer-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at top, rgba(0, 0, 0, 0.18), transparent 38%);
}

.footer-cta__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

.footer-cta .container {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.8rem;
    max-width: 1080px;
}

.footer-cta .tagline {
    margin-bottom: 0;
    color: #fff !important;
    opacity: 1 !important;
    letter-spacing: 0.32em;
}

.footer-cta h2 {
    font-size: clamp(1.77rem, 5.2vw, 4.68rem);
    line-height: 1.08;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-transform: none;
}

.footer-cta .btn {
    min-width: clamp(14rem, 22vw, 18rem);
    min-height: 4.2rem;
    padding-inline: clamp(1.8rem, 4vw, 2.8rem);
}

.case-page .footer-cta {
    min-height: clamp(30rem, 54vw, 42rem);
    padding: clamp(4.75rem, 8vw, 7rem) 0;
}

.case-page .footer-cta .container {
    gap: 0.6rem;
}

.case-page .footer-cta .container,
.case-page .next-project-cta .container {
    max-width: 1080px;
}

.case-page .next-project-cta {
    padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.case-page .footer-cta h2,
.case-page .next-project-cta h3 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .about-timeline {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-timeline__intro {
        position: static;
    }

    .about-timeline__intro h2 {
        max-width: 12ch;
        font-size: 3rem;
    }

    .about-timeline__cta {
        grid-column: 1;
    }

    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .work-item-half {
        grid-column: span 12;
    }

    .process-grid-new {
        grid-template-columns: 1fr;
    }

    .case-split,
    .case-split--sidebar,
    .case-card-grid,
    .case-gallery-grid,
    .case-gallery-grid--three {
        grid-template-columns: 1fr;
    }

    .case-play .case-interface-gallery {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    #work.container {
        padding-left: clamp(2rem, 5vw, 4rem);
        padding-right: clamp(2rem, 5vw, 4rem);
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header {
        padding: 0.6rem 0;
    }

    .full-bleed {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .case-video--flush,
    .case-image-fluid--flush,
    .case-image-fluid--flush img,
    .case-image-fluid--window,
    .case-image-fluid--window img {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .container {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        min-width: 40px;
        color: var(--accent-color);
    }

    .nav {
        gap: var(--spacing-sm);
        width: 100%;
    }

    .logo-image {
        width: clamp(132px, 37vw, 198px);
        max-width: calc(100vw - 6rem);
    }

    .mobile-menu-panel {
        padding-top: calc(64px + 1.25rem);
    }

    body.menu-open {
        overflow: hidden;
    }

    .btn {
        min-height: 3rem;
        padding: 0.78rem 1.65rem;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .about-hero {
        padding-top: calc(var(--spacing-xl) * 1.05);
    }

    .about-hero .grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
    }

    .about-hero h1 {
        font-size: clamp(2.42rem, 12.75vw, 3.7rem) !important;
        line-height: 0.95 !important;
        margin-bottom: var(--spacing-lg) !important;
    }

    .about-hero p,
    .about-hero .hero-subtitle {
        max-width: 100% !important;
        font-size: 1.08rem !important;
        line-height: 1.5 !important;
    }

    .about-hero .tagline {
        overflow-wrap: anywhere;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-illustrated {
        min-height: 100svh;
        padding: calc(88px + 1.5rem) 0 0;
    }

    .hero-content-centered {
        max-width: 100%;
        padding: 0 1.5rem;
        transform: translateY(clamp(1.65rem, 6vw, 2.8rem));
    }

    .hero-illustrated .hero-content h1 {
        max-width: 20ch;
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .hero-illustrated .hero-subtitle {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 16rem;
    }

    .brand-strip {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }

    .brand-strip .tagline {
        max-width: 18rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.68rem;
        line-height: 1.45;
        letter-spacing: 0.24em;
    }

    .brand-grid,
    .brand-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.3rem 1rem;
        padding-top: 1.75rem;
    }

    .brand-logo-item {
        min-height: 74px;
    }

    .brand-logo-item img {
        max-width: 82%;
        max-height: 48px;
    }

    .brand-grid .brand-logo-item:nth-child(3) img {
        max-height: 66px;
    }

    .brand-grid:not(.brand-grid--four) .brand-logo-item:nth-child(5) {
        grid-column: 1 / -1;
    }

    #work h2.serif {
        max-width: 100%;
        font-size: clamp(2.4rem, 13vw, 3.4rem) !important;
        line-height: 0.95;
    }

    .work-grid-fluid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .work-item-large,
    .work-item-half {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin-bottom: var(--spacing-md);
    }

    #work .work-item a,
    #work .fluid-image {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    #work .fluid-image {
        aspect-ratio: auto;
        height: auto;
        background: transparent;
        overflow: visible;
    }

    #work .fluid-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto !important;
        object-fit: contain;
        transform: none !important;
    }

    .work-info {
        padding-inline: 0.1rem;
    }

    .work-info h3 {
        font-size: clamp(1.65rem, 8vw, 2.2rem);
        line-height: 1.05;
    }

    .work-info p {
        font-size: 1rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .hero-art {
        padding-top: 1.5rem;
    }

    .hero-art img {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .about-timeline__intro h2 {
        font-size: 2.4rem;
    }

    .timeline-list::before {
        left: 0.32rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding-left: 2rem;
        padding-bottom: var(--spacing-md);
    }

    .timeline-item::before {
        width: 0.7rem;
        height: 0.7rem;
    }

    .timeline-content h3 {
        font-size: 1.55rem;
    }

    .about-timeline__cta {
        padding-left: 2rem;
    }

    .case-meta {
        grid-template-columns: 1fr;
        padding-top: calc(var(--spacing-xl) + var(--spacing-lg));
    }

    .case-section {
        padding: var(--spacing-lg) 0;
    }

    .case-split,
    .case-split--sidebar,
    .case-equals .case-equals-process .case-split,
    .case-card-grid,
    .case-gallery-grid,
    .case-gallery-grid--three,
    .case-equals .case-key-screens .case-gallery-grid,
    .case-play .case-interface-gallery {
        grid-template-columns: 1fr;
    }

    .case-equals .case-equals-process .case-image-fluid {
        margin-top: var(--spacing-md) !important;
    }

    .case-detail-list,
    .case-steps,
    .case-card-grid {
        gap: var(--spacing-md);
    }

    .case-highlight {
        min-height: auto;
        padding: var(--spacing-xxl) 0;
    }

    .case-hero {
        min-height: 88svh;
        align-items: flex-end;
        padding: calc(96px + var(--spacing-lg)) 0 var(--spacing-xl);
    }

    .case-page .case-hero h1 {
        max-width: 11ch;
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .case-page .case-hero .hero-subtitle {
        max-width: 100%;
    }

    .case-page h2.serif {
        max-width: 14ch;
        font-size: clamp(1.6rem, 7.2vw, 2.4rem);
        margin-bottom: 1.4rem;
    }

    .case-image-fluid--immersive img {
        height: clamp(20rem, 74vw, 30rem);
    }

    .footer-cta,
    .next-project-cta {
        padding: var(--spacing-xl) 0;
    }

    .footer-cta {
        min-height: clamp(28rem, 92vw, 34rem);
    }

    .footer-cta .container,
    .case-page .footer-cta .container {
        width: 100%;
        max-width: none;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 1rem;
    }

    .footer-cta h2,
    .case-page .footer-cta h2 {
        width: min(100%, 34rem);
        max-width: none;
        font-size: clamp(2.15rem, 8.6vw, 3.3rem);
        line-height: 1.02;
        margin-bottom: 1.7rem;
    }

    .footer-cta .tagline {
        width: 100%;
        max-width: 34rem;
        font-size: 0.68rem;
        line-height: 1.45;
        letter-spacing: 0.22em;
    }

    .footer-cta .btn {
        width: 100%;
        max-width: 20rem;
        min-width: 0;
    }

    .site-footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
        align-items: center !important;
        justify-items: center !important;
        text-align: center;
        padding-top: var(--spacing-lg) !important;
        padding-bottom: var(--spacing-lg) !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .site-footer .flex {
        order: 1;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem 1.2rem !important;
        width: min(100%, 26rem);
        justify-items: center;
    }

    .site-footer p {
        order: 2;
        width: min(100%, 28rem);
        margin: 0;
        font-size: 0.75rem !important;
        line-height: 1.5;
    }

    .site-footer a {
        font-size: 0.95rem;
        line-height: 1.25;
    }
}
