/* ============================================================
   HOME v2 (AAA redesign) — hero, marquee, reels, why, process, contact quick, sticky CTA
   ============================================================ */
.hero-v2 {
    position: relative;
    min-height: min(100vh, 900px);
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 48px) 0 56px;
    background:
        radial-gradient(60% 50% at 85% 20%, rgba(232,213,181,0.55), transparent 70%),
        radial-gradient(50% 45% at 10% 90%, rgba(232,213,181,0.35), transparent 70%),
        var(--color-bg);
    overflow: hidden;
}
.hero-v2-grid {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.7;
    text-transform: uppercase;
    color: #78632F;
    max-width: 560px;
    margin-bottom: 22px;
}
.hero-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin-bottom: 24px;
}
.hero-h1 em {
    font-style: italic;
    color: #9A7A4F;
}
.hero-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 540px;
    margin-bottom: 32px;
}
.hero-v2 .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-alt { font-size: 0.9rem; color: var(--color-text-light); margin: 0 0 34px; }
.hero-alt a { color: #78632F; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-alt a:hover { color: var(--color-text); }
.hero-proof {
    list-style: none;
    display: flex;
    gap: 16px 36px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}
.hero-proof li { display: flex; flex-direction: column; gap: 4px; }
.hero-proof strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--color-text);
}
.hero-proof span {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
}

/* Phones */
.hero-reels {
    position: relative;
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.phone {
    position: absolute;
    bottom: 0;
    width: 232px;
    margin: 0;
    background: linear-gradient(160deg, #2a2a2c, #0f0f10 60%, #1c1c1e);
    border-radius: 40px;
    padding: 7px;
    box-shadow: 0 40px 70px rgba(40,30,10,0.22), 0 0 0 1px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.05) inset;
}
.phone::before {
    /* Dynamic Island */
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 20px;
    background: #050505;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}
.phone::after {
    /* front camera inside the island */
    content: "";
    position: absolute;
    top: 26px;
    left: calc(50% + 18px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2b3a4a, #0b0f14 70%);
    z-index: 3;
}
.phone-screen {
    aspect-ratio: 9 / 19.5;
    border-radius: 34px;
    overflow: hidden;
    background: #000;
}
.phone-screen { position: relative; }
.phone-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-screen video { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.4s ease; }
.phone-screen video.is-playing { opacity: 1; }
.phone-screen video.is-fading { opacity: 0; }
.phone-front { z-index: 3; width: 248px; animation: floaty 7s ease-in-out infinite; }
.phone-back-l { z-index: 2; transform: translateX(-165px) translateY(26px) rotate(-7deg) scale(0.9); animation: floaty 8s ease-in-out 1.2s infinite; }
.phone-back-r { z-index: 1; transform: translateX(165px) translateY(36px) rotate(7deg) scale(0.88); animation: floaty 9s ease-in-out 2.4s infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* Trusted marquee */
.trusted {
    padding: 26px 0 32px;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.trusted-label {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #78632F;
    margin-bottom: 18px;
}
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 72px;
    width: max-content;
    padding-right: 64px;
    animation: marquee 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: block; flex: 0 0 auto; }
.marquee-item img {
    height: 56px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.marquee-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reels row (portfolio) */
.reels-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.reels-head .section-label { margin-bottom: 12px; }
.reels-head h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    line-height: 1.2;
    margin-bottom: 12px;
}
.reels-head p { color: var(--color-text-light); }
.reels-row {
    display: grid;
    grid-template-columns: repeat(3, 232px);
    justify-content: center;
    gap: 56px;
    margin-bottom: 96px;
}
.reel { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.reel .phone { position: relative; bottom: auto; width: 232px; transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.reel:hover .phone { transform: translateY(-6px); box-shadow: 0 50px 80px rgba(40,30,10,0.26); }
.reel-stat {
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-text);
}
.reel-cap { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-light); margin-top: 4px; }

/* Why band */
.why { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.why .section-label { color: var(--color-accent); }
.why .section-title { color: var(--color-text-inverse); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.why-num { display: block; color: var(--color-accent); font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 16px; }
.why-item h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.25; margin-bottom: 12px; }
.why-item p { color: rgba(250,250,248,0.72); line-height: 1.7; }

/* Process */
.process { background: var(--color-bg-alt); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; counter-reset: step; }
.process-step {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 28px 24px;
}
.process-step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--color-accent);
    margin-bottom: 16px;
}
.process-step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.process-step p { color: var(--color-text-light); font-size: 0.95rem; line-height: 1.65; }

/* Contact quick actions + sticky CTA */
.contact-quick { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 34px; }
.btn-whatsapp { background: #0B7A35; color: #fff; }
.btn-whatsapp:hover { background: #096A2E; color: #fff; transform: translateY(-2px); }
.btn .ico { width: 18px; height: 18px; margin-right: 9px; flex: 0 0 auto; }
.wa-fab {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0B7A35;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
}
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab.show { opacity: 1; visibility: visible; transform: none; }
.wa-fab.show:hover { background: #096A2E; transform: translateY(-2px); }

/* Instagram-style story ring around managed-account avatars */
.story-ring {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: 0 0 48px;
}
.story-ring::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
    animation: ringspin 4s linear infinite;
}
.story-ring::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: var(--color-card);
}
.story-ring .account-avatar { position: relative; z-index: 1; width: 44px; height: 44px; border: 0; }
@media (min-width: 1100px) {
    .story-ring { width: 44px; height: 44px; flex-basis: 44px; }
    .story-ring .account-avatar { width: 40px; height: 40px; }
}
@keyframes ringspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .story-ring::before { animation: none; } }

/* Responsive */
@media (max-width: 1099px) {
    .hero-v2-grid { grid-template-columns: 1fr 0.8fr; gap: 32px; }
    .phone-back-l { transform: translateX(-130px) translateY(26px) rotate(-7deg) scale(0.86); }
    .phone-back-r { transform: translateX(130px) translateY(36px) rotate(7deg) scale(0.84); }
    .why-grid { gap: 28px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 968px) {
    .hero-v2 { min-height: 0; padding: calc(var(--nav-height) + 32px) 0 40px; }
    .hero-v2-grid { grid-template-columns: 1fr; padding: 0 24px; gap: 40px; }
    .hero-reels { height: 460px; order: -1; }
    .phone, .phone-front { width: 210px; }
    .phone-back-l { transform: translateX(-120px) translateY(30px) rotate(-8deg) scale(0.86); }
    .phone-back-r { transform: translateX(120px) translateY(40px) rotate(8deg) scale(0.84); }
    .reels-row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .reel .phone { width: 100%; max-width: 232px; }
    .why-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
    .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.12em; }
    .hero-reels { height: 440px; }
    .phone, .phone-front { width: 220px; }
    .marquee-track { gap: 40px; padding-right: 40px; animation-duration: 32s; }
    .marquee-item img { height: 38px; max-width: 118px; }
    .reels-head { margin-bottom: 24px; }
    .reels-row {
        display: flex;
        gap: 16px;
        margin: 0 -24px 64px;
        padding: 6px 24px 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .reels-row::-webkit-scrollbar { display: none; }
    .reel { flex: 0 0 64%; scroll-snap-align: center; }
    .reel .phone { width: 100%; max-width: none; }
    .phone-back-l, .phone-back-r { display: none; }
    .hero-proof { gap: 22px; }
    .process-grid { grid-template-columns: 1fr; }
}
/* Mobile density: services + why band */
@media (max-width: 600px) {
    .services .service-card { padding: 22px 20px; border-radius: 16px; }
    .services .service-card svg, .services .service-icon { width: 34px; height: 34px; margin-bottom: 12px; }
    .services .service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
    .services .service-card p { font-size: 0.9rem; line-height: 1.55; }
    .services .services-grid { gap: 14px; }
    .why { padding: 64px 0; }
    .why-grid { gap: 28px; margin-top: 36px; }
    .why-item h3 { font-size: 1.3rem; }
    .process-grid { gap: 14px; margin-top: 36px; }
    .process-step { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .phone-front, .phone-back-l, .phone-back-r, .marquee-track { animation: none; }
}

/* Accessible gold for italic accents in headings (large text, >= 3:1) */
.section-title em { color: #9A7A4F; }

/* Skip link (keyboard users) */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--color-text);
    color: var(--color-text-inverse);
    border-radius: 999px;
    font-size: 0.85rem;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--color-accent); }

/* Lightbox caption */
.lightbox-caption {
    position: absolute;
    left: 0; right: 0;
    bottom: 40px;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    padding: 0 60px;
}

/* Services: editorial numbered list */
.services-list {
    margin-top: 56px;
    border-top: 1px solid var(--color-border);
}
.service-row {
    display: grid;
    grid-template-columns: 64px 1fr 168px;
    gap: 28px;
    align-items: start;
    padding: 30px 16px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}
.service-row:hover {
    background: var(--color-card);
    padding-left: 22px;
    padding-right: 10px;
}
.service-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    padding-top: 4px;
    color: #78632F;
    letter-spacing: 0.02em;
}
.service-body h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--color-text);
}
.service-body p {
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 680px;
    font-size: 0.98rem;
}
.service-thumb {
    margin: 0;
    align-self: center;
    width: 168px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(14px) scale(0.96);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.service-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-row:hover .service-thumb { opacity: 1; transform: none; }
@media (max-width: 968px) {
    .service-row { grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 8px; }
    .service-thumb { display: none; }
    .service-row:hover { padding-left: 8px; padding-right: 8px; }
    .service-body h3 { font-size: 1.3rem; }
    .service-body p { font-size: 0.93rem; }
    .services-list { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .service-thumb { transition: none; }
}

/* Hero caption under the front phone (updates with the reel) */
.phone-cap {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #78632F;
}
.hero-reels { padding-bottom: 40px; }
@media (max-width: 600px) { .phone-cap { bottom: -30px; font-size: 0.66rem; } }

/* Keyboard focus */
a:focus-visible, button:focus-visible, .btn:focus-visible, .photo-item:focus-visible, .account-card:focus-visible, .reel:focus-visible, .wa-fab:focus-visible {
    outline: 2px solid var(--color-accent-dark);
    outline-offset: 3px;
    border-radius: 6px;
}


/* Account card with 3 photos: tall left, two squares right */
.account-tiles.trio picture:first-child { grid-row: span 2; display: block; height: 100%; }
.account-tiles.trio picture:first-child img { aspect-ratio: auto; height: 100%; }

/* From the blog (home) */
.insights { background: var(--color-bg); }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.insight-card {
    display: flex; flex-direction: column; gap: 12px;
    padding: 28px 26px; border-radius: 20px;
    background: var(--color-card); border: 1px solid var(--color-border);
    text-decoration: none; color: inherit;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: var(--color-accent-light); }
.insight-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #78632F; }
.insight-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.3; color: var(--color-text); flex: 1; }
.insight-read { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #78632F; }
.insights-all { text-align: center; margin-top: 28px; }
.insights-all a { color: var(--color-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 968px) { .insights-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; } .insight-card { padding: 22px 20px; } }

/* Skip rendering work for sections far below the fold; intrinsic sizes measured per breakpoint so scroll position stays stable */
.section.services { content-visibility: auto; contain-intrinsic-size: auto 1513px; }
.section.portfolio { content-visibility: auto; contain-intrinsic-size: auto 3464px; }
.section.why { content-visibility: auto; contain-intrinsic-size: auto 607px; }
.section.clients { content-visibility: auto; contain-intrinsic-size: auto 1829px; }
.section.process { content-visibility: auto; contain-intrinsic-size: auto 663px; }
.section.about { content-visibility: auto; contain-intrinsic-size: auto 886px; }
.section.faq { content-visibility: auto; contain-intrinsic-size: auto 1005px; }
.section.insights { content-visibility: auto; contain-intrinsic-size: auto 639px; }
.section.contact { content-visibility: auto; contain-intrinsic-size: auto 831px; }
.footer { content-visibility: auto; contain-intrinsic-size: auto 502px; }
@media (max-width: 600px) {
    .section.services { contain-intrinsic-size: auto 1357px; }
    .section.portfolio { contain-intrinsic-size: auto 3755px; }
    .section.why { contain-intrinsic-size: auto 881px; }
    .section.clients { contain-intrinsic-size: auto 2088px; }
    .section.process { contain-intrinsic-size: auto 1155px; }
    .section.about { contain-intrinsic-size: auto 1580px; }
    .section.faq { contain-intrinsic-size: auto 929px; }
    .section.insights { contain-intrinsic-size: auto 891px; }
    .section.contact { contain-intrinsic-size: auto 1287px; }
    .footer { contain-intrinsic-size: auto 1053px; }
}
