/* ==========================================
   V2 — homepage sections: story + ventures bento
   Loaded after home.css so it wins on equal specificity.
   ========================================== */

/* ---------- STORY ---------- */
.story__layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.story__head {
    position: sticky;
    top: calc(var(--nav-height) + 3.5rem);
}

.story__quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.25;
    color: var(--color-text);
    margin: var(--space-xl) 0;
    padding-left: var(--space-lg);
    border-left: 2px solid var(--color-primary);
}

.story__chapters {
    --journey-progress: 0;
    list-style: none;
    position: relative;
    padding-left: 56px;
}

.story__chapters::before,
.story__chapters::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    border-radius: 2px;
}
.story__chapters::before { background: var(--hairline, rgba(255, 255, 255, 0.08)); }
.story__chapters::after {
    background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));
    transform-origin: top;
    transform: scaleY(var(--journey-progress));
}

.story__chapter {
    position: relative;
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.story__chapter:last-child { padding-bottom: 0; }

.story__chapter::before {
    content: '';
    position: absolute;
    left: -56px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid rgba(255, 255, 255, 0.16);
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.story__chapter.is-reached::before {
    background: var(--color-primary);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.16), 0 0 22px rgba(59, 130, 246, 0.45);
}

.story__kicker {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: var(--space-sm);
}

.story__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.story__chapter p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 52ch;
}
.story__chapter p a { color: var(--color-primary-light); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
    .story__layout { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .story__head { position: static; }
}

/* ---------- VENTURES: one consistent row layout ----------
   Mobile: photo on top (16:10), copy below.
   Desktop: photo and copy side by side, alternating sides. */
.ventures__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}
.ventures__grid > .venture-card { grid-column: auto; }
.ventures__grid > .venture-card .venture-card__tagline { min-height: 0; }
.ventures__grid > .venture-card .venture-card__visual {
    height: auto;
    aspect-ratio: 16 / 10;
}

@media (min-width: 901px) {
    .ventures__grid > .venture-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        column-gap: clamp(2rem, 4vw, 3.5rem);
        align-content: center;
        min-height: 440px;
    }
    .ventures__grid > .venture-card > * { grid-column: 2; }
    .ventures__grid > .venture-card > .venture-card__visual {
        grid-column: 1;
        grid-row: 1 / span 12;
        aspect-ratio: auto;
        height: auto;
        min-height: 100%;
        margin: calc(clamp(1.5rem, 2.5vw, 2rem) * -1) 0 calc(clamp(1.5rem, 2.5vw, 2rem) * -1) calc(clamp(1.5rem, 2.5vw, 2rem) * -1);
        border-bottom: 0;
        border-right: 1px solid var(--hairline, rgba(255, 255, 255, 0.08));
    }
    /* Zigzag: middle card puts the photo on the right */
    .ventures__grid > .venture-card:nth-child(2) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .ventures__grid > .venture-card:nth-child(2) > * { grid-column: 1; }
    .ventures__grid > .venture-card:nth-child(2) > .venture-card__visual {
        grid-column: 2;
        margin: calc(clamp(1.5rem, 2.5vw, 2rem) * -1) calc(clamp(1.5rem, 2.5vw, 2rem) * -1) calc(clamp(1.5rem, 2.5vw, 2rem) * -1) 0;
        border-right: 0;
        border-left: 1px solid var(--hairline, rgba(255, 255, 255, 0.08));
    }
}

/* ---------- SERVICES: one clear primary, two quiet supporting ---------- */
.service-card__title,
.service-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 1.1;
}
.service-card:not(.service-card--featured) { background: transparent; }
.service-card:not(.service-card--featured) .service-card__icon { opacity: 0.8; }
.service-card--featured {
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(59, 130, 246, 0.14), transparent 65%) padding-box,
        linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
        linear-gradient(160deg, rgba(96, 165, 250, 0.7), rgba(59, 130, 246, 0.15) 40%, rgba(255, 255, 255, 0.06)) border-box;
}
@media (min-width: 1025px) {
    .service-card--featured { transform: translateY(-12px); }
    .service-card--featured:hover { transform: translateY(-15px); }
}

/* ---------- TESTIMONIALS: editorial serif quotes ---------- */
.testimonial-card__quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1875rem, 1.5vw, 1.3125rem);
    line-height: 1.45;
    color: var(--color-text);
    -webkit-line-clamp: 7;
    line-clamp: 7;
}
.testimonial-card__stars { font-size: 0.8125rem; }
.testimonial-card::before { font-family: var(--font-display); font-weight: 400; }

/* ---------- MEDIA: serif headlines ---------- */
.media-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.25rem, 1.9vw, 1.625rem);
    line-height: 1.2;
}

/* ---------- CONTACT / FOOTER ---------- */
.contact .section__title { max-width: 14ch; }
.footer__tagline,
.footer__brand p:first-of-type { font-family: var(--font-display); font-size: 1.125rem; }

/* ---------- FOOTER: the real logo as the closing mark ---------- */
img.footer__wordmark {
    display: block;
    width: min(100%, 760px);
    height: auto;
    margin: var(--space-2xl) auto var(--space-lg);
    opacity: 0.1;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
    pointer-events: none;
    user-select: none;
}

/* ---------- MEDIA: readable outlet names ---------- */
.press-marquee { margin: var(--space-xl) 0; }
.press-marquee__track { gap: 0; animation-duration: 45s; }
.press-marquee__item {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    -webkit-text-stroke: 0;
    padding: 10px 22px;
    border: 1px solid var(--hairline, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
}
.press-marquee__sep { display: none; }
.press-marquee__track { column-gap: 12px; }

/* ---------- CONTACT FORM: quiet glass, hairline-gradient border, focus glow ---------- */
.contact__form-wrapper {
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border: 1px solid transparent;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)) padding-box,
        linear-gradient(160deg, rgba(96, 165, 250, 0.55), rgba(255, 255, 255, 0.08) 35%, rgba(255, 255, 255, 0.04)) border-box;
    background-color: rgba(14, 14, 16, 0.7);
    box-shadow: 0 40px 100px -40px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.contact__form-wrapper [data-slot='input-control'] {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.contact__form-wrapper [data-slot='input-control']:hover { border-color: rgba(255, 255, 255, 0.18); }
.contact__form-wrapper [data-slot='input-control']:focus-within {
    border-color: rgba(96, 165, 250, 0.7);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}
.contact__form-wrapper [data-slot='field-label'] {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}
.contact__form-wrapper button[type='submit'] {
    border-radius: var(--radius-full);
    height: 48px;
    font-weight: 600;
    background: linear-gradient(180deg, #4b8ff7, #3B82F6);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Venture logo tile (replaces outlined monogram when a real mark exists) */
.venture-card__logo {
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25),
        0 20px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 60px -10px var(--v1, rgba(59, 130, 246, 0.5));
    transition: transform 0.6s var(--ease-out);
}
.venture-card__logo img { width: 68%; height: auto; }
.venture-card:hover .venture-card__logo { transform: translate(-50%, -54%) scale(1.05); }
@media (max-width: 768px) {
    .venture-card__logo { width: 84px; height: 84px; border-radius: 22px; }
}

/* Venture photo visual (generated artwork behind caption) */
.venture-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.9;
    transition: transform 0.8s var(--ease-out), opacity 0.4s;
}
.venture-card:hover .venture-card__photo { transform: scale(1.05); opacity: 1; }
.venture-card__visual:has(.venture-card__photo)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, transparent 40%, rgba(10, 10, 11, 0.35) 100%);
}
.venture-card__visual:has(.venture-card__photo)::after { opacity: 0.35; }
.venture-card__visual:has(.venture-card__photo) .venture-card__logo,
.venture-card:hover .venture-card__visual:has(.venture-card__photo) .venture-card__logo {
    left: auto; top: auto; right: 1rem; bottom: 1rem;
    width: 60px; height: 60px; border-radius: 16px;
    transform: none;
}
.venture-card__visual:has(img[src*="social-geek-visual"])::before {
    background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, 0.55) 100%);
}
.venture-card__visual:has(img[src*="social-geek-visual"]) .venture-card__caption { display: none; }
