:root,
[data-theme="light"] {
    --bg: #e8e8e8;
    --bg-gradient: none;
    --accent: rgba(26, 26, 26, 0.42);
    --logo-fill: #1a1a1a;
    --logo-opacity: 0.12;
    --logo-hover: 0.72;
    --card-bg: rgba(255, 255, 255, 0.18);
    --card-border: rgba(255, 255, 255, 0.50);
    --label-color: #1a1a1a;
    --blur: 18px;
    --blur-hover: 4px;
    --radius: 28px;
    --gap: 16px;
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-gradient: none;
    --accent: rgba(255, 255, 255, 0.68);
    --logo-fill: #ffffff;
    --logo-opacity: 0.06;
    --logo-hover: 0.60;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --label-color: #e8e8e8;
    --blur: 18px;
    --blur-hover: 4px;
    --radius: 28px;
    --gap: 16px;
}

/* ── Gradient 1: Blue Hour ─────────────────────────────────────── */
[data-theme="bluehour"] {
    --bg: #3b5998;
    --bg-gradient: linear-gradient(180deg, #2d4a8a 0%, #4f6db8 40%, #8e9fd4 70%, #e4b67a 92%, #f0c88a 100%);
    --accent: rgba(255, 224, 173, 0.78);
    --logo-fill: #ffffff;
    --logo-opacity: 0.10;
    --logo-hover: 0.55;
    --card-bg: rgba(255, 255, 255, 0.10);
    --card-border: rgba(255, 255, 255, 0.20);
    --label-color: #ffffff;
    --blur: 18px;
    --blur-hover: 4px;
    --radius: 28px;
    --gap: 16px;
}

/* ── Gradient 2: Dusk ──────────────────────────────────────────── */
[data-theme="dusk"] {
    --bg: #3c3472;
    --bg-gradient: linear-gradient(180deg, #2e2a5e 0%, #4d3f80 30%, #7e6aa8 55%, #c09ec0 75%, #e8a855 95%, #f0a040 100%);
    --accent: rgba(255, 188, 122, 0.8);
    --logo-fill: #ffffff;
    --logo-opacity: 0.08;
    --logo-hover: 0.50;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.15);
    --label-color: #ffffff;
    --blur: 18px;
    --blur-hover: 4px;
    --radius: 28px;
    --gap: 16px;
}

/* ── Gradient 3: Sunset ────────────────────────────────────────── */
[data-theme="sunset"] {
    --bg: #4a2040;
    --bg-gradient: linear-gradient(180deg, #3a1a35 0%, #5c2848 25%, #7a3858 45%, #a85560 65%, #d07840 82%, #f05800 100%);
    --accent: rgba(255, 154, 79, 0.82);
    --logo-fill: #ffffff;
    --logo-opacity: 0.08;
    --logo-hover: 0.45;
    --card-bg: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.12);
    --label-color: #ffffff;
    --blur: 18px;
    --blur-hover: 4px;
    --radius: 28px;
    --gap: 16px;
}

/* ── Gradient 4: Night ─────────────────────────────────────────── */
[data-theme="night"] {
    --bg: #0a1628;
    --bg-gradient: linear-gradient(180deg, #08101e 0%, #0c1830 35%, #122450 65%, #1a3468 85%, #2a4a8a 100%);
    --accent: rgba(120, 173, 255, 0.75);
    --logo-fill: #ffffff;
    --logo-opacity: 0.05;
    --logo-hover: 0.45;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.07);
    --label-color: rgba(255, 255, 255, 0.90);
    --blur: 18px;
    --blur-hover: 4px;
    --radius: 28px;
    --gap: 16px;
}

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

html {
    width: 100%;
    min-height: 100%;
    /* Paint the page background all the way to the physical screen edge,
       including behind the iOS Safari URL bar. Safari reads this and makes
       the URL bar translucent showing this color through it. */
    background: var(--bg-gradient, none), var(--bg);
    background-color: var(--bg);
    transition: background 0.8s ease, background-color 0.8s ease;
}

body {
    width: 100%;
    min-height: 100%;
    font-family: futura-pt, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg-gradient, none), var(--bg);
    background-color: var(--bg);
    color: var(--label-color);
    overflow-x: hidden;
    overflow-y: auto;
    transition: color 0.5s ease;
}

/* Ensure font consistency everywhere */
* {
    font-family: futura-pt, sans-serif;
}


/* ─── LOGO BACKDROP ─────────────────────────────────────────────── */
.logo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}


.logo-text {
    font-family: futura-pt-bold, sans-serif;
    font-weight: normal;
    font-size: 25vw;
    line-height: 0.7;
    letter-spacing: -0.05em;
    color: var(--logo-fill);
    opacity: var(--logo-opacity);
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition:
        color 0.6s ease,
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        text-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    user-select: none;
    white-space: nowrap;
}

body:has(.card:hover) .logo-text {
    opacity: var(--logo-hover);
    transform: translate(-50%, -50%) scale(1.05);
    text-shadow:
        -0.006em -0.006em 0.01em rgba(255, 255, 255, 0.3),
        0.006em 0.006em 0.015em rgba(0, 0, 0, 0.3),
        0.006em -0.006em 0.01em rgba(255, 255, 255, 0.15),
        -0.006em 0.006em 0.01em rgba(0, 0, 0, 0.15);
}

/* ─── CONTENT VIEW STATE ───────────────────────────────────────── */
body.is-viewing-content {
    overflow: hidden;
}

body.is-viewing-content .logo-text {
    opacity: 0;
    pointer-events: none;
}

/* ─── Mobile Inner Page Header (hidden by default) ─────────────── */
.mobile-inner-header {
    display: none;
}

/* ─── Inner Page Logo ──────────────────────────────────────────── */
.inner-page-logo {
    position: fixed;
    top: 48px;
    left: max(60px, calc((100vw - 1200px) / 2));
    font-family: futura-pt-bold, sans-serif;
    font-weight: normal;
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: var(--label-color);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, color 0.5s ease;
    user-select: none;
}

body.is-viewing-content .inner-page-logo {
    opacity: 1;
}


body.is-viewing-content .bento-grid {
    pointer-events: none;
}

body.is-viewing-content .theme-picker {
    opacity: 0;
    pointer-events: none;
}


/* ─── BENTO GRID ────────────────────────────────────────────────── */

/* Mobile header: hidden on desktop */
.mobile-header {
    display: none;
}

.bento-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: grid;
    padding: var(--gap);
    gap: var(--gap);
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1.5fr 1.1fr 1.1fr;
    grid-template-areas:
        "design  design  design  design  dev     dev"
        "about   about   pack    pack    brand   3d"
        "contact behance pack    pack    brand   theme";
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ─── GLASS CARD ────────────────────────────────────────────────── */
.card {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 24px 28px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(var(--blur)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
    text-decoration: none;
    color: var(--label-color);
    overflow: hidden;
    cursor: pointer;
    transition:
        backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        -webkit-backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    will-change: transform;
    animation: cardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Kill transitions when returning from inner page */
.card.no-transition {
    transition: none !important;
}

/* Texture Layer */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Glass Reflection Layer */
.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    transform: translateY(-10px) scale(1.02);
}

.card:hover {
    backdrop-filter: blur(0px) saturate(1.2) contrast(1.05);
    -webkit-backdrop-filter: blur(0px) saturate(1.2) contrast(1.05);
    transform: scale(0.98);
    border-color: rgba(255, 255, 255, 0.50);
    background: transparent;
}



.card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

.card:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.1);
}

/* ─── CARD LABEL ────────────────────────────────────────────────── */
.card-label {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0;
    filter: blur(8px);
    transition:
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        text-shadow 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
    z-index: 3;
    transform: translateY(12px) scale(0.95);
}

.card:hover .card-label {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
    /* Balanced Embossed depth */
    text-shadow:
        -0.006em -0.006em 0.01em rgba(255, 255, 255, 0.3),
        0.006em 0.006em 0.015em rgba(0, 0, 0, 0.3),
        0.006em -0.006em 0.01em rgba(255, 255, 255, 0.15),
        -0.006em 0.006em 0.01em rgba(0, 0, 0, 0.15);
}

.card-label--behance-glyph {
    display: none;
    text-transform: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

/* ─── EDGE-TRACING LIGHT EFFECT ──────────────────────────── */
.edge-trace {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.edge-light {
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    filter: blur(5px);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    /* This defines the path around the card border */
    offset-path: rect(0 100% 100% 0 round var(--radius));
    animation: none;
}

.card.is-tracing .edge-trace {
    opacity: 0.8;
}

.card.is-tracing .edge-light {
    animation: trace-border 3s ease-in-out infinite;
}

/* Hide tracing light when user interacts */
.card:hover .edge-trace,
.card:active .edge-trace {
    opacity: 0 !important;
}

@keyframes trace-border {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}


/* ─── GRID AREAS ────────────────────────────────────────────────── */
.card--design {
    grid-area: design;
    animation-delay: 0.04s;
}

.card--development {
    grid-area: dev;
    animation-delay: 0.08s;
}

.card--about {
    grid-area: about;
    animation-delay: 0.12s;
}

.card--packaging {
    grid-area: pack;
    animation-delay: 0.16s;
}

.card--branding {
    grid-area: brand;
    animation-delay: 0.20s;
}

.card--3d {
    grid-area: 3d;
    animation-delay: 0.24s;
}

.card--contact {
    grid-area: contact;
    animation-delay: 0.28s;
}

.card--behance {
    grid-area: behance;
    animation-delay: 0.32s;
}

/* ═══════════════════════════════════════════════════════════════════
   THEME PICKER — Simple Rotation
   ═══════════════════════════════════════════════════════════════════ */
.card--theme {
    grid-area: theme;
    animation-delay: 0.36s;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.card--theme:focus-visible {
    outline: 2px solid var(--label-color);
    outline-offset: 4px;
}

.theme-trigger {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    color: var(--label-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
    pointer-events: auto;
    will-change: transform;
}

.theme-trigger--animate {
    animation: themeTriggerScale 0.64s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-trigger--animate svg {
    animation: themeIconSpin 0.64s cubic-bezier(0.22, 1, 0.36, 1);
}

.card--theme:hover .theme-trigger {
    transform: scale(1.08);
}

.theme-trigger svg {
    width: 34px;
    height: 34px;
    display: block;
    transform-origin: center;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes themeTriggerScale {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    45% {
        transform: scale(1.28);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes themeIconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    40% {
        transform: rotate(160deg) scale(1.1);
    }

    78% {
        transform: rotate(300deg) scale(1.18);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* ─── CONTENT LAYER ─────────────────────────────────────────────── */
#content-layer {
    position: fixed;
    inset: 0;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 100px 60px 60px;
    background: var(--bg-gradient, none), var(--bg);
    background-color: var(--bg);
}

body.is-viewing-content #content-layer {
    opacity: 1;
    pointer-events: auto;
}

.content-wrapper {
    max-width: 1200px;
    margin: 50px auto 0px;
    position: relative;
}

.close-btn {
    position: fixed;
    top: 44px;
    right: 44px;
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--label-color);
    cursor: pointer;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background 0.3s ease;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    background: var(--label-color);
    color: var(--bg);
}

/* ═══════════════════════════════════════════════════════════════════
   INNER PAGE DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Staggered Reveal Animation ───────────────────────────────── */
@keyframes revealUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes revealLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes fadeInSoft {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Base payload */
#content-payload {
    width: 100%;
    color: var(--label-color);
}

/* ─── Section Header Block ─────────────────────────────────────── */
.section-header {
    margin-bottom: 48px;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 20px;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: currentColor;
}

.section-title {
    font-family: futura-pt-bold, sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.88;
    margin-bottom: 0;
}

.section-title span.title-accent {
    display: block;
    font-weight: 300;
    font-family: futura-pt, sans-serif;
    opacity: 0.35;
    font-size: 0.55em;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

/* ─── Horizontal Divider ───────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: var(--label-color);
    opacity: 0.1;
    margin: 32px 0;
    transform-origin: left;
    animation: revealLine 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ─── Lead Paragraph ───────────────────────────────────────────── */
p.lead {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.35;
    font-weight: 300;
    margin-bottom: 0;
    max-width: 800px;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.bold-text {
    font-family: futura-pt-bold, sans-serif;
    font-weight: normal;
}

/* ─── Body / Detail Text ──────────────────────────────────────── */
.detail-text {
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.65;
    max-width: 640px;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ─── Two-Column Layout ───────────────────────────────────────── */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.split-grid--asymmetric {
    grid-template-columns: 2fr 1fr;
}

/* ─── Stat / Number Block ─────────────────────────────────────── */
.stat-row {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 60px;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: futura-pt-bold, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: normal;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    position: relative;
    padding: 40px 32px;
    border: 1px solid rgba(128, 128, 128, 0.1);
    border-radius: 16px;
    transition: background 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    cursor: default;
}

.service-card:nth-child(1) {
    animation-delay: 0.3s;
}

.service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.service-card:nth-child(3) {
    animation-delay: 0.5s;
}

.service-card:nth-child(4) {
    animation-delay: 0.6s;
}

.service-card:hover {
    background: var(--card-bg);
    border-color: var(--card-border);
    transform: translateY(-4px);
}

.service-card .service-number {
    font-family: futura-pt-bold, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.25;
    margin-bottom: 28px;
    display: block;
}

.service-card h3 {
    font-family: futura-pt-bold, sans-serif;
    font-size: 1.35rem;
    font-weight: normal;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    opacity: 0.55;
}

/* ─── Tag / Skill Chips ───────────────────────────────────────── */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: 100px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.tag:hover {
    background: var(--card-bg);
    border-color: var(--card-border);
    transform: translateY(-2px);
}

/* ─── Timeline / Process ──────────────────────────────────────── */
.process-list {
    list-style: none;
    padding: 0;
    margin-top: 60px;
    counter-reset: process;
}

.process-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
    align-items: baseline;
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: opacity 0.3s ease;
}

.process-item:nth-child(1) {
    animation-delay: 0.3s;
}

.process-item:nth-child(2) {
    animation-delay: 0.4s;
}

.process-item:nth-child(3) {
    animation-delay: 0.5s;
}

.process-item:nth-child(4) {
    animation-delay: 0.6s;
}

.process-item:nth-child(5) {
    animation-delay: 0.7s;
}

.process-item:hover {
    opacity: 1 !important;
}

.process-number {
    font-family: futura-pt-bold, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.3;
}

.process-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.process-content p {
    font-size: 0.9rem;
    line-height: 1.65;
    opacity: 0.5;
}

/* ─── Capability List (Horizontal) ─────────────────────────────── */
.capability-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 40px;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.capability-item {
    padding: 20px 28px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(128, 128, 128, 0.08);
    border-radius: 0;
    margin: -0.5px;
    transition: background 0.3s ease;
}

.capability-item:first-child {
    border-radius: 12px 0 0 12px;
}

.capability-item:last-child {
    border-radius: 0 12px 12px 0;
}

.capability-item:hover {
    background: var(--card-bg);
}

/* ─── Contact Page Specific ───────────────────────────────────── */
.contact-block {
    margin-bottom: 60px;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-block:nth-child(2) {
    animation-delay: 0.15s;
}

.contact-block:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-block:nth-child(4) {
    animation-delay: 0.45s;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.35;
    margin-bottom: 16px;
}

.contact-value {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    display: inline-block;
    border-bottom: 1.5px solid rgba(128, 128, 128, 0.15);
    padding-bottom: 6px;
}

.contact-value:hover {
    opacity: 0.6;
}

.contact-value--small {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

/* ─── Location Pill ────────────────────────────────────────────── */
.location-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(128, 128, 128, 0.12);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.location-pill:hover {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.location-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--label-color);
    opacity: 0.4;
}

/* ─── Footer Line ──────────────────────────────────────────────── */
.inner-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(128, 128, 128, 0.08);
    font-size: 0.72rem;
    letter-spacing: normal;
    text-transform: none;
    opacity: 0.2;
    animation: fadeInSoft 1s 0.8s both;
}

/* ─── About Quote / Statement ──────────────────────────────────── */
.quote-block {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 300;
    line-height: 1.5;
    padding-left: 32px;
    border-left: 2px solid rgba(128, 128, 128, 0.15);
    margin: 60px 0;
    max-width: 700px;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ─── Marquee text ─────────────────────────────────────────────── */
.marquee-row {
    overflow: hidden;
    white-space: nowrap;
    margin: 60px -60px;
    opacity: 0.06;
    font-family: futura-pt-bold, sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
    pointer-events: none;
}

.marquee-inner {
    display: inline-block;
    animation: marqueeScroll 20s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ─── CTA Button ───────────────────────────────────────────────── */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 16px 32px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bg);
    background: var(--label-color);
    border-radius: 100px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.cta-link:hover {
    transform: scale(1.04);
    opacity: 0.85;
}

.cta-link svg {
    width: 16px;
    height: 16px;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {

    .split-grid,
    .split-grid--asymmetric {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .stat-row {
        gap: 32px;
    }

    .process-item {
        grid-template-columns: 50px 1fr;
        gap: 16px;
    }

    .capability-list {
        flex-direction: column;
    }

    .capability-item:first-child {
        border-radius: 12px 12px 0 0;
    }

    .capability-item:last-child {
        border-radius: 0 0 12px 12px;
    }

    .marquee-row {
        margin: 40px -20px;
    }
}



/* ═══════════════════════════════════════════════════════════════════
   TOUCH / NO-HOVER DEVICES — Labels always visible, tap states
   ═══════════════════════════════════════════════════════════════════ */
@media (hover: none) {

    /* Labels always on — no hover needed */
    .card-label {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0) scale(1);
        letter-spacing: 0.2em;
        text-shadow: none;
    }

    /* Touch press state */
    .card:active {
        transform: scale(0.96);
        background: var(--card-bg);
        border-color: var(--card-border);
        backdrop-filter: blur(var(--blur)) saturate(1.2);
        -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
        transition: transform 0.15s ease;
    }

    /* No hover clearing of blur on touch */
    .card:hover {
        backdrop-filter: blur(var(--blur)) saturate(1.2);
        -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
        transform: none;
        background: var(--card-bg);
        border-color: var(--card-border);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE — Bento Grid ≤ 700px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.is-viewing-content {
        overflow-y: auto;
    }

    /* ── Hide background logo on mobile ── */
    .logo-backdrop {
        display: none;
    }

    /* ── Mobile Bento Grid ── */
    .bento-grid {
        /* Use standard viewport sizing to avoid Safari toolbar tint pinning to a fixed layer. */
        min-height: 100vh;
        height: auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto 1fr auto auto auto auto;
        gap: 10px;
        padding: 10px 10px calc(64px + env(safe-area-inset-bottom));
        grid-template-areas:
            "header   header   header   header"
            "design   design   design   design"
            "dev      dev      about    about"
            "pack     pack     pack     pack"
            "brand    brand    3d       3d"
            "contact  contact  behance  theme";
    }

    /* ── Mobile Header ── */
    .mobile-header {
        grid-area: header;
        display: flex;
        align-items: baseline;
        gap: 12px;
        padding: 16px 8px 12px;
    }

    .mobile-logo {
        font-family: futura-pt-bold, sans-serif;
        font-weight: 700;
        font-size: 1.6rem;
        letter-spacing: 0.05em;
        color: var(--label-color);
        user-select: none;
    }

    .mobile-tagline {
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        opacity: 0.35;
    }

    /* ── Cards ── */
    .card {
        min-height: 110px;
        align-items: flex-end;
        padding: 20px 22px;
        border-radius: 20px;
        animation-delay: 0s !important;
    }

    /* Hero card */
    .card--design {
        min-height: 180px;
    }

    /* Wide cards */
    .card--packaging {
        min-height: 150px;
    }

    /* Labels — always visible on touch */
    .card-label {
        opacity: 1;
        filter: blur(0px);
        transform: none;
        font-size: 0.78rem;
        text-shadow: none;
    }

    .card--3d {
        grid-area: auto;
        grid-column: 3 / 5;
        grid-row: 5;
    }

    .card--contact {
        grid-column: 1 / 3;
        grid-row: 6;
    }

    .card--behance {
        display: flex !important;
        align-items: flex-end;
        justify-content: flex-start;
        min-height: 110px;
        padding: 20px 22px;
        grid-column: 3 / 4;
        grid-row: 6;
    }

    .card--theme {
        grid-column: 4 / 5;
        grid-row: 6;
        justify-content: flex-end !important;
        align-items: flex-end !important;
        padding: 20px 18px !important;
    }

    .card--behance .card-label--behance-glyph {
        display: block;
        opacity: 1;
        filter: blur(0px);
        transform: none;
        font-size: 0.92rem;
        font-weight: 500;
    }

    .card--behance .card-label--behance-desktop {
        display: none;
    }

    .card--theme .card-label {
        display: none;
    }

    .theme-trigger {
        position: absolute;
        bottom: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        margin: 0;
        flex-shrink: 0;
        opacity: 0.8;
    }

    .theme-trigger svg {
        width: 28px;
        height: 28px;
    }

    .theme-trigger--mobile-header {
        position: static;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 50%;
        border: 1px solid var(--card-border);
        background: var(--card-bg);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: none;
        opacity: 0.9;
    }

    /* ── Hide inner page logo on mobile — use mobile-header instead ── */
    .inner-page-logo {
        display: none !important;
    }

    /* ── Content layer ── */
    #content-layer {
        display: none;
        position: static;
        inset: auto;
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
        padding: 80px 20px calc(80px + env(safe-area-inset-bottom));
        background: var(--bg-gradient, none), var(--bg);
        background-color: var(--bg);
    }

    body.is-viewing-content #content-layer {
        display: block;
        min-height: 100vh;
    }

    body.is-viewing-content .bento-grid {
        display: none;
    }

    /* ── Mobile inner-page header bar ── */
    .mobile-inner-header {
        display: none;
        align-items: baseline;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        /* Match homepage: grid padding (10px) + header cell padding (16px 8px 12px) */
        padding: 26px 18px 12px;
        background: transparent;
    }

    body.is-viewing-content .mobile-inner-header {
        display: flex;
    }

    .mobile-inner-header .mobile-inner-left {
        display: flex;
        align-items: baseline;
        gap: 12px;
    }

    .mobile-inner-header .mobile-inner-logo {
        font-family: futura-pt-bold, sans-serif;
        font-weight: 700;
        font-size: 1.6rem;
        letter-spacing: 0.05em;
        color: var(--label-color);
        user-select: none;
    }

    .mobile-inner-header .mobile-inner-tagline {
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        opacity: 0.35;
        color: var(--label-color);
    }

    .mobile-inner-header .mobile-inner-right {
        display: flex;
        align-items: center;
        align-self: center;
        gap: 10px;
    }

    body.is-viewing-content .mobile-inner-header .theme-trigger--mobile-header {
        pointer-events: auto;
        z-index: 1101;
    }

    /* ── Close button inside mobile inner header ── */
    .mobile-inner-header .close-btn {
        display: flex;
        position: static;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .mobile-inner-header .close-btn svg {
        width: 18px;
        height: 18px;
    }

    /* ── Default close-btn hidden on mobile (it's in header now) ── */
    .close-btn {
        display: none;
    }

    .content-wrapper {
        margin-top: 20px;
    }

    /* ── Inner page content ── */
    .section-header {
        margin-bottom: 36px;
    }

    .section-divider {
        margin: 32px 0;
    }

    .stat-row {
        gap: 28px;
        margin-top: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 40px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .quote-block {
        padding-left: 20px;
        margin: 36px 0;
    }

    .location-row {
        flex-direction: column;
    }

    .process-list {
        margin-top: 40px;
    }

    .process-item {
        grid-template-columns: 44px 1fr;
        gap: 12px;
        padding: 24px 0;
    }

    .tag-cloud {
        margin-top: 28px;
        gap: 6px;
    }

    .inner-footer {
        margin-top: 60px;
    }

    .marquee-row {
        margin: 32px -20px;
    }

    .contact-value {
        font-size: clamp(1.4rem, 7vw, 2.2rem);
    }
}