/* ==========================================
   V2 — inner pages (about, services, ventures,
   resources, coffee-with-mumin, claude-skill-files)
   Loaded after style.min.css. Mirrors the homepage tokens.
   ========================================== */

:root {
    --hairline: rgba(255, 255, 255, 0.07);
    --hairline-strong: rgba(255, 255, 255, 0.12);
    --surface-raised: #18181b;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Page hero: editorial headline over a faint grid + glow ---------- */
.page-hero { padding: calc(var(--nav-height) + clamp(4rem, 9vw, 7rem)) 0 clamp(3rem, 6vw, 5rem); }
.page-hero__bg {
    background:
        radial-gradient(ellipse 60% 70% at 25% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
        linear-gradient(var(--hairline) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, var(--hairline) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.page-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
}
.page-hero__label::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.page-hero__title {
    font-size: clamp(2.75rem, 6.2vw, 5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 18ch;
}
.page-hero__subtitle { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 56ch; }

/* ---------- Sections: hairline rhythm ---------- */
.section { border-top: 1px solid var(--hairline); }
.section__title { font-weight: 400; letter-spacing: -0.025em; }

/* ---------- Ventures detail ---------- */
.venture-detail__number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    background: none;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(96, 165, 250, 0.55);
    opacity: 1;
}
.venture-detail__meta-grid {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)), var(--surface-raised);
    border-color: var(--hairline);
    border-radius: 20px;
}
.venture-detail__meta-item span:last-child { font-variant-numeric: tabular-nums; }
.venture-detail__problem h3,
.venture-detail__solution h3 {
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---------- Resource cards: same surface as the homepage cards ---------- */
.resource-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 38%), var(--surface-raised);
    border-color: var(--hairline);
    border-radius: 20px;
    transition: border-color 0.3s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--hairline-strong);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.resource-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.resources-filter__btn { border-radius: var(--radius-full); }

/* ---------- Footer: the 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;
    -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;
}
.footer__tagline { font-family: var(--font-display); font-size: 1.125rem; }

/* ---------- Venture spec sheet: left-aligned cells split by hairlines ---------- */
.venture-detail__meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1px;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 22px;
    background:
        linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
        linear-gradient(160deg, rgba(96, 165, 250, 0.5), rgba(255, 255, 255, 0.07) 40%, rgba(255, 255, 255, 0.04)) border-box;
    box-shadow: 0 30px 70px -45px rgba(59, 130, 246, 0.5);
}
.venture-detail__meta-item {
    position: relative;
    text-align: left;
    padding: 1.5rem 1.75rem;
    background: var(--surface-raised);
    box-shadow: 1px 0 0 var(--hairline), 0 1px 0 var(--hairline);
    transition: background 0.3s var(--ease-out);
}
.venture-detail__meta-item:hover { background: #1c1c20; }
.venture-detail__meta-item span:first-child {
    margin-bottom: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
}
.venture-detail__meta-item span:last-child {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--color-text);
}
/* Live status becomes a pill with a pulsing dot */
.venture-detail__meta-item span[style*='22c55e'] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 5px 12px;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.28);
}
.venture-detail__meta-item span[style*='22c55e']::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: meta-pulse 2s infinite;
}
@keyframes meta-pulse {
    70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .venture-detail__meta-item span[style*='22c55e']::before { animation: none; }
}

/* Mobile: no sideways scroll */
html, body { overflow-x: clip; }
.service-detail__grid > * { min-width: 0; }
