/* biptip homepage — clinical signal (black / red / white) */

body.is-home {
    --ink: #0a0a0a;
    --paper: #ffffff;
    --fog: #f4f4f4;
    --mute: #5a5a5a;
    --line: rgba(10, 10, 10, 0.1);
    --red: #fe0000;
    --red-deep: #c40000;
    --radius: 8px;

    background: var(--paper);
    color: var(--ink);
}

/* ——— NAV ——— */
body.is-home .nav {
    background: transparent;
    border-bottom-color: transparent;
}

body.is-home .nav.is-solid {
    background: rgba(10, 10, 10, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}

body.is-home .nav-links a:not(.nav-cta) {
    color: rgba(255, 255, 255, 0.75);
}

body.is-home .nav-links a:not(.nav-cta):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

body.is-home .nav-cta {
    background: var(--red);
    color: #fff !important;
    border-radius: var(--radius);
    box-shadow: none;
}

body.is-home .nav-cta:hover {
    background: #ff2a2a;
    transform: translateY(-1px);
}

/* ——— SHARED ——— */
.hp-section {
    padding: 5.75rem 0;
}

.hp-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.95rem;
}

.hp-label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    animation: hpDotPulse 2.4s ease-in-out infinite;
}

.hp-label--on-dark {
    color: #fff;
}

.hp-head {
    max-width: 38rem;
    margin-bottom: 3.25rem;
}

.hp-head h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2rem, 4.2vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.hp-head > p {
    color: var(--mute);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hp-btn:hover { transform: translateY(-2px); }

.hp-btn--primary {
    background: var(--red);
    color: #fff;
}

.hp-btn--primary:hover {
    background: var(--red-deep);
    color: #fff;
}

.hp-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hp-btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hp-btn--dark {
    background: var(--ink);
    color: #fff;
    margin-top: 1.35rem;
}

.hp-btn--dark:hover {
    background: var(--red);
    color: #fff;
}

/* ——— HERO ——— */
.hp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: 0 0 5rem;
    overflow: hidden;
    color: #fff;
    background: #050505;
}

.hp-hero-media {
    position: absolute;
    inset: 0;
}

.hp-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.06);
    animation: hpHeroZoom 20s ease-out both;
}

.hp-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.55) 48%, rgba(5, 5, 5, 0.22) 100%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.45) 0%, transparent 34%, rgba(5, 5, 5, 0.72) 100%);
}

.hp-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 42rem;
    animation: hpRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hp-hero-brand {
    height: 44px;
    width: auto;
    margin-bottom: 1.85rem;
}

.hp-hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.7rem, 6.5vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 1.2rem;
}

.hp-hero h1 span {
    color: var(--red);
}

.hp-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 32rem;
    margin-bottom: 1.9rem;
}

.hp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hp-hero-dots {
    position: absolute;
    right: max(1.5rem, calc((100% - var(--max)) / 2));
    bottom: 5rem;
    z-index: 2;
    display: flex;
    gap: 0.55rem;
    animation: hpRise 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hp-hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 16px rgba(254, 0, 0, 0.55);
}

.hp-hero-dots span:nth-child(2) {
    transform: translateY(9px);
    animation: hpDotFloat 3s ease-in-out infinite;
}

.hp-hero-dots span:nth-child(3) {
    animation: hpDotFloat 3s 0.45s ease-in-out infinite;
}

@keyframes hpHeroZoom {
    from { transform: scale(1.14); }
    to { transform: scale(1.06); }
}

@keyframes hpRise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hpDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.72); opacity: 0.55; }
}

@keyframes hpDotFloat {
    0%, 100% { transform: translateY(9px); }
    50% { transform: translateY(-2px); }
}

/* ——— FLOW ——— */
.hp-flow {
    background: var(--paper);
}

.hp-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.75rem;
}

.hp-step-num {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 1.15rem;
}

.hp-step h3 {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.6rem;
}

.hp-step p {
    color: var(--mute);
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 22rem;
}

/* ——— KIT ——— */
.hp-kit {
    background: var(--fog);
}

.hp-kit-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.25rem;
    align-items: center;
}

.hp-kit-visual {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.hp-kit-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.hp-kit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.hp-kit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
}

.hp-kit-item:first-child { padding-top: 0; }
.hp-kit-item:last-child { border-bottom: 0; padding-bottom: 0; }

.hp-kit-idx {
    width: 9px;
    height: 9px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(254, 0, 0, 0.12);
}

.hp-kit-item h3 {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.hp-kit-item p {
    font-size: 0.92rem;
    color: var(--mute);
    line-height: 1.55;
}

/* ——— CORRIDOR BREAK ——— */
.hp-break {
    position: relative;
    height: clamp(220px, 32vw, 380px);
    overflow: hidden;
    background: #111;
}

.hp-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hp-break-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 40%, rgba(0, 0, 0, 0.25)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

/* ——— CLIENTS ——— */
.hp-clients {
    background: var(--fog);
    border-block: 1px solid var(--line);
}

.hp-clients .hp-head {
    text-align: center;
    margin-inline: auto;
}

.hp-clients .hp-head > p {
    margin-inline: auto;
}

.hp-client-row {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.hp-client {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hp-client:hover {
    transform: translateY(-3px);
    border-color: rgba(254, 0, 0, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.hp-client img {
    max-height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.hp-client span {
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.4;
    color: var(--ink);
}

/* ——— WHY ——— */
.hp-why {
    background: var(--ink);
    color: #fff;
}

.hp-why .hp-head h2 { color: #fff; }
.hp-why .hp-head > p { color: rgba(255, 255, 255, 0.58); }
.hp-why .hp-label { color: #fff; }

.hp-why-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.75rem;
}

.hp-why-mark {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    margin-bottom: 1.35rem;
    box-shadow: 0 0 18px rgba(254, 0, 0, 0.45);
}

.hp-why-item h3 {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.55rem;
}

.hp-why-item p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ——— FAQ ——— */
.hp-faq {
    background: var(--paper);
}

.hp-faq-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.75rem;
    align-items: start;
}

.hp-faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.hp-faq-item {
    border-bottom: 1px solid var(--line);
}

.hp-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 0;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hp-faq-item summary::-webkit-details-marker { display: none; }

.hp-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 1.5rem;
    color: var(--red);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
}

.hp-faq-item[open] summary::after { content: '–'; }

.hp-faq-item p {
    padding: 0 0 1.3rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--mute);
    max-width: 36rem;
}

/* ——— CONTACT ——— */
.hp-contact {
    padding: 0 0 5.5rem;
    background: var(--paper);
}

.hp-contact-panel {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.75rem;
    padding: 3.25rem;
    background: var(--ink);
    color: #fff;
    border-radius: 14px;
    border-top: 3px solid var(--red);
}

.hp-contact-main h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.5vw, 2.65rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.hp-contact-main > p {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
    margin-bottom: 1.7rem;
    max-width: 28rem;
}

.hp-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hp-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    font-style: normal;
    justify-content: center;
}

.hp-contact-details a,
.hp-contact-details > div {
    display: block;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.hp-contact-details a:hover { color: var(--red); }

.hp-contact-details small {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.28rem;
}

.hp-contact-details span {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

/* ——— FOOTER ——— */
body.is-home footer {
    margin-top: 0;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.is-home .footer-wordmark:hover {
    opacity: 0.85;
}

body.is-home .footer-grid nav a:hover,
body.is-home .footer-legal a:hover {
    color: var(--red);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
    .hp-kit-layout,
    .hp-faq-layout,
    .hp-contact-panel,
    .hp-why-grid {
        grid-template-columns: 1fr;
    }

    .hp-client-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .hp-break {
        height: 240px;
    }
}

@media (max-width: 900px) {
    .hp-hero {
        min-height: auto;
        padding: 7.75rem 0 3.75rem;
    }

    .hp-hero-media img {
        object-position: 65% center;
    }

    .hp-hero-shade {
        background:
            linear-gradient(180deg, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.78) 48%, rgba(5, 5, 5, 0.94) 100%);
    }

    .hp-hero-dots { display: none; }

    .hp-steps {
        grid-template-columns: 1fr;
        gap: 1.85rem;
    }

    .hp-step {
        padding-bottom: 1.85rem;
        border-bottom: 1px solid var(--line);
    }

    .hp-step:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .hp-section { padding: 3.85rem 0; }

    .hp-contact-panel {
        padding: 1.85rem;
        border-radius: 10px;
    }

    .hp-client-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-break { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-hero-media img,
    .hp-hero-copy,
    .hp-hero-dots,
    .hp-hero-dots span,
    .hp-label::before {
        animation: none !important;
    }
}
