/* PRisMA — "instrument panel": cool paper, ruled grid, mono labels, sticky process rail. */

.svc--prisma {
    --bg: #F8F6FA;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
.svc--prisma h1, .svc--prisma h2, .svc--prisma h3 { letter-spacing: -0.02em; }
.svc--prisma h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; font-weight: 600; margin-top: 0.8rem; max-width: 22ch; }

/* Hero */
.pr-hero { position: relative; padding: 8rem 0 4.5rem; overflow: hidden; }
.pr-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='90' viewBox='0 0 52 90'%3E%3Cpath d='M26 0L52 15V45L26 60L0 45V15Z M26 60V90' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 52px 90px;
    -webkit-mask-image: linear-gradient(180deg, #16131C 30%, transparent 100%);
    mask-image: linear-gradient(180deg, #16131C 30%, transparent 100%);
}
.pr-hero__grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .pr-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } .pr-hero { padding: 10rem 0 6rem; } }
.pr-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; font-weight: 600; margin: 1rem 0 1.4rem; }
.pr-hero h1 > span { display: block; color: var(--accent); }
.pr-hero .eyebrow { font-family: var(--mono); letter-spacing: 0.08em; text-transform: none; font-size: 0.78rem; }
.pr-hero .lead { margin-bottom: 2rem; }

.svc--prisma .svc-photo--hero {
    aspect-ratio: 4 / 5;
    width: min(100%, 30rem);
    margin-inline: auto;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 40px 90px -30px rgba(22, 19, 28, 0.6);
}
@media (min-width: 1024px) { .svc--prisma .svc-photo--hero { margin-inline: 0 auto; justify-self: end; margin-right: 0; } }

/* Why / who */
.pr-why__grid, .pr-who__grid, .pr-actions__grid, .pr-faq__grid, .pr-deliver__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) {
    .pr-why__grid, .pr-who__grid, .pr-actions__grid, .pr-faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
    .pr-deliver__grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
}
.pr-why { background: #fff; border-block: 1px solid var(--line); }
.pr-margin {
    margin-top: 1.75rem;
    padding: 1rem 0 1rem 1.25rem;
    border-left: 3px solid var(--accent);
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--fg);
    max-width: 38rem;
}
.pr-who { background: transparent; }

/* Process rail */
.pr-process { background: #fff; border-block: 1px solid var(--line); padding-block: 4.5rem; }
@media (min-width: 1024px) { .pr-process { padding-block: 6.5rem; } }
.pr-process__grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .pr-process__grid { grid-template-columns: 19rem 1fr; gap: 5rem; align-items: start; } }
.pr-rail { display: none; }
@media (min-width: 1024px) {
    .pr-rail { display: block; position: sticky; top: 7.5rem; padding-left: 1.5rem; }
    .pr-rail ol { display: grid; gap: 0.15rem; }
    .pr-rail a { display: grid; grid-template-columns: 2.2rem 1fr; padding: 0.7rem 0; color: #4A4454; text-decoration: none; font-size: 0.95rem; line-height: 1.3; transition: color 0.3s ease; }
    .pr-rail a b { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; padding-top: 0.12rem; }
    .pr-rail a.is-active { color: var(--fg); }
    .pr-rail a.is-active b { color: var(--accent); }
    .pr-rail__bar { position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--line); }
    .pr-rail__bar i { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--accent); transition: height 0.2s linear; }
}
.pr-step { padding: 2.2rem 0 2.6rem; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .pr-step { min-height: 17rem; padding-block: 2.6rem 3.5rem; } }
.pr-step__n { display: flex; align-items: center; gap: 0.9rem; font-family: var(--mono); font-size: 0.85rem; color: var(--accent); margin-bottom: 1rem; }
.pr-step__n em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.1em; padding: 0.2rem 0.55rem; border: 1px solid var(--accent); }
.pr-step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.2; margin-bottom: 0.9rem; }
.pr-step p:not(.pr-step__n) { color: var(--muted); line-height: 1.7; max-width: 36rem; }
.pr-step { opacity: 1; transition: opacity 0.4s ease; }
@media (min-width: 1024px) { .js .pr-step:not(.is-active) { opacity: 0.45; } }

/* Tools — dark band */
.pr-tools { background: #3F2254; color: #fff; --line: rgba(255, 255, 255, 0.14); --muted: rgba(255, 255, 255, 0.72); --accent: #C9B5E0; }
.pr-tools h2 { color: #fff; }
.pr-tools .eyebrow { font-family: var(--mono); }
.pr-chain { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 1100px) { .pr-chain { grid-template-columns: 1fr 5.5rem 1fr 5.5rem 1fr; gap: 0; align-items: stretch; } }
.pr-tool { border: 1px solid var(--line); padding: 1.6rem; display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.025); }
.pr-tool__tag { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 1rem; }
.pr-tool h3 { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.pr-tool > p:not(.pr-tool__tag):not(.pr-tool__meta) { color: var(--muted); line-height: 1.65; font-size: 0.95rem; margin-bottom: 1.5rem; }
.pr-tool__meta { margin-top: auto; padding-top: 0.9rem; font-family: var(--mono); font-size: 0.78rem; color: var(--accent); }
.pr-dots { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; margin-top: auto; }
.pr-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--accent); transition: opacity 0.35s ease, transform 0.35s ease; }
.pr-dots--sq i { border-radius: 2px; background: #fff; }
.js .pr-dots i { opacity: 0.14; transform: scale(0.55); }
.js .pr-dots i.on { opacity: 1; transform: none; }
.pr-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 0; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-align: center; color: rgba(255, 255, 255, 0.45); transition: color 0.4s ease; }
.pr-link::before { content: ""; width: 1px; height: 1.6rem; background: currentColor; }
.pr-link span { max-width: 6rem; text-transform: uppercase; }
@media (min-width: 1100px) {
    .pr-link { padding: 0 0.3rem; }
    .pr-link::before { order: 2; width: 100%; height: 1px; }
    .pr-link span { order: 1; }
}
.pr-link.on { color: var(--accent); }
.pr-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; }
.pr-chips li { font-size: 0.8rem; padding: 0.35rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.28); transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.4s ease; }
.js .pr-chips li { opacity: 0.12; transform: translateY(6px); }
.js .pr-chips.on li { opacity: 1; transform: none; }
.pr-chips.on li { background: rgba(201, 181, 224, 0.1); }
.pr-tools__close { margin-top: 2.2rem; max-width: 40rem; color: var(--muted); line-height: 1.7; border-left: 2px solid var(--accent); padding-left: 1.1rem; }

/* Deliverables as a report sheet */
.pr-sheet { background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(78, 44, 104, 0.4); position: relative; counter-reset: row; }
.pr-sheet::before { content: "REPORT CONTENTS"; display: block; padding: 0.9rem 1.4rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--soft, #F8F6FA); }
.pr-sheet li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 1rem; padding: 1.05rem 1.4rem; border-bottom: 1px dashed var(--line); line-height: 1.5; font-size: 0.97rem; }
.pr-sheet li:last-child { border-bottom: 0; }
.pr-tick { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; fill: none; stroke: var(--accent); stroke-width: 1.5; }
.pr-tick path { stroke-width: 2; stroke-linecap: square; stroke-dasharray: 24; stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s ease 0.35s; }
.js .pr-sheet li:not(.is-in) .pr-tick path { stroke-dashoffset: 24; }

.pr-actions { background: #fff; border-block: 1px solid var(--line); }

/* Framework stack */
.pr-stack { margin-top: 2.5rem; border-left: 2px solid var(--accent); }
.pr-stack article { display: grid; gap: 0.4rem; padding: 1.4rem 0 1.4rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.pr-stack article::before { content: ""; position: absolute; left: -6px; top: 1.75rem; width: 10px; height: 10px; background: var(--accent); }
@media (min-width: 900px) { .pr-stack article { grid-template-columns: 11rem 1fr; gap: 0 2rem; } .pr-stack__k { grid-row: span 2; } }
.pr-stack__k { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--accent); padding-top: 0.2rem; }
.pr-stack h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.pr-stack p:not(.pr-stack__k) { color: var(--muted); line-height: 1.65; max-width: 40rem; }
.pr-caveat { margin-top: 1.6rem; max-width: 44rem; font-family: var(--mono); font-size: 0.85rem; line-height: 1.65; color: var(--fg); padding: 1rem 1.2rem; background: rgba(103, 58, 137, 0.07); }
.pr-privacy { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 0.8rem; max-width: 46rem; }
.pr-privacy h3 { font-size: 1.2rem; font-weight: 600; }
.pr-privacy p { color: var(--muted); line-height: 1.7; }

.pr-faq { background: #fff; border-top: 1px solid var(--line); }

/* CTA */
.pr-cta { background: #3F2254; color: #fff; padding: 5rem 0 3rem; }
.pr-cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.pr-cta > .svc-w > p { margin: 1rem 0 2rem; max-width: 36rem; color: rgba(255, 255, 255, 0.78); line-height: 1.65; }
.pr-cta { --bg: #3F2254; --fg: #fff; --muted: rgba(255, 255, 255, 0.75); --line: rgba(255, 255, 255, 0.18); --accent: #fff; }
.pr-cta .more a { background: #673A89; }
.pr-cta .more a:hover { background: #542E70; }
.sb--onpurple { background: #fff; color: #4E2C68; }
.sb--onpurple:hover { background: #F0EBF5; }
.sb--outlight { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.sb--outlight:hover { background: rgba(255, 255, 255, 0.1); }

/* hero upgrade */
.pr-hero { padding: 0; }
.pr-hero::before { -webkit-mask-image: linear-gradient(180deg, #16131C 55%, transparent 100%); mask-image: linear-gradient(180deg, #16131C 55%, transparent 100%); }
.pr-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }

/* MY NEURA: digital companion to PRisMA */
.pr-neura { background: #F0EBF5; }
.pr-neura__card { position: relative; overflow: hidden; display: grid; gap: 2.5rem; padding: clamp(2rem, 4vw, 3.5rem); border-radius: 1.25rem; background: linear-gradient(135deg, #3F2254, #4A2862 70%); color: #fff; --fg: #fff; --muted: rgba(255,255,255,.8); --accent: #C9B5E0; --line: rgba(255,255,255,.16); }
.pr-neura__card::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='90' viewBox='0 0 52 90'%3E%3Cpath d='M26 0L52 15V45L26 60L0 45V15Z M26 60V90' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='1'/%3E%3C/svg%3E"); background-size: 52px 90px; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%); pointer-events: none; }
@media (min-width: 900px) { .pr-neura__card { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4rem; } }
.pr-neura__card > * { position: relative; z-index: 1; }
.pr-neura__card h2 { color: #fff; max-width: 20ch; }
.pr-neura__card .eyebrow { color: #C9B5E0; }
.pr-neura__card .lead { color: rgba(255,255,255,.82); margin-top: 1.1rem; }
.pr-neura__points { display: grid; gap: .7rem; margin-top: 1.6rem; }
.pr-neura__points li { display: flex; gap: .75rem; align-items: flex-start; color: rgba(255,255,255,.88); line-height: 1.5; }
.pr-neura__points li::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .2rem; background: #C9B5E0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pr-neura__card .sb-row { margin-top: 1.8rem; }
.pr-neura__card .sb--solid { background: #fff; color: #4E2C68; }
.pr-neura__card .sb--solid:hover { background: #F0EBF5; }
.pr-neura__card .sb--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.pr-neura__badge { justify-self: center; width: min(100%, 22rem); aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 2rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pr-neura__badge b { display: block; font-family: var(--mono); font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: .18em; color: #fff; }
.pr-neura__badge span { display: block; margin-top: .8rem; font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.78); max-width: 16rem; }
.pr-neura__badge small { display: block; margin-top: 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: #C9B5E0; }
