/* =========================================================
   WHEEL FOOTER
   ========================================================= */
.footer-wheel {
    position: relative;
    background:
        radial-gradient(circle at 0% 50%, rgba(229,9,20,0.08) 0%, transparent 40%),
        linear-gradient(180deg, #050505 0%, #000 100%);
    padding: 120px 40px 40px;
    margin-top: 80px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-arc {
    position: absolute;
    left: -300px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.6;
    pointer-events: none;
}
.footer-arc svg { width: 100%; height: 100%; }

.footer-wheel-inner {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 240px;       /* leave space for the arc */
    z-index: 2;
}

.footer-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-red);
    font-weight: 700;
    margin: 0 0 12px;
}
.footer-title {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -2px;
    margin: 0 0 22px;
    font-weight: 700;
    color: #fff;
}
.footer-title em {
    font-family: 'Great Vibes', cursive;
    font-style: normal;
    font-weight: 400;
    color: var(--accent-red);
    font-size: 1.05em;
    letter-spacing: 0;
}
.footer-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin: 0 0 28px;
    line-height: 1.55;
}
.footer-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-col h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    margin: 0 0 18px;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 12px; }
.footer-list a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: -.2px;
    transition: color .25s ease;
}
.footer-list a:hover { color: var(--accent-red); }
.footer-list .muted { color: rgba(255,255,255,0.5); font-size: 0.95rem; line-height: 1.5; }

.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-socials a span {
    color: var(--accent-red);
    font-size: 0.85em;
    opacity: 0;
    transform: translate(-4px, 0);
    transition: all .25s ease;
}
.footer-socials a:hover span { opacity: 1; transform: translate(0, 0); }

.footer-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 26px;
    flex-wrap: wrap;
}
.footer-copy, .footer-legal, .footer-tag {
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
}
.footer-legal a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--accent-red); }
.footer-legal .dot { margin: 0 8px; opacity: 0.4; }
.footer-tag span {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    letter-spacing: 2.5px;
    color: rgba(229,9,20,0.6);
}

@media (max-width: 1100px) {
    .footer-arc { display: none; }
    .footer-wheel { padding: 80px 24px 32px; }
    .footer-wheel-inner { padding-left: 0; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-cta-row { margin-bottom: 56px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-strip { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* =========================================================
   PROJECT PAGE — cinematic case study layout
   ========================================================= */
.project-page .project-hero-grid {
    grid-template-rows: repeat(5, minmax(120px, auto));
}

/* Hero (image or video) */
.project-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #050505;
    min-height: 520px;
}
.project-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}
.project-hero-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 44px;
    z-index: 2;
    color: #fff;
}
.project-hero-text { padding: 40px; min-height: 360px; }
.project-hero-text .project-title { margin-top: 14px; }
.project-hero-video .project-hero-media {
    position: absolute; inset: 0;
}
.project-hero-media iframe,
.project-hero-media video {
    width: 100%; height: 100%; border: 0;
    object-fit: cover; display: block; background: #000;
}
.project-hero-video .project-hero-caption {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
}

.project-title {
    font-size: clamp(2rem, 4.4vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -1.7px;
    margin: 12px 0 8px;
    font-weight: 700;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}
.project-client {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    margin: 0;
    font-weight: 500;
}

/* Sticky meta column on the right (4 cols, full hero height) */
.project-meta-col {
    grid-column: span 4;
    grid-row: span 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
    min-width: 0;
}
.project-meta-tile {
    grid-column: auto;
    grid-row: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 22px;
    justify-content: center;
    border-radius: 18px;
}
.project-meta-client {
    background: linear-gradient(160deg, rgba(229,9,20,0.22), rgba(229,9,20,0.04));
    border-color: rgba(229,9,20,0.3);
}
.project-meta-value {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.2px;
    line-height: 1.3;
    margin-top: 6px;
    word-break: break-word;
}
.project-meta-logos { padding: 18px 20px; }
.project-logo-row {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 10px;
}
.project-logo {
    width: 58px; height: 58px;
    background: #fff; border-radius: 12px; padding: 8px;
    display: flex; align-items: center; justify-content: center;
}
.project-logo img {
    max-width: 100%; max-height: 100%; object-fit: contain;
}

/* Case study prose */
.project-case-study {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
    color: rgba(255,255,255,0.82);
    font-size: 1.12rem;
    line-height: 1.75;
}
.project-case-study p { margin: 0 0 22px; }
.project-case-study .article-tags {
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Gallery — varied tile mosaic */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
    padding: 0 24px;
    max-width: 1440px;
    margin: 0 auto;
    grid-auto-flow: dense;
}
.project-gallery-item {
    position: relative;
    grid-column: span 4;
    grid-row: span 2;
    background-size: cover;
    background-position: center;
    background-color: #111;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.project-gallery-item.gal-large { grid-column: span 8; grid-row: span 3; }
.project-gallery-item.gal-tall  { grid-column: span 4; grid-row: span 3; }
.project-gallery-item.gal-std   { grid-column: span 4; grid-row: span 2; }
.project-gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
    opacity: 0;
    transition: opacity .35s ease;
}
.project-gallery-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(229,9,20,0.2);
}
.project-gallery-item:hover::after { opacity: 1; }
.project-gallery-num {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    font-family: 'JetBrains Mono', 'Inter', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.55);
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.project-gallery-item:hover .project-gallery-num {
    opacity: 1; transform: translateY(0);
}

@media (max-width: 1100px) {
    .project-hero { grid-column: 1 / -1 !important; grid-row: span 4 !important; min-height: 420px; }
    .project-meta-col { grid-column: 1 / -1; grid-row: auto; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .project-meta-tile { flex: 1 1 calc(50% - 12px); min-height: 110px; }
    .project-gallery { grid-template-columns: repeat(8, 1fr); }
    .project-gallery-item, .project-gallery-item.gal-tall, .project-gallery-item.gal-std { grid-column: span 4; grid-row: span 2; }
    .project-gallery-item.gal-large { grid-column: span 8; grid-row: span 3; }
}
@media (max-width: 720px) {
    .project-hero { min-height: 340px; }
    .project-hero-caption { padding: 22px 20px; }
    .project-hero-text { padding: 22px; min-height: 260px; }
    .project-meta-col { flex-direction: column; }
    .project-meta-tile { flex: 1 1 100%; }
    .project-case-study { padding: 0 18px; font-size: 1rem; line-height: 1.65; }
    .project-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; padding: 0 14px; gap: 10px; }
    .project-gallery-item,
    .project-gallery-item.gal-tall,
    .project-gallery-item.gal-std { grid-column: span 1; grid-row: span 1; }
    .project-gallery-item.gal-large { grid-column: span 2; grid-row: span 2; }
}

/* =========================================================
   STUDIOS PAGE — showreel hero + intro
   ========================================================= */
.studios-reel {
    padding: 0;
    overflow: hidden;
    background: #000;
    border-color: rgba(229,9,20,0.25);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 80px rgba(0,0,0,0.6);
}
.studios-reel-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.studios-reel-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}
.studios-intro {
    background:
        radial-gradient(circle at 80% 20%, rgba(229,9,20,0.22) 0%, transparent 55%),
        linear-gradient(160deg, #0e0e10 0%, #050505 100%);
    justify-content: space-between;
    padding: 40px;
}
.studios-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -1.5px;
    margin: 12px 0 18px;
    font-weight: 700;
    color: #fff;
}
.studios-title em {
    font-family: 'Great Vibes', cursive;
    font-style: normal;
    font-weight: 400;
    color: var(--accent-red);
    font-size: 1.05em;
    letter-spacing: 0;
}
.studios-sub {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.55;
    margin: 0 0 22px;
}
.homepage-studios-card { position: relative; }

/* Sub-section inside the Studios card for the second-brand (Cycle ME) socials */
.bento-social-sub {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.bento-social-sub-label {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    margin-bottom: 10px;
}
.bento-social-sub .bento-social-row { margin-top: 0; }

@media (max-width: 1100px) {
    .studios-reel { grid-column: 1 / -1 !important; grid-row: span 4 !important; min-height: 420px; }
    .studios-intro { grid-column: 1 / -1 !important; grid-row: span 3 !important; padding: 32px; }
}
@media (max-width: 720px) {
    .studios-reel  { min-height: 240px; }
    .studios-intro { padding: 22px; }
    .studios-title { font-size: 1.8rem; }
    .studios-sub   { font-size: 0.9rem; }
}

/* =========================================================
   SECTION RAIL (left side scroll-spy, PC only)
   ========================================================= */
.section-rail {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 970;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 12px;
    background: rgba(10,10,12,0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-height: 72vh;
    /* Permanently narrow — labels float as chips outside the rail (see .label below)
       so this rail never covers the main content. */
    width: 52px;
    overflow: visible;          /* let label chips poke out to the right */
    pointer-events: auto;
    opacity: 0;
    transform: translate(-12px, -50%);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.section-rail.ready {
    opacity: 1;
    transform: translate(0, -50%);
}
.section-rail::-webkit-scrollbar { display: none; }
.section-rail:empty { display: none; }

.section-rail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 4px 2px;
    transition: color .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
    cursor: pointer;
    position: relative;
}
.section-rail-item .dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: all .35s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 0 0 0 rgba(229,9,20,0);
}
/* Label is a floating chip ANCHORED OUTSIDE the rail to the right.
   This way the rail keeps a fixed slim width (52px) and labels never widen it,
   so the rail never covers the main content. */
.section-rail-item .label {
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    white-space: nowrap;
    font-size: 0.66rem;
    line-height: 1;
    letter-spacing: 1.4px;
    background: rgba(10,10,12,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .35s cubic-bezier(.22,1,.36,1), background .25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    z-index: 1;
}
.section-rail-item .num {
    font-family: 'JetBrains Mono', 'Inter', monospace;
    font-size: 0.62rem;
    opacity: 0.5;
}

/* Hover only — label chip slides into view next to its dot.
   The active dot still glows red on the rail itself, but its text label
   stays hidden until you hover the item. */
.section-rail-item:hover .label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
/* When you DO hover the active item, the chip is styled in red. */
.section-rail-item.active:hover .label {
    background: rgba(229,9,20,0.85);
    border-color: rgba(229,9,20,0.6);
    color: #fff;
    box-shadow: 0 6px 22px rgba(229,9,20,0.4);
}
.section-rail-item:hover {
    color: #fff;
}
.section-rail-item:hover .dot {
    background: var(--accent-red);
    box-shadow: 0 0 12px rgba(229,9,20,0.55);
}

.section-rail-item.active {
    color: #fff;
}
.section-rail-item.active .dot {
    background: var(--accent-red);
    transform: scale(1.6);
    box-shadow: 0 0 14px rgba(229,9,20,0.85), 0 0 0 4px rgba(229,9,20,0.2), 0 0 30px rgba(229,9,20,0.4);
    animation: railDotPulse 2.6s ease-in-out infinite;
}
.section-rail-item.active .num {
    color: var(--accent-red);
    opacity: 1;
}

/* Mouse-proximity glow — JS sets --prox 0..1 per item */
.section-rail-item {
    --prox: 0;
}
.section-rail-item:not(.active) .dot {
    background: rgba(255,255,255, calc(0.25 + var(--prox, 0) * 0.5));
    box-shadow: 0 0 calc(var(--prox, 0) * 14px) rgba(229,9,20, calc(var(--prox, 0) * 0.7));
}

@keyframes railDotPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(229,9,20,0.85), 0 0 0 4px rgba(229,9,20,0.2), 0 0 30px rgba(229,9,20,0.4); }
    50%      { box-shadow: 0 0 22px rgba(229,9,20,1),    0 0 0 7px rgba(229,9,20,0.28), 0 0 50px rgba(229,9,20,0.6); }
}

/* Hide on tablet & mobile */
@media (max-width: 1100px) {
    .section-rail { display: none; }
}

/* =========================================================
   MOUSE TRAIL (red glow trail, PC only)
   ========================================================= */
#mouse-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: screen;
}
@media (max-width: 1100px), (hover: none), (prefers-reduced-motion: reduce) {
    #mouse-trail { display: none; }
}

/* =========================================================
   SCROLL REVEAL — fade-up on view
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================
   TRENDNAV — top bar + full-screen overlay menu (Trendlix-style)
   ========================================================= */
body.has-trendnav { padding-top: 96px; padding-left: 0; }
@media (max-width: 720px) {
    body.has-trendnav { padding-top: 72px; }
}

/* Red scroll progress bar pinned to the very top edge */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-red);
    z-index: 1100;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform .12s linear;
    pointer-events: none;
}

/* Top bar — always visible */
.trendnav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 96px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    transition: background .35s ease, backdrop-filter .35s ease, height .35s ease, border-color .35s ease;
    border-bottom: 1px solid transparent;
}
.trendnav-bar.scrolled {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255,255,255,0.06);
    height: 72px;
}
@media (max-width: 720px) {
    .trendnav-bar { padding: 0 20px; height: 72px; }
    .trendnav-bar.scrolled { height: 60px; }
}

/* Burger button */
.trendnav-burger {
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color .25s ease;
}
.trendnav-burger:hover { color: var(--accent-red); }
.trendnav-burger svg { overflow: visible; }
.burger-line {
    transition: transform .4s cubic-bezier(.7,0,.3,1), opacity .25s ease;
    transform-origin: 50% 50%;
    transform-box: fill-box;
}
.trendnav-burger.is-open .burger-upper  { transform: translate(0, 3px) rotate(45deg); }
.trendnav-burger.is-open .burger-middle { opacity: 0; transform: scaleX(0); }
.trendnav-burger.is-open .burger-lower  { transform: translate(0, -3px) rotate(-45deg); }

.trendnav-burger-label { display: inline-block; }
@media (max-width: 720px) { .trendnav-burger-label { display: none; } }

/* Logo — center-ish (left of the meta block) */
.trendnav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    transition: opacity .25s ease;
}
.trendnav-logo img {
    max-height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.trendnav-logo:hover { opacity: 0.7; }

/* Active page meta on the right side of the top bar */
.trendnav-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}
.trendnav-page-num {
    color: var(--accent-red);
    font-family: 'JetBrains Mono', 'Inter', monospace;
}
@media (max-width: 720px) { .trendnav-meta { display: none; } }

/* ============== OVERLAY MENU ============== */
.trendnav-menu {
    position: fixed;
    inset: 0;
    z-index: 990;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform .65s cubic-bezier(.85,0,.15,1);
}
body.menu-open .trendnav-menu {
    pointer-events: auto;
    transform: translateX(0) !important;
}

/* Background panel — wipes in via clip-path for a richer feel */
.trendnav-menu-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(229,9,20,0.18) 0%, transparent 45%),
        #000;
    z-index: 0;
}

.trendnav-menu-inner {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 120px 64px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
@media (max-width: 1100px) { .trendnav-menu-inner { padding: 110px 40px 20px; } }
@media (max-width: 720px)  { .trendnav-menu-inner { padding: 100px 24px 16px; } }

.trendnav-item {
    display: flex;
    align-items: baseline;
    gap: 28px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 0.95;
    transition: color .3s ease, padding-left .35s cubic-bezier(.22,1,.36,1), background .3s ease;
    position: relative;

    /* Staggered entrance when menu opens */
    opacity: 0;
    transform: translateY(20px);
    transition-property: color, padding-left, background, opacity, transform;
    transition-duration: .3s, .35s, .3s, .5s, .5s;
}
body.menu-open .trendnav-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s, 0s, 0s, calc(0.18s + var(--d, 0) * 0.08s), calc(0.18s + var(--d, 0) * 0.08s);
}
.trendnav-item[data-i="0"] { --d: 0; }
.trendnav-item[data-i="1"] { --d: 1; }
.trendnav-item[data-i="2"] { --d: 2; }
.trendnav-item[data-i="3"] { --d: 3; }
.trendnav-item[data-i="4"] { --d: 4; }

.trendnav-item-num {
    font-family: 'JetBrains Mono', 'Inter', monospace;
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 1px;
    flex: 0 0 auto;
    min-width: 48px;
}
.trendnav-item-title {
    flex: 1;
    font-size: clamp(2.6rem, 7vw, 6rem);
    color: #fff;
    background: linear-gradient(90deg, #fff 50%, var(--accent-red) 50%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position .55s cubic-bezier(.22,1,.36,1);
}
.trendnav-item-arrow {
    color: var(--accent-red);
    font-size: 1.6rem;
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity .3s ease, transform .35s cubic-bezier(.22,1,.36,1);
    flex: 0 0 auto;
}
.trendnav-item:hover {
    padding-left: 28px;
    background: linear-gradient(90deg, rgba(229,9,20,0.05), transparent);
}
.trendnav-item:hover .trendnav-item-title {
    background-position: -100% 0%;
}
.trendnav-item:hover .trendnav-item-arrow {
    opacity: 1;
    transform: translateX(0);
}
.trendnav-item.active .trendnav-item-num { color: #fff; }
.trendnav-item.active .trendnav-item-title {
    background-position: -100% 0%;
}
.trendnav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 18px var(--accent-red);
}
.trendnav-item.active { padding-left: 36px; }

/* Footer band inside the menu */
.trendnav-menu-foot {
    position: relative;
    z-index: 2;
    padding: 24px 64px 36px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease .45s, transform .5s ease .45s;
}
body.menu-open .trendnav-menu-foot {
    opacity: 1;
    transform: translateY(0);
}
.trendnav-foot-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.trendnav-foot-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    margin-bottom: 8px;
}
.trendnav-foot-col a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color .25s ease;
}
.trendnav-foot-col a:hover { color: var(--accent-red); }
@media (max-width: 720px) {
    .trendnav-menu-foot { padding: 20px 24px 28px; grid-template-columns: 1fr; gap: 16px; }
}

/* Disable page scroll when menu is open */
body.menu-open { overflow: hidden; }

/* ============== SIDE DOTS (slim, right edge) ============== */
.section-dots.side-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 980;
    list-style: none;
    margin: 0;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(15,15,17,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}
.section-dots.side-dots:empty { display: none; }
.section-dots.side-dots li { margin: 0; padding: 0; list-style: none; }
.section-dots.side-dots .section-dot {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    text-decoration: none;
    opacity: 1;             /* override base .section-dot opacity:0 */
    pointer-events: auto;
}
.section-dots.side-dots .dot-shape {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 1px solid transparent;
    transition: all .25s ease;
    flex: 0 0 8px;
}
.section-dots.side-dots .dot-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(229,9,20,0.9);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 4px 12px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.section-dots.side-dots .section-dot:hover .dot-shape,
.section-dots.side-dots .section-dot.active .dot-shape {
    background: var(--accent-red);
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(229,9,20,0.6);
}
.section-dots.side-dots .section-dot.active .dot-label,
.section-dots.side-dots .section-dot:hover .dot-label {
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 1100px) { .section-dots.side-dots { display: none; } }

/* =========================================================
   (LEGACY: old wheel CSS — keep as deactivated for safety)
   ========================================================= */
body.has-wheel-nav { padding-left: 360px; }

/* The wheel hub centres at viewport x=80, vertically centred.
   Items orbit at radius 180 across angles -72° → +72° so they stay on-screen.
   Rightmost item edge ≈ 80 + 180 + chip_width/2 ≈ 340 → body padding 360 leaves margin. */
.wheel-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 340px;
    z-index: 1000;
    pointer-events: none;
}
/* --active-offset comes from PHP via inline style on .wheel-nav (cascades down).
   --mouse-offset is set by JS on .wheel-rotor.
   --scroll-offset is set by JS on .wheel-rotor based on scrollY.
   Defaults are on .wheel-nav so the inline override always wins. */
.wheel-nav {
    --active-offset: 0deg;
}
.wheel-disc {
    position: absolute;
    left: 140px;          /* hub centre at viewport x=140 (more breathing room) */
    top: 50%;
    width: 520px;
    height: 520px;
    margin-left: -260px;
    margin-top: -260px;
    pointer-events: none;
}

/* The rotor is the part that actually revolves around the logo */
.wheel-rotor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    --mouse-offset: 0deg;
    --scroll-offset: 0deg;
    transform: rotate(calc(var(--active-offset) + var(--scroll-offset) + var(--mouse-offset)));
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}

.wheel-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

@keyframes ringEnter { from { opacity: 0; } to { opacity: 0.9; } }
.wheel-art { animation: ringEnter 1s ease backwards .1s; }

/* Centre logo — fixed (does NOT rotate). No ring, just the image. */
.wheel-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 6;
    transition: transform .3s cubic-bezier(.22,1,.36,1), filter .3s ease;
    text-decoration: none;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.6));
}
.wheel-logo:hover {
    transform: translate(-50%, -50%) scale(1.06);
    filter: drop-shadow(0 4px 22px rgba(229,9,20,0.45));
}
.wheel-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Nav items orbit the hub at radius 180px.
   Each item counter-rotates by (active-offset + mouse-offset) so its label stays upright
   while the disc rotates. */
/* Items sit OUTSIDE .wheel-rotor → never inherit --scroll-offset/--mouse-offset.
   The transform places them at angle θ on a radius-180 orbit and keeps the
   label upright via the inverse rotation. They DO NOT move. */
.wheel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform:
        rotate(var(--angle))
        translateX(180px)
        rotate(calc(var(--angle) * -1))
        translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 12px;
    background: rgba(15,15,17,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    pointer-events: auto;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
    z-index: 4;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.wheel-item:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 8px 24px rgba(229,9,20,0.4);
}
/* All items orbit on a full circle — no behind/hidden states needed.
   The disc allows overflow so items off-viewport still render gracefully. */
.wheel-item.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(229,9,20,0.18), 0 10px 30px rgba(229,9,20,0.35);
    animation: activePulse 2.6s ease-in-out infinite;
}
@keyframes activePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(229,9,20,0.18), 0 10px 30px rgba(229,9,20,0.35); }
    50%      { box-shadow: 0 0 0 6px rgba(229,9,20,0.35), 0 14px 44px rgba(229,9,20,0.55); }
}

/* Staggered entrance — each item flies in from the hub along its spoke.
   Final transform matches the resting transform (incl. active/mouse offsets). */
@keyframes wheelItemEnter {
    from {
        opacity: 0;
        transform:
            rotate(var(--angle))
            translateX(0px)
            rotate(calc(var(--angle) * -1))
            translate(-50%, -50%)
            scale(0.4);
    }
    to {
        opacity: 1;
        transform:
            rotate(var(--angle))
            translateX(180px)
            rotate(calc(var(--angle) * -1))
            translate(-50%, -50%)
            scale(1);
    }
}
.wheel-item-enter {
    animation: wheelItemEnter .7s cubic-bezier(.22,1,.36,1) backwards;
    animation-delay: calc(0.2s + var(--i) * 0.08s);
}

/* Hub fades + scales in first */
@keyframes hubEnter {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.wheel-logo {
    animation: hubEnter .6s cubic-bezier(.22,1,.36,1) backwards;
}

/* (ringEnter is composed into .wheel-spin / .wheel-spin-rev above) */

/* =========================================================
   SECTION DOTS — orbit INSIDE the wheel-disc at a smaller radius
   than the nav items. They co-rotate with the disc via the parent
   transform. Each dot's --angle is set by JS so dots distribute
   evenly across the right hemisphere, sitting in the gaps between
   nav items (one or two dots per gap).
   ========================================================= */
.section-dots {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}
.section-dots:empty { display: none; }
.section-dots li {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
}
.section-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    /* dots sit at radius 120 from hub, smaller than nav items at 180.
       Labels stay upright — no --active-offset/--mouse-offset in transform. */
    transform:
        rotate(var(--angle))
        translateX(120px)
        rotate(calc(var(--angle) * -1))
        translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    pointer-events: auto;
    white-space: nowrap;
    transition: all .35s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);

    /* Non-active dots are invisible by default — only the active one shows. */
    opacity: 0;
    pointer-events: none;
}
.section-dot .dot-shape {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-red);
    transition: all .3s cubic-bezier(.22,1,.36,1);
    flex: 0 0 10px;
    display: block;
    box-shadow: 0 0 12px rgba(229,9,20,0.6), 0 0 0 4px rgba(229,9,20,0.18);
}
.section-dot .dot-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(229,9,20,0.92);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    padding: 5px 14px;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(8px);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 6px 18px rgba(229,9,20,0.35);
}
/* Only the active section dot is visible */
.section-dot.active {
    opacity: 1;
    pointer-events: auto;
    animation: dotAppear .45s cubic-bezier(.22,1,.36,1);
}
@keyframes dotAppear {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =========================================================
   PAGE TRANSITION WIPE
   ========================================================= */
.page-wipe {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 12% 50%, rgba(229,9,20,0.18) 0%, transparent 50%), #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s cubic-bezier(.22,1,.36,1), visibility .45s;
    pointer-events: none;
}
.page-wipe.wipe-in {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .55s cubic-bezier(.22,1,.36,1);
}
.page-wipe.wipe-out {
    opacity: 0;
    visibility: visible;
    transition: opacity .8s cubic-bezier(.22,1,.36,1) .1s, visibility .8s;
}
.page-wipe.wipe-instant {
    transition: none !important;
    opacity: 1;
    visibility: visible;
}
.page-wipe-art {
    width: 260px;
    height: 260px;
    animation: wheelSpin 6s linear infinite;
}
.page-wipe-label {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    text-align: center;
    line-height: 0.95;
    opacity: 0;
    transform: translateY(20px);
    animation: labelFadeIn .5s cubic-bezier(.22,1,.36,1) forwards .15s;
}
@keyframes labelFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
.page-wipe.wipe-out .page-wipe-label {
    animation: labelFadeOut .3s ease forwards;
}
@keyframes labelFadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 1100px) {
    .section-dots { display: none; }
    .page-wipe-art { width: 180px; height: 180px; }
    .page-wipe-label { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .wheel-spin, .wheel-spin-rev, .wheel-item.active,
    .wheel-item-enter, .wheel-logo, .wheel-art, .page-wipe-art {
        animation: none !important;
    }
    .page-wipe { display: none !important; }
}
.wheel-num {
    font-family: 'JetBrains Mono', 'Inter', monospace;
    font-size: 0.7rem;
    opacity: 0.7;
    letter-spacing: 0;
    font-weight: 500;
}
.wheel-label {
    font-weight: 700;
}
.wheel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    margin-left: 4px;
}
.wheel-item.active .wheel-dot {
    opacity: 1;
    box-shadow: 0 0 8px currentColor;
}

/* ============== MOBILE BAR + DRAWER ============== */
.mobile-bar {
    display: none;
}
.mobile-drawer {
    display: none;
}

@media (max-width: 1100px) {
    body.has-wheel-nav { padding-left: 0; }
    .wheel-nav { display: none; }

    .mobile-bar {
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 64px;
        background: rgba(0,0,0,0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }
    .mobile-logo img {
        max-height: 32px;
        filter: brightness(0) invert(1);
        opacity: 0.9;
    }
    .mobile-toggle {
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 0;
    }
    .mobile-toggle span {
        display: block;
        width: 16px;
        height: 2px;
        background: #fff;
        transition: all .3s ease;
    }
    body.drawer-open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.drawer-open .mobile-toggle span:nth-child(2) { opacity: 0; }
    body.drawer-open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-drawer {
        position: fixed;
        top: 64px; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.96);
        backdrop-filter: blur(20px);
        z-index: 998;
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
    }
    .mobile-drawer.open { opacity: 1; visibility: visible; }
    .mobile-drawer ul {
        list-style: none;
        padding: 40px 30px;
        margin: 0;
    }
    .mobile-drawer li a {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 22px 0;
        color: #fff;
        text-decoration: none;
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: -.5px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        transition: color .25s ease, padding-left .25s ease;
    }
    .mobile-drawer li a:hover, .mobile-drawer li a.active {
        color: var(--accent-red);
        padding-left: 12px;
    }
    .mobile-drawer li a span {
        font-family: 'JetBrains Mono', 'Inter', monospace;
        font-size: 0.85rem;
        font-weight: 500;
        color: rgba(255,255,255,0.4);
        letter-spacing: 1px;
    }

    .bento-main { padding-top: 88px; }
}

/* =========================================================
   BENTO GRID SYSTEM
   ========================================================= */

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.bento-main {
    padding-top: 56px;
    padding-bottom: 140px;   /* generous breathing space before the footer */
}
@media (max-width: 1100px) {
    .bento-main { padding-top: 88px; }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 140px;
    gap: 16px;
    align-items: stretch;
    grid-auto-flow: dense;
}

/* Section spacing — generous breathing room between conceptual zones. */
.bento-grid + .bento-grid,
.bento-grid + .bento-portfolio-grid,
.bento-portfolio-grid + .bento-grid,
.bento-grid + .bento-section-header,
.bento-portfolio-grid + .bento-section-header,
.bento-grid + .quote-scroller,
.quote-scroller + .bento-grid,
.quote-scroller + .bento-section-header,
.bento-section {
    margin-top: 140px;
}

.bento-section-header {
    max-width: 1440px;
    margin: 0 auto 40px;
    padding: 0 24px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.bento-section-header h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    margin: 0;
    font-weight: 700;
    letter-spacing: -.5px;
}
.bento-section-header .eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: var(--accent-red);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}
.bento-section-header p {
    color: rgba(255,255,255,0.6);
    margin: 6px 0 0;
    max-width: 480px;
    font-size: 0.95rem;
}
.bento-section-header a.section-link {
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .bento-grid + .bento-grid,
    .bento-grid + .bento-portfolio-grid,
    .bento-portfolio-grid + .bento-grid,
    .bento-grid + .bento-section-header,
    .bento-portfolio-grid + .bento-section-header,
    .bento-grid + .quote-scroller,
    .quote-scroller + .bento-grid,
    .quote-scroller + .bento-section-header,
    .bento-section { margin-top: 100px; }
    .bento-section-header { margin-bottom: 28px; }
}
@media (max-width: 720px) {
    .bento-grid + .bento-grid,
    .bento-grid + .bento-portfolio-grid,
    .bento-portfolio-grid + .bento-grid,
    .bento-grid + .bento-section-header,
    .bento-portfolio-grid + .bento-section-header,
    .bento-grid + .quote-scroller,
    .quote-scroller + .bento-grid,
    .quote-scroller + .bento-section-header,
    .bento-section { margin-top: 72px; }
    .bento-section-header { margin-bottom: 20px; }
}

.bento-tile {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(180deg, #1a1a1c 0%, #131315 100%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
    padding: 28px;
    overflow: hidden;
    color: #fff;
    transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .35s ease, background .35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    isolation: isolate;
    grid-column: span 4;
    grid-row: span 2;
}

a.bento-tile { cursor: pointer; }

.bento-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(229,9,20,0.15);
}

.bento-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    margin: 0 0 12px;
    display: block;
}

.bento-tile h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; margin: 0 0 10px; letter-spacing: -1px; font-weight: 700; }
.bento-tile h3 { font-size: clamp(1.2rem, 1.6vw, 1.7rem); line-height: 1.1; margin: 0 0 8px; letter-spacing: -.3px; font-weight: 700; }
.bento-tile h4 { font-size: 1.05rem; line-height: 1.25; margin: 0 0 10px; font-weight: 600; }
.bento-tile p  { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.45; margin: 0 0 12px; }

.hl-red { color: var(--accent-red); }
.hl-link { color: var(--accent-red); text-decoration: underline; text-underline-offset: 4px; }

.bento-arrow {
    font-size: 1.6rem;
    color: var(--accent-red);
    align-self: flex-start;
    transition: transform .35s ease;
}
.bento-tile:hover .bento-arrow { transform: translate(4px, -4px); }

.bento-arrow-corner {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 4;
}

.bento-arrow-link {
    color: var(--accent-red);
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
}

.btn-lg { padding: 16px 32px; font-size: 0.95rem; border-radius: 50px; }
.btn-sm { padding: 10px 22px; font-size: 0.8rem; border-radius: 50px; }
.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }
.bento-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ----- HERO TILE ----- */
.bento-hero {
    grid-column: span 8;
    grid-row: span 4;
    padding: 56px;
    justify-content: space-between;
    background:
        radial-gradient(circle at 80% 20%, rgba(229,9,20,0.25) 0%, transparent 55%),
        linear-gradient(135deg, #0a0a0a 0%, #1a0606 100%);
    border-color: rgba(229,9,20,0.25);
}
.bento-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bento-hero-statue {
    position: absolute;
    right: -8%;
    bottom: -10%;
    width: 60%;
    opacity: 0.22;
    transform: rotate(-6deg);
    filter: drop-shadow(0 30px 60px rgba(229,9,20,.35));
}
.bento-hero-content { position: relative; z-index: 2; }
.bento-hero-title {
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    line-height: 0.98;
    margin: 0 0 20px;
    letter-spacing: -2px;
    font-weight: 700;
}
.bento-hero-title em {
    font-family: 'Great Vibes', cursive;
    font-style: normal;
    font-weight: 400;
    color: #f4f4f4;
    font-size: 1.1em;
    letter-spacing: 0;
}
.bento-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ----- STAT TILES ----- */
.bento-stat {
    grid-column: span 4;
    grid-row: span 2;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(160deg, #1c1c1e, #141416);
}
.bento-stat-red { background: linear-gradient(160deg, rgba(229,9,20,0.25), rgba(229,9,20,0.05)); border-color: rgba(229,9,20,0.3); }
.bento-stat-yellow { background: linear-gradient(160deg, rgba(255,193,7,0.18), rgba(255,193,7,0.04)); border-color: rgba(255,193,7,0.25); }
.bento-stat-num {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}
.bento-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

/* ----- COMPACT STAT TILES ----- (used on portfolio.php).
   span 4 × span 1 packs 4 stats perfectly into the 4-col side strip next to a
   span-8 × span-4 hero (16 cells = 4 × (4×1)). */
.bento-stat.bento-stat-sm {
    grid-column: span 4;
    grid-row: span 1;
    padding: 14px 18px;
    border-radius: 18px;
    justify-content: center;
    min-height: 0;
}
.bento-stat.bento-stat-sm .bento-stat-num {
    font-size: clamp(1.3rem, 1.9vw, 1.8rem);
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.bento-stat.bento-stat-sm .bento-stat-label {
    font-size: 0.66rem;
    letter-spacing: 1.5px;
}
@media (max-width: 1100px) {
    .bento-stat.bento-stat-sm { grid-column: span 4; grid-row: span 1; }
}
@media (max-width: 720px) {
    .bento-stat.bento-stat-sm { grid-column: span 2; padding: 12px 14px; }
    .bento-stat.bento-stat-sm .bento-stat-num   { font-size: 1.4rem; }
    .bento-stat.bento-stat-sm .bento-stat-label { font-size: 0.6rem; }
}

/* ----- SERVICE TILES ----- */
.bento-service {
    grid-column: span 3;
    grid-row: span 2;
    justify-content: space-between;
}
.bento-service-num {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--accent-red);
    font-weight: 700;
    margin-bottom: auto;
}
.bento-service:hover {
    background: linear-gradient(160deg, rgba(229,9,20,0.18), rgba(229,9,20,0.02));
    border-color: rgba(229,9,20,0.35);
}

/* ----- SECTION LABEL ----- */
.bento-section-label {
    grid-column: span 4;
    grid-row: span 2;
    justify-content: center;
}
.bento-section-label h2 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }

/* ----- PROJECT TILES ----- */
.bento-project {
    grid-column: span 4;
    grid-row: span 3;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-color: #111;
    overflow: hidden;
}
.bento-proj-xl  { grid-column: span 8; grid-row: span 4; }
.bento-proj-md  { grid-column: span 4; grid-row: span 3; }
.bento-proj-tall { grid-column: span 4; grid-row: span 4; }
.bento-proj-wide { grid-column: span 8; grid-row: span 3; }

.bento-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
    transition: background .4s ease;
}
.bento-project:hover .bento-project-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.92) 100%);
}
.bento-project:hover { transform: translateY(-4px); }
.bento-project-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    margin-top: auto;
}
.bento-project-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-red);
    font-weight: 700;
    display: inline-block;
    background: rgba(0,0,0,0.55);
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.bento-project h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.9rem);
    margin: 0 0 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.bento-proj-xl h3 { font-size: clamp(1.6rem, 2.6vw, 2.6rem); }
.bento-project-client {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin: 0 0 4px;
    font-size: 0.95rem;
}
.bento-project-meta { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: 0; }

/* ----- TRUST TILE ----- */
.bento-trust {
    grid-column: span 12;
    grid-row: span 2;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 24px 32px;
}
.bento-trust-label { flex: 0 0 auto; max-width: 220px; }
.bento-trust-label h3 { margin: 0; font-size: 1.2rem; }
.bento-trust-marquee {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
            mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.bento-trust-marquee .marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marquee 35s linear infinite;
    align-items: center;
}
.bento-trust-marquee img {
    max-width: 110px;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: all .3s ease;
}
.bento-trust-marquee img:hover { opacity: 1; transform: scale(1.08); }

/* ----- SOCIAL TILES ----- */
.bento-social {
    grid-column: span 6;
    grid-row: span 2;
    justify-content: space-between;
}
.bento-social-me {
    background: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(0,0,0,0.4));
    border-color: rgba(229,9,20,0.3);
}
.bento-social-studios {
    background: linear-gradient(135deg, rgba(255,193,7,0.12), rgba(0,0,0,0.4));
    border-color: rgba(255,193,7,0.25);
}
.bento-social h3 { font-size: 1.7rem; letter-spacing: -.5px; }
.bento-page-name {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem) !important;
    font-weight: 800;
    margin: 0 0 4px !important;
    letter-spacing: -.5px;
    color: #fff;
    line-height: 1.05 !important;
}
.bento-page-handle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55) !important;
    margin: 0 0 14px !important;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.bento-social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.social-pill {
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all .25s ease;
    text-decoration: none;
}
.social-pill:hover { background: var(--accent-red); border-color: var(--accent-red); transform: translateY(-2px); }

/* ----- WHATSAPP CTA ----- */
.bento-wa {
    grid-column: span 4;
    grid-row: span 3;
    background: linear-gradient(160deg, #25d366 0%, #128c7e 100%);
    border-color: transparent;
    justify-content: space-between;
}
.bento-wa .bento-eyebrow { color: rgba(255,255,255,0.85); }
.bento-wa p { color: rgba(255,255,255,0.95); }
.bento-wa-icon { color: #fff; opacity: 0.9; margin-bottom: auto; }
.bento-wa-num { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.5px; color: #fff !important; margin-bottom: 16px; }
.bento-wa .btn-primary { background: #fff; color: #128c7e; border-color: #fff; }
.bento-wa .btn-primary:hover { background: #000; color: #fff; border-color: #000; }

/* ----- JOURNAL TILES ----- */
.bento-journal-head {
    grid-column: span 4;
    grid-row: span 3;
    justify-content: center;
}
.bento-journal {
    grid-column: span 4;
    grid-row: span 3;
    justify-content: flex-end;
}
.bento-journal:hover { background: linear-gradient(160deg, rgba(229,9,20,0.1), rgba(255,255,255,0.02)); }
.bento-blog-meta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-red);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

/* ----- BIG CTA ----- */
.bento-cta {
    grid-column: span 12;
    grid-row: span 3;
    background:
        radial-gradient(circle at 20% 80%, rgba(229,9,20,0.4) 0%, transparent 50%),
        linear-gradient(135deg, #1a0606 0%, #000 60%);
    border-color: rgba(229,9,20,0.3);
    padding: 56px;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}
.bento-cta h2 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -2px; line-height: 0.95; }
.bento-cta p { font-size: 1.1rem; max-width: 600px; margin-bottom: 28px; }

/* =========================================================
   BENTO RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(8, 1fr); grid-auto-rows: 130px; }
    .bento-hero { grid-column: span 8; grid-row: span 3; padding: 40px; }
    .bento-stat, .bento-section-label { grid-column: span 4; grid-row: span 2; }
    .bento-service { grid-column: span 4; grid-row: span 2; }
    .bento-project, .bento-proj-md, .bento-proj-tall { grid-column: span 4; grid-row: span 3; }
    .bento-proj-xl { grid-column: span 8; grid-row: span 3; }
    .bento-trust  { grid-column: span 8; flex-direction: column; align-items: stretch; }
    .bento-trust-label { max-width: none; }
    .bento-social { grid-column: span 4; }
    .bento-wa     { grid-column: span 4; }
    .bento-journal-head, .bento-journal { grid-column: span 4; }
    .bento-cta    { grid-column: span 8; padding: 40px; }
    .bento-hero-statue { width: 80%; opacity: 0.14; }
}

/* =========================================================
   MOBILE — DENSE 4-COL GRID (keeps the bento feeling, shorter page)
   ========================================================= */
@media (max-width: 720px) {
    .bento-main { padding-top: 80px; }

    .container-wide { padding: 0 14px; }

    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: auto;
        gap: 10px;
    }
    /* Section breathing room handled by the global mobile rule above (72px). */
    .bento-section-header { padding: 0 14px; margin-bottom: 12px; gap: 12px; }
    .bento-section-header h2 { font-size: 1.4rem; }
    .bento-section-header p  { font-size: 0.85rem; }
    .bento-section-header .eyebrow { font-size: 0.66rem; }

    /* Default tile padding shrinks */
    .bento-tile {
        padding: 16px;
        border-radius: 18px;
        grid-column: span 4;
        grid-row: auto;
        min-height: 0;
    }
    .bento-tile h2 { font-size: 1.6rem; line-height: 1.05; margin-bottom: 6px; }
    .bento-tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
    .bento-tile h4 { font-size: 0.95rem; margin-bottom: 6px; }
    .bento-tile p  { font-size: 0.84rem; margin-bottom: 8px; line-height: 1.4; }
    .bento-eyebrow { font-size: 0.62rem; letter-spacing: 1.6px; margin-bottom: 6px; }

    /* ===== HERO ===== full width but compact */
    .bento-hero {
        grid-column: span 4;
        padding: 24px 20px;
        min-height: 380px;
    }
    .bento-hero-title { font-size: 2.2rem; letter-spacing: -1px; line-height: 1.02; margin-bottom: 12px; }
    .bento-hero-sub   { font-size: 0.9rem; margin-bottom: 16px; line-height: 1.45; }
    .bento-hero-statue { width: 110%; right: -25%; opacity: 0.12; }
    .bento-cta-row { margin-top: 8px; gap: 8px; }
    .btn-lg { padding: 11px 18px; font-size: 0.78rem; }
    .btn-sm { padding: 8px 14px; font-size: 0.72rem; }

    /* ===== STATS ===== 2 per row */
    .bento-stat {
        grid-column: span 2;
        min-height: 100px;
        padding: 14px;
    }
    .bento-stat-num   { font-size: 1.9rem; margin-bottom: 4px; letter-spacing: -1px; }
    .bento-stat-label { font-size: 0.66rem; letter-spacing: 1.5px; }
    .bento-meta-value { font-size: 0.95rem; }

    /* ===== SECTION LABEL ===== full width compact */
    .bento-section-label { grid-column: span 4; padding: 16px; min-height: 0; }
    .bento-section-label h2 { font-size: 1.4rem; }

    /* ===== SERVICES / PROCESS ===== 2 per row */
    .bento-service {
        grid-column: span 2;
        padding: 14px;
        min-height: 140px;
        justify-content: space-between;
    }
    .bento-service h3 { font-size: 0.98rem; line-height: 1.15; }
    .bento-service p { font-size: 0.78rem; margin-bottom: 6px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .bento-service-num { font-size: 0.62rem; letter-spacing: 1.6px; }
    .bento-arrow { font-size: 1.1rem; }

    /* ===== PROJECTS ===== mosaic: first wide, rest 2-up */
    .bento-project, .bento-proj-md, .bento-proj-tall, .bento-proj-wide {
        grid-column: span 2;
        min-height: 200px;
    }
    .bento-proj-xl { grid-column: span 4; min-height: 280px; }
    .bento-project-content { padding: 14px; }
    .bento-project h3 { font-size: 1rem; }
    .bento-proj-xl h3 { font-size: 1.4rem; }
    .bento-project-cat { font-size: 0.6rem; padding: 4px 8px; }
    .bento-project-client { font-size: 0.8rem; }
    .bento-project-meta { font-size: 0.72rem; }

    /* ===== TRUST ===== full width */
    .bento-trust {
        grid-column: span 4;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 12px;
    }
    .bento-trust-label h3 { font-size: 0.92rem; }
    .bento-trust-marquee img { max-width: 70px; max-height: 40px; }

    /* ===== SOCIALS ===== 2 per row (compact handles) */
    .bento-social {
        grid-column: span 2;
        padding: 14px;
        min-height: 150px;
    }
    .bento-page-name   { font-size: 1.1rem !important; }
    .bento-page-handle { font-size: 0.78rem; margin-bottom: 8px !important; }
    .bento-social p    { display: none; }
    .bento-social-row  { gap: 6px; margin-top: 8px; }
    .social-pill       { padding: 5px 10px; font-size: 0.62rem; letter-spacing: 0.6px; }

    /* ===== WHATSAPP ===== full width but shorter */
    .bento-wa {
        grid-column: span 4;
        padding: 16px;
        min-height: 150px;
    }
    .bento-wa-num { font-size: 1.05rem; margin-bottom: 10px; }
    .bento-wa-icon svg { width: 30px; height: 30px; }

    /* ===== JOURNAL ===== head full, items 2-up */
    .bento-journal-head {
        grid-column: span 4;
        padding: 16px;
        min-height: 0;
    }
    .bento-journal {
        grid-column: span 2;
        padding: 14px;
        min-height: 170px;
    }
    .bento-blog-meta { font-size: 0.62rem; }

    /* ===== TESTIMONIAL QUOTES ===== 2 per row (compact); the two big ones still full width */
    .bento-quote {
        grid-column: span 2 !important;
        grid-row: auto !important;
        padding: 14px;
        min-height: 180px;
    }
    .bento-quote-text { font-size: 0.78rem !important; line-height: 1.4 !important; margin-bottom: 10px !important; }
    .bento-quote-mark { font-size: 2.4rem; margin-bottom: 2px; }
    .bento-quote-author strong { font-size: 0.82rem; }
    .bento-quote-author span   { font-size: 0.62rem; }

    /* ===== FAQ ===== full width (expanding) */
    .bento-faq {
        grid-column: span 4 !important;
        grid-row: auto !important;
        padding: 14px 16px;
        min-height: 0;
    }
    .bento-faq summary h3 { font-size: 0.92rem; padding-right: 36px; }
    .bento-faq > p { font-size: 0.82rem; }
    .bento-faq-icon { width: 26px; height: 26px; font-size: 1rem; }

    /* ===== CTA ===== full width, compact */
    .bento-cta {
        grid-column: span 4;
        padding: 24px 20px;
        min-height: 200px;
        text-align: left;
    }
    .bento-cta h2 { font-size: 2rem; letter-spacing: -1px; line-height: 0.95; }
    .bento-cta p  { font-size: 0.9rem; margin-bottom: 14px; }

    /* ===== PORTFOLIO MOSAIC ===== 2 per row */
    .bento-portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: auto;
        gap: 10px;
        padding: 0 14px 56px;
    }
    .bento-portfolio-tile,
    .bento-portfolio-tile:nth-child(7n+1),
    .bento-portfolio-tile:nth-child(7n+4) {
        grid-column: span 2;
        grid-row: auto;
        min-height: 180px;
    }
    .bento-portfolio-tile:first-child {
        grid-column: span 4;
        min-height: 240px;
    }

    /* ===== INFO TILES (about/contact) ===== */
    .bento-info, .bento-info-wide { grid-column: span 4; padding: 16px; min-height: 0; }
    .bento-info-tall, .bento-info-sm { grid-column: span 2; padding: 14px; min-height: 110px; }
    .bento-form { grid-column: span 4; padding: 18px; min-height: auto; }
    .bento-value { font-size: 0.95rem; margin: 4px 0 10px; }
}

/* Very small phones — keep stats/services 2-up but force socials/quotes to 1-col if needed */
@media (max-width: 380px) {
    .bento-grid { gap: 8px; }
    .bento-portfolio-grid { gap: 8px; }
    .bento-social, .bento-stat, .bento-service { min-height: 90px; }
    .bento-page-name   { font-size: 0.96rem !important; }
    .bento-stat-num    { font-size: 1.6rem; }
    .social-pill       { padding: 4px 8px; font-size: 0.58rem; }
}

/* =========================================================
   QUOTE SCROLLER (horizontal testimonials)
   ========================================================= */
.quote-scroller {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 auto;
    padding: 4px 0 18px;
    cursor: grab;
    /* Soft mask edges so cards fade in/out at the scroll boundaries */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.quote-scroller::-webkit-scrollbar { display: none; }
.quote-scroller.dragging { cursor: grabbing; }
.quote-scroller .quote-track {
    display: flex;
    gap: 18px;
    padding: 6px 24px 12px;
    min-width: 100%;
    width: max-content;
}
.quote-scroller .bento-quote {
    flex: 0 0 380px;
    width: 380px;
    min-height: 260px;
    scroll-snap-align: start;
    grid-column: auto !important;
    grid-row: auto !important;
    /* Override the dense mobile rule that forces 170px width */
    margin: 0;
}
.quote-scroller-nav {
    display: flex;
    gap: 8px;
}
.quote-scroller-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.quote-scroller-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    transform: translateY(-2px);
}
.quote-scroller-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

@media (max-width: 720px) {
    .quote-scroller { padding: 0 0 12px; }
    .quote-scroller .quote-track { gap: 12px; padding: 4px 14px 10px; }
    .quote-scroller .bento-quote {
        flex: 0 0 78vw !important;
        width: 78vw !important;
        min-height: 220px !important;
    }
    .quote-scroller-nav { display: none; }
}

/* Footer CTA grid — two tiles side by side: main CTA (wide) + WhatsApp (slim).
   Overrides inherited .bento-grid columns/auto-rows so the tiles set their own heights
   (and never overflow into the info grid below). */
.footer-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: auto;
    gap: 16px;
    margin: 0 0 80px;
    position: relative;
    z-index: 3;          /* sit above the .footer-arc decoration on its left */
}
.footer-cta-grid .bento-cta {
    grid-column: 1 / 2;
    grid-row: auto;
    min-height: 280px;
    padding: 48px 56px;
    box-sizing: border-box;
    width: 100%;
}
.footer-cta-grid .bento-wa {
    grid-column: 2 / 3;
    grid-row: auto;
    min-height: 280px;
    padding: 32px 28px;
    box-sizing: border-box;
    width: 100%;
}
@media (max-width: 1100px) {
    .footer-cta-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 64px;
    }
    .footer-cta-grid .bento-cta { grid-column: 1 / -1; padding: 40px 44px; min-height: 240px; }
    .footer-cta-grid .bento-wa  { grid-column: 1 / -1; min-height: 200px; padding: 28px; }
}
@media (max-width: 720px) {
    .footer-cta-grid { gap: 12px; margin-bottom: 40px; }
    .footer-cta-grid .bento-cta { padding: 24px 20px; min-height: 200px; }
    .footer-cta-grid .bento-wa  { padding: 22px 20px; min-height: 180px; }
}

/* =========================================================
   QUOTE TILES (testimonials)
   ========================================================= */
.bento-quote {
    background: linear-gradient(160deg, #1d1d1f, #141416);
    justify-content: space-between;
    position: relative;
}
.bento-quote-mark {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    line-height: 0.8;
    color: var(--accent-red);
    opacity: 0.7;
    display: block;
    margin-bottom: 8px;
}
.bento-quote-text {
    font-size: clamp(1rem, 1.3vw, 1.25rem) !important;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 400;
    line-height: 1.5 !important;
    margin: 0 0 18px !important;
    font-style: italic;
}
.bento-quote-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}
.bento-quote-author strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -.2px;
}
.bento-quote-author span {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* =========================================================
   FAQ TILES
   ========================================================= */
details.bento-faq {
    cursor: pointer;
    transition: all .3s ease;
}
details.bento-faq > summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    user-select: none;
}
details.bento-faq > summary::-webkit-details-marker { display: none; }
.bento-faq-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(229,9,20,0.15);
    border: 1px solid rgba(229,9,20,0.3);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform .3s ease, background .3s ease;
}
details.bento-faq[open] .bento-faq-icon {
    transform: rotate(45deg);
    background: var(--accent-red);
    color: #fff;
}
details.bento-faq[open] {
    background: linear-gradient(160deg, rgba(229,9,20,0.1), rgba(255,255,255,0.02));
    border-color: rgba(229,9,20,0.25);
}
details.bento-faq > p {
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* (Legacy single-col mobile override for quotes/FAQ removed —
   the dense mobile grid above handles these explicitly.) */

/* =========================================================
   ARTICLE / SINGLE PROJECT PAGES
   ========================================================= */
.article-page .bento-tile { color: #fff; }

.article-hero-tile {
    grid-column: span 12;
    grid-row: span 5;
    background-size: cover;
    background-position: center;
    background-color: #111;
    padding: 0;
    overflow: hidden;
    min-height: 480px;
}
.article-hero-inner {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 56px;
    max-width: 900px;
}
.article-back {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 18px;
    transition: color .25s ease;
    text-decoration: none;
}
.article-back:hover { color: var(--accent-red); }
.article-title {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -1.5px;
    font-weight: 700;
    margin: 12px 0 16px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.article-meta {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin: 0;
}

.article-body {
    max-width: 1440px;
    margin: 48px auto 0;
    padding: 0 24px;
    font-size: 1.1rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.78);
}
.article-body > div { max-width: 760px; margin: 0 auto; }
.article-body p { margin: 0 0 24px; }
.article-body h2, .article-body h3 { color: #fff; margin: 48px 0 16px; font-weight: 700; letter-spacing: -.5px; }
.article-body h2 { font-size: 1.8rem; }
.article-body h3 { font-size: 1.4rem; }
.article-body img { max-width: 100%; border-radius: 16px; margin: 32px 0; }
.article-body a { color: var(--accent-red); text-decoration: underline; text-underline-offset: 4px; }
.article-body strong { color: #fff; }

.article-tags {
    max-width: 760px;
    margin: 40px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.tags-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    margin-right: 8px;
}
.chip-static {
    cursor: default;
}
.chip-static:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.bento-meta-value {
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.3px;
    line-height: 1.2;
    margin-top: 6px;
}

/* =========================================================
   PORTFOLIO PAGE — BENTO MOSAIC
   ========================================================= */
.bento-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 160px;
    gap: 16px;
    grid-auto-flow: dense;
    padding-bottom: 80px;
}
.bento-portfolio-tile {
    grid-column: span 4;
    grid-row: span 2;
}
.bento-portfolio-tile:nth-child(7n+1) { grid-column: span 6; grid-row: span 3; }
.bento-portfolio-tile:nth-child(7n+4) { grid-column: span 6; grid-row: span 2; }
.bento-portfolio-tile:nth-child(11n+8) { grid-row: span 3; }

@media (max-width: 1100px) {
    .bento-portfolio-grid { grid-template-columns: repeat(8, 1fr); }
    .bento-portfolio-tile { grid-column: span 4; }
    .bento-portfolio-tile:nth-child(7n+1) { grid-column: span 8; grid-row: span 3; }
}
@media (max-width: 720px) {
    .bento-portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-portfolio-tile,
    .bento-portfolio-tile:nth-child(7n+1),
    .bento-portfolio-tile:nth-child(7n+4) {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }
}

.bento-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 24px 0;
    justify-content: flex-start;
}
.bento-filters .chip {
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all .25s ease;
    text-decoration: none;
}
.bento-filters .chip:hover, .bento-filters .chip.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* =========================================================
   ABOUT / CONTACT BENTO
   ========================================================= */
.bento-info {
    grid-column: span 6;
    grid-row: span 3;
    justify-content: space-between;
}
.bento-info-wide {
    grid-column: span 8;
    grid-row: span 3;
}
.bento-info-tall {
    grid-column: span 4;
    grid-row: span 4;
}
.bento-info-sm {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-form {
    grid-column: span 8;
    grid-row: span 5;
    padding: 40px;
    justify-content: flex-start;
}
.bento-form-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}
.bento-form-inner input,
.bento-form-inner textarea {
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color .2s ease, background .2s ease;
}
.bento-form-inner input:focus,
.bento-form-inner textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(229,9,20,0.05);
}
.bento-form-inner textarea { resize: vertical; min-height: 110px; }
.bento-form-inner button {
    align-self: flex-start;
    padding: 14px 32px;
    border-radius: 50px;
    background: var(--accent-red);
    border: 1px solid var(--accent-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all .25s ease;
}
.bento-form-inner button:hover { background: transparent; color: var(--accent-red); }

.bento-msg-success, .bento-msg-error {
    grid-column: 1 / -1;
    padding: 16px 22px;
    border-radius: 14px;
    font-weight: 600;
}
.bento-msg-success {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25d366;
}
.bento-msg-error {
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff6b73;
}

.bento-value {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    color: #fff;
    margin: 6px 0 16px;
    line-height: 1.3;
    word-break: break-word;
}

@media (max-width: 1100px) {
    .bento-info, .bento-info-wide { grid-column: span 8; grid-row: span 3; }
    .bento-info-tall { grid-column: span 4; grid-row: span 3; }
    .bento-info-sm   { grid-column: span 4; grid-row: span 2; }
    .bento-form { grid-column: span 8; grid-row: span 5; padding: 32px; }
}
@media (max-width: 720px) {
    .bento-info, .bento-info-wide, .bento-info-tall, .bento-info-sm, .bento-form {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 200px;
    }
    .bento-form { min-height: 540px; padding: 24px; }
}
