/* ─────────────────────────────────────────────────────────────
   Muhammad Ali Ahmad — Homepage
   Design language: Liquid Glass on a very light purple ground
   Brand: Purple #6C3FF5 · Cyan #00D9FF
   ───────────────────────────────────────────────────────────── */

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

:root {
    --purple:      #6C3FF5;
    --purple-deep: #4B21C9;
    --cyan:        #00D9FF;
    --cyan-deep:   #0093B8;

    /* Very light purple ground so the glass reads as translucent */
    --paper:       #F3EEFD;
    --paper-2:     #EFE8FC;
    --ink:         #0B0B14;
    --ink-2:       #3A3A52;
    --ink-3:       #6E6E8A;

    /* Liquid glass body: translucent, brighter along the upper edge */
    --glass-fill:  linear-gradient(178deg,
                       rgba(255, 255, 255, 0.74) 0%,
                       rgba(255, 255, 255, 0.42) 12%,
                       rgba(255, 255, 255, 0.30) 54%,
                       rgba(255, 255, 255, 0.46) 100%);
    --glass-fill-strong: linear-gradient(178deg,
                       rgba(255, 255, 255, 0.86) 0%,
                       rgba(255, 255, 255, 0.60) 14%,
                       rgba(255, 255, 255, 0.50) 56%,
                       rgba(255, 255, 255, 0.64) 100%);
    --glass-blur:  blur(26px) saturate(180%);
    --hairline:    rgba(11, 11, 20, 0.06);

    /* Rim light: bright at the top, dimmer at the shoulders,
       faint bounce along the bottom — the Apple-glass tell */
    --rim: linear-gradient(180deg,
               rgba(255, 255, 255, 1) 0%,
               rgba(255, 255, 255, 0.62) 16%,
               rgba(255, 255, 255, 0.18) 48%,
               rgba(255, 255, 255, 0.34) 78%,
               rgba(255, 255, 255, 0.62) 100%);

    /* Inner speculars, painted above the fill but under content */
    --spec: inset 0 1px 0 rgba(255, 255, 255, 0.98),
            inset 0 10px 22px -12px rgba(255, 255, 255, 0.95),
            inset 0 -10px 24px -18px rgba(108, 63, 245, 0.22);

    --sheen:       rgba(255, 255, 255, 0.9);

    --shadow-sm:   var(--spec),
                   0 1px 2px rgba(48, 20, 120, 0.05),
                   0 10px 26px -14px rgba(48, 20, 120, 0.22);
    --shadow-md:   var(--spec),
                   0 2px 6px rgba(48, 20, 120, 0.06),
                   0 24px 54px -26px rgba(48, 20, 120, 0.32);
    --shadow-lg:   var(--spec),
                   0 4px 14px rgba(48, 20, 120, 0.08),
                   0 46px 92px -40px rgba(45, 18, 120, 0.42);

    --ease:        cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft:   cubic-bezier(0.32, 0.72, 0, 1);

    --r-lg: 30px;
    --r-md: 24px;
    --r-sm: 18px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: -0.011em;
}

::selection { background: rgba(108, 63, 245, 0.18); }

.container {
    width: min(92%, 1120px);
    margin: 0 auto;
}

/* ─────────────────────────────────────────────
   AMBIENT FIELD — drifting brand-colour blobs
   sitting behind every glass panel
───────────────────────────────────────────── */
.ambient {
    position: fixed;
    inset: -10vh -10vw;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.blob-1 {
    width: 46vw; height: 46vw;
    min-width: 420px; min-height: 420px;
    background: radial-gradient(circle at 35% 35%, rgba(108, 63, 245, 0.52), rgba(108, 63, 245, 0) 68%);
    top: -8vh; left: -6vw;
    animation: drift-a 26s var(--ease-soft) infinite alternate;
}

.blob-2 {
    width: 38vw; height: 38vw;
    min-width: 360px; min-height: 360px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.44), rgba(0, 217, 255, 0) 68%);
    top: 4vh; right: -8vw;
    animation: drift-b 32s var(--ease-soft) infinite alternate;
}

.blob-3 {
    width: 42vw; height: 42vw;
    min-width: 380px; min-height: 380px;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.36), rgba(139, 92, 246, 0) 70%);
    top: 46%; left: 28%;
    animation: drift-c 38s var(--ease-soft) infinite alternate;
}

.blob-4 {
    width: 34vw; height: 34vw;
    min-width: 320px; min-height: 320px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.3), rgba(0, 217, 255, 0) 70%);
    bottom: -6vh; left: -4vw;
    animation: drift-a 30s var(--ease-soft) infinite alternate-reverse;
}

@keyframes drift-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(7vw, 6vh, 0) scale(1.12); }
}
@keyframes drift-b {
    from { transform: translate3d(0, 0, 0) scale(1.06); }
    to   { transform: translate3d(-6vw, 8vh, 0) scale(0.94); }
}
@keyframes drift-c {
    from { transform: translate3d(0, 0, 0) scale(0.96); }
    to   { transform: translate3d(-8vw, -7vh, 0) scale(1.14); }
}

/* Paper veil — softens the blobs into an ambient purple field.
   Deliberately semi-transparent so real colour still reaches the
   glass and it has something to refract. */
.veil {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(130% 90% at 50% 0%,
            rgba(243, 238, 253, 0.18) 0%,
            rgba(243, 238, 253, 0.42) 48%,
            rgba(239, 232, 252, 0.62) 100%);
}

/* ─────────────────────────────────────────────
   LIQUID GLASS
   Frosted translucent fill + a rim of light that is
   brightest along the top edge, the way real glass
   catches light. Fill and inset speculars paint under
   the content, so images inside stay clean.
───────────────────────────────────────────── */
.glass {
    position: relative;
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    isolation: isolate;
    overflow: hidden;
}

/* Rim light — a 1px gradient border, bright across the top,
   fading through the shoulders, with a faint bounce underneath */
.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 4;
}

/* Fallback for engines without mask-composite */
@supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
    .glass { border: 1px solid rgba(255, 255, 255, 0.72); }
    .glass::before { display: none; }
}

/* Specular sheen — the moving light that makes it read as glass */
.glass-sheen::after {
    content: '';
    position: absolute;
    inset: -60% -20%;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.55) 47%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.55) 53%,
        transparent 62%
    );
    transform: translateX(-120%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-sheen:hover::after,
.glass-sheen:focus-visible::after {
    opacity: 1;
    animation: sweep 1.15s var(--ease) forwards;
}

@keyframes sweep {
    from { transform: translateX(-120%); }
    to   { transform: translateX(120%); }
}

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: padding 0.5s var(--ease);
}

.nav-wrap.is-stuck { padding: 10px 0; }

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 10px 10px 14px;
    border-radius: 999px;
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}

/* Same rim light as the glass panels */
.nav::before,
.eyebrow::before,
.btn-ghost::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

@supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
    .nav, .eyebrow, .btn-ghost { border: 1px solid rgba(255, 255, 255, 0.72); }
    .nav::before, .eyebrow::before, .btn-ghost::after { display: none; }
}

.nav-wrap.is-stuck .nav {
    background: var(--glass-fill-strong);
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    flex: none;
    background: var(--purple);
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.9), 0 4px 14px -4px rgba(108, 63, 245, 0.55);
    transition: transform 0.5s var(--ease);
}

.nav-brand:hover .nav-avatar { transform: scale(1.06); }

.nav-name {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-role {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-3);
    line-height: 1.3;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav-link:hover {
    color: var(--purple);
    background: rgba(108, 63, 245, 0.07);
    border-color: rgba(108, 63, 245, 0.16);
}

.nav-link .arr {
    font-size: 11px;
    transition: transform 0.4s var(--ease);
}

.nav-link:hover .arr { transform: translate(2px, -2px); }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    will-change: transform;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #7B4BFF 0%, #6C3FF5 46%, #4B21C9 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.35) inset,
        0 10px 24px -10px rgba(108, 63, 245, 0.75),
        0 26px 50px -26px rgba(75, 33, 201, 0.65);
}

/* Continuous specular travel across the primary button */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: -50% -30%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.42) 48%,
        rgba(255, 255, 255, 0.62) 50%,
        rgba(255, 255, 255, 0.42) 52%,
        transparent 60%
    );
    z-index: -1;
    animation: btn-sheen 5.5s var(--ease-soft) infinite;
}

@keyframes btn-sheen {
    0%   { transform: translateX(-110%); }
    55%  { transform: translateX(110%); }
    100% { transform: translateX(110%); }
}

.btn-primary:hover {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.4) inset,
        0 14px 30px -10px rgba(108, 63, 245, 0.85),
        0 34px 64px -28px rgba(75, 33, 201, 0.7);
}

.btn-primary:active { transform: scale(0.975); }

.btn-ghost {
    color: var(--ink);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    background: var(--glass-fill-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost:active { transform: scale(0.975); }

.btn .arr { transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ─────────────────────────────────────────────
   SECTION SHELL
───────────────────────────────────────────── */
section {
    position: relative;
    z-index: 1;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--purple-deep);
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    box-shadow: 0 0 8px rgba(108, 63, 245, 0.8);
}

.section-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.032em;
    margin-bottom: 16px;
    text-wrap: balance;
}

.section-sub {
    font-size: clamp(15px, 1.6vw, 17.5px);
    color: var(--ink-2);
    line-height: 1.6;
    text-wrap: pretty;
}

.grad {
    background: linear-gradient(100deg, var(--purple) 0%, #8B5CF6 28%, var(--cyan) 55%, var(--purple) 82%, #8B5CF6 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: grad-flow 9s linear infinite;
}

@keyframes grad-flow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 130% 50%; }
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition:
        opacity 0.9s var(--ease),
        transform 1.1s var(--ease);
    transition-delay: var(--d, 0ms);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ─────────────────────────────────────────────
   1 — HERO
───────────────────────────────────────────── */
.hero {
    padding: clamp(56px, 9vw, 104px) 0 clamp(28px, 4vw, 44px);
    text-align: center;
}

.hero-inner {
    max-width: 980px;
    margin: 0 auto;
}

.headline {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.09;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(16px, 1.9vw, 20px);
    color: var(--ink-2);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
    text-wrap: pretty;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   2 — VSL
───────────────────────────────────────────── */
.vsl-section {
    padding: clamp(16px, 3vw, 32px) 0 clamp(64px, 9vw, 110px);
}

.vsl-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 12px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.vsl-card wistia-player {
    display: block;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.vsl-sound-btn {
    position: absolute;
    inset: 12px;
    border: 0;
    background: transparent;
    border-radius: 18px;
    cursor: pointer;
    padding: 0;
}

.vsl-sound-btn[hidden] {
    display: none;
}

.vsl-sound-pill {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.2s ease;
}

.vsl-sound-btn:hover .vsl-sound-pill {
    transform: translateX(-50%) scale(1.05);
}

.vsl-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--ink-3);
    font-weight: 500;
}

/* The hero call to action now lives under the video, so video,
   caption and buttons read as one block. */
.vsl-actions {
    margin-top: 22px;
}

/* ─────────────────────────────────────────────
   3 — PORTFOLIO
───────────────────────────────────────────── */
.work-section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Cards expand in place, so rows must not stretch their siblings */
    align-items: start;
    gap: 22px;
}

.work-card {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 22px;
    border-radius: var(--r-lg);
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
    will-change: transform;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.work-shot {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
                0 10px 24px -16px rgba(48, 20, 120, 0.4);
    margin-bottom: 18px;
    aspect-ratio: 16 / 9;
}

.work-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 1.1s var(--ease);
}

.work-card:hover .work-shot img { transform: scale(1.035); }

.work-body { padding: 0 8px; }

.work-client {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple-deep);
    margin-bottom: 8px;
}

.work-title {
    font-size: 18.5px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.022em;
    margin-bottom: 9px;
    text-wrap: balance;
}

.work-result {
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.6;
    text-wrap: pretty;
}

.work-hidden { display: none; }
.work-hidden.shown { display: flex; }

.work-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ── Expandable project detail ───────────────────────────────
   The whole card is a click target; the button carries the
   real semantics so it stays keyboard operable.
──────────────────────────────────────────────────────────── */
.work-card[data-expandable] { cursor: pointer; }

.work-card.is-open {
    box-shadow: var(--shadow-lg);
}

.work-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    padding: 8px 15px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: -0.005em;
    color: var(--purple-deep);
    background: rgba(108, 63, 245, 0.07);
    border: 1px solid rgba(108, 63, 245, 0.16);
    cursor: pointer;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.work-toggle:hover,
.work-card:hover .work-toggle {
    background: rgba(108, 63, 245, 0.12);
    border-color: rgba(108, 63, 245, 0.3);
}

.work-toggle:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

/* Chevron, drawn in CSS so the markup stays clean */
.work-toggle::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.5s var(--ease);
}

.work-card.is-open .work-toggle::after {
    transform: translateY(1px) rotate(-135deg);
}

/* 0fr → 1fr gives a real height animation without measuring in JS */
.work-detail {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.55s var(--ease), opacity 0.4s var(--ease);
}

.work-card.is-open .work-detail {
    grid-template-rows: 1fr;
    opacity: 1;
}

.work-detail-inner {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0s linear 0.55s;
}

.work-card.is-open .work-detail-inner {
    visibility: visible;
    transition-delay: 0s;
}

.work-detail-lead {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.65;
    text-wrap: pretty;
}

.work-detail-list {
    list-style: none;
    margin-top: 14px;
    display: grid;
    gap: 9px;
}

.work-detail-list li {
    position: relative;
    padding-left: 22px;
    font-size: 13.8px;
    color: var(--ink-2);
    line-height: 1.55;
    text-wrap: pretty;
}

.work-detail-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    box-shadow: 0 0 8px rgba(108, 63, 245, 0.5);
}

.work-detail-out {
    margin-top: 16px;
    padding: 12px 15px;
    border-radius: 14px;
    font-size: 13.8px;
    font-weight: 650;
    line-height: 1.5;
    color: var(--purple-deep);
    background: linear-gradient(140deg, rgba(108, 63, 245, 0.1), rgba(0, 217, 255, 0.09));
    border: 1px solid rgba(108, 63, 245, 0.16);
}

/* ─────────────────────────────────────────────
   4 — HOW IT FEELS
───────────────────────────────────────────── */
.feels-section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.feels-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 72px;
}

.feel-card {
    padding: 28px 26px 30px;
    border-radius: var(--r-md);
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.feel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feel-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: linear-gradient(150deg, rgba(255,255,255,0.75), rgba(108, 63, 245, 0.18) 55%, rgba(0, 217, 255, 0.2));
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 1px 0 rgba(255,255,255,0.95) inset,
                0 8px 18px -8px rgba(108, 63, 245, 0.55);
    color: var(--purple);
}

.feel-icon svg { width: 20px; height: 20px; }

.feel-title {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 9px;
}

.feel-text {
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.62;
    text-wrap: pretty;
}

/* Client video testimonials */
.testi-head {
    text-align: center;
    margin-bottom: 32px;
}

.testi-head .t-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 560px;
    margin: 0 auto;
}

.video-card {
    border-radius: var(--r-md);
    padding: 8px;
    box-shadow: var(--shadow-md);
    transition: transform 0.75s var(--ease), box-shadow 0.75s var(--ease);
    will-change: transform;
}

.video-card:nth-child(1) { transform: rotate(-1.6deg); }
.video-card:nth-child(2) { transform: rotate(1.6deg); }

.video-card:hover,
.video-card:focus-within {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.video-card wistia-player {
    display: block;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

/* ─────────────────────────────────────────────
   5 — BOOKING / CTA
   No backdrop-filter on the iframe shell: it creates a
   stacking context that kills iframe touch on mobile Safari.
───────────────────────────────────────────── */
.book-section {
    padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 110px);
}

.book-card {
    background: linear-gradient(178deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.88) 16%,
        rgba(255, 255, 255, 0.84) 100%);
    border: none;
    border-radius: var(--r-lg);
    padding: clamp(16px, 3vw, 30px);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.book-card::before,
.book-mobile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.book-card iframe {
    display: block;
    width: 100%;
    min-height: 700px;
    border: none;
    border-radius: 18px;
}

.book-mobile {
    display: none;
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
    padding: 46px 26px;
    border-radius: var(--r-lg);
    background: var(--glass-fill-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: none;
    box-shadow: var(--shadow-lg);
}

.book-mobile-text {
    font-size: 16px;
    color: var(--ink-2);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 0 0 44px;
}

.footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    padding: 26px 30px;
    border-radius: var(--r-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    background: var(--purple);
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.9);
}

.footer-name { font-size: 14px; font-weight: 700; }
.footer-meta { font-size: 12px; color: var(--ink-3); }

.footer-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.footer-links a:hover {
    color: var(--purple);
    background: rgba(108, 63, 245, 0.07);
    border-color: rgba(108, 63, 245, 0.16);
}

.footer-legal {
    text-align: center;
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 980px) {
    .feels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .nav-role { display: none; }
    .nav-link.nav-link-book { display: none; }
}

@media (max-width: 720px) {
    .work-grid { grid-template-columns: 1fr; }
    .feels-grid { grid-template-columns: 1fr; }

    /* Avatar-only brand mark: the name would collide with the actions */
    .nav { padding: 8px 8px 8px 10px; }
    .nav-id { display: none; }
    .nav-word { display: none; }
    .nav-avatar { width: 38px; height: 38px; }
    .nav-link { padding: 9px 12px; font-size: 12.5px; }
    .nav-actions .btn { padding: 11px 18px !important; font-size: 13px !important; }

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

    .video-grid { gap: 12px; max-width: 100%; }
    .video-card:nth-child(1),
    .video-card:nth-child(2) { transform: none; }

    .book-card { display: none; }
    .book-mobile { display: flex; }

    .footer-card { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* ─────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal { opacity: 1; transform: none; }
    .blob { animation: none; }
    .grad {
        -webkit-text-fill-color: initial;
        background: none;
        color: var(--purple);
    }
}
