/* Info-products case — dark product story */

.case-ip-page {
    --ip-bg: #0a0a0a;
    --ip-ink: #f2f1ec;
    --ip-mute: rgba(242, 241, 236, 0.58);
    --ip-line: rgba(242, 241, 236, 0.14);
    --ip-accent: #c7ff2f;
    --ip-glow: #1647ff;
    background: var(--ip-bg);
    color: var(--ip-ink);
}

.case-ip-page .site-header {
    --header-fg: var(--ip-ink);
}

.ip-case {
    overflow: clip;
}

/* —— Hero —— */
.ip-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 120px var(--pad) 48px;
    isolation: isolate;
}

.ip-hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #0a0a0a;
}

.ip-hero-photo,
.ip-hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ip-hero-photo img {
    object-fit: cover;
    object-position: 78% 45%;
    transform: scale(1.04);
    animation: ip-photo-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ip-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.58) 36%, rgba(10, 10, 10, 0.14) 62%, transparent 82%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, transparent 30%, rgba(10, 10, 10, 0.62) 100%);
    pointer-events: none;
}

@keyframes ip-photo-in {
    from { opacity: 0; transform: scale(1.08); }
    to { opacity: 1; transform: scale(1.04); }
}

.ip-hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: auto;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ip-mute);
}

.ip-hero-copy {
    max-width: min(36rem, 100%);
    padding-bottom: 28px;
}

.ip-brand {
    margin: 0 0 12px;
    font-size: clamp(14px, 1.6vw, 18px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ip-accent);
}

.ip-hero h1 {
    margin: 0;
    font-size: clamp(52px, 11vw, 148px);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.88;
    animation: ip-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ip-lede {
    margin: 22px 0 0;
    max-width: 30ch;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.45;
    color: var(--ip-mute);
    text-wrap: pretty;
    animation: ip-rise 1s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ip-scope {
    margin: 18px 0 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(242, 241, 236, 0.4);
    animation: ip-rise 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ip-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.ip-scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    font-size: 13px;
    color: var(--ip-ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ip-scroll:hover {
    color: var(--ip-accent);
    border-bottom-color: var(--ip-accent);
}

.ip-scroll i {
    font-style: normal;
}

/* —— Story —— */
.ip-story {
    background: var(--ip-ink);
    color: var(--ip-bg);
}

.ip-flow,
.ip-body {
    padding: 88px var(--pad);
}

.ip-section-head {
    max-width: 34em;
    margin-bottom: 56px;
}

.ip-eyebrow {
    display: block;
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.45);
}

.ip-section-head h2,
.ip-block h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4.2vw, 48px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.ip-section-head p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: rgba(10, 10, 10, 0.62);
}

.ip-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(10, 10, 10, 0.16);
}

.ip-flow-steps li {
    padding: 32px 28px 40px;
    border-right: 1px solid rgba(10, 10, 10, 0.12);
}

.ip-flow-steps li:first-child {
    padding-left: 0;
}

.ip-flow-steps li:last-child {
    border-right: 0;
    padding-right: 0;
}

.ip-flow-steps span {
    display: block;
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(10, 10, 10, 0.4);
}

.ip-flow-steps strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.ip-flow-steps p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(10, 10, 10, 0.62);
}

.ip-body {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.55fr);
    gap: 64px;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
}

.ip-block + .ip-block {
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid rgba(10, 10, 10, 0.1);
}

.ip-block p {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(10, 10, 10, 0.78);
}

.ip-block ul {
    margin: 8px 0 18px;
    padding-left: 1.15em;
}

.ip-block li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(10, 10, 10, 0.78);
}

.ip-aside {
    position: sticky;
    top: 108px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 4px;
}

.ip-aside h3 {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.4);
}

.ip-aside p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.ip-aside a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 10, 10, 0.25);
}

.ip-aside a:hover {
    border-bottom-color: #1647ff;
    color: #1647ff;
}

.ip-aside i {
    font-style: normal;
}

.ip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.ip-tags span {
    font-size: 13px;
    color: rgba(10, 10, 10, 0.7);
}

.ip-contact {
    position: relative;
    min-height: unset;
    padding: clamp(96px, 12vw, 168px) var(--pad) clamp(88px, 10vw, 140px);
    color: var(--ip-ink);
    background: var(--ip-bg);
    overflow: hidden;
    isolation: isolate;
}

.ip-contact .eyebrow,
.ip-contact h2 {
    color: var(--ip-ink);
}

.ip-contact h2 {
    max-width: 14ch;
    margin: clamp(22px, 3vh, 36px) 0 clamp(40px, 7vh, 88px);
    font-size: clamp(42px, 7.2vw, 120px);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.92;
}

.case-ip-page .site-footer {
    padding-top: clamp(56px, 7vw, 88px);
    padding-bottom: clamp(40px, 5vw, 64px);
}

@media (max-width: 960px) {
    .ip-flow-steps {
        grid-template-columns: 1fr 1fr;
    }

    .ip-flow-steps li:nth-child(2) {
        border-right: 0;
        padding-right: 0;
    }

    .ip-flow-steps li:nth-child(1),
    .ip-flow-steps li:nth-child(2) {
        border-bottom: 1px solid rgba(10, 10, 10, 0.12);
        padding-bottom: 24px;
    }

    .ip-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ip-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .ip-hero {
        padding-top: 108px;
        padding-bottom: 36px;
    }

    .ip-flow,
    .ip-body {
        padding: 56px var(--pad);
    }

    .ip-flow-steps {
        grid-template-columns: 1fr;
    }

    .ip-flow-steps li {
        border-right: 0;
        border-bottom: 1px solid rgba(10, 10, 10, 0.12);
        padding: 22px 0;
    }

    .ip-flow-steps li:last-child {
        border-bottom: 0;
    }

    .ip-aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ip-hero-photo img {
        object-position: 82% 40%;
    }

    .ip-hero-veil {
        background:
            linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.28) 40%, rgba(10, 10, 10, 0.82) 100%),
            linear-gradient(90deg, rgba(10, 10, 10, 0.58) 0%, transparent 72%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ip-hero-photo img,
    .ip-hero h1,
    .ip-lede,
    .ip-scope {
        animation: none;
    }
}
