/* ============================================================================
   kamdithecreator.com - single-page site styles
   Source of truth: Figma "Kamdithecreator-portfolio" (node 1:17 + state frames)
   Palette, radii and type pulled from the Figma file. Do not invent values.
   ============================================================================ */

:root {
    --purple: #8127D4;
    --purple-deep: #6c1fb4;
    /* accessible purple for dark surfaces (#8127D4 is only 2.52:1 on #1E1E1E;
       this tint clears 4.5:1 there, so even 14px text passes AA) */
    --purple-soft: #AF6BEA;
    --ink: #0D0D0D;
    --dark: #1E1E1E;
    --card: #F9F9FB;
    --white: #FFFFFF;
    /* accessible variant of Figma's #808080 (4.6:1 on white vs 3.95:1) */
    --muted: #6B6B6B;
    --border: #D6D6D6;
    --btn-text: #FCFCFC;
    --why-body: #D9D8D8;
    --toggle-off: #DBDBDB;

    --r-card: 20px;
    --r-btn: 8px;
    --r-pill: 50px;
    --r-tile: 10px;

    --shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-numeral: "Catamaran", var(--font-body);

    /* Spacing scale (from the Figma file): 4 / 8 / 12 / 16 / 20 / 24 / 32 /
       50 / 70 / 100 / 200. Values below always come from this scale. */
    --section-pad: 100px;
    --container: 1120px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

/* The hidden attribute must always win, even over display rules */
[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: calc(var(--container) + 30px);
    margin: 0 auto;
    padding: 0 15px;
}

/* Anchor targets clear the sticky navbar */
#work, #services, #why-us, #pricing, #tools, #faq, #start {
    scroll-margin-top: 110px;
}

/* ---------- Type ---------- */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h2 {
    font-size: clamp(1.875rem, 3.34vw, 3rem);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--r-btn);
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-purple { background: var(--purple); border-color: var(--purple); color: var(--btn-text); }
.btn-purple:hover { background: var(--purple-deep); border-color: var(--purple-deep); }

.btn-black { background: var(--ink); border-color: var(--border); color: var(--white); }
.btn-black:hover { background: var(--dark); }

.btn-dark { background: var(--ink); border-color: var(--purple); color: var(--btn-text); }
.btn-dark:hover { background: var(--dark); }

.btn-white { background: var(--btn-text); border-color: var(--border); color: var(--ink); }
.btn-white:hover { background: var(--white); }

/* Full-width card CTA (pricing + modal call) */
.btn-card {
    width: 100%;
    padding: 16px 22px;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.icon-arrow { width: 20px; height: 20px; transition: transform .2s ease; }

/* Pills / chips */
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
}

.chip-purple { border: 1px solid var(--purple); color: var(--purple); }
.chip-light { border: 1px solid var(--btn-text); color: var(--btn-text); }

.chip-rec {
    background: var(--purple);
    color: var(--btn-text);
    font-size: 0.75rem;
    line-height: 1rem;
    padding: 4px 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ============================================================================
   NAVBAR
   ============================================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
}

.nav-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Wordmark is very wide (11:1); 22px tall lands it around 240px, in line with
   standard navbar logo sizing, instead of dominating the bar */
.nav-logo { height: 22px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 636px;
    padding: 28px 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.nav-link {
    padding: 12px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: var(--muted);
    transition: color .15s ease;
}

.nav-link:hover { color: var(--purple); }

/* ============================================================================
   HERO + WORK CARD
   ============================================================================ */
.hero {
    position: relative;
    padding: var(--section-pad) 0;
    overflow: clip;
    background: #F4EFF9;
}

/* Animated background layers. The drift layer bleeds 48px past every edge so
   the GSAP translate/scale never reveals a seam, and the hero's overflow: clip
   guarantees no scrollbar. Never intercepts clicks. */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-mouse {
    position: absolute;
    inset: 0;
}

.hero-bg-drift {
    position: absolute;
    inset: -48px;
    /* Figma hero wave, right-aligned, + the 20% white overlay from frame 22:666 */
    background:
        linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
        url("/assets/hero-bg.webp") right center / cover no-repeat;
    will-change: transform;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: calc(var(--container) + 30px);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.hero-row { display: flex; }

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    max-width: 541px;
}

.hero-sub { color: var(--dark); }

/* ---------- Work card ---------- */
.work-area {
    position: relative;
    z-index: 1;
    margin-top: 200px;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

.work-card {
    position: relative;
    width: min(var(--container), 100%);
    background: #000;
    border-radius: var(--r-card);
    padding: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.work-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.work-tile {
    width: 109px;
    height: 102px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--r-tile);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-atelo-logo { width: 96px; height: auto; }

.work-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 421px;
}

.work-copy p { color: var(--btn-text); }

.work-visit {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-position: from-font;
}

.work-visit .icon-arrow { margin-left: 2px; }
.work-visit:hover { color: #d9b8f7; }

.work-side {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.work-thumbs {
    display: grid;
    grid-template-columns: 109px;
    gap: 20px;
}

.work-thumb {
    width: 109px;
    height: 102px;
    border-radius: var(--r-tile);
    overflow: hidden;
}

.work-thumb-extra { display: none; }

/* Project tiles fill edge to edge... */
.thumb-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Every tile is a button that opens the project overlay / flipbook */
.thumb-btn {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--r-tile);
}

.thumb-btn img { transition: transform .25s ease; }
.thumb-btn:hover img { transform: scale(1.06); }

/* ...except Prayer Buddy: per Figma the shirt renders at 111x160 object-contain
   centered in the tile, so the whole shirt stays visible, scaled down. */
.work-thumb--prayer .thumb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-thumb--prayer img {
    width: 111px;
    height: 160px;
    object-fit: contain;
    flex-shrink: 0;
}

.work-more {
    color: var(--white);
    font-weight: 600;
    line-height: 1.5rem;
}

.work-more:hover { text-decoration: underline; }

/* Expanded state (Figma 22:631): 2x2 thumbnail grid inline; the same button
   collapses it back ("View Less") */
.work--expanded .work-thumbs { grid-template-columns: 109px 109px; }
.work--expanded .work-thumb-extra { display: block; animation: thumb-in .35s ease both; }

@keyframes thumb-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hover fan deck (Figma 22:606) ---------- */
/* Desktop pointer devices only; decorative; transform/opacity only (no layout
   shift). Hidden entirely for touch, small screens and reduced motion. */
.work-deck { display: none; }

@media (hover: hover) and (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
    .work-deck {
        display: block;
        position: absolute;
        bottom: calc(100% + 12px);
        left: auto;
        right: 60px;
        width: 350px;
        height: 500px;
        pointer-events: none;
        z-index: 5;
        /* Whole fan scaled down and anchored above the thumbnail column on the
           right, so it rises out of its point of origin */
        transform: scale(0.65);
        transform-origin: 50% 100%;
    }

    .deck-card {
        position: absolute;
        inset: 0;
        border-radius: var(--r-tile);
        border: 1px solid var(--white);
        padding: 24px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        opacity: 0;
        transform: translateY(60px) scale(0.9);
        transition: transform .5s cubic-bezier(.22, .9, .3, 1), opacity .35s ease;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        background-color: #24104a;
    }

    /* Figma's 20% black scrim over each card image */
    .deck-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: rgba(0, 0, 0, 0.2);
    }

    .deck-etl { z-index: 1; background-image: url("/assets/etl.webp"); }
    .deck-brochure { z-index: 2; background-image: url("/assets/venn-tech-brochure.webp"); }
    .deck-erm { z-index: 3; background-image: url("/assets/erm-shirt.webp"); }
    .deck-prayer { z-index: 4; background-image: url("/assets/prayer-buddy-shirt.webp"); }

    .work-side:hover ~ .work-deck .deck-card,
    .work-side:focus-within ~ .work-deck .deck-card {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }

    .work-side:hover ~ .work-deck .deck-etl,
    .work-side:focus-within ~ .work-deck .deck-etl {
        transform: translateX(-313px) translateY(-6px) rotate(-6.19deg);
    }

    .work-side:hover ~ .work-deck .deck-erm,
    .work-side:focus-within ~ .work-deck .deck-erm {
        transform: translateX(204px) rotate(2deg);
    }

    .work-side:hover ~ .work-deck .deck-brochure,
    .work-side:focus-within ~ .work-deck .deck-brochure {
        transform: translateX(350px) rotate(9.92deg);
    }

    /* No deck while the grid is expanded */
    .work--expanded .work-deck { display: none; }
}

.deck-glass {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 30px 24px;
    border-radius: var(--r-tile);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.deck-title {
    font-size: 2.25rem;
    line-height: 1.18;
    font-weight: 500;
    color: var(--white);
    text-transform: capitalize;
}

.deck-tag {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 5px;
    background: #191919;
    color: #E9E9E9;
    font-size: 1.125rem;
    line-height: 1.2;
}

/* ============================================================================
   SECTIONS (shared)
   ============================================================================ */
.section { padding: var(--section-pad) 0; }

/* ---------- What we build ---------- */
.services-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 50px;
}

.services-head h2 { max-width: 604px; }

.services-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 492px;
}

.services-head-right p { color: var(--muted); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.svc-card {
    background: var(--card);
    border-radius: var(--r-card);
    padding: 40px 20px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.svc-num {
    font-size: 3rem;
    line-height: 3.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--purple);
}

.svc-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-body h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
    color: var(--ink);
}

.svc-body p { color: var(--muted); }

/* ---------- Why choose us (dark) ---------- */
.why { background: var(--dark); }

.why-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    margin-bottom: 50px;
}

.why-eyebrow {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--purple-soft);
}

.why h2 { color: var(--white); }

.why-grid {
    display: flex;
    justify-content: center;
    gap: 74px;
}

.why-col {
    position: relative;
    width: 299px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.why-pill {
    width: 70px;
    height: 70px;
    border: 2px solid var(--purple-soft);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    z-index: 1;
}

.why-num {
    font-family: var(--font-numeral);
    font-size: 2.25rem;
    line-height: 1.18;
    color: var(--purple-soft);
}

/* Dashed connectors between numeral pills (Figma lines 295/296) */
.why-col:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px;
    left: calc(50% + 35px);
    width: 303px;
    border-top: 2px dashed var(--purple);
    opacity: 0.7;
}

.why-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.why-text h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
    color: var(--white);
}

.why-text p { color: var(--why-body); }

/* ---------- Pricing ---------- */
.pricing-layout {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.pricing-rail {
    width: 352px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Chip and heading group tight (Figma gap 4); the sub separates below */
    gap: 4px;
}

.pricing-sub { color: var(--muted); margin-top: 16px; }

.pricing-grid {
    width: 736px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 32px;
    align-items: stretch;
}

.price-row-label {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
}

.price-row-label--oneoff { color: var(--purple); }
.price-row-label--monthly { color: var(--ink); }

.price-card {
    background: var(--card);
    border-radius: var(--r-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.price-card-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-card-head h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
    color: var(--ink);
}

.price-card-head p { color: var(--muted); }

.price-line {
    display: flex;
    align-items: flex-end;
    color: var(--ink);
}

.price-from,
.price-per {
    font-size: 1rem;
    line-height: 1.5rem;
    padding-bottom: 6px;
}

/* ₦1,200,000 is the longest amount we render; at a flat 3rem it overruns the
   card on ~375px phones. Holds 3rem from ~600px up, eases down below that. */
.price-amount {
    font-size: clamp(2.5rem, 8vw, 3rem);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Neutral until the currency module resolves: no wrong-currency flash */
body.price-pending .price-amount { visibility: hidden; }

.price-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-weight: 500;
    color: var(--ink);
}

.icon-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--purple);
}

/* Scope notes under the feature list: what one request is, what is excluded. */
.price-note {
    width: 100%;
    margin-top: -8px;
    font-size: 0.875rem;
    line-height: 1.375rem;
    color: var(--muted);
}

.price-note + .price-note { margin-top: -16px; }

.price-card .btn-card { margin-top: auto; }

/* ---------- Tools and workflows ---------- */
.tools-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
}

.tools-copy {
    width: 544px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.tools-eyebrow {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--purple);
}

.tools-copy p:last-child {
    color: var(--muted);
    max-width: 492px;
    margin-top: 16px;
}

.tools-panel {
    width: 544px;
    min-height: 198px;
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 24px 0;
    display: flex;
    align-items: center;
}

/* Marquee: the viewport clips, the track slides, edges fade out */
.tools-viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tools-track {
    display: flex;
    width: max-content;
    animation: tools-scroll 24s linear infinite;
}

.tools-panel:hover .tools-track { animation-play-state: paused; }

/* JS toggles this class via IntersectionObserver so the marquee only runs on screen */
.tools-panel--offscreen .tools-track { animation-play-state: paused; }

.tools-set {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
}

@keyframes tools-scroll {
    to { transform: translateX(-50%); }
}

.tool-tile {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--r-tile);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.tool-tile img { max-width: 34px; max-height: 34px; }

/* Affinity ships as a color icon; luminosity treatment matches the mono row
   (same as the Figma tile's blend mode) */
.tool-affinity { filter: grayscale(1); border-radius: 8px; }

/* ---------- FAQ ---------- */
.faq h2 {
    text-align: center;
    margin-bottom: 50px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: var(--container);
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    background: transparent;
}

.faq-item[open] { background: var(--card); }

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item > p {
    padding: 0 30px 30px;
    color: var(--muted);
    max-width: 1060px;
}

.faq-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* ---------- CTA band ---------- */
.cta-band {
    min-height: 448px;
    display: flex;
    align-items: center;
    padding: var(--section-pad) 0;
    /* Figma CTA band wave artwork */
    background: url("/assets/cta-bg.webp") center / cover no-repeat, #151217;
}

.cta-band .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.cta-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cta-band h2 { color: var(--white); margin-top: 12px; }

.cta-body {
    color: var(--btn-text);
    max-width: 723px;
    margin-top: 8px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer-upper {
    background: var(--card);
    padding: 70px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.footer-logo {
    width: min(599px, 90vw);
    height: auto;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--r-tile);
    box-shadow: var(--shadow-xs);
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    transition: border-color .15s ease, color .15s ease;
}

.footer-pill:hover { border-color: var(--purple); color: var(--purple); }

.footer-lower { background: var(--ink); }

.footer-lower-inner {
    max-width: calc(var(--container) + 30px);
    margin: 0 auto;
    padding: 32px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border);
}

.footer-lower p {
    color: var(--btn-text);
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.footer-legal-nav {
    display: flex;
    gap: 16px;
}

.footer-legal-nav a {
    color: var(--border);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.footer-legal-nav a:hover { color: var(--white); text-decoration: underline; }

.social-circle {
    position: relative;
    width: 35px;
    height: 35px;
    border: 1px solid var(--white);
    border-radius: 500px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: border-color .15s ease, color .15s ease;
}

/* Expanded hit area: 35px circle reads the same but the target grows to 45px */
.social-circle::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
}

.social-circle svg { width: 18px; height: 18px; }
.social-circle:hover { border-color: var(--purple); color: var(--purple); }

.social-circle--dark {
    border-color: var(--ink);
    color: var(--ink);
}

/* ============================================================================
   WHATSAPP FAB
   ============================================================================ */
.wa-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    width: 64px;
    height: 64px;
    background: var(--dark);
    border: 1px solid var(--purple);
    border-radius: var(--r-btn);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform .18s ease, background-color .18s ease;
}

.wa-fab svg { width: 32px; height: 32px; }
.wa-fab:hover { transform: translateY(-2px); background: #2a2a2a; }

/* ============================================================================
   CONTACT MODAL
   ============================================================================ */
/* The dialog itself never scrolls; on desktop only the fields column does */
.contact-modal {
    border: none;
    padding: 0;
    border-radius: var(--r-card);
    background: var(--white);
    width: min(1150px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.contact-modal::backdrop {
    background: rgba(13, 13, 13, 0.6);
}

.modal-inner {
    position: relative;
    padding: 64px 60px 56px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-btn);
    color: var(--ink);
}

.modal-close svg { width: 24px; height: 24px; }
.modal-close:hover { background: var(--card); }

.modal-cols {
    display: flex;
    justify-content: center;
    gap: 32px;
    /* Lets the fields column shrink to the dialog height and scroll inside */
    flex: 1;
    min-height: 0;
}

.modal-left {
    width: 476px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.modal-intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-intro p { color: var(--muted); max-width: 429px; }

.modal-call {
    width: 100%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.modal-call p {
    font-size: 1.25rem;
    line-height: 1.875rem;
    font-weight: 500;
}

.modal-nda {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.modal-nda-text { display: flex; flex-direction: column; gap: 6px; }

.modal-nda-title {
    font-size: 1.25rem;
    line-height: 1.875rem;
    font-weight: 500;
}

.modal-nda-text p:last-child { color: var(--muted); }

.toggle {
    position: relative;
    width: 36px;
    height: 20px;
    margin-top: 5px;
    border-radius: 12px;
    background: var(--toggle-off);
    flex-shrink: 0;
    transition: background-color .18s ease;
}

/* Expanded hit area: the visual switch stays 36x20 but the target is 44px+ tall */
.toggle::after {
    content: "";
    position: absolute;
    inset: -12px -6px;
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
    transition: transform .25s cubic-bezier(.22, .9, .3, 1);
}

.toggle[aria-checked="true"] { background: var(--purple); }
.toggle[aria-checked="true"] .toggle-knob { transform: translateX(16px); }

.modal-social {
    display: flex;
    align-items: center;
    gap: 24px;
}

.modal-social > p {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
}

.modal-social-icons { display: flex; gap: 15px; }

.modal-form {
    width: 544px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Fields group tight; the submit separates itself below */
    gap: 16px;
    /* Only this column scrolls when the form outgrows the dialog */
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 8px;
}

.modal-form .btn { margin-top: 8px; }

.field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label { color: var(--ink); }

/* Required-field marker inside labels */
.req { color: var(--purple); }

.field input,
.field textarea {
    width: 100%;
    background: var(--card);
    border: 1px solid transparent;
    border-radius: var(--r-btn);
    padding: 0 12px;
    height: 48px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--ink);
}

.field textarea {
    height: 120px;
    padding: 14px 12px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.field-file {
    padding: 10px 12px !important;
    height: auto !important;
    color: var(--muted);
}

.field-file::file-selector-button {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-btn);
    padding: 6px 12px;
    margin-right: 12px;
    cursor: pointer;
}

.form-error {
    color: #B3261E;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.form-note {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.modal-success {
    width: 544px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.modal-success h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
}

.modal-success p { color: var(--muted); }

/* ---------- Modal micro-interactions ---------- */
/* Staggered rise-in when the dialog opens; the global reduced-motion block at
   the end of the file neutralizes all of these */
.contact-modal[open] .field { animation: rise-in .35s ease-out both; }
.modal-form .field:nth-child(1) { animation-delay: 0s; }
.modal-form .field:nth-child(2) { animation-delay: .04s; }
.modal-form .field:nth-child(3) { animation-delay: .08s; }
.modal-form .field:nth-child(4) { animation-delay: .12s; }
.modal-form .field:nth-child(5) { animation-delay: .16s; }
.modal-form .field:nth-child(6) { animation-delay: .2s; }

.contact-modal[open] .modal-left > * { animation: rise-in .4s ease-out both; }
.contact-modal[open] .modal-left > *:nth-child(1) { animation-delay: 0s; }
.contact-modal[open] .modal-left > *:nth-child(2) { animation-delay: .05s; }
.contact-modal[open] .modal-left > *:nth-child(3) { animation-delay: .1s; }
.contact-modal[open] .modal-left > *:nth-child(4) { animation-delay: .15s; }

/* Submit arrow nudges forward on hover */
.modal-form .btn:hover .icon-arrow { transform: translateX(3px); }

/* Success panel rises in when the form swaps out */
.modal-success:not([hidden]) { animation: rise-in .4s ease-out both; }

@keyframes rise-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

body.modal-open { overflow: hidden; }

/* ============================================================================
   PROJECT LIGHTBOX + FLIPBOOK MODAL
   ============================================================================ */
.project-modal {
    border: none;
    padding: 0;
    background: transparent;
    max-width: min(560px, calc(100vw - 32px));
    overflow: visible;
}

.project-modal::backdrop,
.flipbook-modal::backdrop {
    background: rgba(13, 13, 13, 0.75);
}

.project-view {
    position: relative;
    margin: 0;
}

.project-view img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--r-tile);
    border: 1px solid var(--white);
    background: #191919;
}

/* Reuses the deck glass caption, pinned inside the image like the hover state */
.project-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: auto;
    gap: 16px;
}

.overlay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-btn);
    background: rgba(13, 13, 13, 0.55);
    color: var(--white);
    transition: background-color .15s ease;
}

.overlay-close svg { width: 22px; height: 22px; }
.overlay-close:hover { background: rgba(13, 13, 13, 0.8); }

.flipbook-modal {
    border: none;
    padding: 0;
    border-radius: var(--r-card);
    background: #151217;
    width: min(1000px, calc(100vw - 32px));
    height: min(720px, calc(100vh - 64px));
    overflow: hidden;
}

.flipbook-modal[open] {
    display: flex;
    flex-direction: column;
}

.flipbook-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 8px 12px;
}

.flipbook-fallback {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.flipbook-fallback:hover { color: var(--white); text-decoration: underline; }

.overlay-close--inline {
    position: static;
    background: transparent;
}

.overlay-close--inline:hover { background: rgba(255, 255, 255, 0.12); }

.flipbook-modal iframe {
    flex: 1;
    width: 100%;
    border: 0;
    display: block;
}

/* ============================================================================
   404 PAGE
   ============================================================================ */
.nf-main {
    padding: var(--section-pad) 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.nf-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
    max-width: 1120px;
}

.nf-copy h1 {
    font-size: clamp(2.125rem, 3.34vw, 3rem);
    line-height: 1.25;
    font-weight: 500;
}

.nf-copy .nf-body { color: var(--ink); }
.nf-copy .nf-body a { color: var(--purple); }
.nf-copy .nf-body a:hover { text-decoration: underline; }

/* Unplugged-cable illustration (Figma 19:8605, 1440x376) */
.nf-art {
    width: 100%;
    max-width: 1440px;
    height: auto;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1180px) {
    .why-col:not(:last-child)::after { display: none; }
    .why-grid { gap: 48px; }

    .pricing-layout { flex-direction: column; align-items: center; }
    .pricing-rail { width: 100%; max-width: 736px; }
    .pricing-grid { width: 100%; max-width: 736px; }

    .tools-layout { flex-direction: column; align-items: center; }
    .tools-copy { width: 100%; max-width: 544px; }
    .tools-panel { width: 100%; max-width: 544px; }
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .svc-card { min-height: 0; gap: 32px; }

    .work-card { flex-direction: column; align-items: flex-start; }
    .work-area { margin-top: 100px; }

    .services-head { flex-direction: column; }
}

@media (max-width: 860px) {
    :root { --section-pad: 64px; }

    .nav-inner { flex-wrap: wrap; padding: 12px 15px; row-gap: 2px; }
    .nav-logo { height: 16px; }
    .nav-links {
        order: 3;
        width: 100%;
        max-width: none;
        border: none;
        padding: 6px 0 4px;
    }
    #work, #services, #why-us, #pricing, #tools, #faq, #start { scroll-margin-top: 96px; }

    .hero-inner { gap: 32px; }
    .work-area { margin-top: 64px; }

    .work-main { flex-direction: column; align-items: flex-start; }
    .work-side { width: 100%; justify-content: flex-start; }

    .why-grid { flex-direction: column; align-items: center; }

    .services-grid { grid-template-columns: 1fr; }

    .pricing-grid { grid-template-columns: 1fr; }

    .faq-item summary { font-size: 1.125rem; line-height: 1.625rem; padding: 20px; }
    .faq-item > p { padding: 0 20px 20px; }
    .faq-list { gap: 16px; }

    .footer-lower-inner { flex-direction: column; align-items: flex-start; }
    .footer-upper { padding: 48px 15px; gap: 32px; }

    /* Fixed heights that earn their keep at 1440 just leave dead air on
       phones; let these size to their content instead */
    .cta-band { min-height: 0; }
    .tools-panel { min-height: 0; padding: 20px 0; }
    .svc-card { padding: 32px 20px; }

    .cta-actions { flex-wrap: wrap; }

    /* Stacked columns: revert to the whole dialog scrolling */
    .contact-modal { overflow-y: auto; }
    .modal-inner { padding: 64px 20px 40px; display: block; max-height: none; }
    .modal-cols { flex-direction: column; }
    .modal-left, .modal-form, .modal-success { width: 100%; }
    .modal-form { overflow: visible; padding-right: 0; }

    .wa-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
    .wa-fab svg { width: 26px; height: 26px; }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Marquee falls back to a static wrapped row */
    .tools-viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .tools-track { animation: none; width: 100%; }

    .tools-set {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0 24px;
    }

    .tools-set[aria-hidden="true"] { display: none; }
}
