/* ─── Editorial Kinetic Typography & Fluid Mesh Hero ─── */
.hero-editorial-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(72px + 2vh) 0 clamp(16px, 2.2vh, 28px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    box-sizing: border-box;
}

/* Fluid Mesh Canvas across entire hero background (Hardware Accelerated) */
.hero-fluid-mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
    /* keep the field strong on the right, quiet behind the headline, faded at the edges */
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.55) 35%, #000 65%), linear-gradient(180deg, transparent 0%, #000 12%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.55) 35%, #000 65%), linear-gradient(180deg, transparent 0%, #000 12%, #000 80%, transparent 100%);
    mask-composite: intersect;
}

/* Ambient Ethereal Glows - Pure gradients without expensive CPU blur filters */
.hero-editorial-glow-primary {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(500px, 60vw, 1000px);
    height: clamp(400px, 45vh, 700px);
    background: radial-gradient(closest-side, hsl(var(--primary) / 0.10) 0%, hsl(var(--primary) / 0.04) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-editorial-glow-accent {
    position: absolute;
    bottom: 8%;
    right: 8%;
    width: clamp(350px, 35vw, 650px);
    height: clamp(300px, 30vh, 550px);
    background: radial-gradient(closest-side, hsl(var(--accent) / 0.07) 0%, hsl(var(--accent) / 0.03) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hero Main Container */
.hero-editorial-container {
    position: relative;
    z-index: 3;
    /* same column as the header and every other section (.container-main) */
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 clamp(1.2rem, 5vw, 5rem);
    margin: 0 auto;
    pointer-events: none; /* Let canvas receive mouse physics while interactive elements opt back in */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.hero-editorial-content-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 auto;
    padding: clamp(0.25rem, 1vh, 1.25rem) 0;
}

/* Monumental Editorial Headline */
.hero .hero-editorial-headline {
    font-family: var(--font-display);
    font-size: clamp(36px, min(4vw, 7.2vh), 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--fg);
    margin: 0 0 clamp(1rem, 2vh, 1.8rem);
    text-wrap: balance;
    pointer-events: auto;
    overflow: visible;
}

.editorial-line {
    display: block;
    line-height: 1.08;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.editorial-line-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(115%);
    filter: blur(8px);
    animation: headlineLineReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity, filter;
}

.editorial-line:nth-child(1) .editorial-line-inner {
    animation-delay: 0.12s;
}

.editorial-line:nth-child(2) .editorial-line-inner {
    animation-delay: 0.28s;
}

.editorial-line:nth-child(3) .editorial-line-inner {
    animation-delay: 0.44s;
}

@keyframes headlineLineReveal {
    0% {
        opacity: 0;
        transform: translateY(115%);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.editorial-kinetic-word {
    color: hsl(var(--primary));
}

@media (prefers-reduced-motion: reduce) {
    .editorial-line-inner {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        animation: none !important;
    }
}

/* Editorial Sub-Narrative & Actions Grid */
.hero-editorial-sub-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
    align-items: flex-end;
    margin-bottom: 0;
    pointer-events: auto;
}

@media (max-width: 960px) {
    .hero-editorial-sub-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
}

.hero-editorial-lead {
    font-size: clamp(0.9rem, min(1.15vw, 2.1vh), 1.18rem);
    line-height: 1.5;
    color: var(--muted-c);
    margin: 0;
    max-width: 720px;
    font-weight: 400;
    text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg);
}

.hero-editorial-lead strong {
    color: var(--fg);
    font-weight: 600;
}

/* Action Row */
.hero-editorial-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 960px) {
    .hero-editorial-actions {
        justify-content: flex-start;
    }
}

.btn-editorial-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0.85rem 1.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    background: #ffffff;
    color: #000000 !important;
    box-shadow: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-editorial-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: none;
}

[data-theme="light"] .btn-editorial-primary {
    background: #09090b;
    color: #ffffff !important;
    box-shadow: none;
}

[data-theme="light"] .btn-editorial-primary:hover {
    background: #18181b;
    box-shadow: none;
}

.btn-editorial-primary svg {
    transition: transform 0.25s ease;
}

.btn-editorial-primary:hover svg {
    transform: translateX(4px);
}

.btn-editorial-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    background: hsl(var(--card) / 0.55);
    border: 1px solid hsl(var(--border) / 0.9);
    color: var(--fg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.btn-editorial-secondary:hover {
    border-color: hsl(var(--primary) / 0.7);
    color: hsl(var(--primary));
    transform: translateY(-2px);
}

[data-theme="light"] .btn-editorial-secondary:hover {
    color: hsl(185 95% 28%);
    border-color: hsl(185 95% 28% / 0.7);
}

.hero-proof-strip {
    list-style: none;
    margin: clamp(1rem, 2vh, 1.5rem) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-c);
    pointer-events: auto;
    text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg);
}

.hero-proof-strip li:not(.hero-proof-logo)::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--cyan);
    vertical-align: middle;
}

.hero-proof-logo img {
    display: block;
    height: 28px;
    width: auto;
    opacity: 0.75;
    filter: grayscale(1);
}

/* Studio Disciplines Minimalist Hairline Strip */
.hero-editorial-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: clamp(0.9rem, 1.8vh, 1.4rem);
    border-top: 1px solid hsl(var(--border) / 0.5);
    pointer-events: auto;
    margin-top: clamp(0.75rem, 1.8vh, 1.8rem);
    /* soft scrim: dots stay visible but blurred and dimmed behind the copy */
    background: linear-gradient(180deg, hsl(var(--background) / 0.55), hsl(var(--background) / 0.85));
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding-bottom: clamp(0.9rem, 1.8vh, 1.4rem);
}

@media (max-width: 900px) {
    .hero-editorial-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 520px) {
    .hero-editorial-pillars {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.pillar-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pillar-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.01em;
}

.pillar-desc {
    font-size: 0.85rem;
    line-height: 1.42;
    color: var(--muted-c);
    text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg);
}

/* Small or short screens: drop the pillar descriptions so the hero still fits in one screen. */
@media (max-width: 900px), (max-height: 700px) {
    .pillar-desc { display: none; }
    .hero-editorial-pillars { gap: 0.75rem 1.25rem; }
}

@media (max-width: 900px), (max-height: 640px) {
    .hero-editorial-section {
        height: auto !important;
        padding: calc(75px + 1rem) 0 1.25rem;
    }
    .hero-editorial-container {
        height: auto;
        justify-content: flex-start;
    }
    .hero-editorial-content-block {
        flex: none;
        padding: 1rem 0;
    }
}

/* ─── Homepage Lead Qualification & Conversion Gateway ─── */
.home-lead-section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    position: relative;
    border-top: 1px solid hsl(var(--border) / 0.6);
    background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--cyan) 6%, transparent), transparent 70%);
    overflow: hidden;
}

.home-lead-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

.home-lead-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 0.01em;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cyan) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent);
    margin-bottom: 1.25rem;
}

.home-lead-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--fg);
}

.home-lead-desc {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--muted-c);
    line-height: 1.7;
    margin: 0 auto;
}

.home-lead-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}

@media (max-width: 860px) {
    .home-lead-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.home-lead-card {
    background: hsl(var(--card) / 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.home-lead-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--cyan) 50%, transparent);
    box-shadow: none;
}

.home-lead-card.featured {
    border-color: color-mix(in srgb, var(--cyan) 40%, hsl(var(--border)));
    background: linear-gradient(145deg, color-mix(in srgb, var(--cyan) 8%, hsl(var(--card) / 0.75)), hsl(var(--card) / 0.55));
}

.home-lead-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-lead-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--cyan) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-lead-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 0.5rem;
}

.home-lead-card-text {
    color: var(--muted-c);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

.home-lead-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.04em;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.home-lead-card:hover .home-lead-action {
    gap: 0.75rem;
}

.faq-section .faq-list {
    width: 100% !important;
    max-width: 100% !important;
}

/* Phones: scale type and spacing to the screen height so the whole hero is visible without scrolling. */
@media (max-width: 520px) {
    .hero .hero-editorial-headline {
        font-size: clamp(28px, min(9.4vw, 5.2vh), 44px) !important; /* beats the .hero h1 phone rule in app.css */
        line-height: 1.08 !important;
        margin-bottom: 0.9rem !important;
    }
    .hero-editorial-lead { font-size: min(0.88rem, 2.1vh); }
    .hero-editorial-sub-grid { gap: 0.9rem; }
    .hero-editorial-actions { gap: 0.6rem; }
    .hero-editorial-actions :is(.btn-editorial-primary, .btn-editorial-secondary) { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
    .hero-editorial-pillars { grid-template-columns: 1fr 1fr; padding: 0.7rem 0; margin-top: 0.6rem; }
    .pillar-title { font-size: 0.8rem; }
}

/* Short phones: the pillar strip is the first thing to go. */
@media (max-width: 520px) and (max-height: 700px) {
    .hero-editorial-pillars { display: none; }
}

/* Short desktop windows. */
@media (min-width: 901px) and (max-height: 640px) {
    .hero .hero-editorial-headline { font-size: clamp(30px, min(4vw, 6.2vh), 76px); }
    .hero-editorial-pillars { margin-top: 0.4rem; padding: 0.6rem 0; }
}

@media (max-width: 520px) and (max-height: 700px) {
    .hero-editorial-section { padding-top: 76px; }
    .hero-editorial-actions { flex-wrap: nowrap; }
    .hero-editorial-actions :is(.btn-editorial-primary, .btn-editorial-secondary) { flex: 1; justify-content: center; padding: 0.6rem 0.5rem; font-size: 0.8rem; }
    .hero-editorial-actions svg { display: none; }
}
