/* M Kashif Khan — kashifkhan.io */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --text: #111111;
    --text-secondary: #5c5c5c;
    --text-tertiary: #8e8e8e;
    --accent: #0055cc;
    --accent-hover: #0047ad;
    --accent-soft: rgba(0, 85, 204, 0.1);
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --blur: 32px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 980px;
    --container: 1080px;
    --header-h: 68px;
    --section-pad: 96px;
    --container-pad: 24px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Sora', var(--font);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 20px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

::selection { background: var(--accent-soft); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Sections */
.section { padding: var(--section-pad) 0; }

.glass {
    background: var(--glass);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Background */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.mesh-blob-1 {
    width: 55vw;
    height: 55vw;
    max-width: 520px;
    max-height: 520px;
    background: radial-gradient(circle, rgba(0, 85, 204, 0.5), transparent 70%);
    top: -15%;
    right: -10%;
}

.mesh-blob-2 {
    width: 45vw;
    height: 45vw;
    max-width: 420px;
    max-height: 420px;
    background: radial-gradient(circle, rgba(120, 80, 200, 0.35), transparent 70%);
    bottom: 10%;
    left: -12%;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: calc(var(--header-h) + var(--safe-top));
    padding-top: var(--safe-top);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(250, 250, 250, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--text); }

.nav-link.active { background: rgba(0, 0, 0, 0.04); }

.nav-cta {
    background: var(--text) !important;
    color: #fff !important;
    margin-left: 6px;
}

.nav-cta:hover { background: #333 !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition);
}

.nav-toggle.active span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    min-height: 44px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 85, 204, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(0, 85, 204, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.14);
}

.btn-full { width: 100%; }

/* Hero */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + var(--safe-top) + 48px) var(--container-pad) calc(80px + var(--safe-bottom));
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 4.8vw, 3.35rem);
    margin-bottom: 20px;
    max-width: 14ch;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-tagline {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 46ch;
    margin-bottom: 0;
}

.hero-tagline--mobile { display: none; }

.hero-metrics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 36px 0 32px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric { padding-right: 28px; }

.metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.metric-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
    margin-right: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
}

.portrait-wrap { text-align: center; }

.portrait-frame {
    display: inline-block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border);
}

.portrait-frame img {
    width: 100%;
    max-width: 340px;
    object-fit: contain;
    object-position: center bottom;
}

.portrait-caption {
    margin-top: 14px;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Sections spacing set above with .section */

.section-intro { margin-bottom: 48px; }

.section-intro h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section-index {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.section-note {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-family: var(--font);
}

/* About */
.about-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 56px;
    align-items: start;
}

.about-copy p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-copy .lead {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 20px;
}

.about-facts {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px 0;
}

.about-facts div {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.about-facts div:last-child { border-bottom: none; }

.about-facts dt {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.about-facts dd {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.status-open { color: #1a7f37; }

.faq-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.faq-heading {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 20px 16px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.faq-item a {
    color: var(--accent);
}

/* ZipZap */
.zipzap-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding: 44px 48px;
    border-radius: var(--radius-lg);
}

.zipzap-eyebrow {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 8px 0 16px;
}

.zipzap-copy h2 {
    font-size: clamp(1.625rem, 2.8vw, 2.125rem);
    margin-bottom: 16px;
}

.zipzap-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 48ch;
}

.zipzap-list {
    margin-bottom: 28px;
}

.zipzap-list li {
    padding: 12px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-left: 18px;
    position: relative;
}

.zipzap-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.zipzap-list li:last-child { border-bottom: none; }

.zipzap-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.zipzap-logo-wrap {
    width: 300px;
    height: 300px;
    max-width: min(300px, 82vw);
    aspect-ratio: 1 / 1;
    border-radius: 44px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.zipzap-logo {
    display: block;
    width: 100%;
    height: 108%;
    object-fit: cover;
    object-position: center center;
    transform: translateY(-3.5%);
}

/* Work */
.work-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.work-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.work-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.work-card-main { grid-row: span 2; }

.work-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.work-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.work-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.contact-intro h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 16px;
}

.contact-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 38ch;
}

.contact-email {
    display: inline-block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.contact-email:hover { text-decoration: underline; }

.contact-details p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-link:hover {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.contact-form-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #cf222e;
    box-shadow: 0 0 0 3px rgba(207, 34, 46, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 14px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    min-height: 1.4em;
}

.form-status.success { color: #1a7f37; }
.form-status.error { color: #cf222e; }

/* Form success popup */
.form-success-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-success-modal.open {
    opacity: 1;
    visibility: visible;
}

.form-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.form-success-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.form-success-modal.open .form-success-card {
    transform: translateY(0) scale(1);
}

.form-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 127, 55, 0.1);
    color: #1a7f37;
    border-radius: 50%;
    font-size: 1.25rem;
}

.form-success-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    margin-bottom: 10px;
}

.form-success-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0 36px;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer-copy a {
    color: inherit;
    text-decoration: none;
}

.footer-copy a:hover {
    color: var(--accent);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.footer-nav a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-nav a:hover { color: var(--text); }

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive — Desktop · Tablet · Mobile
   ============================================ */

/* Large desktop */
@media (min-width: 1280px) {
    :root {
        --container: 1140px;
        --section-pad: 112px;
    }

    .hero-inner { gap: 64px; }
    .portrait-frame img { max-width: 360px; }
}

/* Tablet landscape & small laptop */
@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }

    .hero-inner,
    .about-layout,
    .zipzap-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-inner { text-align: center; }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-metrics { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; }

    .portrait-frame img { max-width: 280px; }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-card-main {
        grid-row: auto;
        grid-column: 1 / -1;
    }

    .zipzap-visual { order: -1; }

    .zipzap-copy {
        text-align: center;
    }

    .zipzap-desc,
    .zipzap-list {
        margin-left: auto;
        margin-right: auto;
    }

    .zipzap-copy .btn { margin: 0 auto; }

    .section-intro { text-align: center; }
    .section-note { margin-left: auto; margin-right: auto; }

    .contact-intro { text-align: center; }
    .contact-lead { margin-left: auto; margin-right: auto; }
    .social-links { justify-content: center; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    :root {
        --header-h: 56px;
        --section-pad: 64px;
        --container-pad: 20px;
    }

    .nav-toggle { display: flex; }

    .logo-text { font-size: 0.875rem; }

    .nav-links {
        position: fixed;
        top: calc(var(--header-h) + var(--safe-top) + 8px);
        left: calc(12px + var(--safe-left));
        right: calc(12px + var(--safe-right));
        flex-direction: column;
        padding: 8px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
        transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
        max-height: calc(100dvh - var(--header-h) - var(--safe-top) - 24px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-cta { margin-left: 0; margin-top: 4px; }

    /* Hero — mobile: centered stack, portrait first */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + var(--safe-top) + 16px);
        padding-bottom: calc(44px + var(--safe-bottom));
        align-items: flex-start;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .hero-visual {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-content {
        order: 0;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .portrait-wrap {
        width: min(240px, 68vw);
        max-width: 240px;
        margin: 0;
    }

    .portrait-frame {
        display: block;
        width: 100%;
    }

    .portrait-frame img {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }

    .portrait-caption {
        margin-top: 10px;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .hero-eyebrow {
        font-size: 0.6875rem;
        margin-bottom: 14px;
        letter-spacing: 0.08em;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6.4vw, 2.25rem);
        line-height: 1.18;
        letter-spacing: -0.03em;
        max-width: 16ch;
        margin: 0 auto 14px;
        text-wrap: balance;
    }

    .hero h1 br { display: block; }

    .hero-tagline--desktop { display: none; }

    .hero-tagline--mobile {
        display: block;
        font-size: 0.9375rem;
        line-height: 1.6;
        max-width: 32ch;
        margin: 0 auto;
    }

    .hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 360px;
        margin: 24px auto;
        padding: 0;
        border: none;
    }

    .metric {
        padding: 12px 6px;
        text-align: center;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        flex: unset;
        min-width: 0;
    }

    .metric-value {
        font-size: 1.125rem;
        margin-bottom: 3px;
    }

    .metric-label {
        font-size: 0.625rem;
        line-height: 1.25;
        letter-spacing: 0.02em;
    }

    .metric-sep { display: none; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Other sections — left align on mobile */
    .section-intro,
    .zipzap-copy,
    .contact-intro {
        text-align: left;
    }

    .section-note,
    .zipzap-desc,
    .contact-lead {
        margin-left: 0;
        margin-right: 0;
    }

    .zipzap-copy .btn {
        width: 100%;
        margin: 0;
    }

    .social-links {
        justify-content: flex-start;
    }

    .zipzap-layout {
        padding: 28px 22px;
    }

    .zipzap-copy h2 br { display: none; }

    .zipzap-logo-wrap {
        width: min(260px, 72vw);
        height: min(260px, 72vw);
        border-radius: 38px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card { padding: 26px 22px; }

    .about-copy .lead { font-size: 1.0625rem; }

    .about-facts div { padding: 16px 20px; }

    .form-row { grid-template-columns: 1fr; }

    .contact-form-panel { padding: 24px 20px; }

    .contact-layout { gap: 40px; }

    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-nav { justify-content: center; }

    .mesh-blob-1 { width: 70vw; height: 70vw; opacity: 0.15; }
    .mesh-blob-2 { width: 60vw; height: 60vw; opacity: 0.12; }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --section-pad: 52px;
        --container-pad: 16px;
    }

    .hero {
        padding-top: calc(var(--header-h) + var(--safe-top) + 12px);
    }

    .hero-inner { gap: 28px; }

    .portrait-wrap {
        width: min(200px, 62vw);
        max-width: 200px;
    }

    .portrait-frame img { max-width: 200px; }

    .hero-content { max-width: 100%; }

    .hero-eyebrow { margin-bottom: 12px; }

    .hero h1 {
        font-size: clamp(1.625rem, 7.5vw, 1.875rem);
        max-width: 14ch;
    }

    .hero-tagline--mobile {
        font-size: 0.875rem;
        max-width: none;
        padding: 0 4px;
    }

    .hero-metrics {
        gap: 6px;
        margin: 20px auto;
        max-width: 100%;
    }

    .metric { padding: 10px 4px; }

    .metric-value { font-size: 1rem; }

    .metric-label { font-size: 0.5625rem; }

    .hero-actions { max-width: 100%; }

    .zipzap-logo-wrap {
        width: min(220px, 78vw);
        height: min(220px, 78vw);
        border-radius: 32px;
    }

    .zipzap-copy .btn { width: 100%; }

    .form-success-modal { padding: 16px; }

    .form-success-card { padding: 28px 22px 22px; }

    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 360px) {
    .logo-text { display: none; }

    .hero h1 { font-size: 1.625rem; }

    .zipzap-logo-wrap {
        width: min(190px, 82vw);
        height: min(190px, 82vw);
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + var(--safe-top) + 20px);
        padding-bottom: 32px;
    }

    .hero-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto;
        text-align: left;
        gap: 16px 24px;
        align-items: center;
    }

    .hero-visual {
        order: 0;
        width: auto;
        justify-content: flex-start;
    }

    .hero-content {
        order: 0;
        align-items: flex-start;
        text-align: left;
        max-width: none;
        margin: 0;
    }

    .hero h1 {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        font-size: 1.5rem;
    }

    .hero-tagline--mobile {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        font-size: 0.8125rem;
    }

    .portrait-wrap {
        width: 120px;
        max-width: 120px;
        margin: 0;
    }

    .portrait-frame img { max-width: 120px; }

    .portrait-caption { display: none; }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
        margin: 12px 0;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        max-width: none;
        margin: 0;
    }

    .hero-actions .btn {
        width: auto;
        flex: 1 1 auto;
    }

    .kashif-ai-panel {
        height: 100dvh;
        max-height: none;
    }
}

/* Touch devices — reduce hover lift */
@media (hover: none) and (pointer: coarse) {
    .work-card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-primary:hover,
    .btn-ghost:hover {
        box-shadow: 0 2px 12px rgba(0, 85, 204, 0.25);
    }

    .kashif-ai-fab:hover {
        transform: none;
    }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 4px; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.nav-link:focus-visible,
.btn:focus-visible,
.social-link:focus-visible { outline-offset: 2px; }

/* ============================================
   Kashif AI Chat Widget
   ============================================ */

.kashif-ai-glow-badge {
    position: relative;
    display: inline-flex;
    padding: 2px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    isolation: isolate;
}

.kashif-ai-glow-badge::before {
    content: '';
    position: absolute;
    inset: -120%;
    background: conic-gradient(
        from 0deg,
        #ff6b6b,
        #ffd93d,
        #6bcb77,
        #4d96ff,
        #9b59b6,
        #ff9ff3,
        #ff6b6b
    );
    animation: kashifAiBorderSpin 2.8s linear infinite;
}

.kashif-ai-glow-badge-inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: #fff;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: nowrap;
    line-height: 1.2;
    margin: 0;
}

.kashif-ai-glow-badge--header .kashif-ai-glow-badge-inner {
    padding: 8px 18px;
    font-size: 1rem;
}

.kashif-ai-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

@keyframes kashifAiBorderSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .kashif-ai-glow-badge::before {
        animation: none;
        inset: 0;
        background: linear-gradient(135deg, #ff6b6b, #4d96ff, #9b59b6);
    }
}

.kashif-ai-fab {
    position: fixed;
    bottom: calc(28px + var(--safe-bottom));
    right: calc(28px + var(--safe-right));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kashif-ai-fab .kashif-ai-glow-badge-inner {
    background: var(--text);
    color: #fff;
    padding: 12px 24px;
}

.kashif-ai-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.kashif-ai-fab:active {
    transform: scale(0.97);
}

body.chat-open .kashif-ai-fab {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.kashif-ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(245, 245, 247, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.kashif-ai-overlay.open {
    opacity: 1;
    visibility: visible;
}

.kashif-ai-panel {
    width: 100%;
    max-width: 820px;
    height: min(88vh, 760px);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.kashif-ai-overlay.open .kashif-ai-panel {
    transform: translateY(0) scale(1);
}

.kashif-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.kashif-ai-status {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0;
}

.kashif-ai-actions {
    display: flex;
    gap: 8px;
}

.kashif-ai-btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.kashif-ai-btn-icon:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

.kashif-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    scroll-behavior: smooth;
}

.kashif-ai-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px 16px;
    max-width: 520px;
    margin: 0 auto;
}

.welcome-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--accent);
}

.kashif-ai-welcome h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.kashif-ai-welcome > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 28px;
}

.kashif-ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-chip {
    padding: 10px 16px;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.suggestion-chip:hover {
    background: var(--bg-elevated);
    border-color: rgba(0, 0, 0, 0.14);
}

.chat-msg {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: msgIn 0.35s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-user {
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    border-radius: 8px;
    color: #fff;
    font-size: 0.6875rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-msg-bubble {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text);
}

.chat-msg-user .chat-msg-bubble {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
}

.chat-msg-assistant .chat-msg-bubble {
    border-radius: 18px 18px 18px 4px;
}

.chat-msg-bubble strong {
    font-weight: 600;
    color: inherit;
}

.chat-msg-bubble p {
    margin: 0 0 0.65em;
}

.chat-msg-bubble p:last-child {
    margin-bottom: 0;
}

.chat-msg-bubble ul {
    margin: 0.4em 0 0.75em 1.1em;
    padding: 0;
}

.chat-msg-bubble li {
    margin-bottom: 0.35em;
}

.chat-msg-bubble code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.chat-attachment-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.chat-generated-image {
    display: block;
    width: 100%;
    max-width: min(320px, 100%);
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 0;
    object-fit: cover;
    background: var(--bg);
    pointer-events: none;
}

.chat-image-open {
    display: block;
    width: 100%;
    max-width: min(320px, 100%);
    margin: 10px 0 4px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.chat-image-open:hover .chat-generated-image {
    filter: brightness(0.96);
}

.chat-image-open-hint {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.6875rem;
    font-family: var(--font);
    pointer-events: none;
}

.chat-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(16px + var(--safe-left));
}

.chat-image-lightbox[hidden] {
    display: none !important;
}

.chat-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chat-image-lightbox-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1200px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.chat-image-lightbox-close {
    position: absolute;
    top: -6px;
    right: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.125rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.chat-image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.chat-image-lightbox-img {
    display: block;
    width: 100%;
    max-height: calc(100dvh - 140px);
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    background: #111;
}

.chat-image-lightbox-bar {
    display: flex;
    justify-content: center;
    width: 100%;
}

.chat-image-lightbox-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.chat-image-lightbox-download:hover {
    background: #f2f2f2;
    transform: translateY(-1px);
}

body.image-lightbox-open {
    overflow: hidden;
}

.chat-inline-image {
    display: block;
    width: 100%;
    max-width: min(220px, 100%);
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.chat-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.05);
    font-size: 0.8125rem;
}

.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 14px;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.chat-status i {
    color: var(--accent);
}

.stream-cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--accent);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: streamCursorBlink 0.85s step-end infinite;
}

@keyframes streamCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.chat-streaming .chat-msg-bubble {
    min-height: 1.5em;
}

.chat-error {
    margin: 0 auto 16px;
    max-width: 90%;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: #ff3b30;
    text-align: center;
    background: rgba(255, 59, 48, 0.08) !important;
    border-color: rgba(255, 59, 48, 0.15) !important;
}

.kashif-ai-input-area {
    padding: 12px 16px calc(12px + var(--safe-bottom));
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.kashif-ai-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kashif-ai-input-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

.kashif-ai-tool-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kashif-ai-tool-btn:hover {
    color: var(--accent);
    border-color: rgba(0, 85, 204, 0.25);
}

.kashif-ai-tool-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(0, 85, 204, 0.25);
}

.kashif-ai-tool-btn--label {
    width: auto;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    gap: 7px;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 500;
}

.kashif-ai-tool-btn--label span {
    line-height: 1;
}

.kashif-ai-tool-btn--label i {
    font-size: 0.875rem;
}

.kashif-ai-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.kashif-ai-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 180px;
    padding: 6px 8px 6px 6px;
    border-radius: var(--radius-pill);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.kashif-ai-attachment-chip img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
}

.kashif-ai-attachment-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kashif-ai-attachment-remove {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.kashif-ai-attachment-remove:hover {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.08);
}

.kashif-ai-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    border-radius: var(--radius-pill);
}

.kashif-ai-input-wrap textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    resize: none;
    outline: none;
    max-height: 120px;
    line-height: 1.5;
    padding: 8px 0;
}

.kashif-ai-input-wrap textarea::placeholder {
    color: var(--text-tertiary);
}

.kashif-ai-send {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.kashif-ai-send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.kashif-ai-send:not(:disabled):hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.kashif-ai-disclaimer {
    margin-top: 10px;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-align: center;
}

.kashif-ai-disclaimer a {
    color: var(--accent);
}

.kashif-ai-disclaimer a:hover {
    text-decoration: underline;
}

body.modal-open,
body.chat-open,
body.nav-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .kashif-ai-fab {
        bottom: calc(16px + var(--safe-bottom));
        right: calc(16px + var(--safe-right));
    }

    .kashif-ai-fab .kashif-ai-glow-badge-inner {
        padding: 11px 20px;
        font-size: 0.875rem;
    }

    .kashif-ai-overlay {
        padding: 0;
    }

    .kashif-ai-panel {
        max-width: 100%;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .kashif-ai-header {
        padding-top: calc(12px + var(--safe-top));
        padding-left: calc(14px + var(--safe-left));
        padding-right: calc(14px + var(--safe-right));
    }

    .chat-msg-bubble {
        max-width: 88%;
        font-size: 0.9375rem;
    }

    .kashif-ai-suggestions {
        flex-direction: column;
        width: 100%;
    }

    .suggestion-chip {
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .kashif-ai-input-area {
        padding-left: calc(12px + var(--safe-left));
        padding-right: calc(12px + var(--safe-right));
    }

    .chat-image-lightbox-close {
        position: fixed;
        top: calc(12px + var(--safe-top));
        right: calc(12px + var(--safe-right));
    }

    .chat-image-lightbox-img {
        max-height: calc(100dvh - 170px);
    }
}

@media (max-width: 480px) {
    .kashif-ai-header {
        padding: calc(12px + var(--safe-top)) calc(14px + var(--safe-right)) 12px calc(14px + var(--safe-left));
    }

    .kashif-ai-messages {
        padding: 16px calc(12px + var(--safe-left)) 16px calc(12px + var(--safe-right));
    }

    .kashif-ai-btn-icon {
        width: 44px;
        height: 44px;
    }

    .kashif-ai-send {
        width: 44px;
        height: 44px;
    }
}

.kashif-ai-messages::-webkit-scrollbar {
    width: 6px;
}

.kashif-ai-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}
