/* ================================================================
   HOME V18 — Bauhaus dark, minimal, geometric
   Prefix: hv18-*  (section-specific)
   Shared base: .home-v18 references --hv2-* variables from theme.css
   ================================================================ */

/* ── Reset / Base ─────────────────────────────────────────────── */
.home-v18 {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--hv2-text);
    background: var(--hv2-bg);
}
.home-v18 a { text-decoration: none; color: inherit; }
.home-v18 *, .home-v18 *::before, .home-v18 *::after { box-sizing: border-box; }

/* ── Progress bar ─────────────────────────────────────────────── */
.hv18-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 2px;
    background: var(--hv2-accent);
    z-index: 9998;
    transition: width 0.05s linear;
    pointer-events: none;
}

/* ── Section counter ──────────────────────────────────────────── */
.hv18-counter {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 900;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: var(--hv2-text-subtle);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
.hv18-counter.visible { opacity: 1; }
.hv18-counter-current { color: var(--hv2-accent); }
.hv18-counter-sep { width: 1px; height: 18px; background: var(--hv2-border); display: block; margin: 4px 0; }

/* ── Shared section layout ────────────────────────────────────── */
.hv18-section {
    padding: 5rem 6%;
    position: relative;
    overflow: hidden;
}
.hv18-section.alt-bg { background: var(--hv2-bg-alt); }

.hv18-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hv2-accent);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hv18-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--hv2-accent);
    opacity: 0.5;
    flex-shrink: 0;
}

.hv18-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--hv2-text);
    line-height: 1.15;
    margin-bottom: 1rem;
}
/* Hand-painted accent stroke (same ink aesthetic as the logo) */
.hv18-brush {
    display: block;
    width: 150px;
    height: auto;
    margin: -0.3rem 0 1.1rem;
    color: var(--hv2-accent);
    opacity: 0.85;
    transform: rotate(-1deg);
}
.hv18-title em {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: var(--hv2-accent);
}

.hv18-sub {
    font-size: 1rem;
    color: var(--hv2-text-muted);
    line-height: 1.75;
    font-weight: 300;
    max-width: 560px;
}

/* Shared reveal state */
.hv18-reveal {
    opacity: 0;
    transform: translateY(24px);
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.hv18-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
    border-radius: 0;
    text-decoration: none;
}
.hv18-btn--solid {
    background: var(--hv2-btn-bg);
    color: var(--hv2-btn-text);
}
.hv18-btn--solid:hover {
    background: var(--hv2-accent);
    color: #fff;
}
.hv18-btn--outline {
    background: transparent;
    color: var(--hv2-btn-line-text);
    border: 1px solid var(--hv2-btn-line-border);
}
.hv18-btn--outline:hover {
    border-color: var(--hv2-accent);
    color: var(--hv2-text);
}
.hv18-btn--accent {
    background: var(--hv2-accent);
    color: #fff;
}
.hv18-btn--accent:hover {
    background: var(--hv2-accent-hover);
    color: #fff;
}
.hv18-btn--ghost {
    background: rgba(255,255,255,0.06);
    color: var(--hv2-text);
    border: 1px solid var(--hv2-border);
}
.hv18-btn--ghost:hover {
    background: var(--hv2-accent-subtle);
    border-color: var(--hv2-accent);
    color: var(--hv2-accent);
}

/* ================================================================
   MANIFESTO
   ================================================================ */
.hv18-manifesto {
    padding: 6rem 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hv2-bg);
    min-height: 40vh;
}
.hv18-manifesto-wrap { max-width: 720px; width: 100%; }
.hv18-manifesto-prompt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hv2-text-subtle);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hv18-manifesto-prompt::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--hv2-accent);
    opacity: 0.5;
}
.hv18-manifesto-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 500;
    line-height: 1.7;
    color: var(--hv2-text);
}
.hv18-manifesto-text .mani-char {
    opacity: 0;
    display: inline;
}
.hv18-manifesto-text .mani-char.visible { opacity: 1; }
.hv18-manifesto-text .mani-em {
    color: var(--hv2-accent);
    font-weight: 700;
    text-shadow: 0 0 24px rgba(90,103,216,0.35);
}
.hv18-manifesto-cursor {
    display: inline-block;
    width: 2px; height: 1.1em;
    background: var(--hv2-accent);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: hv18-blink 0.8s step-end infinite;
}
@keyframes hv18-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ================================================================
   TOOLS — Broken grid
   ================================================================ */
.hv18-tools {
    background: var(--hv2-bg-alt);
}
.hv18-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1px;
    background: var(--hv2-border);
    margin-top: 2.5rem;
}
.hv18-tool-card {
    background: var(--hv2-bg-card);
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
    overflow: hidden;
    min-height: 220px;
    text-decoration: none;
    color: inherit;
}
.hv18-tool-card:hover { background: var(--hv2-bg-card-hover); }
.hv18-tool-card:hover .hv18-tool-arrow { transform: translate(3px, -3px); }

/* First card spans 2 rows */
.hv18-tool-card--big {
    grid-row: span 2;
    min-height: 460px;
    padding: 3rem 2.5rem;
}
.hv18-tool-card--big .hv18-tool-title { font-size: 1.5rem; }

/* Wide card spans both columns (EntropIA desktop app) */
.hv18-tool-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 0;
}
.hv18-tool-card--wide .hv18-tool-title { font-size: 1.35rem; }
.hv18-tool-card--wide .hv18-tool-desc { max-width: 520px; }
.hv18-tool-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}
@media (max-width: 760px) {
    .hv18-tool-card--wide { flex-direction: column; align-items: flex-start; }
}

.hv18-tool-canvas-wrap {
    position: absolute;
    top: -6rem; right: -6rem;   /* push the shape well past the corner; card overflow:hidden clips it */
    width: 300px; height: 300px;
    opacity: 0.5;
    pointer-events: none;
}
.hv18-tool-canvas-wrap canvas { width: 100% !important; height: 100% !important; }

.hv18-tool-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hv2-accent);
    margin-bottom: 1rem;
}
.hv18-tool-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--hv2-text);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
.hv18-tool-desc {
    font-size: 0.87rem;
    color: var(--hv2-text-muted);
    line-height: 1.65;
    flex: 1;
    max-width: 380px;
}
.hv18-tool-arrow {
    display: inline-block;
    margin-top: 1.75rem;
    font-size: 0.75rem;
    color: var(--hv2-accent);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    transition: transform 0.2s;
}

/* ================================================================
   PIPELINE — horizontal scroll
   ================================================================ */
.hv18-pipeline {
    background: var(--hv2-bg);
    overflow: hidden;
}
.hv18-pipeline-track-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
    cursor: grab;
}
.hv18-pipeline-track-wrap.dragging { cursor: grabbing; scroll-snap-type: none; }
.hv18-pipeline-track-wrap::-webkit-scrollbar { display: none; }
.hv18-pipeline-track {
    display: flex;
    gap: 1px;
    background: var(--hv2-border);
    width: max-content;
    min-width: 100%;
}
.hv18-pipe-card {
    background: var(--hv2-bg-card);
    padding: 2.5rem 2rem;
    min-width: 280px;
    flex: 0 0 280px;
    position: relative;
    transition: background 0.3s;
    scroll-snap-align: start;
}
/* On desktop the 4 steps fill the row evenly — no swipe needed */
@media (min-width: 992px) {
    .hv18-pipeline-track { width: 100%; }
    .hv18-pipe-card { flex: 1 1 0; min-width: 0; }
    .hv18-pipeline .hv18-pipeline-dots { display: none; }
}
.hv18-pipe-card:hover { background: var(--hv2-bg-card-hover); }
.hv18-pipe-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--hv2-accent-subtle);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.25rem;
    display: block;
    border-bottom: 1px solid var(--hv2-border);
    padding-bottom: 1rem;
    transition: color 0.3s;
}
.hv18-pipe-card:hover .hv18-pipe-num { color: var(--hv2-accent-faint); }
.hv18-pipe-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hv2-text);
    margin-bottom: 0.6rem;
}
.hv18-pipe-desc {
    font-size: 0.85rem;
    color: var(--hv2-text-muted);
    line-height: 1.65;
}
/* Arrow connector between cards */
.hv18-pipe-arrow {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--hv2-bg-alt);
    border: 1px solid var(--hv2-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 0.7rem;
    color: var(--hv2-accent);
}
.hv18-pipe-card:last-child .hv18-pipe-arrow { display: none; }

/* Dots indicator */
.hv18-pipeline-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 1.5rem;
}
.hv18-pipeline-dot {
    width: 6px; height: 6px;
    background: var(--hv2-border-hover);
    border-radius: 0;
    transition: background 0.3s, width 0.3s;
    cursor: pointer;
}
.hv18-pipeline-dot.active {
    background: var(--hv2-accent);
    width: 20px;
}

/* ================================================================
   AI SECTION — split layout
   ================================================================ */
.hv18-ai {
    background: var(--hv2-bg-alt);
}
.hv18-ai-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 560px; /* room for the oversized sphere that bleeds off-screen */
}
.hv18-ai-text {
    position: relative;
    z-index: 1; /* keep copy above the bleeding sphere */
}
/* Sphere: oversized, anchored to the section's right edge, ~half bleeds past the viewport.
   The .hv18-section ancestor (position:relative + overflow:hidden) clips it cleanly. */
.hv18-ai-canvas-wrap {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(45%, -50%);
    width: 600px;
    max-width: 600px;
    height: 600px;
    aspect-ratio: 1;
    margin: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hv18-ai-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
/* Decorative ring around AI canvas */
.hv18-ai-canvas-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid var(--hv2-accent-faint);
    border-radius: 50%;
    animation: hv18-ring-spin 18s linear infinite;
    pointer-events: none;
}
.hv18-ai-canvas-wrap::after {
    content: '';
    position: absolute;
    inset: -26px;
    border: 1px solid var(--hv2-border);
    border-radius: 50%;
    animation: hv18-ring-spin 32s linear infinite reverse;
    pointer-events: none;
}
@keyframes hv18-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hv18-ai-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}
.hv18-ai-list li {
    padding: 0.55rem 0;
    font-size: 0.9rem;
    color: var(--hv2-text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--hv2-border);
}
.hv18-ai-list li:last-child { border-bottom: none; }
.hv18-ai-list li::before {
    content: '\2192';
    color: var(--hv2-accent);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ================================================================
   PROJECTS — spotlight
   ================================================================ */
.hv18-projects { background: var(--hv2-bg); }

.hv18-spotlight {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    border: 1px solid var(--hv2-border);
    margin-top: 2.5rem;
    max-width: 1100px;
    transition: border-color 0.3s;
    overflow: hidden;
}
.hv18-spotlight:hover { border-color: var(--hv2-border-hover); }
.hv18-spotlight-img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.4s, transform 0.5s;
}
.hv18-spotlight:hover .hv18-spotlight-img {
    filter: grayscale(0%);
    transform: scale(1.02);
}
.hv18-spotlight-img-wrap {
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.hv18-spotlight-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 70%, var(--hv2-bg-card) 100%);
    pointer-events: none;
}
.hv18-spotlight-body {
    background: var(--hv2-bg-card);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hv18-spotlight-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hv2-accent);
    margin-bottom: 0.75rem;
}
.hv18-spotlight-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hv2-text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.hv18-spotlight-desc {
    font-size: 0.9rem;
    color: var(--hv2-text-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    flex: 1;
}

/* Mini project row */
.hv18-proj-row {
    display: flex;
    gap: 1px;
    background: var(--hv2-border);
    margin-top: 1px;
    max-width: 1100px;
    overflow: hidden;
}
.hv18-proj-mini {
    flex: 1;
    background: var(--hv2-bg-card);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: inherit;
}
.hv18-proj-mini:hover,
.hv18-proj-mini:focus { flex: 2.5; }
.hv18-proj-mini-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    filter: grayscale(40%) brightness(0.6);
}
.hv18-proj-mini:hover .hv18-proj-mini-img {
    transform: scale(1.05);
    filter: grayscale(10%) brightness(0.7);
}
/* Logos fill the card like photos (cover), cropping the baked-in whitespace
   so a logo with lots of margin (observatorio ~57% fill) doesn't read smaller
   than a tight one (censo ~80%). !important is required to beat
   `.proj-logo { object-fit: contain !important }` in home-v2.css. */
.hv18-proj-mini-img.proj-logo {
    object-fit: cover !important;
}
.hv18-proj-mini-overlay {
    position: relative;
    z-index: 2;
    padding: 1rem 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.hv18-proj-mini-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hv18-proj-mini-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* Empty state for when no projects exist */
.hv18-projects-empty {
    margin-top: 2.5rem;
    padding: 3rem 2rem;
    border: 1px solid var(--hv2-border);
    text-align: center;
    color: var(--hv2-text-muted);
    font-size: 0.9rem;
    max-width: 1100px;
}

/* ================================================================
   TEAM
   ================================================================ */
.hv18-team { background: var(--hv2-bg-alt); }

.hv18-team-row {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.hv18-team-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--hv2-bg-card);
    border: 1px solid var(--hv2-border);
    transition: border-color 0.3s, transform 0.3s;
    cursor: default;
}
.hv18-team-card:hover {
    border-color: var(--hv2-border-hover);
    transform: translateY(-4px);
}
.hv18-proj-mini-img--empty {
    background: linear-gradient(135deg, var(--hv2-accent-subtle), var(--hv2-bg-card));
    width: 100%;
    height: 100%;
}

.hv18-team-avatar-wrap {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 2px solid var(--hv2-border);
    transition: border-color 0.3s;
    position: relative;
}
.hv18-team-card:hover .hv18-team-avatar-wrap {
    border-color: var(--hv2-accent);
}
.hv18-team-avatar {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.28); /* zoom past the gray frame baked into the source photos */
    display: block;
    transition: transform 0.35s;
}
.hv18-team-card:hover .hv18-team-avatar { transform: scale(1.35); }
.hv18-team-initials {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hv2-accent-subtle);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--hv2-accent);
}
.hv18-team-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hv2-text);
    margin-bottom: 0.25rem;
}
.hv18-team-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hv2-text-subtle);
}

/* ================================================================
   CTA
   ================================================================ */
.hv18-cta {
    background: var(--hv2-accent);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 6rem 6%;
}
.hv18-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}
.hv18-cta-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.hv18-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hv18-cta .hv18-btn--solid {
    background: #fff;
    color: var(--hv2-accent);
}
.hv18-cta .hv18-btn--solid:hover {
    background: rgba(255,255,255,0.88);
}
.hv18-cta .hv18-btn--outline {
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.8);
}
.hv18-cta .hv18-btn--outline:hover {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

/* CTA geometric decorations */
.hv18-cta-geo {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.1);
}
.hv18-cta-geo--1 { width: 300px; height: 300px; top: -80px; left: -80px; }
.hv18-cta-geo--2 { width: 180px; height: 180px; bottom: -40px; right: 8%; }
.hv18-cta-geo--3 { width: 80px; height: 80px; top: 30%; right: 18%; border-color: rgba(255,255,255,0.07); }

/* ================================================================
   NOISE OVERLAY
   ================================================================ */
.hv18-noise {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9997;
    opacity: var(--hv2-noise-opacity);
    mix-blend-mode: var(--hv2-noise-blend);
}

/* ================================================================
   GEOMETRIC DECORATIONS (shared helper)
   ================================================================ */
.hv18-geo {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.hv18-geo--circle {
    border-radius: 50%;
    border: 1px solid var(--hv2-accent-faint);
}
.hv18-geo--sq {
    border: 1px solid var(--hv2-accent-faint);
}
.hv18-geo--dot {
    border-radius: 50%;
    background: var(--hv2-accent-subtle);
}

/* Ensure text content above geometric decorations */
.hv18-section-inner {
    position: relative;
    z-index: 1;
}

/* ================================================================
   ALLIES — institutional logo band
   ================================================================ */
.hv18-allies {
    background: var(--hv2-bg-alt);
    padding: 3rem 6%;
    text-align: center;
}
.hv18-allies-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hv2-text-muted);
    margin-bottom: 1.75rem;
}
.hv18-allies-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto;
}
.hv18-ally {
    background: #f4f4f2;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    width: 152px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.hv18-ally:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}
.hv18-ally-img {
    max-height: 46px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.hv18-ally--text {
    background: transparent;
    color: var(--hv2-text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    filter: none;
    opacity: 0.85;
}

/* ================================================================
   SERVICES — paid services grid
   ================================================================ */
.hv18-services { background: var(--hv2-bg); }
.hv18-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1px;
    background: var(--hv2-border);
    border: 1px solid var(--hv2-border);
    margin-top: 2.5rem;
}
.hv18-service-card {
    background: var(--hv2-bg-card);
    padding: 2rem 1.75rem;
    transition: background 0.3s;
}
.hv18-service-card:hover { background: var(--hv2-bg-card-hover); }
.hv18-service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--hv2-text);
    margin-bottom: 0.7rem;
    line-height: 1.25;
}
.hv18-service-title::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hv2-accent);
    margin-bottom: 0.9rem;
}
.hv18-service-desc {
    font-size: 0.85rem;
    color: var(--hv2-text-muted);
    line-height: 1.6;
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.hv18-testimonials { background: var(--hv2-bg-alt); }
.hv18-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 1100px;
}
.hv18-testimonial-card {
    background: var(--hv2-bg-card);
    border: 1px solid var(--hv2-border);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}
.hv18-testimonial-card:hover {
    border-color: var(--hv2-border-hover);
    transform: translateY(-3px);
}
.hv18-testimonial-quote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--hv2-text);
    line-height: 1.6;
    font-style: normal;
    position: relative;
}
.hv18-testimonial-quote::before {
    content: '\201C';
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--hv2-accent-subtle);
    line-height: 0.1;
    display: block;
    margin-bottom: 0.75rem;
}
.hv18-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
}
.hv18-testimonial-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hv2-text);
}
.hv18-testimonial-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hv2-text-subtle);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .hv18-ai-inner { grid-template-columns: 1fr; gap: 2.5rem; min-height: 0; }
    .hv18-ai-canvas-wrap {
        position: static;
        transform: none;
        width: 100%;
        max-width: 240px;
        height: auto;
        margin: 0 auto;
    }
    .hv18-ai-canvas-wrap::before, .hv18-ai-canvas-wrap::after { display: none; }

    .hv18-spotlight { grid-template-columns: 1fr; }
    .hv18-spotlight-img { min-height: 200px; max-height: 220px; width: 100%; }
    .hv18-spotlight-img-wrap { height: 200px; }
    .hv18-spotlight-img-wrap::after { display: none; }

    .hv18-tools-grid { grid-template-columns: 1fr; }
    .hv18-tool-card--big { grid-row: span 1; min-height: 200px; }
}

@media (max-width: 768px) {
    .hv18-section { padding: 3.5rem 5%; }
    .hv18-manifesto { padding: 4rem 5%; }
    .hv18-cta { padding: 4rem 5%; }

    .hv18-team-row { justify-content: center; }
    .hv18-team-card { min-width: 160px; }

    .hv18-proj-row { flex-direction: column; background: transparent; gap: 1px; }
    .hv18-proj-mini { min-height: 120px; flex: none !important; }
    .hv18-proj-mini:hover { flex: none !important; }

    .hv18-counter { display: none; }

    .hv18-pipe-card { min-width: 240px; flex: 0 0 240px; }

    .hv18-spotlight { display: block; }
}

@media (max-width: 480px) {
    .hv18-title { font-size: 1.6rem; }
    .hv18-cta-title { font-size: 1.6rem; }
}

/* ================================================================
   CONTACT FORM (from @livewire('contact') — needs .home-v18 scope)
   ================================================================ */
.home-v18 .hv2-section { padding: 5rem 6%; }
.home-v18 .section-header { text-align: center; margin-bottom: 3rem; }
.home-v18 .section-header .section-sub { margin: 0 auto; }
.home-v18 .section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--hv2-accent); margin-bottom: 0.75rem;
}
.home-v18 .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem; font-weight: 700; color: var(--hv2-text);
    margin-bottom: 1rem; line-height: 1.2; letter-spacing: -0.02em;
}
.home-v18 .section-sub {
    font-size: 1.05rem; color: var(--hv2-text-muted);
    line-height: 1.7; font-weight: 300; max-width: 600px;
}
.home-v18 .contact-form { max-width: 600px; margin: 0 auto; }
.home-v18 .contact-form input,
.home-v18 .contact-form textarea {
    width: 100%; border: 1px solid var(--hv2-border);
    padding: 12px 16px; font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem; color: var(--hv2-text); margin-bottom: 1rem;
    transition: border-color 0.2s; background: var(--hv2-bg-card); border-radius: 0;
}
.home-v18 .contact-form input:focus,
.home-v18 .contact-form textarea:focus { outline: none; border-color: var(--hv2-accent); }
.home-v18 .contact-form textarea { min-height: 140px; resize: vertical; }
.home-v18 .contact-form input::placeholder,
.home-v18 .contact-form textarea::placeholder { color: var(--hv2-text-subtle); }
/* main.css paints every <section> white with 60px padding (legacy Bootstrap
   template rule). The v18 sections override it with their own classes; the
   hero wrapper was the only bare <section>, so it showed white strips behind
   the transparent navbar and after the hero. Fix ONLY the hero wrapper — a
   broad `.home-v18 section` reset out-specifies .hv18-section and strips the
   horizontal padding from every section. */
.home-v18 { background: var(--hv2-bg); }
.hv18-hero-wrap {
    background: var(--hv2-bg);
    padding: 0;
}

.home-v18 .btn-dark {
    display: inline-block; padding: 12px 28px;
    background: var(--hv2-btn-bg); color: var(--hv2-btn-text);
    font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem;
    font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    transition: background 0.3s, color 0.3s; border: none; cursor: pointer; border-radius: 0;
}
.home-v18 .btn-dark:hover { background: var(--hv2-accent); color: #fff; }
.home-v18 .btn-line {
    display: inline-block; padding: 12px 28px;
    background: transparent;
    color: var(--hv2-btn-line-text);
    border: 1px solid var(--hv2-btn-line-border);
    font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem;
    font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    transition: border-color 0.3s, color 0.3s; cursor: pointer; border-radius: 0;
    text-decoration: none;
}
.home-v18 .btn-line:hover { border-color: var(--hv2-accent); color: var(--hv2-text); }
.home-v18 .hv2-alert-success {
    background: var(--hv2-success-bg); color: var(--hv2-success-text);
    padding: 12px; margin-bottom: 1rem; font-size: 0.9rem;
}
.home-v18 .hv2-alert-error {
    background: var(--hv2-error-bg); color: var(--hv2-error-text);
    padding: 12px; margin-bottom: 1rem; font-size: 0.9rem;
}
