/* =================================================================
   A.SAL — "Gravitas" Stylesheet (v2.6.3)
   @author Alex Salazar
   ================================================================= */

/* ------------------------------------------------------------------
   FONT NOTE — Enqueue in your child theme or Elementor:
   https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700&family=Questrial&display=swap
   ------------------------------------------------------------------ */

:root {
    --asal-black:   #080808;
    --asal-ink:     #0c0c0d;
    --asal-white:   #ffffff;
    --asal-mist:    #f4f4f3;
    --asal-line:    rgba(255,255,255,0.12);
    --asal-line-d:  rgba(0,0,0,0.12);
    --asal-grey-light: #999999;
    --asal-grey-dark:  #666666;
    --asal-orange:  #ff6a3d;
    --asal-amber:   #ffb24c;
    --asal-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
    --asal-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
    --asal-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* =================================================================
   RESET & BASE
   ================================================================= */
* { box-sizing: border-box; }

/* ── Bulletproof cursor suppression ──────────────────────────────
   `cursor: inherit` lets child rules that declare an explicit value
   (grab, grabbing, default, auto, text…) break through the chain.
   Using `none !important` on every selector closes every escape
   hatch — theme stylesheets, browser UA defaults, and our own
   hover/track rules all get overridden.                           */
html, body, *, *::before, *::after { cursor: none !important; }

html, body {
    margin: 0; padding: 0;
    font-family: var(--asal-body);
    color: var(--asal-white);
    background: var(--asal-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* =================================================================
   CUSTOM CURSOR
   ================================================================= */
.asal-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    will-change: top, left;
}
.asal-cursor__dot {
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    background: var(--asal-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}
.asal-cursor__ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    border: 1px solid var(--asal-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
.asal-cursor--hover .asal-cursor__dot { opacity: 0; }
.asal-cursor--hover .asal-cursor__ring { width: 48px; height: 48px; }

/* Explicit per-element reinforcement — belt-and-braces alongside the
   wildcard above. Theme stylesheets and browser UA sheets sometimes
   win a specificity battle against `*`; naming the elements directly
   closes that gap. .asal-selected-works__card is included so hover/drag
   states on cards never expose the native cursor (.asal-portfolio__frame
   sets its own cursor: none directly). */
html, body,
a, button, [role="button"],
.asal-selected-works__card { cursor: none !important; }

/* =================================================================
   LOADING SCREEN
   ================================================================= */
.asal-loader {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: var(--asal-black);
    display: grid;
    place-items: center;
    pointer-events: none;
    animation: asal-loader-failsafe 0.8s ease 5s forwards;
}
.asal-loader__core {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--asal-white);
    animation: asal-loader-pulse 1.4s ease-in-out infinite;
}
.asal-loader.is-ready { animation: asal-loader-fade 0.8s ease forwards; }
@keyframes asal-loader-pulse {
    0%, 100% { transform: scale(0.6); opacity: 0.35; }
    50%      { transform: scale(1.6); opacity: 0.95; }
}
@keyframes asal-loader-fade     { to { opacity: 0; visibility: hidden; } }
@keyframes asal-loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* =================================================================
   PAGE TRANSITION OVERLAY
   A full-viewport curtain (z-index above cursor) that slides up
   from below the viewport on exit, then slides off to the top on
   the next page's entrance. Driven entirely by GSAP in main.js.
   ================================================================= */
.asal-page-transition {
    position: fixed;
    inset: 0;
    /* Sits above cursor (99999) and loader (10001) */
    z-index: 100000;
    background: var(--asal-black);
    /* Starts below the viewport so it's invisible until triggered */
    transform: translateY(100%);
    pointer-events: none;   /* re-enabled by JS during the exit sweep */
    will-change: transform;
}
/* Applied by an inline <head> script before first paint when arriving via
   a page transition — snaps the overlay to full cover immediately, preventing
   any flash of the new page before the deferred main.js module takes over. */
html.asal-transitioning .asal-page-transition {
    transform: translateY(0%);
}

/* =================================================================
   BACKGROUND + CANVAS (fixed)
   ================================================================= */
.asal-bg {
    position: fixed; inset: 0;
    background: var(--asal-black);
    z-index: 0;
    pointer-events: none;
    --asal-iris: 150%;
    -webkit-clip-path: circle(var(--asal-iris) at 50% 50%);
    clip-path: circle(var(--asal-iris) at 50% 50%);
}
#asal-canvas {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    pointer-events: auto;
    --asal-iris: 150%;
    -webkit-clip-path: circle(var(--asal-iris) at 50% 50%);
    clip-path: circle(var(--asal-iris) at 50% 50%);
}

/* =================================================================
   NAV + GLASSMORPHISM (Desktop)
   ================================================================= */
.asal-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    pointer-events: none;
    isolation: isolate;
}
.asal-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 110px;
    background: linear-gradient(180deg, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.30) 55%, transparent 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}
.asal-nav[data-theme="light"]::before {
    background: linear-gradient(180deg, rgba(244,244,243,0.78) 0%, rgba(244,244,243,0.30) 55%, transparent 100%);
}
.asal-nav__logo {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    background: var(--asal-white);
    color: var(--asal-black);
    font-family: var(--asal-display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    padding: 1rem 3.2rem 1rem 2rem;
    text-decoration: none;
    white-space: nowrap;
    clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
    transition: background 0.3s, color 0.3s;
}
.asal-nav[data-theme="light"] .asal-nav__logo { background: var(--asal-black); color: var(--asal-white); }

.asal-nav__menu {
    pointer-events: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0; padding: 0 4vw;
    font-family: var(--asal-body);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.asal-nav__menu a {
    color: var(--asal-white);
    text-decoration: none;
    padding: 1.2rem 0.5rem;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.92;
}
.asal-nav__menu a:hover { opacity: 1; }
.asal-nav[data-theme="light"] .asal-nav__menu a { color: var(--asal-black); }

/* =================================================================
   PINNED HERO SECTION (Scenes 1–5)
   ================================================================= */
.asal-pinned {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 5;
    overflow: visible;
    margin-bottom: 0;
}
.asal-pin-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    pointer-events: none;
    text-align: center;
    padding: 0 1.5rem;
}
.asal-pin-content > * { pointer-events: auto; }

.asal-hero__title {
    font-family: var(--asal-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 9vw, 9rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--asal-white);
    mix-blend-mode: screen;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}
.asal-hero__title br { display: block; }

.asal-hero__subtitle {
    position: absolute;
    bottom: 6vh; left: 0; right: 0;
    font-family: var(--asal-body);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.05vw, 1.05rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--asal-white);
    opacity: 0.85;
    margin: 0;
}

.asal-char {
    display: inline-block;
    will-change: transform, opacity, filter;
}

.asal-bridge-text {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(820px, 88vw);
    height: fit-content;
    align-self: center;
    font-family: var(--asal-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--asal-white);
    text-shadow: 0 2px 28px rgba(0,0,0,0.7);
}

/* =================================================================
   NATURAL FLOW SECTIONS
   ================================================================= */
.asal-section {
    position: relative;
    width: 100%;
    z-index: 10;
    padding: 8vh 5vw;
    background: var(--asal-white);
    color: var(--asal-black);
}
.asal-section + .asal-section { padding-top: 4vh; }

.asal-section-title {
    font-family: var(--asal-display);
    font-weight: 800;
    font-size: clamp(2rem, 4.8vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--asal-black);
    margin: 0 0 4rem;
    text-align: center;
}

/* ---- Bio ---- */
.asal-section--bio { margin-top: 0; min-height: 80vh; padding-top: 12vh; }

.asal-bio {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 3rem;
    align-items: center;
}
.asal-bio__image {
    aspect-ratio: 1 / 1;
    background: var(--asal-black) center/cover no-repeat;
    border-radius: 6px;
    width: 100%;
    max-width: 480px;
    justify-self: end;
    overflow: hidden;
}
.asal-profile__image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.asal-bio__guide {
    width: 1px;
    height: 60vh;
    background: var(--asal-black);
    opacity: 0.45;
    justify-self: center;
    position: relative;
}
.asal-bio__guide::before,
.asal-bio__guide::after {
    content: ''; position: absolute;
    width: 8px; height: 8px;
    border: 1px solid var(--asal-black);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    backface-visibility: hidden;
}
.asal-bio__guide::before { top: -4px; }
.asal-bio__guide::after  { bottom: -4px; }
.asal-bio__paragraph {
    font-family: var(--asal-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--asal-black);
    max-width: 42ch;
}

/* ---- Capabilities ---- */
.asal-section--cap { margin-bottom: 0; }

.asal-cap-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
}
.asal-cap-card {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
      radial-gradient(120% 100% at 0% 0%, #c5cdff 0%, transparent 55%),
      radial-gradient(140% 110% at 100% 100%, #ffd6e1 0%, transparent 60%),
      linear-gradient(135deg, #b6d8ff, #e7c8ff);
    box-shadow: 0 12px 40px rgba(120, 130, 200, 0.18);
    color: var(--asal-black);
    font-family: var(--asal-display);
    font-weight: 700;
}
.asal-cap-card .cap-content { padding: 0.5rem; }
.asal-cap-card h3 { font-size: 1.05rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.asal-cap-card p {
    font-family: var(--asal-body);
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}
.asal-cap-card.is-center {
    background:
      radial-gradient(80% 80% at 50% 30%, #b6d8ff 0%, transparent 60%),
      radial-gradient(70% 70% at 60% 90%, #ffd1e0 0%, transparent 55%),
      linear-gradient(135deg, #cdc8ff, #ffd6f1);
}

/* =================================================================
   WORKS SECTION CHROME — shared by Selected Works (home) and the
   Design portfolio grid (/design); each has its own inner component
   below (.asal-selected-works / .asal-portfolio).
   ================================================================= */
.asal-section--works {
    position: relative;
    width: 100%;
    background: var(--asal-white);
    color: var(--asal-black);
    overflow: hidden;
    padding: 100px 0 8vh;
}
/* =================================================================
   RECENT WORK — Dual-Row Scroll Carousel (homepage)
   Desktop: two independent flex tracks (Row 1 — Design, Row 2 —
   Artwork). Each track's translateX is scrubbed to scroll progress
   by asal-selected-works.js (_setupScrollCarousel) — CSS just sets
   up the flex row + clips the viewport; JS owns transform entirely.
   Mobile: plain native horizontal scroll-snap per row, no JS
   transform. Cards carry no visible caption at any breakpoint.
   ================================================================= */
.asal-selected-works { position: relative; width: 100%; }

.asal-selected-works__header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 5vw;
}

.asal-selected-works__row + .asal-selected-works__row { margin-top: 1.25rem; }

/* Track — mobile: native scroll-snap flow, sized so ~1.25 cards show
   at once (card = 80vw, so the 2nd card's leading ~1/5 peeks in from
   the right edge) — a deliberate "there's more, swipe" affordance
   rather than the old symmetric both-sides peek. Flush-left start +
   snap-align: start (not center) is what makes the peek read as
   "next card," not "centered focus." Desktop overrides below hand
   translateX control entirely to JS. */
.asal-selected-works__viewport {
    position: relative;
    width: 100%;
}
.asal-selected-works__track {
    display: flex;
    gap: 1rem;
    width: 100%;
    padding-inline: 0 5vw;
    overflow-x: auto;
    /* proximity (not mandatory) + scroll-behavior: smooth let a flick
       glide past several cards and ease to rest at the nearest one,
       instead of hard-stopping at every card in between — mandatory +
       snap-stop: always is what made the old version feel rigid. */
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    -webkit-user-select: none;
}
.asal-selected-works__track::-webkit-scrollbar { display: none; }

.asal-selected-works__card {
    flex: 0 0 auto;
    width: 80vw;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: block;
    text-decoration: none;
    color: var(--asal-black);
    -webkit-user-drag: none;
    user-drag: none;
}

/* Desktop — JS owns each track's translateX (gsap.set x, scrubbed to
   scroll progress). CSS only sets up the clipped stage + card sizing. */
@media (min-width: 769px) {
    .asal-selected-works__viewport { overflow: hidden; }
    .asal-selected-works__track {
        padding-inline: 0;
        overflow: visible;
        touch-action: pan-y;
        will-change: transform;
    }
    .asal-selected-works__card { width: min(32vw, 420px); }
}

.asal-selected-works__frame {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 16px;
    background: var(--asal-mist);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.asal-selected-works__frame img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transform-origin: center center;
    transition: transform 0.6s ease;
}
.asal-selected-works__card:hover .asal-selected-works__frame img { transform: scale(1.06); }

/* CTA — below both rows. Design link filled, Artwork link outlined. */
.asal-selected-works__cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
/* Hover is owned entirely by GSAP now (asal-selected-works.js
   _setupCtaHover — mouseenter/mouseleave tweening background/border/
   color to --asal-grey-dark, plus a subtle scale/lift), so there's no
   CSS :hover rule and no CSS transition on these properties (it would
   fight the tween). -webkit-tap-highlight-color + the explicit
   :focus-visible ring below replace the browser's default blue
   focus/tap highlight with a greyscale one, consistent with the
   hover treatment. */
.asal-selected-works__cta-btn {
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    background: var(--asal-black);
    color: var(--asal-white);
    border: 1px solid var(--asal-black);
    min-width: 96px;
    height: 44px;
    padding: 0 1.75rem;
    border-radius: 999px;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--asal-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    outline: none;
}
.asal-selected-works__cta-btn:focus-visible {
    outline: 2px solid var(--asal-grey-dark);
    outline-offset: 3px;
}
.asal-selected-works__cta-btn--outline {
    background: transparent;
    color: var(--asal-black);
}
@media (max-width: 768px) {
    .asal-selected-works__header { margin-bottom: 2rem; }
    .asal-selected-works__cta {
        flex-direction: column;
        margin-top: 2.5rem;
    }
    .asal-selected-works__cta-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* =================================================================
   DESIGN PORTFOLIO GRID (/design page)
   Dense 3-column (1-column mobile) filterable grid. Filtering (GSAP
   Flip), scroll-velocity image skew, and drag-suppressed lightbox
   clicks live in asal-portfolio-grid.js. The overlay below is pure
   CSS — always in the DOM, revealed on hover (desktop/mouse only);
   touch devices get a lighter always-on title/category strip instead
   since there's no hover to reveal it.
   ================================================================= */
.asal-portfolio { width: 100%; }

/* display:flex + width:fit-content (not inline-flex) so margin:0 auto
   below actually centers it — inline-flex is an inline-level box and
   ignores auto margins, which is why this bar wasn't centering. */
.asal-portfolio__filters {
    position: relative;
    display: flex;
    width: fit-content;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
    gap: 2px;
    background: #e8e8e8;
    padding: 3px;
    border-radius: 999px;
    max-width: 100%;
    margin: 0 auto 2.5rem;
}
/* Desktop/tablet: the row wrappers don't generate their own box, so
   the 5 buttons lay out exactly as before — one flat flex row the
   sliding pill can measure. Mobile overrides this back to a real
   flex row per group (see @media max-width: 640px below). */
.asal-portfolio__filter-row { display: contents; }

.asal-portfolio__filter {
    position: relative;
    z-index: 2;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: none;
    color: #8A8A8A !important;
    font-family: var(--asal-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.65em 1.6em;
    border-radius: 999px;
    cursor: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.asal-portfolio__filter:hover,
.asal-portfolio__filter:focus,
.asal-portfolio__filter:focus-visible,
.asal-portfolio__filter:active {
    color: #000000;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.asal-portfolio__filter.is-active { color: #ffffff !important; }
.asal-portfolio__pill {
    position: absolute;
    top: 3px; left: 0;
    height: calc(100% - 6px);
    background: #000000;
    border-radius: 999px;
    z-index: 1;
    pointer-events: none;
}

/* #design-works: first element on the page (top padding only needs to
   clear the fixed nav), and overflow: visible (overriding the shared
   .asal-section--works overflow: hidden — needed by the homepage
   marquee's edge mask, but not here). Flip's absolute: true takes
   cards out of the grid mid-animation, which collapses the grid's
   auto row height for that instant; with overflow: hidden inherited,
   the collapsed section clipped cards into a half-row for ~0.5s. */
#design-works {
    padding-top: 72px;
    overflow: visible;
}

/* Grid — high-density 3-up, tight gap. Filtered-out cards are
   display:none (GSAP Flip animates the reflow in asal-portfolio-grid.js).
   position: relative anchors Flip's absolute-positioned cards to the
   grid itself during the reflow animation, not some further-out
   ancestor. */
.asal-portfolio__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.25rem;
    padding: 0 5vw;
    /* Flip's absolute: true (asal-portfolio-grid.js _applyFilter) takes
       every card out of grid flow for the ~0.5s filter transition, which
       collapses this grid's auto row height to 0 for that instant — the
       JS-side minHeight lock guards against that, but align-content:
       start is a CSS-only backstop so the grid's own rows never stretch
       to fill any leftover height from an ancestor on mobile. */
    align-content: start;
}
.asal-portfolio__card.is-hidden { display: none; }

/* box-shadow lives on .asal-portfolio__card, not .asal-portfolio__frame:
   the frame needs overflow: hidden to clip the image/skew, which would
   also clip a shadow applied to itself. Matching border-radius keeps
   the shadow's shape contoured to the frame beneath it. */
.asal-portfolio__card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.asal-portfolio__frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 12px;
    background: var(--asal-mist);
    cursor: none;
}
.asal-portfolio__frame img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    will-change: transform;
}

/* Overlay — desktop/mouse only. 80% black scrim, title/category/
   description centered (center-center) over the image, image drops
   to grayscale + a subtle blur, text fades up. */
.asal-portfolio__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
    padding: 1.25rem;
    opacity: 0;
    background: rgba(0, 0, 0, 0.8);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}
.asal-portfolio__overlay-title {
    font-family: var(--asal-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--asal-white);
    letter-spacing: -0.01em;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.5s ease;
}
.asal-portfolio__overlay-cat {
    font-family: var(--asal-body);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1) 0.03s, opacity 0.5s ease 0.03s;
}
.asal-portfolio__overlay-desc {
    font-family: var(--asal-body);
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.25rem;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1) 0.06s, opacity 0.5s ease 0.06s;
}

@media (hover: hover) and (pointer: fine) {
    .asal-portfolio__frame img {
        transition: filter 0.5s ease;
    }
    .asal-portfolio__card:hover .asal-portfolio__frame img {
        filter: grayscale(1) blur(4px);
    }
    .asal-portfolio__card:hover .asal-portfolio__overlay { opacity: 1; }
    .asal-portfolio__card:hover .asal-portfolio__overlay-title,
    .asal-portfolio__card:hover .asal-portfolio__overlay-cat,
    .asal-portfolio__card:hover .asal-portfolio__overlay-desc {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Touch tablets above the mobile breakpoint (no hover, ≥641px): keep
   a persistent bottom-gradient caption rather than the mobile
   below-image layout — there's no hover to reveal the desktop
   overlay, and at this width the grid is still 2/3-up, not stacked. */
@media not all and (hover: hover) and (min-width: 641px) {
    .asal-portfolio__overlay {
        opacity: 1;
        justify-content: flex-end;
        background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
        padding: 0.9rem;
    }
    .asal-portfolio__overlay-title,
    .asal-portfolio__overlay-cat {
        transform: none;
        opacity: 1;
    }
    .asal-portfolio__overlay-title { font-size: 0.9rem; }
    .asal-portfolio__overlay-desc { display: none; }
}

@media (max-width: 992px) {
    .asal-portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .asal-portfolio__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 6vw;
    }

    /* Mobile: no hover overlay. The frame becomes a flex column so
       the (now static, in-flow) caption stacks directly below the
       image instead of layering on top of it; the shadow moves from
       the card to the image itself since the frame no longer clips
       (it needs overflow: visible to let the caption sit outside the
       image's own box). */
    /* No grey placeholder background on mobile cards — the frame no
       longer clips (see below), so --asal-mist would otherwise show
       as a visible grey box around/behind the image and caption. */
    .asal-portfolio__card { box-shadow: none; }
    .asal-portfolio__frame {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
        overflow: visible;
        background: none;
        cursor: auto;
    }
    .asal-portfolio__frame img {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    }
    .asal-portfolio__overlay {
        position: static;
        opacity: 1;
        background: none;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        padding: 0.75rem 0 0;
        gap: 0.2rem;
    }
    .asal-portfolio__overlay-title,
    .asal-portfolio__overlay-cat {
        transform: none;
        opacity: 1;
    }
    .asal-portfolio__overlay-title { font-size: 0.9rem; color: var(--asal-black); }
    .asal-portfolio__overlay-cat   { color: rgba(0, 0, 0, 0.5); }
    .asal-portfolio__overlay-desc  { display: none; }
    /* Explicit two-row layout — the row split (3 + 2) is hard-coded in
       the markup (design.html: two .asal-portfolio__filter-row groups),
       not derived from wrapping math, so there's no auto-flow for an
       external reflow to knock over. Touch-friendly (44px+ targets),
       no sliding pill (that's a single-row mechanic; a flat color
       instead marks the active button: grey resting / black active).
       Every button gets the same fixed width (1/3 of the row minus
       gaps) regardless of which row it's in, so row 2's 2 buttons sit
       centered at the same size as row 1's 3, rather than stretching
       wider to fill their shorter row. */
    .asal-portfolio__filters {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        background: none;
        padding: 0 10px;
        margin: 0 0 2rem;
    }
    .asal-portfolio__filter-row {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }
    .asal-portfolio__pill { display: none; }
    .asal-portfolio__filter {
        flex: 0 0 calc((100% - 1rem) / 3);
        min-height: 44px;
        padding: 0 0.5rem;
        font-size: 0.7rem;
        letter-spacing: 0.06em;
        background: #e8e8e8 !important;
        color: #6b6b6b !important;
        border-radius: 999px;
    }
    .asal-portfolio__filter:hover { color: #000000 !important; }
    .asal-portfolio__filter.is-active {
        background: #000000 !important;
        color: #ffffff !important;
    }
}

/* =================================================================
   MORE PROJECTS / CASE STUDIES GRID
   Injected via wp_footer (priority 5) on /design/ and its child
   case-study pages only — see wp-code-snippet.php,
   asal_more_projects_render(). The --root / --child modifier class
   (set server-side) picks which grid renders:
     --root  (/design/ itself, "Case Studies"): every published child
             page, 3-column grid on desktop, 1-column stack on mobile —
             no drag, no autoplay, no dots at any breakpoint.
     --child (case-study pages, "More Projects"): capped at 4 cards,
             4-column grid on desktop, native horizontal scroll-snap
             carousel with dot nav on mobile/tablet.
   No GSAP Draggable/autoplay involved for either — asal-more-projects.js
   only wires hover FX and (on --child, mobile) dot sync.
   ================================================================= */
.asal-more-projects {
    background: var(--asal-black);
    color: var(--asal-white);
    padding: 100px 0 120px;
    overflow: hidden;
    position: relative;
}

.asal-more-projects__inner { max-width: 1600px; margin: 0 auto; }

.asal-more-projects__heading {
    font-family: var(--asal-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--asal-white);
    margin: 0 0 3rem;
    padding: 0 5vw;
}

/* Edge feathering — cards fade into the black background as they're
   dragged off-screen, rather than clipping abruptly. */
.asal-more-projects__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5vw, #000 calc(100% - 5vw), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5vw, #000 calc(100% - 5vw), transparent 100%);
}

.asal-more-projects__track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding-inline: 5vw;
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* Desktop default — 3 cards visible (90vw usable width, 2 gaps of 1.5rem). */
.asal-more-projects__card {
    flex: 0 0 auto;
    width: calc((100vw - 10vw - 3rem) / 3);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--asal-white);
    /* Belt-and-braces alongside draggable="false" in the markup — stops
       Safari/Chrome from initiating a native link-drag on top of the
       GSAP-driven one. */
    -webkit-user-drag: none;
    user-drag: none;
}

.asal-more-projects__frame {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 12px;
    background: var(--asal-ink);
}

.asal-more-projects__img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
    pointer-events: none;
}

.asal-more-projects__title {
    display: block;
    margin-top: 1.1rem;
    font-family: var(--asal-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--asal-white);
}

/* Nav dots — index kept in sync with drag/scroll/autoplay by asal-more-projects.js */
.asal-more-projects__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2.5rem;
    padding: 0 5vw;
}

/* !important throughout — same defensive reason as .asal-portfolio__filter
   above: theme/browser default <button> chrome (padding, min-height, a
   reddish focus ring) otherwise wins and makes these render oversized
   with a coloured hover/focus state. */
.asal-more-projects__dot {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.28) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: background 0.3s ease, transform 0.3s ease;
}
.asal-more-projects__dot:hover,
.asal-more-projects__dot:focus,
.asal-more-projects__dot:focus-visible,
.asal-more-projects__dot:active {
    background: rgba(255, 255, 255, 0.55) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.asal-more-projects__dot.is-active {
    background: var(--asal-white) !important;
    transform: scale(1.25);
}

/* Desktop — static grid for both variants, no overflow/mask/drag:
   --root (Case Studies) at 3 columns, --child (More Projects) at 4.
   Selectors are 2-class specificity, so these win over the base/tablet
   rules above regardless of source order. */
@media (min-width: 769px) {
    .asal-more-projects--root .asal-more-projects__viewport,
    .asal-more-projects--child .asal-more-projects__viewport {
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .asal-more-projects--root .asal-more-projects__track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
    .asal-more-projects--child .asal-more-projects__track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }
    .asal-more-projects--root .asal-more-projects__card,
    .asal-more-projects--child .asal-more-projects__card { width: auto; }
    .asal-more-projects--child .asal-more-projects__dots { display: none; }
}

/* Tablet/mobile — 1.5 cards visible (90vw usable width, 1 gap of 1rem). */
@media (max-width: 992px) {
    .asal-more-projects__card { width: calc((100vw - 10vw - 1rem) / 1.5); }
}

@media (max-width: 768px) {
    .asal-more-projects { padding: 72px 0 88px; }

    .asal-more-projects__heading { margin-bottom: 2rem; }
    .asal-more-projects__dots    { margin-top: 1.75rem; }

    /* Let the track manage its own overflow — mirrors .asal-selected-works__viewport */
    .asal-more-projects__viewport { overflow: visible; }

    /* --child: native horizontal scroll-snap carousel, unchanged. */
    .asal-more-projects--child .asal-more-projects__track {
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        will-change: auto;
        user-select: auto;
        -webkit-user-select: auto;
        gap: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .asal-more-projects--child .asal-more-projects__track::-webkit-scrollbar { display: none; }

    .asal-more-projects--child .asal-more-projects__card {
        scroll-snap-align: center;
        scroll-snap-stop: always;
        flex-shrink: 0;
    }

    /* --root: plain 1-column stacked grid — Case Studies stays a grid
       at every breakpoint rather than becoming a swipe carousel. */
    .asal-more-projects--root .asal-more-projects__track {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        padding-inline: 5vw;
    }
    .asal-more-projects--root .asal-more-projects__card { width: auto; }
}

/* =================================================================
   LIGHTBOX (desktop)
   z-index sits above nav (50) and below the cursor (99999).
   ================================================================= */
.asal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}
.asal-lightbox.is-open {
    pointer-events: auto;
    visibility: visible;
}
.asal-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.94);
    opacity: 0;
}
.asal-lightbox__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw max(80px, 11vh);
}
.asal-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    opacity: 0;
    transform-origin: center center;
}
.asal-lightbox__close {
    position: absolute;
    top: max(20px, 4vh);
    right: max(20px, 3vw);
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.asal-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}
.asal-lightbox__prev,
.asal-lightbox__next {
    position: absolute;
    top: calc(50% - 26px);
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.asal-lightbox__prev:hover,
.asal-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}
.asal-lightbox__prev { left: max(16px, 2.5vw); }
.asal-lightbox__next { right: max(16px, 2.5vw); }
.asal-lightbox__counter {
    position: absolute;
    top: max(20px, 4vh);
    left: max(20px, 3vw);
    z-index: 2;
    font-family: var(--asal-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    opacity: 0;
}
.asal-lightbox__info {
    position: absolute;
    bottom: max(24px, 4vh);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    opacity: 0;
    white-space: nowrap;
}
.asal-lightbox__title {
    display: block;
    font-family: var(--asal-display);
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.3rem;
}
.asal-lightbox__cat {
    display: inline-block;
    font-family: var(--asal-body);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

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

/* Desktop nav hidden on mobile/tablet */
@media (max-width: 1023px) {
    .asal-nav { display: none !important; }
}

/* Mobile nav hidden on desktop */
@media (min-width: 1024px) {
    .asal-mobile-nav { display: none !important; }
}

/* Bar — fixed layout shell; glass scrim lives in ::before for proper fade height */
.asal-mobile-nav__bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: stretch;   /* logo fills full bar height → polygon top edge flush with viewport top */
    padding: 0 5vw 0 0;
    height: 60px;
    background: transparent;
    pointer-events: none;
    isolation: isolate;
}

/* Glassmorphism scrim: 100% blur/opacity at top → 0% at bottom */
.asal-mobile-nav__bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.30) 55%, transparent 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

/* Logo — signature slanted shape, white bg, black text, 50% width */
.asal-mobile-nav__logo {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;   /* keeps text vertically centred within the stretched element */
    align-self: stretch;   /* fill full bar height so polygon top edge = viewport top */
    background: var(--asal-white);
    color: var(--asal-black);
    font-family: var(--asal-display);
    font-weight: 800;
    font-size: clamp(0.95rem, 4vw, 1.35rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    padding: 0.85rem 3.2rem 0.85rem 1.5rem;
    text-decoration: none;
    white-space: nowrap;
    clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
    width: 50%;
    max-width: 280px;
    line-height: 1;
}

/* Hamburger — clean lines, no container border/background/outline */
.asal-mobile-nav__toggle {
    pointer-events: auto;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0.5rem;
    margin: -0.5rem;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.asal-mobile-nav__toggle:focus,
.asal-mobile-nav__toggle:focus-visible,
.asal-mobile-nav__toggle:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.asal-hamburger {
    position: relative;
    width: 26px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.asal-hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--asal-white);
    border-radius: 1px;
    transform-origin: center center;
    will-change: transform, opacity;
    transition: background 0.3s ease;
}

/* Mobile nav — light theme (white bg sections)
   Polygon: Black bg, Text: White, Ham: Black */
.asal-mobile-nav[data-theme="light"] .asal-mobile-nav__bar::before {
    background: linear-gradient(180deg, rgba(244,244,243,0.82) 0%, rgba(244,244,243,0.35) 55%, transparent 100%);
}
.asal-mobile-nav[data-theme="light"] .asal-mobile-nav__logo {
    background: var(--asal-black);
    color: var(--asal-white);
}
.asal-mobile-nav[data-theme="light"] .asal-hamburger__line {
    background: var(--asal-black);
}

/* Overlay — full-screen off-canvas */
.asal-mobile-nav__overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(8, 8, 8, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.asal-mobile-nav.is-open .asal-mobile-nav__overlay {
    pointer-events: auto;
}

/* Menu links — Bricolage Grotesque, large scale */
.asal-mobile-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.asal-mobile-nav__menu li {
    overflow: hidden;
}

.asal-mobile-nav__menu a {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2.2rem, 9vw, 4rem);
    font-weight: 600;
    color: var(--asal-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    padding: 0.5rem 0;
    cursor: none;
    transition: opacity 0.2s ease, letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.asal-mobile-nav__menu a:hover {
    opacity: 0.45;
    letter-spacing: 0.04em;
}

/* =================================================================
   LET'S CHAT — Section layout
   ================================================================= */
/* Full-bleed override — escapes Elementor's boxed content-width/padding
   on whatever container wraps this HTML widget, so the black background
   spans the true viewport edge to edge instead of leaving white gutters
   on either side (the "width: 100vw + centering negative margin" trick). */
.asal-section--chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--asal-black);
    color: var(--asal-white);
    text-align: center;
    padding: 12vh 5vw 8vh;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}
.asal-section--chat .asal-section-title {
    color: var(--asal-white);
    margin-bottom: 1.5rem;
}
.asal-elastic {
    width: 100%;
    max-width: 900px;
    height: 80px;
    display: block;
    margin: 0 auto 1.5rem;
}
.asal-elastic path {
    fill: none;
    stroke: var(--asal-white);
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.6;
}
.asal-elastic:hover path { opacity: 1; }

.asal-chat-intro {
    font-family: 'Questrial', sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    opacity: 0.9;
}

/* Form wrapper */
.asal-form-wrap {
    width: 80%;
    max-width: none;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .asal-form-wrap {
        width: 95%;
        max-width: none;
    }

    /* On mobile, relax the 80% wrapper so it doesn't hug the viewport edge */
    .asal-section--chat .gform_wrapper {
        width: 95% !important;
        max-width: none !important;
    }

    /* Reduce field padding on mobile — desktop's 1.25rem 1.5rem is excessive here */
    .asal-section--chat .gform_wrapper .gfield {
        padding: 10px !important;
    }
}

/* =================================================================
   GRAVITY FORMS — Single-column minimal
   Targets GF 2.5+ grid layout, legacy float layout, and complex
   (multi-part) fields like Name that GF renders side-by-side.
   ================================================================= */

/* Wrapper — centered, 80% wide, never a grid container */
.asal-section--chat .gform_wrapper {
    width: 80% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* form element — force block so GF/Elementor grid never turns it into
   a grid container (which would push gform_footer into a phantom column) */
.asal-section--chat .gform_wrapper form {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* gform_body intermediary */
.asal-section--chat .gform_wrapper .gform_body {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove GF default list chrome */
.asal-section--chat .gform_wrapper ul,
.asal-section--chat .gform_wrapper ol,
.asal-section--chat .gform_wrapper li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fields container — kill GF's 12-column CSS grid */
.asal-section--chat .gform_wrapper .gform_fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    grid-template-columns: unset !important;
}

/* All fields: full width, no floats, no grid spans */
.asal-section--chat .gform_wrapper .gfield,
.asal-section--chat .gform_wrapper [class*="gf_left"],
.asal-section--chat .gform_wrapper [class*="gf_right"],
.asal-section--chat .gform_wrapper [class*="gf_middle"] {
    grid-column: 1 / -1 !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Field container — bordered card style */
.asal-section--chat .gform_wrapper .gfield {
    position: relative !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    padding: 1.25rem 1.5rem !important;
    margin: 0 0 1.5rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    text-align: left !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.asal-section--chat .gform_wrapper .gfield:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
}
.asal-section--chat .gform_wrapper .gfield:focus-within {
    border-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.95) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ginput_container — block by default; flex only for consent */
.asal-section--chat .gform_wrapper .ginput_container {
    display: block !important;
    width: 100% !important;
}

/* Complex fields (Name, Address) — flatten to single column */
.asal-section--chat .gform_wrapper .ginput_complex {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}
.asal-section--chat .gform_wrapper .ginput_complex span,
.asal-section--chat .gform_wrapper .ginput_complex .name_first,
.asal-section--chat .gform_wrapper .ginput_complex .name_last,
.asal-section--chat .gform_wrapper .ginput_complex .ginput_left,
.asal-section--chat .gform_wrapper .ginput_complex .ginput_right,
.asal-section--chat .gform_wrapper .ginput_complex .ginput_full {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Labels */
.asal-section--chat .gform_wrapper .gfield_label,
.asal-section--chat .gform_wrapper legend,
.asal-section--chat .gform_wrapper .gsection_title {
    font-family: var(--asal-display) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.65) !important;
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
    display: block !important;
}

/* ── Task 11: Legend straddling the field border ─────────────
   "Select Your Interest" and "Privacy Policy" are checkbox/consent
   fields, which GF renders as <fieldset class="gfield"><legend
   class="gfield_label">. Browsers always position a fieldset's
   rendered legend straddling its block-start border — vertically
   centered ON the line — and display/position overrides above do
   NOT suppress that UA behaviour. Floating the legend takes it out
   of that special layout path, which is the only reliable fix. */
.asal-section--chat .gform_wrapper fieldset.gfield > legend.gfield_label {
    float: left !important;
    width: 100% !important;
}
/* Floating the legend pulls it out of normal flow, so the choices
   container after it needs an explicit clear or it rises up underneath. */
.asal-section--chat .gform_wrapper fieldset.gfield > .ginput_container {
    clear: both !important;
}

/* Inputs */
.asal-section--chat .gform_wrapper input[type="text"],
.asal-section--chat .gform_wrapper input[type="email"],
.asal-section--chat .gform_wrapper input[type="tel"],
.asal-section--chat .gform_wrapper input[type="url"],
.asal-section--chat .gform_wrapper textarea,
.asal-section--chat .gform_wrapper select {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-family: var(--asal-body) !important;
    font-size: 1.05rem !important;
    padding: 0.5rem 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    resize: vertical;
}
.asal-section--chat .gform_wrapper ::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}
.asal-section--chat .gform_wrapper textarea { min-height: 100px !important; }

/* Checkbox / Radio */
.asal-section--chat .gform_wrapper .gfield_checkbox,
.asal-section--chat .gform_wrapper .gfield_radio {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem !important;
}
.asal-section--chat .gform_wrapper .gfield_checkbox .gchoice,
.asal-section--chat .gform_wrapper .gfield_radio .gchoice {
    display: flex !important;
    align-items: center !important;
    gap: 0.875rem !important;
    margin: 0 !important;
}
.asal-section--chat .gform_wrapper .gfield_checkbox input[type="checkbox"],
.asal-section--chat .gform_wrapper .gfield_radio input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #ffffff !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.asal-section--chat .gform_wrapper .gfield_checkbox label,
.asal-section--chat .gform_wrapper .gfield_radio label {
    font-family: var(--asal-body) !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Consent / GDPR */
.asal-section--chat .gform_wrapper .gfield_consent .ginput_container {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.875rem !important;
}
.asal-section--chat .gform_wrapper .gfield_consent input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}
.asal-section--chat .gform_wrapper .gfield_consent label {
    font-family: var(--asal-body) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

/* ── Task 8: Select Your Interest checkboxes ─────────────────
   Force the checkbox list and each choice row into clean flex.
   GF sometimes wraps choices in extra divs — target all of them. */
.asal-section--chat .gform_wrapper .gfield_checkbox {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem !important;
    width: 100% !important;
}
.asal-section--chat .gform_wrapper .gfield_checkbox .gchoice {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}
/* Custom appearance:none box + ::after checkmark — relying on accent-color
   alone left the checked state blank on several mobile browsers (notably
   iOS Safari) once the native box is resized away from its default. */
.asal-section--chat .gform_wrapper .gfield_checkbox input[type="checkbox"] {
    position: relative !important;
    float: none !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 4px !important;
    accent-color: #ffffff !important;
}
.asal-section--chat .gform_wrapper .gfield_checkbox input[type="checkbox"]::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important; left: 5px !important;
    width: 5px !important; height: 9px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) scale(0) !important;
    transition: transform 0.15s ease !important;
}
.asal-section--chat .gform_wrapper .gfield_checkbox input[type="checkbox"]:checked {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #ffffff !important;
}
.asal-section--chat .gform_wrapper .gfield_checkbox input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1) !important;
}
.asal-section--chat .gform_wrapper .gfield_checkbox label {
    display: inline !important;
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--asal-body) !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
}

/* ── Task 9: Privacy Policy checkbox ────────────────────────
   Target the consent ginput_container more aggressively so the
   checkbox never floats above its label text. */
.asal-section--chat .gform_wrapper .gfield_consent .ginput_container_consent {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    width: 100% !important;
}
/* Same appearance:none + ::after checkmark treatment as the interest
   checkboxes above — accent-color alone was not rendering the checked
   state reliably on mobile once the box was resized. */
.asal-section--chat .gform_wrapper .gfield_consent input[type="checkbox"] {
    position: relative !important;
    float: none !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 4px !important;
    accent-color: #ffffff !important;
}
.asal-section--chat .gform_wrapper .gfield_consent input[type="checkbox"]::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important; left: 5px !important;
    width: 5px !important; height: 9px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) scale(0) !important;
    transition: transform 0.15s ease !important;
}
.asal-section--chat .gform_wrapper .gfield_consent input[type="checkbox"]:checked {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #ffffff !important;
}
.asal-section--chat .gform_wrapper .gfield_consent input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1) !important;
}
.asal-section--chat .gform_wrapper .gfield_consent .gfield_consent_label {
    display: inline !important;
    position: static !important;
    float: none !important;
    margin: 0 !important;
    font-family: var(--asal-body) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ── Task 10: Mystery radio button ──────────────────────────
   Hide any orphaned radio input that sits outside a .gchoice
   wrapper — this is the stray circle floating beside the
   Message box, likely a misconfigured hidden GF field. */
.asal-section--chat .gform_wrapper input[type="radio"]:not(.gchoice input) {
    display: none !important;
}
/* Belt-and-braces: also hide a bare radio that is a direct child
   of ginput_container (no gchoice wrapper around it). */
.asal-section--chat .gform_wrapper .ginput_container > input[type="radio"] {
    display: none !important;
}

/* Validation messages */
.asal-section--chat .gform_wrapper .gfield_description,
.asal-section--chat .gform_wrapper .validation_message {
    font-family: var(--asal-display) !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #ff6a6a !important;
    margin-top: 0.75rem !important;
    line-height: 1.4 !important;
}
.asal-section--chat .gform_wrapper .gfield_error {
    border-color: rgba(255, 106, 106, 0.6) !important;
}
.asal-section--chat .gform_wrapper .gfield_error:focus-within {
    border-color: #ff6a6a !important;
    box-shadow: inset 0 0 0 0.5px #ff6a6a !important;
}
.asal-section--chat .gform_wrapper .gform_validation_errors {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
    margin-bottom: 2.5rem !important;
    color: #ffffff !important;
    font-family: var(--asal-body) !important;
    font-size: 0.95rem !important;
    text-align: left !important;
}
.asal-section--chat .gform_wrapper .gform_validation_errors h2 {
    font-family: var(--asal-display) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 0.75rem !important;
    letter-spacing: 0.04em !important;
}
.asal-section--chat .gform_wrapper .gform_validation_errors ol,
.asal-section--chat .gform_wrapper .gform_validation_errors ul {
    margin: 0 !important;
    padding-left: 1.2rem !important;
}
.asal-section--chat .gform_wrapper .gform_validation_errors li {
    margin-bottom: 0.35rem !important;
}

/* Submit footer — full row, centered, no float */
.asal-section--chat .gform_wrapper .gform_footer,
.asal-section--chat .gform_wrapper .gform_page_footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1.5rem 0 0 !important;
    float: none !important;
    clear: both !important;
    grid-column: 1 / -1 !important;
}

/* Submit button — pill, inverts on hover */
.asal-section--chat .gform_wrapper .gform_button,
.asal-section--chat .gform_wrapper .gform_footer input[type="submit"],
.asal-section--chat .gform_wrapper .gform_page_footer input[type="submit"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 999px !important;
    padding: 1.1rem 2.8rem !important;
    font-family: var(--asal-display) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.04em !important;
    height: auto !important;
    width: auto !important;
    min-width: 160px !important;
    line-height: 1 !important;
    float: none !important;
    margin: 0 !important;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.3, 1),
                background 0.35s ease,
                color 0.35s ease,
                box-shadow 0.35s ease !important;
}
.asal-section--chat .gform_wrapper .gform_button:hover,
.asal-section--chat .gform_wrapper .gform_footer input[type="submit"]:hover {
    background: transparent !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 16px 40px rgba(255, 255, 255, 0.12) !important;
}

/* =================================================================
   FOOTER
   ================================================================= */
/* ── Global Footer ─────────────────────────────────────── */
.asal-footer {
    background: var(--asal-white);
    color: var(--asal-black);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 3rem 5vw 2rem;
    position: relative;
    /* No z-index here on purpose: a positioned element with an explicit
       z-index (even a low one) is painted in its own stacking pass,
       AFTER every preceding z-index:auto element on the page — footer
       included — regardless of DOM order. On mobile, the design grid
       (.asal-portfolio__grid) briefly loses its box height whenever
       GSAP Flip takes cards out of flow to filter them (see
       asal-portfolio-grid.js _applyFilter); if the footer had its own
       z-index it would paint in front of those still-visible cards
       instead of safely behind/below them — reading as "the footer is
       rendering in the middle of the grid". Leaving z-index:auto keeps
       the footer in normal DOM-order paint, i.e. always behind/after
       the grid's own content. */
}

.asal-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* — Top row: brand + socials — */
.asal-footer__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
}

.asal-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.asal-footer__name {
    font-family: var(--asal-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--asal-black);
}

.asal-footer__tagline {
    font-family: var(--asal-body);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
}

.asal-footer__socials {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.asal-footer__social-link {
    font-family: var(--asal-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.asal-footer__social-link:hover { color: var(--asal-black); }

/* — Divider — */
.asal-footer__divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

/* — Bottom row: copyright + contact — */
.asal-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.asal-footer__copy {
    font-family: var(--asal-body);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.35);
}

.asal-footer__meta {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.asal-footer__location {
    font-family: var(--asal-body);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.35);
}

.asal-footer__email {
    font-family: var(--asal-body);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.asal-footer__email:hover { color: var(--asal-black); }

/* — Mobile — */
@media (max-width: 768px) {
    .asal-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .asal-footer__socials {
        gap: 1.5rem;
    }

    .asal-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .asal-footer__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

/* =================================================================
   FORM MODE TOGGLE
   ================================================================= */
body.asal-form-builtin .asal-form-gravity { display: none; }
body.asal-form-gravity .asal-form-builtin { display: none; }

.asal-form-builtin form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.asal-form-builtin .asal-field--full { grid-column: 1 / -1; }
.asal-form-builtin label {
    display: block;
    font-family: var(--asal-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.4rem;
}
.asal-form-builtin input,
.asal-form-builtin textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--asal-line);
    border-radius: 999px;
    color: var(--asal-white);
    font-family: var(--asal-body);
    font-size: 1rem;
    padding: 1rem 1.5rem;
    outline: none;
    transition: border-color 0.25s;
}
.asal-form-builtin textarea { border-radius: 24px; min-height: 160px; resize: vertical; }
.asal-form-builtin input:focus,
.asal-form-builtin textarea:focus { border-color: #cccccc; }
.asal-form-builtin .asal-checkbox {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.9rem; margin: 1rem 0; grid-column: 1 / -1;
}
.asal-form-builtin .asal-checkbox input { width: auto; }
.asal-form-builtin button {
    grid-column: 1 / -1;
    justify-self: start;
    background: transparent;
    color: var(--asal-white);
    border: 1px solid var(--asal-line);
    font-family: var(--asal-display);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    padding: 1.1rem 2.4rem;
    border-radius: 999px;
    cursor: none;
    transition: transform 0.2s, border-color 0.2s;
}
.asal-form-builtin button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.4); }

.gform-placeholder {
    border: 1px dashed var(--asal-line); padding: 3rem; text-align: center;
    font-family: var(--asal-mono); font-size: 0.85rem; opacity: 0.6; border-radius: 4px;
}

/* =================================================================
   EXPERIENCE TIMELINE  (/about page)
   ================================================================= */
.asal-timeline {
    position: relative;
    width: 100%;
    background: var(--asal-white);
    color: var(--asal-black);
    padding: 8vh 5vw 12vh;
    z-index: 10;
    overflow-x: clip; /* prevent slide-in animations from creating horizontal scroll */
}
.asal-timeline__header {
    text-align: center;
    margin-bottom: 7vh;
    will-change: opacity, transform;
}
.asal-timeline__track {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

/* Vertical line */
.asal-timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}
.asal-timeline__line-fill {
    position: absolute;
    inset: 0;
    background: var(--asal-black);
    transform: scaleY(0);
    transform-origin: top center;
    will-change: transform;
}

/* Entry row — symmetric 3-col grid so the centre column is always at 50% */
.asal-timeline__entry {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    column-gap: 2.5rem;
    align-items: start;
    margin-bottom: 8vh;
    position: relative;
}
.asal-timeline__entry:last-child { margin-bottom: 0; }

/* Node — white circle with black border, centred on the line */
.asal-timeline__node {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--asal-white);
    border: 2px solid var(--asal-black);
    margin-top: 1.5rem; /* aligns visually with the role heading */
    position: relative;
    z-index: 2;
    transform-origin: center;
    will-change: transform;
}

/* Card placement */
.asal-timeline__entry--left  .asal-timeline__card { grid-column: 1; grid-row: 1; text-align: right; }
.asal-timeline__entry--left  .asal-timeline__node  { grid-column: 2; grid-row: 1; }
.asal-timeline__entry--right .asal-timeline__node  { grid-column: 2; grid-row: 1; }
.asal-timeline__entry--right .asal-timeline__card  { grid-column: 3; grid-row: 1; text-align: left; }

.asal-timeline__card { will-change: transform, opacity; }

/* Period */
.asal-timeline__period {
    display: block;
    font-family: var(--asal-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.38);
    margin-bottom: 0.45rem;
}

/* Role */
.asal-timeline__role {
    font-family: var(--asal-display);
    font-size: clamp(1.25rem, 2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 0.4rem;
    color: var(--asal-black);
}

/* Company */
.asal-timeline__company {
    display: block;
    font-family: var(--asal-body);
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

/* Description */
.asal-timeline__desc {
    font-family: var(--asal-body);
    font-size: 0.92rem;
    line-height: 1.68;
    color: rgba(0, 0, 0, 0.68);
    margin: 0 0 1.25rem;
    max-width: 40ch;
}
.asal-timeline__entry--left .asal-timeline__desc { margin-left: auto; }

/* Tags */
.asal-timeline__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.asal-timeline__entry--left .asal-timeline__tags { justify-content: flex-end; }
.asal-timeline__tag {
    font-family: var(--asal-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    background: var(--asal-mist);
    padding: 5px 11px;
    border-radius: 100px;
    will-change: opacity, transform;
}

/* ── Mobile: single column, line on the left ── */
@media (max-width: 768px) {
    .asal-timeline {
        padding: 6vh 5vw 10vh;
    }
    .asal-timeline__line {
        left: 15px;
        transform: none;
    }
    .asal-timeline__entry {
        grid-template-columns: 32px 1fr;
        column-gap: 1.25rem;
        margin-bottom: 6vh;
    }
    /* All nodes to col 1, all cards to col 2, all left-aligned */
    .asal-timeline__entry--left  .asal-timeline__card,
    .asal-timeline__entry--right .asal-timeline__card {
        grid-column: 2 !important;
        grid-row:    1 !important;
        text-align:  left !important;
    }
    .asal-timeline__entry--left  .asal-timeline__node,
    .asal-timeline__entry--right .asal-timeline__node {
        grid-column: 1 !important;
        grid-row:    1 !important;
        justify-self: center !important;
    }
    .asal-timeline__entry--left .asal-timeline__desc { margin-left: 0 !important; }
    .asal-timeline__entry--left .asal-timeline__tags { justify-content: flex-start !important; }
    .asal-timeline__role { font-size: clamp(1.15rem, 4.5vw, 1.5rem); }
}

/* =================================================================
   ELEMENTOR WRAPPER OVERRIDES
   ================================================================= */
.elementor-element, .elementor-widget, .elementor-widget-html,
.elementor-widget-container, .elementor-widget-wrap,
.elementor-section, .elementor-container, .elementor-column,
.elementor-column-wrap, .elementor-row, .e-con, .e-con-inner {
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    contain: none !important;
}
.elementor-widget-html .elementor-widget-container { padding: 0 !important; margin: 0 !important; }


/* =================================================================
   MOBILE NO-CANVAS fallback
   ================================================================= */
.asal-no-canvas #asal-canvas { display: none; }
.asal-no-canvas .asal-bg {
    background: radial-gradient(ellipse 80% 70% at 50% 40%, #1a1a2e 0%, #080808 70%);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
/* Desktop: track is scroll-driven via ScrollTrigger — cursor handled globally */
@media (min-width: 769px) {
    /* cursor: default rules removed — global `cursor: none !important` applies */
}

@media (max-width: 1023px) and (min-width: 768px) {
    .asal-cap-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 900px) {
    .asal-cap-grid { grid-template-columns: repeat(2, 1fr); }
    .asal-nav__menu { font-size: 0.7rem; padding: 0 1rem; }
    .asal-bio { grid-template-columns: 1fr; gap: 1.5rem; }
    .asal-bio__guide { display: none; }
    .asal-bio__image { max-width: 100%; justify-self: center; }
    .asal-form-builtin form { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    /* Selected Works — tighter top spacing on mobile */
    .asal-section--works { padding-top: 48px; }

    /* Capabilities grid — single column so all 5 cards space evenly */
    .asal-cap-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    /* Hero — enforce 100vh and ensure text layers above canvas */
    .asal-pinned {
        height: 100vh !important;
        min-height: 100vh;
    }
    .asal-pin-content {
        position: absolute;
        z-index: 2;
    }
    /* H1 — drop screen blend mode so text is guaranteed readable over
       the bright particle sphere on mobile; slightly larger than the
       desktop-oriented clamp() gives it at narrow widths. */
    .asal-hero__title {
        mix-blend-mode: normal;
        position: relative;
        z-index: 2;
        font-size: clamp(3.1rem, 11vw, 4.4rem);
    }
    /* Canvas — disable all touch/pointer interaction on mobile;
       the sphere is a static background visual only */
    #asal-canvas {
        pointer-events: none !important;
        touch-action: none;
    }

    .asal-cap-card {
        height: fit-content;
        aspect-ratio: unset;
        padding: 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
        min-height: 0;
        overflow-wrap: break-word;
    }
    .asal-cap-card h3 { font-size: 0.95rem; }
    .asal-cap-card p  { font-size: 0.82rem; line-height: 1.4; }
}

@media (max-width: 560px) {
    .asal-nav__logo { font-size: 0.95rem; padding: 0.7rem 2rem 0.7rem 1rem; }
    .asal-nav__menu a { padding: 0.7rem 0.2rem; }

    .asal-cap-grid { grid-template-columns: 1fr; gap: 0.875rem; }
    .asal-cap-card {
        height: fit-content;
        aspect-ratio: unset;
        padding: 20px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .asal-cap-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
    .asal-cap-card p  { font-size: 0.9rem; line-height: 1.5; opacity: 0.9; }
    .asal-cap-card.is-center { grid-column: auto; }
}

/* =================================================================
   SPHERE PERFORMANCE & MOBILE PADDING OVERRIDES
   ================================================================= */

/* 1. GPU-Accelerated Sphere Base */
.asal-holo-bg {
    /* Strict containment prevents the blur from forcing document-level repaints */
    contain: strict; 
    transform: translateZ(0); 
}

.asal-holo-sphere {
    /* Hardcode the initial hue so GSAP has a baseline */
    --hue: 0deg;
    /* Combine filters and force 3D context for GPU rendering */
    filter: blur(80px) hue-rotate(var(--hue));
    transform: translateZ(0);
    will-change: transform, filter;
    /* Prevent interaction overhead */
    pointer-events: none; 
}

/* 2. Targeted Mobile Spacing Reductions */
@media (max-width: 900px) {
    /* Hero: Reduce top clearance and bottom gap */
    .asal-about-hero { padding: 14vh 5vw 6vh; }
    
    /* Grids: Swap massive 10vh for tighter rem spacing */
    .asal-about-grid { padding: 4rem 5vw; gap: 3rem; }
    .asal-about-grid.reverse { padding-top: 2rem; }
    
    /* Services: Pull it tighter to surrounding elements */
    .asal-about-services { padding: 5rem 5vw; margin: 3rem 0; }
    
    /* Tools: Tighten the marquee area */
    .asal-about-tools { padding: 4rem 5vw 5rem; }
    
    /* Timeline: Reduce top/bottom gaps */
    .asal-timeline { padding: 4rem 5vw 6rem; }
}

/* ── Bulletproof cursor suppression ────────────────────────────── */
html, body, *, *::before, *::after { cursor: none !important; }

/* =================================================================
   COOKIE BANNER CURSOR OVERRIDE
   ================================================================= */
/* Replace with your actual cookie plugin's wrapper class or ID */
.your-cookie-banner-class, 
.your-cookie-banner-class *,
#cookie-notice, 
#cookie-notice * {
    cursor: auto !important; 
}

.asal-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    /* Bumped from 99999 to max 32-bit integer */
    z-index: 2147483647; 
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    will-change: top, left;
}

/* =================================================================
   COOKIEYES BLACK & WHITE THEME OVERRIDE
   ================================================================= */

/* 1. Banner Background & Text */
.cky-consent-container .cky-consent-bar {
    background-color: #ffffff !important;
    border-top: 1px solid #e5e5e5 !important;
    color: #000000 !important;
}

.cky-consent-container .cky-title,
.cky-consent-container .cky-preference-title,
.cky-consent-container .cky-preference-content {
    color: #000000 !important;
}

/* 2. Privacy Badge / Floating Icon */
.cky-btn-revisit-wrapper {
    background-color: #000000 !important;
    border-radius: 50% !important; /* Ensures it stays a clean circle if it isn't already */
}

.cky-btn-revisit-wrapper .cky-btn-revisit {
    background-color: transparent !important; /* Removes inner background conflicts */
    border: none !important;
}

.cky-btn-revisit-wrapper .cky-btn-revisit svg path {
    fill: #ffffff !important; /* Makes the icon inside the black badge white for contrast */
}

/* 3. Buttons (Accept, Reject, Customize) */
/* "Accept All" & Primary Buttons */
.cky-consent-container .cky-btn-accept,
.cky-consent-container .cky-preference-btn-wrapper .cky-btn-preferences {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* "Reject All" & Secondary Buttons */
.cky-consent-container .cky-btn-reject,
.cky-consent-container .cky-btn-customize {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 4. Button Hover States (Sleek Inversion) */
.cky-consent-container .cky-btn-accept:hover,
.cky-consent-container .cky-preference-btn-wrapper .cky-btn-preferences:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.cky-consent-container .cky-btn-reject:hover,
.cky-consent-container .cky-btn-customize:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* 5. Clean Links (Privacy Policy Links) */
.cky-consent-container a.cky-policy-text {
    color: #000000 !important;
    text-decoration: underline !important;
}