/* ── AI PAGE ── */

/* Force nav visible immediately on AI page (no scroll-reveal) */
body.ai-page { }
body.ai-page.nav-visible .site-nav,
body.ai-page .site-nav {
    background: white;
}

/* ── HERO ── */
.ai-hero {
    background: var(--bg-green);
    padding-top: 98px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-bottom: 60px;
    padding-left: 33px;
    padding-right: 33px;
    gap: 48px;
    position: relative;
    overflow: hidden;
}
.ai-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #1fd67a 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.35;
}
.ai-hero__content { position: relative; z-index: 1; }
/* BACKUP: .ai-hero h1 was font-size: clamp(36px, 5.5vw, 88px); line-height: 0.95; letter-spacing: -0.02em; */
.ai-hero h1 {
    font-size: clamp(28px, 4.5vw, 96px);
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    transform: none;
}
.ai-hero__sub {
    font-size: 18px;
    max-width: 460px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.ai-hero__btn {
    display: inline-block;
    border: 1.5px solid black;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: transparent;
    text-decoration: none;
    color: black;
}
.ai-hero__btn:hover { background: black; color: var(--bg-green); }

/* ── Before / After slider ── */
.ai-hero__comparison {
    position: relative;
    z-index: 1;
    aspect-ratio: 3/2.1;
    border-radius: 16px;
    overflow: hidden;
    cursor: ns-resize;
    user-select: none;
    -webkit-user-select: none;
}
.cmp-after {
    position: absolute;
    inset: 0;
    background: white;
}
.cmp-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cmp-before {
    position: absolute;
    inset: 0;
    background: #1d1d1d;
    height: 50%;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}
.cmp-before img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cmp-label {
    position: absolute;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: inherit;
    z-index: 5;
}
.cmp-label--before { top: 14px; left: 14px; color: rgba(255,255,255,0.5); }
.cmp-label--after  { bottom: 14px; right: 14px; color: rgba(0,0,0,0.3); z-index: 1; }

/* Slider handle */
.cmp-slider {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 0;
    z-index: 10;
    pointer-events: none;
}
.cmp-slider__line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: black;
    transform: translateY(-1px);
}
.cmp-slider__handle {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: black;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: ns-resize;
    transition: transform 0.15s ease;
}
.cmp-slider__handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ── TAGLINE ── */
.ai-tagline { padding: 110px 33px; text-align: center; }
.ai-tagline p {
    font-size: 22px;
    color: black;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── WHAT WE DO ── */
.ai-what-we-do {
    padding: clamp(48px, 6vw, 80px) 33px;
    background: #F0F0F0;
}

.ai-section-label {
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: black;
    font-weight: normal;
    margin-bottom: 32px;
    display: block;
}

.ai-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ai-service-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.ai-service-card.visible { opacity: 1; transform: translateY(0); }
.ai-service-card:nth-child(1) { transition-delay: 0.00s; }
.ai-service-card:nth-child(2) { transition-delay: 0.07s; }
.ai-service-card:nth-child(3) { transition-delay: 0.14s; }
.ai-service-card:nth-child(4) { transition-delay: 0.21s; }
.ai-service-card:nth-child(5) { transition-delay: 0.28s; }
.ai-service-card:nth-child(6) { transition-delay: 0.35s; }

.ai-sc-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    flex-shrink: 0;
}
.ai-sc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-sc-text {
    padding: 24px 24px 28px;
    flex: 1;
}
.ai-sc-title {
    font-size: 30px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: -0.016em;
    line-height: 1.2;
    margin-bottom: 15px;
    color: black;
}
.ai-sc-desc {
    font-size: 18px;
    line-height: 1.5;
    color: black;
    margin: 0;
}

/* ── WHY US ── */
.ai-why-us {
    padding: clamp(48px, 6vw, 80px) 33px;
    background: #FFBDF3;
    color: black;
}
.ai-why-us .ai-section-label { color: black; }
.ai-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.ai-why-item {
    background: white;
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.ai-why-item.visible { opacity: 1; transform: translateY(0); }
.ai-why-item:nth-child(1) { transition-delay: 0s; }
.ai-why-item:nth-child(2) { transition-delay: 0.1s; }
.ai-why-item:nth-child(3) { transition-delay: 0.2s; }
.ai-why-icon { width: 48px; height: 48px; }
.ai-why-title {
    font-size: 30px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: -0.016em;
    line-height: 1.2;
    color: black;
}
.ai-why-desc { font-size: 18px; line-height: 1.5; color: black; margin: 0; }

/* ── VISUAL LAB ── */
.ai-visual-lab {
    background: #000;
    color: white;
    padding: clamp(64px, 8vw, 120px) 33px 0;
}
.ai-vl-eyebrow {
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: white;
    font-weight: normal;
    margin-bottom: 48px;
}
.ai-vl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.ai-vl-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    color: white;
}
.ai-vl-body { font-size: 18px; line-height: 1.5; color: white; margin-bottom: 36px; max-width: 670px; }
.ai-vl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-vl-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid #2a2a2a;
    padding: 8px 16px;
    border-radius: 999px;
    color: white;
    opacity: 0.45;
}

/* browser mockup */
.ai-browser-mockup {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}
.ai-browser-bar {
    background: #ECECEC;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ai-browser-dot { width: 11px; height: 11px; border-radius: 50%; }
.ai-browser-dot:nth-child(1) { background: white; }
.ai-browser-dot:nth-child(2) { background: white; }
.ai-browser-dot:nth-child(3) { background: white; }
.ai-browser-url {
    flex: 1;
    background: white;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 11px;
    color: #c8c8c8;
    text-align: center;
    margin-left: 8px;
    letter-spacing: 0.03em;
    font-family: Lab2, system-ui, sans-serif;
}
.ai-browser-ui {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: #fff;
    font-family: -apple-system, sans-serif;
    min-height: 280px;
}
.ai-bui-sidebar {
    background: #fafafa;
    border-right: 1px solid #eee;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-bui-lbl { font-size: 8px; text-transform: uppercase; letter-spacing: 0.1em; color: #aaa; margin-top: 2px; }
.ai-bui-toggle {
    background: #e8fdf3;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 8px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-bui-pill { background: #28ef8a; color: black; border-radius: 3px; padding: 2px 5px; font-size: 7px; font-weight: bold; }
.ai-bui-btns { display: flex; gap: 3px; flex-wrap: wrap; }
.ai-bui-btn { border: 1px solid #ddd; border-radius: 999px; padding: 3px 8px; font-size: 7px; background: white; }
.ai-bui-btn.active { background: #6952F8; color: white; border-color: #6952F8; }
.ai-bui-textarea { background: white; border: 1px solid #ddd; border-radius: 5px; padding: 6px; font-size: 7px; color: #999; height: 40px; }
.ai-bui-generate { background: #28ef8a; border: none; border-radius: 6px; padding: 8px; font-size: 8px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; margin-top: auto; }
.ai-bui-gallery { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ai-bui-gh { font-size: 9px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; color: #333; }
.ai-bui-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ai-bui-img-cell { aspect-ratio: 9/16; border-radius: 5px; position: relative; overflow: hidden; }
.ai-bui-img-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ddd 25%, #e8e8e8 50%, #ddd 75%);
    background-size: 200% 200%;
    animation: ai-bshimmer 2s infinite linear;
}
.ai-bui-img-cell:nth-child(odd)::after { animation-delay: -0.6s; }
.ai-bui-img-cell:nth-child(3n)::after  { animation-delay: -1.2s; }
@keyframes ai-bshimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Shimmer sweep over gallery area only */
.ai-shimmer-overlay {
    position: absolute;
    top: 7%;
    left: 26%;
    width: 74%;
    height: 93%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.3) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: ai-screen-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ai-screen-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── CUSTOM TOOL — white card inside black ── */
.ai-ct-wrap {
    padding: clamp(48px, 6vw, 80px) 0px clamp(64px, 8vw, 100px);
}
.ai-ct-card {
    width: 100%;
    background: white;
    color: black;
    border-radius: 24px;
    padding: clamp(40px, 5vw, 64px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: stretch;
}
.ai-ct-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ai-ct-eyebrow {
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: black;
    font-weight: normal;
    margin-bottom: 16px;
}
.ai-ct-heading {
    font-size: clamp(36px, 5vw, 68px);
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.ai-ct-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
    flex: 1;
}
.ai-ct-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}
.ai-ct-check {
    background: black;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: Lab2, system-ui, sans-serif;
    color: white;
    flex-shrink: 0;
}
.ai-ct-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    grid-column: 1;
}
.ai-ct-image {
    grid-column: 2;
    grid-row: 1 / 3;
}
.ai-ct-btn {
    display: inline-block;
    text-decoration: none;
}
.ai-ct-btn:hover svg path { fill: white; stroke: black; stroke-width: 1; }
.ai-ct-btn:hover svg text { fill: black; }
.ai-ct-note {
    font-size: 14px;
    color: black;
}

/* ── AI CONTACT SECTION ── */
.ai-contact-section {
    padding: clamp(64px, 8vw, 120px) 33px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.ai-contact-heading {
    font-size: clamp(40px, 6vw, 96px);
    font-weight: normal;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.ai-contact-sub {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.ai-form-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.ai-form-chip {
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    background: white;
    transition: background 0.15s, border-color 0.15s;
}
.ai-form-chip:hover, .ai-form-chip.active {
    background: black;
    color: white;
    border-color: black;
}

.ai-form-fields-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.ai-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ai-form-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ai-form-field label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 8px;
}
.ai-form-field input,
.ai-form-field textarea {
    font-family: inherit;
    font-size: 15px;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    outline: none;
    background: transparent;
    color: black;
    width: 100%;
    border-radius: 0;
}
.ai-form-field textarea { height: 80px; resize: none; }
.ai-form-field input:focus,
.ai-form-field textarea:focus { border-bottom-color: black; }

.ai-form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.ai-submit-btn {
    font-family: inherit;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: transparent;
    border: none;
    cursor: pointer;
    color: black;
    transition: letter-spacing 0.3s ease;
}
.ai-submit-btn:hover { letter-spacing: 0.12em; }

/* ── AI FOOTER ── */
.ai-footer {
    padding: 20px 33px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .ai-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }
    .ai-hero__comparison {
        max-width: 500px;
    }
    .ai-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-vl-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .ai-ct-card {
        grid-template-columns: 1fr;
    }
    .ai-contact-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 560px) {
    .ai-hero {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 100px;
    }
    .ai-hero h1 {
        font-size: 40px;
        margin-bottom: 20px;
    }
    .ai-hero__sub {
        font-size: 18px;
        max-width: 460px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    .ai-tagline { padding: 40px 20px; }
    .ai-tagline p { font-size: 16px; }
    .ai-what-we-do { padding-left: 20px; padding-right: 20px; }
    .ai-services-grid {
        grid-template-columns: 1fr;
    }
    .ai-why-us { padding-left: 20px; padding-right: 20px; }
    .ai-why-grid {
        grid-template-columns: 1fr;
    }
    .ai-why-item { padding: 28px 24px; }
    .ai-visual-lab { padding-left: 20px; padding-right: 20px; }
    .ai-vl-title { font-size: 40px; }
    .ai-ct-wrap { padding-left: 0; padding-right: 0; }
    .ai-ct-card { padding: 21px; gap: 32px; border-radius: 16px; }
    .ai-ct-cta-row { flex-direction: column; align-items: flex-start; grid-column: 1; }
    .ai-ct-image { grid-column: 1; grid-row: auto; }
    .ai-ct-btn svg { max-width: 100%; height: auto; }
    .ai-contact-section { padding-left: 20px; padding-right: 20px; }
    .ai-form-row { grid-template-columns: 1fr; }
    .ai-footer { padding-left: 20px; padding-right: 20px; }
    .ai-browser-ui { grid-template-columns: 1fr; }
    .ai-bui-sidebar { display: none; }
}


/* ============================================================
   AI-LAB animated service-card illustrations
   (the 6 cards are now inline <svg> in ai-lab.html;
    these rules drive their motion. Respects reduce-motion.)
   ============================================================ */
.ai-sc-img svg { width:100%; height:100%; display:block; }

@media (prefers-reduced-motion: no-preference){
  .c1 .after{animation:c1wipe 6.4s ease-in-out infinite}
  @keyframes c1wipe{0%{clip-path:inset(0 100% 0 0)}19%{clip-path:inset(0 0 0 0)}50%{clip-path:inset(0 0 0 0)}69%{clip-path:inset(0 0 0 100%)}100%{clip-path:inset(0 0 0 100%)}}

  .c2 .ln{fill:none;stroke-dasharray:1;animation:c2draw 8.5s ease-in-out infinite both}
  @keyframes c2draw{0%{stroke-dashoffset:1}5%{stroke-dashoffset:0}76%{stroke-dashoffset:0}83%{stroke-dashoffset:-1}100%{stroke-dashoffset:-1}}
  .c2 .dot2{transform-box:fill-box;transform-origin:center;animation:c2dot 8.5s ease-in-out infinite both}
  @keyframes c2dot{0%{transform:scale(0)}5%{transform:scale(1)}76%{transform:scale(1)}83%{transform:scale(0)}100%{transform:scale(0)}}

  .c3 .ln{fill:none;stroke-dasharray:1;animation:c3draw 8.5s ease-in-out infinite both}
  @keyframes c3draw{0%{stroke-dashoffset:1}7%{stroke-dashoffset:0}85%{stroke-dashoffset:0}92%{stroke-dashoffset:-1}100%{stroke-dashoffset:-1}}
  .c3 .img,.c3 .btn{transform-box:fill-box;transform-origin:center;animation:c3pop 8.5s ease-in-out infinite both}
  @keyframes c3pop{0%{transform:scale(0)}7%{transform:scale(1)}85%{transform:scale(1)}92%{transform:scale(0)}100%{transform:scale(0)}}

  .c4 .cells rect{transform-box:fill-box;transform-origin:center;animation:c4loop 4s ease-in-out infinite both}
  .c4 .cells rect:nth-child(1){animation-delay:0s}.c4 .cells rect:nth-child(2){animation-delay:.18s}
  .c4 .cells rect:nth-child(3){animation-delay:.36s}.c4 .cells rect:nth-child(4){animation-delay:.54s}
  .c4 .cells rect:nth-child(5){animation-delay:.12s}.c4 .cells rect:nth-child(6){animation-delay:.30s}
  .c4 .cells rect:nth-child(7){animation-delay:.48s}.c4 .cells rect:nth-child(8){animation-delay:.66s}
  .c4 .cells rect:nth-child(9){animation-delay:.24s}.c4 .cells rect:nth-child(10){animation-delay:.42s}
  .c4 .cells rect:nth-child(11){animation-delay:.60s}.c4 .cells rect:nth-child(12){animation-delay:.78s}
  .c4 .cells rect:nth-child(13){animation-delay:.36s}.c4 .cells rect:nth-child(14){animation-delay:.54s}
  .c4 .cells rect:nth-child(15){animation-delay:.72s}.c4 .cells rect:nth-child(16){animation-delay:.90s}
  @keyframes c4cell{0%{transform:scale(0);opacity:0}14%{opacity:.18}24%{transform:scale(1);opacity:.16}80%{transform:scale(1);opacity:.16}92%{transform:scale(0);opacity:0}100%{transform:scale(0);opacity:0}}
  .c4 .play{transform-box:fill-box;transform-origin:center;animation:c4p 1.6s ease-in-out infinite}
  @keyframes c4p{0%,100%{transform:scale(1);opacity:.5}50%{transform:scale(1.25);opacity:1}}
  @keyframes c3in{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
  @keyframes c3popin{0%{transform:scale(0)}60%{transform:scale(1.04)}100%{transform:scale(1)}}
  @keyframes c4in{0%{transform:scale(0);opacity:0}55%{opacity:1}100%{transform:scale(1);opacity:1}}
  @keyframes c4loop{0%{transform:scale(0);opacity:0}10%{opacity:1}20%{transform:scale(1)}80%{transform:scale(1)}92%{transform:scale(0);opacity:0}100%{transform:scale(0);opacity:0}}

  .c5 .dot{animation:c5cyc 4s steps(1,end) infinite}
  .c5 .dot:nth-of-type(1){animation-delay:0s}.c5 .dot:nth-of-type(2){animation-delay:-1s}
  .c5 .dot:nth-of-type(3){animation-delay:-2s}.c5 .dot:nth-of-type(4){animation-delay:-3s}
  @keyframes c5cyc{0%{fill:#FFBCF3}25%{fill:#C6FE59}50%{fill:#FF5214}75%{fill:#FFFFFF}100%{fill:#FFBCF3}}

  .c6 .spark{transform-box:fill-box;transform-origin:center;animation:c6spin 6s linear infinite}
  @keyframes c6spin{to{transform:rotate(360deg)}}
}
