/* Prism Data Solutions — shared styles. Tokens and roles: see DESIGN.md. Light theme only. */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --bg-tint: #EDF0F7;
  --ink: #111143;
  --text: #2E3350;
  --muted: #5F6779;
  --muted-2: #7A8197;
  --line: #E3E6EE;
  --primary: #223381;
  --accent: #F98613;
  --navy: #111143;
  --on-navy: #FFFFFF;
  --on-navy-2: #C9CEE3;
  --on-navy-3: #9CA4C6;
  --navy-line: rgba(255, 255, 255, .16);

  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-label: .8125rem;
  --fs-small: .9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.15rem, 1rem + .55vw, 1.5rem);
  --fs-h3: clamp(1.4rem, 1.15rem + .9vw, 1.9rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  --fs-display: clamp(2.6rem, 1.4rem + 4.9vw, 5.25rem);

  --r-chip: 8px;
  --r-card: 14px;
  --r-media: 20px;
  --shadow-media: 0 40px 80px -40px rgba(17, 17, 67, .32), 0 2px 6px rgba(17, 17, 67, .06);

  --content: 1440px;
  --gutter: 24px;
  --text-col: 680px;
  --section: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-body); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--content); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { :root { --gutter: 48px; } }
@media (min-width: 1280px) { :root { --gutter: 80px; } }
.section { padding-block: var(--section); }
.band { background: var(--bg-soft); }
.label { font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text); }
.muted { color: var(--muted); }
.measure { max-width: var(--text-col); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font: 500 1rem/1 var(--font); text-decoration: none; border: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--primary); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted-2); }
.btn-small { min-height: 38px; padding: 0 1rem; font-size: .9375rem; }
.link { font-weight: 500; text-decoration: none; color: var(--primary); white-space: nowrap; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255, 255, 255, .9); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 20px 40px -20px rgba(17, 17, 67, .25); padding: .5rem; min-width: 220px; display: grid; }
.menu-panel a { padding: .8rem 1rem; color: var(--ink); text-decoration: none; border-radius: 10px; font-weight: 500; }
.menu-panel a:hover { background: var(--bg-tint); }
@media (max-width: 820px) { .nav { display: none; } .menu { display: block; } }

/* hero */
.hero { text-align: center; padding-top: clamp(64px, 9vw, 120px); padding-bottom: 0; }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 span { display: block; color: var(--muted-2); }
.hero .lead { margin: 1.6rem auto 0; max-width: 34ch; }
.hero .actions { justify-content: center; margin-top: 2.2rem; }
.hero-shot { margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1080px; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(24px); } to { transform: none; } }

/* media frames */
.frame { margin: 0; border-radius: var(--r-media); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-media); }
.caption { margin-top: .9rem; font-size: var(--fs-label); color: var(--muted); letter-spacing: .02em; }
.hero .caption { text-align: center; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D6DAE4; }
.browser-bar span { margin-left: 8px; font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* section heads */
.head { display: grid; gap: 1rem; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* feature rows */
.rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.row.flip > :first-child { order: 2; }
.row-copy { display: grid; gap: 1rem; min-width: 0; }
.row-copy p { color: var(--text); max-width: 46ch; }
.stat { margin-top: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .2rem; }
.stat b { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row.flip > :first-child { order: 0; } }
.more { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }

/* list grid (services teaser) */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.item { padding-block: 1.8rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; min-width: 0; }
.item h3 { font-size: 1.3rem; letter-spacing: -.015em; }
.item p { color: var(--muted); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.steps li::before { content: "0" counter(s); font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; color: var(--muted); padding-bottom: .9rem; border-bottom: 2px solid var(--ink); margin-bottom: .4rem; }
.steps h3 { font-size: 1.25rem; letter-spacing: -.015em; }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* closing call to action */
.cta { text-align: center; display: grid; justify-items: center; gap: 1.2rem; }
.cta .lead { max-width: 40ch; color: var(--muted); }
.cta .actions { justify-content: center; margin-top: .6rem; }

/* page intro */
.intro { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); }
.intro h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem); line-height: 1.03; letter-spacing: -.035em; }
.intro .lead { margin-top: 1.2rem; max-width: 46ch; color: var(--muted); }

/* services list */
.svc-list { display: grid; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem clamp(32px, 6vw, 96px); padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-name { display: grid; gap: .6rem; align-content: start; }
.svc-name h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -.025em; line-height: 1.12; }
.tag { justify-self: start; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--bg-tint); border-radius: var(--r-chip); padding: .3rem .6rem; }
.svc-body { display: grid; gap: 1rem; }
.svc-body p { font-size: 1.125rem; color: var(--text); }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.ticks li { font-size: var(--fs-small); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } }

/* split block */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .stack { display: grid; gap: 1rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* work grid */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.work { margin: 0; display: grid; gap: 1rem; min-width: 0; align-content: start; }
.work .frame { box-shadow: none; }
.work figcaption { display: grid; gap: .25rem; }
.work figcaption b { font-size: 1.2rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.work figcaption span { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.case-teaser { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: center; background: var(--navy); color: var(--on-navy-2); border-radius: var(--r-media); padding: clamp(28px, 4.5vw, 56px); }
.case-teaser h2 { color: var(--on-navy); }
.case-teaser .label { color: var(--on-navy-3); }
.case-teaser .link { color: var(--on-navy); }
.case-teaser .frame { border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.case-teaser :focus-visible { outline-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .4rem; }
.tiles div { display: grid; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--navy-line); border-radius: var(--r-card); }
.tiles b { color: var(--on-navy); font-weight: 600; }
.tiles span { font-size: var(--fs-small); color: var(--on-navy-3); }
.case-teaser .stack { display: grid; gap: 1rem; }
@media (max-width: 820px) { .case-teaser { grid-template-columns: 1fr; } }

/* case study */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(32px, 4vw, 48px); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: .3rem; }
.facts dt { font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.pair .stack { display: grid; gap: 1rem; min-width: 0; align-content: start; }
.pair p { color: var(--muted); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
@media (max-width: 820px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { margin: 0; width: 100%; max-width: 300px; aspect-ratio: 1; border-radius: 50%; padding: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(17, 17, 67, .45); }
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about .stack { display: grid; gap: 1.2rem; min-width: 0; }
.checks { list-style: none; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.5rem; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; background: var(--accent); clip-path: polygon(0 50%, 100% 0, 85% 100%); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 220px; } }

/* contact */
.contact-card { display: grid; gap: 1.5rem; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-media); background: #fff; }
.contact-card .row-line { display: grid; gap: .2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.contact-card .row-line b { color: var(--ink); font-weight: 600; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); padding-block: 1.2rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.125rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .6rem; color: var(--muted); max-width: 62ch; }

/* footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 56px 32px; display: grid; gap: 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot-top img { height: 32px; width: auto; }
.foot-top p { margin-top: 1rem; color: var(--muted); font-size: var(--fs-small); max-width: 34ch; }
.foot-col { display: grid; gap: .6rem; align-content: start; font-size: var(--fs-small); }
.foot-col a { color: var(--text); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-label); color: var(--muted); }
@media (max-width: 720px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* section label: short orange rule before the text (brand accent) */


/* navy bands (replace the old gray bands) */
.navy { background: var(--navy); color: var(--on-navy-2); }
.navy h2, .navy h3, .navy .cta h2 { color: var(--on-navy); }
.navy .label { color: var(--on-navy-3); }
.navy p, .navy .lead, .navy .cta .lead, .navy .muted, .navy .item p, .navy .pair p { color: var(--on-navy-2); }
.navy .link, .navy a:not(.btn) { color: var(--on-navy); }
.navy .btn-primary { background: var(--accent); color: var(--navy); font-weight: 600; box-shadow: 0 10px 30px -14px rgba(249, 134, 19, .7); }
.navy .btn-primary:hover { background: #fff; color: var(--navy); }
.navy .btn-secondary { background: transparent; color: var(--on-navy); border-color: var(--navy-line); }
.navy :focus-visible { outline-color: var(--accent); }
.navy .item, .navy .faq details { border-color: var(--navy-line); }
.navy .faq summary { color: var(--on-navy); }
.navy .faq summary::after { color: var(--on-navy-3); }
.navy .caption { color: var(--on-navy-3); }
.navy .frame { border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.navy .browser-bar { background: #F5F7FB; }

/* four columns with hairline dividers (What we do) */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols .item { border-top: 0; border-left: 1px solid var(--line); padding: .4rem clamp(16px, 2vw, 28px) .4rem; }
.cols .item:first-child { border-left: 0; padding-left: 0; }
.navy .cols .item { border-left-color: var(--navy-line); }
@media (max-width: 980px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } .cols .item:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; row-gap: 0; } .cols .item, .cols .item:nth-child(3) { border-left: 0; padding: 1.4rem 0; border-top: 1px solid var(--line); } .navy .cols .item { border-top-color: var(--navy-line); } .cols .item:first-child { border-top: 0; } }


/* icons: original line icons on a soft tile, one orange stroke */
.ico { display: block; width: 24px; height: 24px; }
.ico .acc { stroke: var(--accent); }
.ico-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-tint); color: var(--ink); margin-bottom: .5rem; }
.navy .ico-tile { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1px var(--navy-line); }


/* What we do: heading beside the prism illustration */
.head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.head-split .head { margin-bottom: 0; }
.head-split .lead { max-width: 34ch; }
.prism-art { display: block; width: 100%; height: auto; max-width: 560px; justify-self: end; }
.prism-art .flow { animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@media (max-width: 860px) { .head-split { grid-template-columns: 1fr; } .prism-art { justify-self: start; max-width: 480px; } }
.svc-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .2rem; }
.svc-top .ico-tile { margin: 0; }


.play-toggle { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s ease; }
.play-toggle:hover { border-color: var(--muted-2); }
.play-toggle .i-play { display: none; }
.carousel.is-stopped .play-toggle .i-play { display: block; }
.carousel.is-stopped .play-toggle .i-pause { display: none; }

/* example slideshow (What you get): one example at a time, story-style progress tabs */
.carousel { display: grid; gap: clamp(24px, 3.5vw, 40px); }
.carousel-bar { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.slide-tabs { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.slide-tab { appearance: none; background: none; border: 0; padding: .55rem 0 .35rem; margin: 0; min-height: 44px; display: grid; gap: .65rem; text-align: left; cursor: pointer; font: 500 var(--fs-small)/1.3 var(--font); color: var(--muted); }
.slide-tab:hover, .slide-tab[aria-selected="true"] { color: var(--ink); }
.slide-tab .bar { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.slide-tab .bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.slide-tab[aria-selected="true"] .bar i { animation: fill 8s linear forwards; }
.carousel.is-paused .slide-tab .bar i { animation-play-state: paused; }
.carousel.is-stopped .slide-tab[aria-selected="true"] .bar i { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

.slides { position: relative; margin-inline: -16px; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: 4px 16px 48px; min-width: 0; }
/* softer shadow that fits inside the scroll area (the default one would be cut off at the edges) */
.slide .frame { box-shadow: 0 18px 40px -24px rgba(17, 17, 67, .3), 0 2px 6px rgba(17, 17, 67, .06); }
@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  /* phones and tablets: the next example peeks in from the right, so it's clear there is more */
  .slides { grid-auto-columns: 86%; }
  .slide { padding-right: 0; }
  .slide:last-child { padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  /* the slideshow still advances (slides switch without sliding); its thin timer bar is allowed */
  .slide-tab[aria-selected="true"] .bar i { animation: fill 8s linear forwards !important; }
  .carousel.is-stopped .slide-tab[aria-selected="true"] .bar i { animation: none !important; transform: scaleX(1); }
}

/* =====================================================================================
   Services (home): the Prism story. A framed, full-width stage runs left to right
   (the mess -> the Prism -> the executive view); the four service pillars sit underneath
   and light up as the story reaches their part. The tools dock sits on the frame's edge.
   Strict brand palette: deep navy canvas, white type and lines, orange as the only accent.
   ===================================================================================== */
:root {
  --navy-deep: #0B0B30;      /* darker shade of brand navy #111143 */
  --navy-lift: #18185E;      /* lighter shade of brand navy, for depth */
  --w-2: rgba(255, 255, 255, .74);
  --w-3: rgba(255, 255, 255, .58);
  --w-line: rgba(255, 255, 255, .12);
}

/* header over dark sections: white logo, orange button */
.logo .logo-dark { display: none; }
.site-header { transition: background-color .3s ease, border-color .3s ease; }
.site-header.on-dark { background: rgba(11, 11, 48, .72); border-bottom-color: rgba(255, 255, 255, .08); }
.site-header.on-dark .logo-light { display: none; }
.site-header.on-dark .logo-dark { display: block; }
.site-header.on-dark .nav a:not(.btn) { color: var(--w-2); }
.site-header.on-dark .nav a:not(.btn):hover { color: #fff; }
.site-header.on-dark .btn-primary { background: var(--accent); color: var(--navy); }
.site-header.on-dark .btn-primary:hover { background: #fff; }
.site-header.on-dark .menu summary { color: #fff; border-color: rgba(255, 255, 255, .22); }
.site-header.on-dark :focus-visible { outline-color: var(--accent); }

.story { position: relative; background: var(--navy-deep); color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.lux-sticky { position: relative; overflow: hidden; }
.story.is-scrolly { height: calc(100vh + 180vh); height: calc(100svh + 180vh); }
/* dark breathing room under the pillars before the page turns white (not part of the scroll track) */
.story.is-scrolly { padding-bottom: clamp(56px, 7vw, 104px); height: calc(100vh + 180vh + clamp(56px, 7vw, 104px)); height: calc(100svh + 180vh + clamp(56px, 7vw, 104px)); }
.story.is-scrolly .lux-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); }
.story :focus-visible { outline-color: var(--accent); }

.lux-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 65% at 50% 36%, var(--navy-lift) 0%, var(--navy) 50%, var(--navy-deep) 100%); }
.lux-grid { position: absolute; inset: 0; opacity: .3;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 60% 36%, #000, transparent);
          mask-image: radial-gradient(ellipse 60% 55% at 60% 36%, #000, transparent); }

/* theater: the framed stage on top, the four service pillars underneath */
.lux-theater { position: relative; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(26px, 4vh, 44px); padding-block: clamp(12px, 2.2vh, 28px) clamp(16px, 3vh, 32px); }
.story:not(.is-scrolly) .lux-theater { padding-block: 40px 56px; }


.lux-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin-top: .2rem; }
.lux-link { color: #fff; font-weight: 500; text-decoration: none; }
.lux-link::after { content: " ›"; color: var(--accent); }
.lux-link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }


/* ---- the stage */
.lux-stage { position: relative; min-height: 0; container-type: size; }
.story:not(.is-scrolly) .lux-stage { height: 560px; }
.lux-lines, .lux-streams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.lux-lines { stroke: rgba(255, 255, 255, .55); stroke-width: 1; opacity: 0; }
.stream .s-base { stroke-width: 1.4; stroke-linecap: round; }
.stream .s-flow { stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .012 .05; opacity: 0; animation: stream-flow 3.2s linear infinite; }
.stream.is-white .s-base, .stream.is-white .s-flow { stroke: rgba(255, 255, 255, .8); }
.stream.is-orange .s-base, .stream.is-orange .s-flow { stroke: var(--accent); }
.stream .s-pulse { fill: #fff; opacity: 0; filter: drop-shadow(0 0 6px #F98613) drop-shadow(0 0 2px #F98613); }
.stream .s-node { fill: var(--accent); opacity: 0; filter: drop-shadow(0 0 5px rgba(249, 134, 19, .9)); }
@keyframes stream-flow { to { stroke-dashoffset: -.124; } }
.s-in { stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; stroke-linecap: round; opacity: 0; }

.frags, .srcs { position: absolute; inset: 0; pointer-events: none; }
.frag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .65rem; border-radius: 9px; background: rgba(17, 17, 67, .92); border: 1px solid rgba(255, 255, 255, .13); color: var(--w-2); font: 500 .74rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: nowrap; opacity: 0; visibility: hidden; will-change: transform, opacity; box-shadow: 0 10px 24px -14px rgba(4, 4, 24, .8); }
.frag.k-file { color: #fff; }
.frag.k-file svg { color: var(--accent); flex: none; }
.frag .dot, .src .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(249, 134, 19, .9); }
.frag.is-noise { color: var(--w-3); border-style: dashed; border-color: rgba(255, 255, 255, .2); }
.frag.is-noise > span { position: relative; }
.frag.is-noise > span::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 1px; background: var(--accent); transform: scaleX(var(--strike, 0)); transform-origin: left center; }
.src { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: .82rem; font-weight: 500; white-space: nowrap; opacity: 0; visibility: hidden; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* the prism: resting spot set here; it starts larger and centred (worked out in JS) */
.prism-wrap { position: absolute; left: 30.5%; width: 12%; top: 50%; margin-top: -6.6%; aspect-ratio: 200 / 220; }
.prism-wrap::before { content: ""; position: absolute; inset: -95%; border-radius: 50%; background: radial-gradient(closest-side, rgba(249, 134, 19, .16), rgba(249, 134, 19, .05) 55%, transparent); opacity: var(--glow, .45); pointer-events: none; }
.prism-wrap svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 40px rgba(4, 4, 24, .45)); }
.pz-spec { animation: pz-shimmer 3.6s ease-in-out infinite alternate; }
@keyframes pz-shimmer { from { opacity: .35; } to { opacity: .85; } }

/* the executive view: three columns, so no card is ever a sliver */
.bento { position: absolute; left: 47%; right: 0; top: 0; bottom: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: "a a b" "c c d" "f e e"; }
.card { position: relative; min-width: 0; min-height: 0; overflow: hidden; container-type: inline-size; display: flex; flex-direction: column; gap: .3rem; padding: clamp(12px, 1.6vh, 16px) 16px; border-radius: 16px; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 30px 60px -32px rgba(4, 4, 24, .7);
  -webkit-backdrop-filter: blur(20px) saturate(130%); backdrop-filter: blur(20px) saturate(130%); }
.card p { margin: 0; }
.card .k { font-size: .68rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--w-3); line-height: 1.3; }
/* numbers size to their own card, never to the window */
.card .v { font-size: clamp(1.25rem, 13cqi, 2.1rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-a .v, .c-c .v, .c-e .v { font-size: clamp(1.4rem, 8cqi, 2.2rem); }
.card .s { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; line-height: 1.35; color: var(--w-2); }
.card .pill { align-self: flex-start; margin-top: .2rem; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 500; color: var(--accent); border: 1px solid rgba(249, 134, 19, .4); background: rgba(249, 134, 19, .08); white-space: nowrap; }
.c-a { grid-area: a; } .c-b { grid-area: b; } .c-c { grid-area: c; } .c-d { grid-area: d; } .c-e { grid-area: e; } .c-f { grid-area: f; }
.c-a .spark { position: absolute; right: 0; bottom: 0; width: 52%; height: 60%; }
.c-b .rv { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
.ring { width: clamp(30px, 22cqi, 44px); height: clamp(30px, 22cqi, 44px); flex: none; }
.c-c .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.c-c .fc { flex: 1; width: 100%; min-height: 0; margin-top: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .68rem; color: var(--w-3); }
.legend i { display: inline-block; width: 12px; height: 2px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.l-act { background: rgba(255, 255, 255, .85); } .l-fc { background: var(--accent); }
.meter { height: 4px; margin: 6px 0 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.meter i { display: block; width: 88.9%; height: 100%; background: var(--accent); box-shadow: 0 0 10px rgba(249, 134, 19, .6); transform-origin: left center; }
.alerts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: .78rem; line-height: 1.35; color: var(--w-2); }
.alerts li { display: flex; align-items: baseline; gap: 8px; }
.alerts i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(249, 134, 19, .18); transform: translateY(-1px); }
.alerts b { color: #fff; font-weight: 500; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.flow span, .flow b { padding: .2rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 500; border: 1px solid rgba(255, 255, 255, .16); color: var(--w-2); white-space: nowrap; }
.flow b { position: relative; margin-left: 16px; color: var(--navy); background: var(--accent); border-color: transparent; }
.flow b::before { content: "→"; position: absolute; left: -15px; color: var(--w-3); }

/* mid-width screens (small laptops, tablets on their side): two roomy columns, five cards */
@media (min-width: 860px) and (max-width: 1199px) {
  .prism-wrap { left: 29%; width: 13%; margin-top: -7.15%; }
  .bento { left: 47%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a b" "c c" "d e"; }
  .c-f { display: none; }
}

/* short stages: keep every card readable by dropping the secondary lines */
@container (max-height: 440px) {
  .c-b .s, .c-d .s, .c-f .s { display: none; }
  .legend { display: none; }
}

/* ---- phones and small tablets: the stage flows top to bottom (prism above the cards) */
@media (max-width: 859px) {
  .lux-theater { gap: 32px; }
  .prism-wrap { left: 50%; width: 104px; margin-left: -52px; top: 0; margin-top: 0; }
  .bento { left: 0; top: 140px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "a a" "b d" "c c"; }
  .c-e, .c-f, .srcs { display: none; }
  .card { padding: 11px 13px; border-radius: 14px; }
  .c-b .s, .c-d .s { display: none; }
  .frag { font-size: .66rem; padding: .32rem .5rem; gap: .35rem; }
  .story:not(.is-scrolly) .lux-stage { height: 520px; }
}
@media (max-width: 859px) and (max-height: 760px) {
  .prism-wrap { width: 84px; margin-left: -42px; }
  .bento { top: 112px; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a a" "b d"; }
  .c-c { display: none; }
}
@media (min-width: 600px) and (max-width: 859px) and (min-height: 761px) {
  .prism-wrap { width: 140px; margin-left: -70px; }
  .bento { top: 180px; gap: 12px; }
}

.lux-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--w-2); }

/* =====================================================================================
   Home hero: headline on the left, the rendered Prism on the right fading into the navy.
   The image is a still render (navy, orange, white only); the core breathes and a soft
   light passes along the lanes, both in CSS and both still under reduced motion.
   ===================================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero2 { --hh: clamp(620px, calc(100vh - 64px), 940px); --hh: clamp(620px, calc(100svh - 64px), 940px); --ah: calc(var(--hh) + 64px);
  --cw: clamp(600px, 50vw, 780px);
  position: relative; margin-top: -64px; padding-top: 64px; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(ellipse 60% 70% at 66% 52%, var(--navy-lift) 0%, var(--navy) 46%, var(--navy-deep) 100%); }
.hero2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
.hero2-inner { position: relative; min-height: var(--hh); display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-block: clamp(40px, 7vh, 88px) clamp(24px, 4vh, 40px); }
.hero2-copy { position: relative; z-index: 2; align-self: center; max-width: var(--cw); display: grid; gap: clamp(18px, 2.6vh, 26px); }
.hero2-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--w-2); }
.hero2 h1 { margin: 0; color: #fff; font-size: clamp(2.6rem, 1.2rem + 3.7vw, 5.1rem); font-weight: 600; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero2-sub { margin: 0; max-width: 52ch; color: var(--w-2); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.55; }
.hero2-ctas { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 6px; }
.btn-orange { background: var(--accent); color: var(--navy); font-weight: 600; box-shadow: 0 10px 30px -12px rgba(249, 134, 19, .6); }
.btn-orange:hover { background: #fff; color: var(--navy); }
.btn-ghost-dark { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .26); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost-dark::after { content: "›"; color: var(--accent); font-weight: 600; }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.hero2 :focus-visible, .svc-intro :focus-visible { outline-color: var(--accent); }
.hero2-proof { position: relative; z-index: 2; list-style: none; margin: 0; padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 40px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--w-2); font-size: .9rem; }
.hero2-proof li { display: inline-flex; align-items: center; gap: 10px; }
.hero2-proof li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translate(1px, -2px); }

/* the art box keeps the render's 6:5 shape; its prism core (37.7%, 49%) sits right of the headline */
.hero2-art { position: absolute; z-index: 0; top: -64px; height: var(--ah); aspect-ratio: 6 / 5;
  left: calc(var(--gutter) + var(--cw) + 96px - var(--ah) * 1.2 * .25);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 12%, rgba(0, 0, 0, .4) 28%, #000 44%), linear-gradient(180deg, transparent 0, #000 12%, #000 74%, transparent 96%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, transparent 12%, rgba(0, 0, 0, .4) 28%, #000 44%), linear-gradient(180deg, transparent 0, #000 12%, #000 74%, transparent 96%);
          mask-composite: intersect; }
.hero2-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero2-core { position: absolute; left: 37.7%; top: 49%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(249, 134, 19, .5), rgba(249, 134, 19, .14) 45%, transparent 72%); mix-blend-mode: screen; animation: core-breathe 4.8s ease-in-out infinite; }
@keyframes core-breathe { 0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
/* light travelling along the lanes: a brighter copy of the render, revealed through a moving band.
   brightness + contrast keep the navy dark, so only the beams and nodes flare as it passes. */
.hero2-sweep { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: lighten;
  background: url("hero/prism-hero-1500.webp") center / 100% 100% no-repeat; filter: brightness(1.9) contrast(1.7);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 50%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 50%, transparent 100%);
  -webkit-mask-size: 20% 100%; mask-size: 20% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 52% 0; mask-position: 52% 0; animation: lane-sweep 5.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes lane-sweep { 0% { -webkit-mask-position: 52% 0; mask-position: 52% 0; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { -webkit-mask-position: 125% 0; mask-position: 125% 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero2-sweep { display: none; } }

@media (max-width: 1099px) {
  .hero2 { --hh: auto; background: radial-gradient(ellipse 120% 60% at 50% 64%, var(--navy-lift) 0%, var(--navy) 50%, var(--navy-deep) 100%); }
  .hero2-inner { min-height: 0; grid-template-rows: auto auto auto; padding-block: 40px 28px; gap: 8px; }
  .hero2-art { position: relative; top: auto; left: auto; height: auto; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%); }
  .hero2-art img { object-position: 50% 50%; }
  .hero2-sweep { background-size: cover; }
  .hero2-proof { gap: 10px 24px; font-size: .85rem; }
}

/* =====================================================================================
   What we do, after the story: four service cards and the tools we build in
   ===================================================================================== */

/* anchors land below the sticky header */
[id] { scroll-margin-top: 88px; }
.section-tint { background: var(--bg-soft); }

/* =====================================================================================
   Site-wide polish: hover and focus feedback, quieter transitions, consistent rhythm
   ===================================================================================== */
.btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.link, .lux-link { text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link::after, .lux-link::after { content: "›"; display: inline-block; margin-left: .3em; transition: transform .2s ease; }
.link:hover::after, .lux-link:hover::after { transform: translateX(3px); }

/* sample dashboards on the Work page: lift on hover */
.work .frame { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .3s ease; }
.work:hover .frame { transform: translateY(-4px); border-color: #D6D8E6; box-shadow: var(--shadow-media); }
.work figcaption b { transition: color .2s ease; }
.work:hover figcaption b { color: var(--primary); }

/* services list: the row you point at lights up */
.svc { position: relative; transition: background-color .3s ease; }
.svc::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--accent); transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.svc:hover::before { width: 96px; }
.svc .ico-tile { transition: background-color .3s ease, color .3s ease; }
.svc:hover .ico-tile { background: var(--ink); color: #fff; }

/* glass details on dark cards */
.case-teaser { position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.case-teaser::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 80% at 85% 20%, rgba(249, 134, 19, .10), transparent 60%); }
.tiles div { background: rgba(255, 255, 255, .03); }
.contact-card { box-shadow: 0 30px 60px -40px rgba(17, 17, 67, .35); }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--primary); }
.navy .faq summary:hover { color: var(--accent); }
.foot-col a { transition: color .2s ease; }

/* the total-spend value and its budget pill */
.c-a .vp { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }

/* short stages (small laptops, landscape tablets, small phones): fewer, roomier cards */
@container (max-height: 460px) {
  .c-a .vp { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .c-a .pill { margin-top: 0; }
}
@media (min-width: 860px) {
  @container (max-height: 460px) {
    .c-e, .c-f { display: none; }
    .bento { grid-template-rows: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "a a b" "c c d"; }
  }
}
@media (min-width: 860px) and (max-width: 1199px) {
  @container (max-height: 460px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a b" "c d"; }
  }
}
/* case-study fact tiles never cut a long value */
.tiles span { overflow-wrap: anywhere; }
@media (max-width: 479px) { .tiles { grid-template-columns: 1fr; } }


/* =====================================================================================
   Services (home): intro, framed stage, tools dock, pillars
   ===================================================================================== */
.svc-intro { position: relative; background: var(--navy-deep); color: #fff; padding-block: clamp(72px, 9vw, 128px) clamp(20px, 3vw, 36px); }
.svc-intro-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 24px clamp(40px, 6vw, 96px); }
.svc-intro-head { display: grid; gap: 16px; }
.svc-intro h2 { margin: 0; color: #fff; font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.035em; max-width: 18ch; }
.svc-intro-side { display: grid; gap: 22px; justify-items: start; }
.svc-lead { margin: 0; max-width: 44ch; color: var(--w-2); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.55; }
.btn-arrow::after { content: "→"; display: inline-block; margin-left: .15em; transition: transform .2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }
@media (max-width: 859px) { .svc-intro-inner { grid-template-columns: 1fr; } }

/* the frame around the stage: fine hairline, glass fill, small corner crosses */
.stage-frame { position: relative; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr);
  padding: clamp(14px, 2.2vh, 24px) clamp(14px, 2vw, 28px) 34px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.story:not(.is-scrolly) .stage-frame { height: 640px; }
.story:not(.is-scrolly) .lux-stage { height: auto; }

/* tools dock: a slim glass bar sitting on the frame's bottom edge */
.dock { position: absolute; left: 50%; bottom: 0; z-index: 5; transform: translate(-50%, 50%); display: flex; align-items: center; gap: 4px;
  max-width: calc(100% - 32px); padding: 5px 5px 5px 16px; border-radius: 999px;
  background: rgba(13, 13, 52, .88); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -18px rgba(4, 4, 24, .9);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.dock-label { margin: 0 8px 0 0; padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, .14); white-space: nowrap;
  font-size: .64rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--w-3); }
.dock-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.dock-list li { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; white-space: nowrap;
  font-size: .8rem; font-weight: 500; letter-spacing: -.005em; color: var(--w-2); cursor: default;
  transition: color .2s ease, background-color .2s ease; }
.dock-list li svg { flex: none; color: rgba(255, 255, 255, .55); transition: color .2s ease, filter .2s ease; }
.dock-list li::after { content: attr(data-type); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px);
  padding: 4px 9px; border-radius: 7px; background: #fff; color: var(--navy); font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; box-shadow: 0 10px 24px -10px rgba(4, 4, 24, .8); }
.dock-list li:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.dock-list li:hover svg { color: var(--accent); filter: drop-shadow(0 0 5px rgba(249, 134, 19, .85)); }
.dock-list li:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* the four service pillars: a hairline on top that lights orange for the current part of the story */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 36px); }
.pillar { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; padding-top: 18px;
  border-top: 1px solid var(--w-line); color: #fff; text-decoration: none; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left center;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), background-color .3s ease, box-shadow .3s ease; }
.pillar.is-done::before { transform: scaleX(1); background: rgba(255, 255, 255, .55); }
.pillar.is-on::before { transform: scaleX(1); background: var(--accent); box-shadow: 0 0 12px rgba(249, 134, 19, .7); }
.pillar .ico-tile { width: 38px; height: 38px; border-radius: 11px; margin: 0; background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background-color .3s ease, box-shadow .3s ease; }
.pillar .ico { width: 20px; height: 20px; }
.pillar-text { display: grid; gap: 6px; min-width: 0; }
.pillar-text b { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: #fff; }
.pillar-text span { font-size: .875rem; line-height: 1.5; color: var(--w-3); transition: color .3s ease; }
.pillar.is-on .ico-tile, .pillar:hover .ico-tile { background: rgba(249, 134, 19, .14); box-shadow: inset 0 0 0 1px rgba(249, 134, 19, .55), 0 0 18px -4px rgba(249, 134, 19, .55); }
.pillar.is-on .pillar-text span, .pillar:hover .pillar-text span { color: var(--w-2); }
.pillar-text b::after { content: "→"; display: inline-block; margin-left: .35em; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; }
.pillar:hover .pillar-text b::after, .pillar:focus-visible .pillar-text b::after { opacity: 1; transform: none; }
.story:not(.is-scrolly) .pillar::before { transform: scaleX(1); background: rgba(255, 255, 255, .55); }


/* phones and small tablets: compact 2 x 2 pillars (names only), the dock scrolls sideways */
@media (max-width: 859px) {
  .stage-frame { padding: 12px 12px 30px; border-radius: 18px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
  .pillar { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding-top: 12px; }
  .pillar .ico-tile { width: 30px; height: 30px; border-radius: 9px; }
  .pillar .ico { width: 17px; height: 17px; }
  .pillar-text span { display: none; }
  .pillar-text b { font-size: .8rem; line-height: 1.25; }
  .pillar-text b::after { display: none; }
  .dock { left: 12px; right: 12px; max-width: none; transform: translateY(50%); padding-left: 12px; }
  .dock-list { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .dock-list::-webkit-scrollbar { display: none; }
  .dock-list li { font-size: .74rem; padding: 5px 9px; }
  .dock-list li::after { display: none; }
}
@media (min-width: 600px) and (max-width: 859px) {
  .pillar-text b { font-size: .9rem; }
}

/* =====================================================================================
   Services page: start here, four pillars with their offers, after launch
   ===================================================================================== */
.jump { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: var(--fs-small); font-weight: 500; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.jump a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.svc-step { display: grid; gap: 14px; padding-block: clamp(28px, 4vw, 48px); }
.svc-step .svc { border-bottom: 1px solid var(--line); }
.svc-step + .pillar-block { margin-top: clamp(8px, 1.5vw, 16px); }
.svc .svc-name h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; }
.pillar-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 24px clamp(40px, 6vw, 96px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.pillar-block + .svc-step { border-top: 1px solid var(--line); margin-top: 0; }
.pillar-head { position: sticky; top: 96px; align-self: start; display: grid; gap: 14px; justify-items: start; }
.pillar-head .ico-tile { margin: 0; }
.pillar-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; }
.pillar-head p { margin: 0; color: var(--muted); max-width: 42ch; }
.pillar-offers { display: grid; }
.pillar-offers .svc { grid-template-columns: 1fr; gap: 12px; padding-block: 0 clamp(24px, 3vw, 36px); border-top: 0; }
.pillar-offers .svc + .svc { padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.pillar-offers .svc:last-child { border-bottom: 0; padding-bottom: 0; }
.pillar-offers .svc-top .ico-tile { display: none; }
.pillar-more { margin: 4px 0 0; }
@media (max-width: 859px) { .pillar-block { grid-template-columns: 1fr; } .pillar-head { position: static; } }

/* =====================================================================================
   Site-wide craft: architectural rails, reveals, pointer light, closing call
   ===================================================================================== */
/* two faint vertical rails just outside the content edge, with a small cross where each light
   section begins; they run through every light section and the footer */
:root { --rail: #ECECF3; --rail-x: max(16px, calc((100% - 1440px) / 2 + var(--gutter) - 32px)); }
main > .section:not(.navy), main > .intro, .site-footer { position: relative; }
main > .section:not(.navy)::before, main > .intro::before, .site-footer::before,
main > .section:not(.navy)::after, main > .intro::after, .site-footer::after {
  content: ""; position: absolute; top: -5px; bottom: 0; width: 11px; pointer-events: none;
  background: linear-gradient(var(--rail), var(--rail)) center 5px / 1px 100% no-repeat; }
main > .section:not(.navy)::before, main > .intro::before, .site-footer::before { left: calc(var(--rail-x) - 5px); }
main > .section:not(.navy)::after, main > .intro::after, .site-footer::after { right: calc(var(--rail-x) - 5px); }
main > .intro::before, main > .intro::after { top: 0; }
@media (max-width: 767px) { main > .section:not(.navy)::before, main > .intro::before, .site-footer::before,
  main > .section:not(.navy)::after, main > .intro::after, .site-footer::after { display: none; } }

/* sections fade up as they arrive (only with JavaScript and full motion) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* pointer light on dark cards, and a slight tilt on sample dashboards */
.case-teaser { --mx: 50%; --my: 50%; }
.case-teaser::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 60%); }
.case-teaser:hover::after { opacity: 1; }
.work { perspective: 1000px; }
.work .frame { --rx: 0deg; --ry: 0deg; transform-style: preserve-3d; }
.work:hover .frame { transform: translateY(-4px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* captions read like figure labels: monospace with a small orange mark */
.caption { display: flex; align-items: center; gap: 8px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .72rem; letter-spacing: .02em; }
.caption::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--accent); }
.hero .caption { justify-content: center; }

/* closing call: left-aligned, with the Prism's light lanes glowing in on the right */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-art { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: min(62%, 900px); pointer-events: none;
  background: url("hero/prism-hero-1500.webp") 30% 50% / cover no-repeat; mix-blend-mode: lighten; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); mask-composite: intersect; }
.cta-band .cta { text-align: left; justify-items: start; max-width: var(--content); }
.cta-band .cta h2 { max-width: 14ch; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.8rem); line-height: 1.02; letter-spacing: -.04em; }
.cta-band .cta .lead { max-width: 40ch; }
.cta-band .cta .actions { justify-content: flex-start; }
@media (max-width: 859px) { .cta-art { width: 100%; opacity: .35; } }

/* Request form (contact page) */
.req-split { align-items: start; }
.req-split .req-form { display: grid; gap: 1.1rem; }
.req-form label { display: grid; gap: .4rem; color: var(--ink); font-weight: 500; font-size: var(--fs-small); }
.req-form .opt { color: var(--muted); font-weight: 400; }
.req-form input, .req-form select, .req-form textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; min-height: 48px; }
.req-form textarea { resize: vertical; min-height: 160px; }
.req-form input:focus-visible, .req-form select:focus-visible, .req-form textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.req-form [aria-invalid="true"] { border-color: #B3261E; }
.req-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .req-row { grid-template-columns: 1fr; } }
.req-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.req-note, .req-small { font-size: var(--fs-small); color: var(--muted); }
.req-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.req-actions button { cursor: pointer; }
.req-actions button[disabled] { opacity: .6; cursor: progress; }
.req-status { color: #B3261E; font-size: var(--fs-small); }
.req-done { padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--bg-soft); color: var(--ink); }
.contact-card .h3 { font-size: 1.5rem; }
.req-form [hidden], .req-done[hidden] { display: none !important; }
.req-form h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
