/* Approved AdeptDEV visual system: compact product-interface composition. */
:root {
  --surface-primary: #061317;
  --surface-secondary: #091a20;
  --surface-elevated: #0d222a;
  --surface-muted: #102a33;
  --text-primary: #f4f9fa;
  --text-secondary: #9eb2bb;
  --text-muted: #67808b;
  --accent: #087df7;
  --accent-hover: #2d98ff;
  --accent-strong: #0068d6;
  --border: rgba(171, 207, 218, .14);
  --border-strong: rgba(116, 191, 225, .31);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --container: min(1320px, calc(100vw - 44px));
}

body { background: #061317; }
.section { padding: clamp(3.5rem, 6.5vw, 6.75rem) 0; }
.site-header { border-bottom-color: rgba(177, 219, 230, .08); background: rgba(4, 17, 21, .92); }
.site-header.is-scrolled { background: rgba(4, 17, 21, .98); }
.header-inner { min-height: 62px; gap: 1.1rem; }
.brand { font-size: .98rem; letter-spacing: -.065em; }
.brand img { width: 38px; height: 25px; }
.desktop-nav { gap: clamp(.65rem, 1.3vw, 1.08rem); font-size: .65rem; }
.desktop-nav a { padding: .4rem 0; }
.header-actions { gap: .18rem; }
.header-actions .button { min-height: 34px; border-radius: 5px; padding: .42rem .62rem; font-size: .64rem; }
.header-actions .button svg { width: .9rem; height: .9rem; }
.language-switcher { border: 0; border-radius: 0; padding: 0; }
.language-switcher a { min-width: 1.45rem; padding: .2rem; font-size: .56rem; }
.icon-button { width: 34px; height: 34px; border-radius: 5px; }

/* Home: the compact hero, visible work strip and systems proof belong together. */
.home-reference { position: relative; overflow: hidden; min-height: calc(100svh - 62px); background: radial-gradient(circle at 76% 12%, rgba(12, 112, 162, .2), transparent 30%), linear-gradient(125deg, #041317 0%, #06171c 61%, #031014 100%); }
.home-reference::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(159, 214, 231, .045) 1px, transparent 1px), linear-gradient(rgba(159, 214, 231, .042) 1px, transparent 1px); background-size: 38px 38px; content: ""; opacity: .55; mask-image: linear-gradient(to bottom, black 0 72%, transparent 100%); }
.home-reference::after { position: absolute; top: -25vw; right: -17vw; width: min(72vw, 900px); aspect-ratio: 1; border: 1px solid rgba(51, 165, 220, .18); border-radius: 50%; box-shadow: 0 0 0 88px rgba(27, 138, 189, .025), 0 0 0 176px rgba(27, 138, 189, .015); content: ""; }
.home-reference__grid { position: absolute; z-index: 0; top: 5%; right: 8%; width: 38vw; max-width: 580px; height: 24vw; max-height: 350px; border: 1px solid rgba(69, 167, 205, .17); transform: rotate(-10deg) skewY(-6deg); opacity: .55; }
.home-reference__shell { position: relative; z-index: 1; padding-top: clamp(2.15rem, 5vw, 4.4rem); }
.home-reference__hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(292px, .72fr); align-items: center; gap: clamp(1.7rem, 6vw, 7rem); }
.home-reference__copy { max-width: 610px; }
.home-reference__copy h1 { margin: 1.05rem 0 .85rem; font-size: clamp(3.05rem, 6.2vw, 6.35rem); font-weight: 760; line-height: .84; letter-spacing: -.095em; }
.home-reference__copy h1 span { display: block; }
.home-reference__subtitle { max-width: 18rem; margin: 0; font-size: clamp(1rem, 1.35vw, 1.22rem); font-weight: 650; line-height: 1.22; }
.home-reference__capabilities { margin: .42rem 0 1.25rem; color: #aac0c8; font-size: .69rem; }
.home-reference__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.home-reference__actions .button { min-height: 40px; border-radius: 5px; padding: .55rem .76rem; font-size: .7rem; }
.home-reference__actions .button--secondary { border-color: rgba(173, 213, 226, .32); color: #d3e4e9; }
.home-reference__control { width: min(100%, 380px); justify-self: end; border-radius: 8px; box-shadow: 0 22px 54px rgba(0, 0, 0, .36); }
.home-reference__control::after { width: 50%; }
.control-card__header { min-height: 43px; padding: .62rem .74rem; }
.control-card__close { display: grid; width: 22px; height: 22px; place-items: center; color: #78929b; font-size: 1rem; line-height: 1; }
.control-card__section { padding: .72rem .78rem; }
.control-card__section > p { margin-bottom: .48rem; font-size: .53rem; }
.control-project { grid-template-columns: 22px 1fr auto; gap: .45rem; padding: .41rem 0; }
.control-project__mark { width: 21px; height: 21px; border-radius: 5px; font-size: .72rem; }
.control-project strong { font-size: .62rem; letter-spacing: -.02em; }
.control-project small { font-size: .52rem; }
.state-label { padding: .14rem .32rem; font-size: .47rem; }
.control-card__systems > span { grid-template-columns: 6px 1fr auto; gap: .32rem; padding: .17rem 0; font-size: .56rem; }
.control-card__systems i { width: 5px; height: 5px; }
.control-card__systems b { font-size: .46rem; }
.home-reference__selected { margin-top: clamp(2.4rem, 6vw, 5.25rem); }
.home-reference__section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.home-reference__section-head .text-link { font-size: .64rem; }
.home-reference__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .58rem; }
.home-work-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid rgba(176, 216, 226, .12); border-radius: 5px; background: #0b1b20; transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out); }
.home-work-card:hover { transform: translateY(-3px); border-color: rgba(38, 151, 247, .7); }
.home-work-card img { width: 100%; aspect-ratio: 1.62; object-fit: cover; filter: saturate(.88) contrast(1.04); }
.home-work-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 53%; background: linear-gradient(transparent, rgba(2, 12, 15, .84)); content: ""; }
.home-work-card__title, .home-work-card small { position: absolute; z-index: 1; left: .5rem; }
.home-work-card__title { bottom: 1.08rem; font-size: .61rem; font-weight: 800; }
.home-work-card small { bottom: .43rem; overflow: hidden; max-width: calc(100% - 1rem); color: #a7c1c9; font-size: .46rem; text-overflow: ellipsis; white-space: nowrap; }
.home-reference__build { position: relative; display: grid; grid-template-columns: minmax(0, .84fr) minmax(280px, .7fr); gap: 1.2rem; min-height: 305px; margin-top: 1.35rem; overflow: hidden; border-top: 1px solid rgba(165, 215, 230, .15); padding: clamp(1.3rem, 3vw, 2.6rem) 0 0; }
.home-reference__build-copy { position: relative; z-index: 2; max-width: 495px; }
.home-reference__build h2 { max-width: 12ch; margin: .7rem 0 .55rem; font-size: clamp(1.85rem, 3.25vw, 3.45rem); line-height: .94; letter-spacing: -.08em; }
.home-reference__build-copy > p:last-of-type { max-width: 32rem; margin: 0; color: #a6bbc3; font-size: .71rem; }
.home-reference__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1.45rem 0 0; }
.home-reference__facts div { border-right: 1px solid rgba(173, 211, 222, .16); }
.home-reference__facts div:last-child { border-right: 0; }
.home-reference__facts dt { font-size: 1.4rem; font-weight: 750; letter-spacing: -.08em; }
.home-reference__facts dd { margin: 0; color: #84a1ac; font-size: .53rem; }
.home-reference__globe { position: absolute; right: -5%; bottom: -82%; width: min(58vw, 690px); aspect-ratio: 1; border: 1px solid rgba(75, 171, 222, .35); border-radius: 50%; background: radial-gradient(circle at 36% 28%, rgba(93, 188, 244, .52) 0 1%, transparent 2% 100%), repeating-radial-gradient(ellipse at 47% 48%, transparent 0 6.8%, rgba(142, 212, 242, .16) 7% 7.25%, transparent 7.45% 11%), radial-gradient(circle at 44% 31%, #1d4660 0%, #0b2635 25%, #041319 66%, #010709 100%); box-shadow: inset -74px -44px 95px rgba(0, 0, 0, .74), 0 0 65px rgba(12, 133, 213, .22); }
.home-reference__globe::after { position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(90deg, transparent 0 32px, rgba(164, 226, 249, .07) 33px 34px); content: ""; mix-blend-mode: screen; }
.home-reference__globe div { position: absolute; inset: -6%; border: 1px solid rgba(101, 190, 232, .28); border-radius: 50%; transform: rotateX(68deg); }
.home-reference__build-action { position: relative; z-index: 2; align-self: end; justify-self: end; display: grid; justify-items: end; gap: .65rem; max-width: 190px; padding-bottom: 1rem; color: #c3d5da; font-size: .65rem; text-align: right; }
.home-reference__build-action .button { min-height: 34px; border-radius: 5px; font-size: .6rem; }
.home-products-reference { border-top: 1px solid rgba(171, 213, 225, .1); background: #07181d; }
.home-products-reference__inner { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr); align-items: start; gap: 2rem; padding: 4rem 0; }
.home-products-reference h2 { max-width: 13ch; margin: .7rem 0 0; font-size: clamp(1.8rem, 3vw, 3.1rem); line-height: .95; letter-spacing: -.08em; }
.home-products-reference__rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.home-products-reference__rail > a { display: grid; min-height: 148px; align-content: start; gap: .45rem; border: 1px solid rgba(177, 218, 228, .13); border-radius: 6px; padding: .75rem; background: rgba(6, 23, 29, .52); transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.home-products-reference__rail > a:hover { transform: translateY(-3px); border-color: rgba(46, 153, 255, .8); }
.home-products-reference__rail .icon-tile { width: 31px; height: 31px; border-radius: 5px; }
.home-products-reference__rail strong { font-size: .64rem; }
.home-products-reference__rail small { color: #90aab4; font-size: .53rem; line-height: 1.35; }
.home-products-reference__rail > a > svg { align-self: end; width: .9rem; height: .9rem; color: var(--accent-hover); }

/* Work: editorial header over a useful white card grid. */
.reference-work { position: relative; overflow: hidden; min-height: calc(100svh - 62px); padding: clamp(2.3rem, 5vw, 4.25rem) 0 4.8rem; background: #061418; }
.reference-work__glow { position: absolute; top: -12rem; right: -16rem; width: 38rem; height: 38rem; border: 1px solid rgba(56, 167, 222, .2); border-radius: 50%; box-shadow: 0 0 0 90px rgba(20, 119, 169, .025); }
.reference-work__shell { position: relative; z-index: 1; }
.reference-work__head { max-width: 450px; }
.reference-work__head h1 { margin: .65rem 0 .24rem; font-size: clamp(2.4rem, 5vw, 4.9rem); line-height: .91; letter-spacing: -.09em; }
.reference-work__head > p:last-child { margin: 0; color: #a3b9c0; font-size: .84rem; }
.reference-work__filters { display: flex; flex-wrap: wrap; gap: .38rem; margin: 1.35rem 0 1rem; }
.reference-work__filters a { border: 1px solid rgba(160, 205, 218, .24); border-radius: 4px; padding: .42rem .66rem; color: #acc4cc; font-size: .59rem; }
.reference-work__filters a[aria-current="true"], .reference-work__filters a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.reference-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.reference-work .project-card { border: 0; border-radius: 5px; background: #f7f9f9; color: #102127; box-shadow: 0 15px 33px rgba(0, 0, 0, .16); }
.reference-work .project-card:hover { border-color: transparent; box-shadow: 0 20px 42px rgba(0, 0, 0, .25); }
.reference-work .project-card__media { aspect-ratio: 1.76; background: #e2e8e9; }
.reference-work .project-card__scrim { display: none; }
.reference-work .project-card__status { top: auto; right: .55rem; bottom: .5rem; left: auto; border: 0; padding: 0; background: transparent; color: #186b72; font-size: .5rem; backdrop-filter: none; }
.reference-work .project-card__status::before { display: inline-block; width: 5px; height: 5px; margin-right: .25rem; border-radius: 50%; background: currentColor; content: ""; vertical-align: 1px; }
.reference-work .project-card__status--live { color: #1ba96f; }
.reference-work .project-card__body { align-items: flex-start; min-height: 81px; padding: .65rem .72rem .72rem; }
.reference-work .project-card__category { margin: 0; color: #657981; font-size: .48rem; letter-spacing: .03em; }
.reference-work .project-card h3 { margin: .16rem 0 0; font-size: 1.05rem; line-height: 1; }
.reference-work .project-card__body p:not(.project-card__category) { display: none; }
.reference-work .project-card__link { align-self: end; color: #143a49; font-size: .54rem; }
.reference-work__empty { margin-top: 1rem; }

/* The service and product screens retain actual content but follow the approved dense, dark product shell. */
.page--services .page-hero, .page--products .page-hero, .page--lab .page-hero, .page--process .page-hero { padding: clamp(2.7rem, 5.5vw, 4.75rem) 0 1.9rem; background: #061418; }
.page--services .page-hero h1, .page--products .page-hero h1, .page--lab .page-hero h1, .page--process .page-hero h1 { font-size: clamp(2.4rem, 4.7vw, 4.75rem); }
.page--services .service-row { border-radius: 5px; }
.page--service .service-hero, .page--product .product-hero { padding: clamp(2.4rem, 5vw, 4.6rem) 0 2.8rem; background: radial-gradient(circle at 80% 20%, rgba(23, 139, 214, .16), transparent 25%), #061418; }
.page--service .service-hero h1, .page--product .product-hero h1 { max-width: 10ch; font-size: clamp(2.5rem, 5.4vw, 5.6rem); }
.page--service .service-system-card, .page--product .product-hero__visual { border-radius: 7px; box-shadow: 0 18px 44px rgba(0, 0, 0, .24); }
.page--service .section--light, .page--product .section--light { background: #f7f9f9; }
.page--service .section--light .eyebrow, .page--product .section--light .eyebrow { color: #5a7180; }
.page--service .section--light .eyebrow > span, .page--product .section--light .eyebrow > span { box-shadow: inset 0 0 0 3px #f7f9f9; }
.page--service .section--light h2, .page--product .section--light h2 { letter-spacing: -.08em; }
.page--service .check-list li, .page--product .check-list li { font-size: .76rem; }
.page--service .home-project-grid { gap: .7rem; }
.page--service .project-card { border-radius: 5px; }
.page--product .product-hero__visual { min-height: 330px; }
.page--product .product-cube { border-radius: 18px; }
.page--product .intelligence-demo { border-radius: 8px; }

/* Case study uses a dark stage around a white research sheet. */
.reference-case-stage { background: #051419; }
.reference-case-stage .case-hero { padding: clamp(2rem, 4.5vw, 4rem) 0 1.5rem; background: radial-gradient(circle at 76% 15%, rgba(17, 130, 198, .16), transparent 28%), #061418; }
.reference-case-stage .case-hero__grid { grid-template-columns: .82fr 1.18fr; gap: clamp(1.5rem, 4vw, 4rem); }
.reference-case-stage .case-hero h1 { font-size: clamp(2.55rem, 5.4vw, 5.8rem); }
.reference-case-stage .case-hero__media { border-radius: 5px; }
.reference-case-stage .case-hero__media img { height: min(38vw, 460px); }
.reference-case-stage .case-content { margin: 0 auto; padding: 0; background: #f7f9fa; color: #102229; }
.reference-case-stage .case-content__layout { width: min(1170px, calc(100vw - 44px)); padding: clamp(1.2rem, 3vw, 2.5rem) 0 clamp(2.7rem, 5vw, 4.8rem); }
.reference-case-stage .case-toc { top: 1rem; }
.reference-case-stage .case-toc a { color: #647a84; font-size: .61rem; }
.reference-case-stage .case-copy-grid { border-top-color: #dce5e8; padding: 1.15rem 0; }
.reference-case-stage .case-copy-grid > div span { color: var(--accent-strong); }
.reference-case-stage .case-copy-grid h2 { font-size: 1.15rem; }
.reference-case-stage .case-copy-grid > p { color: #55707a; font-size: .78rem; }
.reference-case-stage .architecture-flow span { border-color: #ccdce1; background: #fff; color: #274c59; font-size: .62rem; }
.reference-case-stage .case-screens__device { border-radius: 6px; border-color: #cddce1; }
.reference-case-stage .case-feature, .reference-case-stage .case-technology { border-radius: 6px; }
.reference-case-stage .section--dark { background: #061418; }
.reference-case-stage .home-project-grid { gap: .7rem; }
.reference-case-stage .project-card { border-radius: 5px; }

/* Light sheets: Project Builder, pricing, legal and editorial pages. */
.page--light { background: #f7f9fa; color: #102229; }
.page--light .site-header { border-bottom-color: #dce5e8; background: rgba(249, 251, 251, .94); color: #102229; }
.page--light .desktop-nav, .page--light .language-switcher a, .page--light .button--quiet { color: #5d717b; }
.page--light .header-actions .button--primary { box-shadow: none; }
.page--light .site-footer { background: #061418; color: var(--text-primary); }
.page--builder .builder-page { padding: clamp(1.4rem, 3.5vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.page--builder .builder-shell { max-width: 1190px; }
.page--builder .builder-header { max-width: 520px; }
.page--builder .builder-header h1 { margin: .55rem 0 .3rem; font-size: clamp(2.25rem, 4.6vw, 4.85rem); }
.page--builder .project-builder { margin-top: 1.45rem; border-radius: 7px; padding: clamp(1rem, 2.5vw, 1.8rem); box-shadow: 0 18px 44px rgba(27, 55, 65, .08); }
.page--builder .builder-progress { gap: .55rem; margin-bottom: 1.5rem; }
.page--builder .builder-progress li { font-size: .48rem; }
.page--builder .builder-progress span { width: 31px; height: 31px; }
.page--builder .builder-step { min-height: 290px; }
.page--builder .builder-step h2 { font-size: clamp(1.45rem, 2.4vw, 2.25rem); }
.page--builder .option-grid--icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; max-width: 880px; }
.page--builder .choice-card { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: center; min-height: 74px; gap: .6rem; border-radius: 5px; padding: .66rem .72rem; }
.page--builder .choice-card .icon-tile { grid-row: 1 / span 2; }
.page--builder .choice-card strong { font-size: .68rem; }
.page--builder .choice-card__copy { display: grid; gap: .13rem; }
.page--builder .choice-card__copy small { color: #7c919a; font-size: .55rem; line-height: 1.25; }
.page--builder .builder-actions { margin-top: 1.1rem; }
.page--pricing .page-hero, .page--about .page-hero, .page--insights .page-hero { padding: clamp(2.4rem, 5vw, 4.5rem) 0 1.6rem; }
.page--pricing .pricing-card { border-radius: 6px; }
.page--about .about-quote { background: #061418; }
.page--insights .insight-card { border-radius: 6px; }
.page--privacy .legal-layout, .page--cookies .legal-layout { max-width: 900px; }

/* CMS and client portal get the same compact app-shell treatment as the reference. */
.admin-body, .client-body { background: #061418; }
.admin-shell { grid-template-columns: 206px minmax(0, 1fr); }
.admin-sidebar { border-right-color: rgba(168, 211, 223, .13); padding: .95rem .72rem; background: #07181d; }
.admin-sidebar .brand { padding: 0 .28rem; }
.admin-sidebar > p { margin: 1.45rem .28rem .45rem; font-size: .52rem; }
.admin-sidebar nav { gap: .08rem; }
.admin-sidebar nav a { position: relative; border-radius: 4px; padding: .48rem .55rem .48rem 1.22rem; font-size: .65rem; }
.admin-sidebar nav a::before { position: absolute; top: 50%; left: .48rem; width: 5px; height: 5px; transform: translateY(-50%); border: 1px solid #4c7d90; border-radius: 1px; content: ""; }
.admin-sidebar nav a:first-child, .admin-sidebar nav a:hover { background: rgba(17, 48, 59, .8); color: #eff9fb; }
.admin-sidebar nav a:first-child::before { border-color: var(--accent); background: var(--accent); }
.admin-topbar { min-height: 64px; padding: .75rem clamp(1rem, 2.4vw, 2rem); }
.admin-topbar h1 { font-size: .96rem; }
.admin-user { border-radius: 4px; padding: .32rem .5rem; font-size: .61rem; }
.admin-dashboard, .admin-resource { padding: clamp(1rem, 2.5vw, 2rem); }
.admin-title h2, .admin-resource h2 { margin: .22rem 0 1rem; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.admin-stats article { border-radius: 5px; padding: .8rem; background: #0a2027; }
.admin-stats strong { font-size: 1.4rem; }
.admin-dashboard__grid { gap: .5rem; margin-top: .5rem; }
.admin-panel { border-radius: 5px; padding: .8rem; background: #0a2027; }
.admin-actions a { min-height: 78px; border-radius: 5px; }
.portal-header { min-height: 62px; padding: 0 max(4vw, 1rem); background: #07181d; }
.portal-main { width: min(1180px, calc(100vw - 44px)); padding: clamp(1.5rem, 3.5vw, 3rem) 0; }
.portal-dashboard h1, .portal-project h1 { margin: .4rem 0 1.1rem; font-size: clamp(2rem, 3.9vw, 3.8rem); }
.portal-project-card, .portal-panel, .portal-summary article { border-radius: 5px; background: #0a2027; }
.portal-project-card { padding: .9rem; }
.portal-project-card h2 { font-size: 1.05rem; }
.portal-progress strong { font-size: 2rem; }
.client-shell { display: grid; min-height: 100svh; grid-template-columns: 206px minmax(0, 1fr); }
.client-sidebar { position: sticky; top: 0; display: flex; height: 100svh; flex-direction: column; border-right: 1px solid rgba(168, 211, 223, .13); padding: .95rem .72rem; background: #07181d; }
.client-sidebar .brand { padding: 0 .28rem; }
.client-sidebar > p { margin: 1.45rem .28rem .45rem; color: var(--text-muted); font-family: var(--font-mono); font-size: .52rem; letter-spacing: .08em; }
.client-sidebar nav { display: grid; gap: .08rem; }
.client-sidebar nav > a, .client-nav-disabled { display: flex; align-items: center; gap: .5rem; border-radius: 4px; padding: .48rem .55rem; color: #a2bac2; font-size: .65rem; }
.client-sidebar nav > a:hover, .client-sidebar nav > a:first-child { background: rgba(17, 48, 59, .8); color: #eff9fb; }
.client-sidebar nav svg { width: .82rem; height: .82rem; color: #62a8c5; }
.client-nav-disabled { color: #607a84; }
.client-sidebar form { margin-top: auto; padding: 0 .28rem; }
.client-sidebar .text-button { color: #9cb4bd; font-size: .63rem; }
.client-main { min-width: 0; }
.client-topbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding: .75rem clamp(1rem, 2.4vw, 2rem); color: #9db6bf; font-size: .67rem; }
.client-topbar__state { border: 1px solid rgba(29, 190, 130, .42); border-radius: 4px; padding: .27rem .48rem; color: #38d59a; font-family: var(--font-mono); font-size: .53rem; }

@media (max-width: 920px) {
  .home-reference__hero { grid-template-columns: 1fr; }
  .home-reference__control { justify-self: start; width: min(100%, 430px); }
  .home-reference__build { grid-template-columns: 1fr; min-height: 360px; }
  .home-reference__build-action { justify-self: start; justify-items: start; text-align: left; }
  .home-reference__globe { right: -15%; bottom: -68%; width: min(90vw, 650px); }
  .home-products-reference__inner { grid-template-columns: 1fr; }
  .reference-work__grid { grid-template-columns: 1fr; }
  .reference-case-stage .case-content__layout { width: var(--container); }
  .admin-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .client-shell { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 28px, 1320px); }
  .site-header .desktop-nav, .site-header .language-switcher, .site-header .search-button { display: none; }
  .site-header .mobile-menu-button { display: inline-grid; }
  .header-inner { min-height: 56px; }
  .home-reference__shell { padding-top: 1.6rem; }
  .home-reference__copy h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .home-reference__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-reference__build { min-height: 390px; }
  .home-reference__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .home-reference__facts div:nth-child(2) { border-right: 0; }
  .home-reference__facts div:nth-child(-n+2) { border-bottom: 1px solid rgba(173, 211, 222, .16); padding-bottom: .45rem; }
  .home-products-reference__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-work { padding-top: 1.6rem; }
  .reference-work__head h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .reference-work .project-card__media { aspect-ratio: 1.52; }
  .page--builder .option-grid--icons { grid-template-columns: 1fr; }
  .page--builder .builder-progress { grid-template-columns: repeat(4, 1fr); }
  .page--builder .builder-progress small { display: none; }
  .page--builder .builder-progress li:nth-child(4)::before { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .admin-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-sidebar > p, .admin-sidebar form { display: none; }
  .admin-sidebar nav a { padding: .44rem .3rem .44rem .95rem; font-size: .56rem; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-shell { grid-template-columns: 1fr; }
  .client-sidebar { position: relative; height: auto; min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .client-sidebar > p, .client-sidebar form { display: none; }
  .client-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-sidebar nav > a, .client-nav-disabled { padding: .43rem .24rem; font-size: .55rem; }
  .client-sidebar nav svg { display: none; }
  .portal-summary, .portal-columns { grid-template-columns: 1fr; }
}

/* Home cinematic pass: keep the real content, replace the static template feeling. */
.page--home .home-reference {
  --pointer-x: 69%;
  --pointer-y: 23%;
  min-height: 0;
  isolation: isolate;
  background:
    radial-gradient(52rem 34rem at var(--pointer-x) var(--pointer-y), rgba(17, 124, 200, .17), transparent 67%),
    radial-gradient(30rem 25rem at 12% 85%, rgba(0, 130, 216, .12), transparent 68%),
    linear-gradient(135deg, #020e12 0%, #061a20 55%, #030e13 100%);
}
.page--home .home-reference::before { opacity: .75; background-size: 44px 44px; mask-image: linear-gradient(to bottom, black 0 86%, transparent 100%); }
.page--home .home-reference::after { top: -19rem; right: -13rem; width: min(58vw, 790px); border-color: rgba(66, 169, 232, .15); box-shadow: 0 0 0 90px rgba(35, 143, 198, .026), 0 0 0 181px rgba(35, 143, 198, .018), 0 0 100px rgba(0, 110, 206, .12); animation: home-orbit-drift 20s ease-in-out infinite alternate; }
.page--home .home-reference__grid { top: 8%; right: 7%; width: min(40vw, 620px); height: min(26vw, 390px); border-color: rgba(74, 170, 213, .2); opacity: .7; animation: home-grid-float 16s ease-in-out infinite alternate; }
.home-reference__spotlight { position: absolute; z-index: 0; inset: 0; pointer-events: none; background: radial-gradient(24rem circle at var(--pointer-x) var(--pointer-y), rgba(89, 183, 242, .07), transparent 74%); mix-blend-mode: screen; transition: background-position 150ms linear; }
.home-world-canvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .98; }
.page--home .home-reference__shell { z-index: 2; padding-top: clamp(2.15rem, 4.4vw, 4.15rem); padding-bottom: clamp(2.4rem, 5vw, 5rem); }
.page--home .home-reference__hero { position: relative; min-height: min(38vw, 520px); grid-template-columns: minmax(0, 1.04fr) minmax(302px, .63fr); gap: clamp(1.9rem, 7.1vw, 9rem); }
.page--home .home-reference__copy { position: relative; z-index: 2; }
.page--home .home-reference__copy h1 { max-width: 8.75ch; margin-top: .92rem; margin-bottom: 1rem; font-size: clamp(3.3rem, 6.85vw, 7.25rem); font-weight: 720; line-height: .79; letter-spacing: -.105em; text-shadow: 0 0 44px rgba(122, 213, 255, .055); }
.page--home .home-reference__copy h1 .text-accent { text-shadow: 0 0 35px rgba(30, 132, 255, .34); }
.page--home .home-reference__subtitle { max-width: 21rem; font-size: clamp(1rem, 1.18vw, 1.18rem); }
.page--home .home-reference__capabilities { margin-top: .48rem; margin-bottom: 1.35rem; color: #90b0bb; font-family: var(--font-mono); font-size: .63rem; letter-spacing: .015em; }
.page--home .home-reference__actions .button { position: relative; overflow: hidden; transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.page--home .home-reference__actions .button--primary { box-shadow: 0 12px 28px rgba(0, 113, 255, .22), inset 0 1px rgba(255, 255, 255, .14); }
.page--home .home-reference__actions .button--primary::after { position: absolute; top: -130%; left: -42%; width: 38%; height: 320%; transform: rotate(25deg); background: rgba(255, 255, 255, .18); content: ""; transition: left 500ms var(--ease-out); }
.page--home .home-reference__actions .button--primary:hover::after { left: 125%; }
.page--home .home-reference__actions .button:hover { box-shadow: 0 16px 32px rgba(0, 113, 255, .32); }
.page--home [data-magnetic] { transform: translate3d(var(--magnetic-x, 0), var(--magnetic-y, 0), 0); }
.page--home .home-reference__control { position: relative; overflow: hidden; border-color: rgba(101, 185, 228, .34); background: linear-gradient(145deg, rgba(10, 31, 40, .94), rgba(4, 19, 25, .94)); box-shadow: 0 32px 80px rgba(0, 0, 0, .42), 0 0 0 1px rgba(13, 114, 174, .05), inset 0 1px rgba(229, 251, 255, .045); transform: perspective(1000px) rotateX(var(--panel-rx, 0deg)) rotateY(var(--panel-ry, 0deg)) translate3d(0, var(--panel-y, 0), 0); transition: transform 170ms ease-out, border-color 280ms var(--ease-out), box-shadow 280ms var(--ease-out); }
.page--home .home-reference__control::before { position: absolute; z-index: 0; top: -55%; left: -18%; width: 42%; height: 220%; transform: rotate(22deg); background: linear-gradient(90deg, transparent, rgba(113, 206, 255, .08), transparent); content: ""; animation: home-panel-scan 8s ease-in-out infinite; pointer-events: none; }
.page--home .home-reference__control > * { position: relative; z-index: 1; }
.page--home .home-reference__control:hover { border-color: rgba(64, 169, 246, .63); box-shadow: 0 38px 90px rgba(0, 0, 0, .47), 0 0 48px rgba(0, 126, 244, .13); }
.page--home .control-project { position: relative; transition: background 280ms var(--ease-out), padding 280ms var(--ease-out), margin 280ms var(--ease-out); }
.page--home .control-project.is-active { margin-right: -.2rem; margin-left: -.2rem; border-top-color: transparent; border-radius: 5px; padding-right: .22rem; padding-left: .22rem; background: linear-gradient(90deg, rgba(13, 105, 178, .21), rgba(12, 53, 71, .02)); }
.page--home .control-project__mark { color: #65bcff; }
.page--home .control-project__mark svg { width: .72rem; height: .72rem; }
.page--home .state-label--live { animation: home-live-pulse 2.6s ease-in-out infinite; }
.page--home .home-reference__selected { position: relative; z-index: 2; margin-top: clamp(.4rem, 1.5vw, 1.25rem); padding-top: .6rem; }
.page--home .home-reference__section-head { margin-bottom: .66rem; }
.page--home .home-reference__cards { gap: .7rem; }
.page--home .home-work-card { border-color: rgba(139, 204, 225, .2); border-radius: 6px; background: #07191f; box-shadow: 0 11px 26px rgba(0, 0, 0, .18); transform: perspective(980px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) translate3d(0, var(--card-y, 0), 0); transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.page--home .home-work-card:hover { border-color: rgba(47, 166, 255, .84); box-shadow: 0 22px 42px rgba(0, 0, 0, .33), 0 0 27px rgba(16, 134, 238, .15); }
.page--home .home-work-card::before { position: absolute; z-index: 2; top: -150%; left: -60%; width: 33%; height: 340%; transform: rotate(20deg); background: linear-gradient(90deg, transparent, rgba(215, 248, 255, .2), transparent); content: ""; transition: left 700ms var(--ease-out); pointer-events: none; }
.page--home .home-work-card:hover::before { left: 132%; }
.page--home .home-work-card img { filter: saturate(.92) contrast(1.06) brightness(.91); transition: filter 350ms var(--ease-out), transform 550ms var(--ease-out); }
.page--home .home-work-card:hover img { filter: saturate(1.02) contrast(1.06) brightness(1); transform: scale(1.045); }
.page--home .home-reference__build { z-index: 2; min-height: 0; grid-template-columns: minmax(0, .9fr) minmax(245px, .52fr) minmax(150px, .28fr); align-items: end; gap: clamp(1rem, 3vw, 3rem); margin-top: clamp(2.6rem, 6.5vw, 6.3rem); padding: clamp(1.6rem, 3.2vw, 3rem) 0 clamp(.8rem, 2vw, 1.7rem); border-top-color: rgba(137, 207, 231, .19); background: linear-gradient(90deg, rgba(3, 18, 23, .16), rgba(13, 75, 101, .08) 55%, transparent); }
.page--home .home-reference__build::before { position: absolute; z-index: -1; inset: 0 -6vw; background: radial-gradient(32rem 14rem at 59% 110%, rgba(0, 116, 198, .13), transparent 70%); content: ""; }
.page--home .home-reference__build h2 { max-width: 13ch; font-size: clamp(2rem, 3.55vw, 3.75rem); }
.page--home .home-reference__facts { max-width: 430px; }
.page--home .home-reference__globe { display: none; }
.home-reference__systems-board { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem; align-self: stretch; align-content: center; min-height: 152px; border: 1px solid rgba(86, 171, 214, .24); border-radius: 7px; padding: .68rem; background: linear-gradient(145deg, rgba(11, 41, 54, .78), rgba(3, 18, 24, .72)); box-shadow: inset 0 1px rgba(227, 250, 255, .035), 0 17px 35px rgba(0, 0, 0, .14); overflow: hidden; }
.home-reference__systems-board::before, .home-reference__systems-board::after { position: absolute; content: ""; pointer-events: none; }
.home-reference__systems-board::before { inset: 12%; border: 1px solid rgba(84, 190, 242, .12); border-radius: 50%; box-shadow: 0 0 0 21px rgba(84, 190, 242, .035), 0 0 0 43px rgba(84, 190, 242, .02); }
.home-reference__systems-board::after { top: 0; right: 20%; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(103, 208, 255, .48), transparent); animation: home-system-scan 5.5s linear infinite; }
.home-reference__systems-board > span:not(.systems-board__signal) { position: relative; z-index: 1; display: grid; min-height: 30px; place-items: center; border: 1px solid rgba(121, 194, 222, .17); border-radius: 4px; background: rgba(5, 25, 32, .65); color: #c5e1e8; font-family: var(--font-mono); font-size: .55rem; letter-spacing: .07em; }
.systems-board__signal { position: absolute; z-index: 2; top: 16%; left: 17%; width: 8px; height: 8px; border-radius: 50%; background: #54dbad; box-shadow: 0 0 0 4px rgba(84, 219, 173, .11), 0 0 19px rgba(84, 219, 173, .7); animation: home-signal 2.2s ease-in-out infinite; }
.page--home .home-reference__build-action { align-self: center; max-width: 160px; padding-bottom: 0; }
.page--home .home-reference__build-action .button { overflow: hidden; box-shadow: 0 10px 25px rgba(0, 113, 255, .2); }
.page--home .home-products-reference { position: relative; overflow: hidden; background: linear-gradient(135deg, #06171c, #041115); }
.page--home .home-products-reference::before { position: absolute; inset: 0; background: radial-gradient(38rem 18rem at 86% 5%, rgba(0, 122, 205, .11), transparent 67%); content: ""; }
.page--home .home-products-reference__inner { position: relative; z-index: 1; }
.page--home .consent-banner { right: 1rem; bottom: 1rem; left: auto; width: min(510px, calc(100vw - 2rem)); max-width: none; align-items: center; gap: 1rem; border-color: rgba(99, 186, 229, .35); border-radius: 9px; padding: .85rem .95rem; background: rgba(5, 23, 31, .94); box-shadow: 0 25px 65px rgba(0, 0, 0, .42); backdrop-filter: blur(16px); }
.page--home .consent-banner h2 { font-size: .85rem; }
.page--home .consent-banner p:last-child { font-size: .59rem; line-height: 1.45; }
.page--home .consent-banner__actions .button { min-height: 35px; border-radius: 5px; padding: .45rem .55rem; font-size: .59rem; }

.is-motion-ready .page--home [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(5px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out), filter 700ms var(--ease-out); transition-delay: calc(var(--reveal-order, 0) * 75ms); }
.is-motion-ready .page--home [data-reveal].is-visible { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
@keyframes home-orbit-drift { to { transform: translate3d(-1.3rem, .9rem, 0) scale(1.03); } }
@keyframes home-grid-float { to { transform: rotate(-7deg) skewY(-4deg) translate3d(-.5rem, .7rem, 0); } }
@keyframes home-panel-scan { 0%, 28% { transform: translateX(-18rem) rotate(22deg); } 58%, 100% { transform: translateX(38rem) rotate(22deg); } }
@keyframes home-live-pulse { 0%, 100% { box-shadow: 0 0 0 rgba(38, 225, 155, 0); } 50% { box-shadow: 0 0 12px rgba(38, 225, 155, .34); } }
@keyframes home-system-scan { from { transform: translateX(-8rem); } to { transform: translateX(18rem); } }
@keyframes home-signal { 0%, 100% { transform: scale(.8); opacity: .7; } 50% { transform: scale(1.2); opacity: 1; } }

@media (max-width: 920px) {
  .page--home .home-reference__hero { min-height: 0; grid-template-columns: 1fr; }
  .page--home .home-reference__control { justify-self: start; }
  .page--home .home-reference__build { grid-template-columns: 1fr minmax(220px, .65fr); }
  .page--home .home-reference__build-action { grid-column: 1 / -1; justify-self: start; justify-items: start; text-align: left; }
  .home-world-canvas { opacity: .72; }
}
@media (max-width: 680px) {
  .page--home .home-reference__copy h1 { font-size: clamp(3rem, 14vw, 4.75rem); }
  .page--home .home-reference__build { grid-template-columns: 1fr; margin-top: 3rem; }
  .home-reference__systems-board { min-height: 132px; }
  .page--home .consent-banner { right: .7rem; bottom: .7rem; width: calc(100vw - 1.4rem); flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .page--home *, .page--home *::before, .page--home *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Platform pass: one product language across public pages, CMS and client workspaces. */
.route-indicator { position: fixed; z-index: 300; top: 0; right: 0; left: 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity 160ms var(--ease-out); }
.route-indicator > span { display: block; width: 34%; height: 100%; transform: translateX(-120%); border-radius: 0 999px 999px 0; background: linear-gradient(90deg, #0870e8, #63c5ff); box-shadow: 0 0 18px rgba(43, 157, 255, .8); }
body.is-route-loading .route-indicator { opacity: 1; }
body.is-route-loading .route-indicator > span { animation: route-progress 1.05s var(--ease-in-out) infinite; }
body.is-route-loading [data-app-main] { cursor: progress; }
@keyframes route-progress { to { transform: translateX(330%); } }
::view-transition-old(root) { animation: route-out 180ms ease both; }
::view-transition-new(root) { animation: route-in 360ms var(--ease-out) both; }
@keyframes route-out { to { opacity: 0; transform: translate3d(0, -5px, 0); } }
@keyframes route-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
[data-app-main][data-motion-ready="true"] > [data-page-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(5px); transition: opacity 560ms var(--ease-out), transform 650ms var(--ease-out), filter 500ms var(--ease-out); transition-delay: calc(var(--page-reveal-order, 0) * 60ms); }
[data-app-main][data-motion-ready="true"] > [data-page-reveal].is-page-visible { opacity: 1; transform: none; filter: none; }
.desktop-nav a[aria-current="page"] { color: var(--text-primary); }
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Public information architecture. */
.page--services, .page--products, .page--lab, .page--process, .page--case-study { background: #051419; }
.page--services .page-hero, .page--products .page-hero, .page--lab .page-hero, .page--process .page-hero {
  position: relative; overflow: hidden; min-height: min(39vw, 510px); display: grid; align-items: end; padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(2.8rem, 5vw, 4.5rem); background: linear-gradient(118deg, #06151a 0%, #08242e 58%, #06151a 100%);
}
.page--services .page-hero::before, .page--products .page-hero::before, .page--lab .page-hero::before, .page--process .page-hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(152, 219, 244, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(152, 219, 244, .055) 1px, transparent 1px); background-size: 52px 52px; content: ""; mask-image: linear-gradient(90deg, black, transparent 88%); }
.page--services .page-hero::after, .page--products .page-hero::after, .page--lab .page-hero::after, .page--process .page-hero::after { position: absolute; top: -18vw; right: 3%; width: min(48vw, 660px); aspect-ratio: 1; border: 1px solid rgba(65, 184, 236, .25); border-radius: 50%; box-shadow: 0 0 0 65px rgba(34, 153, 205, .035), 0 0 0 132px rgba(34, 153, 205, .02); content: ""; }
.page--services .page-hero .shell, .page--products .page-hero .shell, .page--lab .page-hero .shell, .page--process .page-hero .shell { position: relative; z-index: 1; max-width: min(1240px, calc(100vw - 48px)); }
.page--services .page-hero h1, .page--products .page-hero h1, .page--lab .page-hero h1, .page--process .page-hero h1 { max-width: 11ch; margin: .8rem 0 .65rem; font-size: clamp(3rem, 6vw, 6.5rem); font-weight: 720; line-height: .84; letter-spacing: -.1em; }
.page--services .page-hero p:last-child, .page--products .page-hero p:last-child, .page--lab .page-hero p:last-child, .page--process .page-hero p:last-child { max-width: 38rem; color: #a7c4cd; font-size: clamp(.88rem, 1.25vw, 1.05rem); }
.page--services .section--dark, .page--products .section--dark, .page--lab .section--dark, .page--process .section--dark { position: relative; padding-top: clamp(2.2rem, 5vw, 5rem); background: linear-gradient(180deg, #06151a, #041216); }
.page--services .service-list { display: grid; border-top: 1px solid rgba(151, 214, 233, .18); }
.page--services .service-row { display: grid; grid-template-columns: 4.5rem 3.7rem minmax(0, 1fr) 3rem; align-items: center; gap: clamp(.75rem, 2vw, 2.2rem); min-height: 145px; border: 0; border-bottom: 1px solid rgba(151, 214, 233, .16); border-radius: 0; padding: 1.35rem 0; background: transparent; transition: padding 220ms var(--ease-out), background 220ms var(--ease-out); }
.page--services .service-row:hover { padding-right: .75rem; padding-left: .75rem; background: linear-gradient(90deg, rgba(12, 84, 119, .22), transparent); }
.page--services .service-row__number { color: #5f8390; font-family: var(--font-mono); font-size: .68rem; }
.page--services .service-row h2 { margin: 0 0 .35rem; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1; letter-spacing: -.075em; }
.page--services .service-row p { max-width: 50rem; margin: 0; color: #9ab7c1; font-size: .78rem; }
.page--services .service-row .icon-button { justify-self: end; border-color: rgba(112, 189, 224, .25); color: #8ecfff; }
.page--products .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.page--products .product-card { min-height: 270px; border-color: rgba(129, 204, 232, .19); border-radius: 7px; padding: 1rem; background: linear-gradient(150deg, #0b2832, #06161c); box-shadow: inset 0 1px rgba(226, 250, 255, .045), 0 17px 34px rgba(0, 0, 0, .16); }
.page--products .product-card:hover { transform: translateY(-6px); border-color: rgba(35, 151, 252, .8); box-shadow: 0 25px 46px rgba(0, 0, 0, .28), 0 0 30px rgba(7, 131, 225, .12); }
.page--products .product-card h2 { margin: 1.4rem 0 .55rem; font-size: 1.26rem; letter-spacing: -.065em; }
.page--products .product-card p { min-height: 3.2em; color: #9ab6c0; font-size: .7rem; }
.page--lab .lab-list { display: grid; gap: 0; border-top: 1px solid rgba(151, 214, 233, .17); }
.page--lab .lab-entry { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: clamp(1.2rem, 5vw, 5rem); border: 0; border-bottom: 1px solid rgba(151, 214, 233, .17); border-radius: 0; padding: clamp(1.35rem, 3.5vw, 3.2rem) 0; background: transparent; }
.page--lab .lab-entry:nth-child(even) .lab-entry__visual { order: 2; }
.page--lab .lab-entry__visual { border-radius: 6px; box-shadow: 0 22px 48px rgba(0, 0, 0, .28); }
.page--lab .lab-entry h2 { margin: .65rem 0; font-size: clamp(1.8rem, 3.5vw, 3.6rem); line-height: .91; letter-spacing: -.085em; }
.page--lab .lab-entry > div:last-child > p:not(.eyebrow) { color: #9db8c1; font-size: .78rem; }
.page--process .process-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(151, 214, 233, .17); }
.page--process .process-step { min-height: 178px; border: 0; border-right: 1px solid rgba(151, 214, 233, .17); border-bottom: 1px solid rgba(151, 214, 233, .17); border-radius: 0; padding: 1.4rem; background: transparent; }
.page--process .process-step:nth-child(2n) { border-right: 0; }
.page--process .process-step:hover { background: rgba(12, 87, 119, .16); }
.page--process .process-step > span { color: #62b7f7; font-family: var(--font-mono); font-size: .62rem; }
.page--process .process-step h2 { margin: .7rem 0 .38rem; font-size: 1.35rem; letter-spacing: -.065em; }
.page--process .process-step p { color: #9ab6c0; font-size: .72rem; }

/* Detail screens use full editorial sheets instead of unrelated generic cards. */
.page--service .service-hero, .page--product .product-hero { position: relative; overflow: hidden; min-height: min(43vw, 570px); display: grid; align-items: center; background: linear-gradient(118deg, #05151a, #0a2833 60%, #041217); }
.page--service .service-hero::after, .page--product .product-hero::after { position: absolute; top: -10%; right: 10%; width: min(36vw, 470px); aspect-ratio: 1; border: 1px solid rgba(96, 195, 243, .2); border-radius: 50%; box-shadow: 0 0 0 76px rgba(39, 145, 199, .028), 0 0 48px rgba(0, 128, 220, .12); content: ""; }
.page--service .service-hero__grid, .page--product .product-hero__grid { position: relative; z-index: 1; }
.page--service .service-hero h1, .page--product .product-hero h1 { margin: 1rem 0 .8rem; line-height: .84; }
.page--service .service-hero > .shell, .page--product .product-hero > .shell { padding-top: clamp(2.3rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.page--service .service-system-card, .page--product .product-hero__visual { border-color: rgba(120, 203, 237, .3); background: linear-gradient(145deg, rgba(10, 37, 49, .92), rgba(4, 20, 27, .94)); box-shadow: 0 28px 65px rgba(0, 0, 0, .34); }
.page--service .two-column-copy, .page--product .two-column-copy { padding-top: clamp(1rem, 2vw, 2rem); }
.page--service .two-column-copy h2, .page--product .two-column-copy h2 { max-width: 12ch; font-size: clamp(2.1rem, 4vw, 4.35rem); line-height: .9; }
.page--service .check-list, .page--product .check-list { gap: .7rem 1.3rem; }
.page--service .check-list li, .page--product .check-list li { border-bottom: 1px solid #dbe8eb; padding-bottom: .65rem; }
.page--case-study .reference-case-stage { background: linear-gradient(180deg, #061820, #051318); }
.page--case-study .case-hero { min-height: min(43vw, 600px); }
.page--case-study .case-hero__media { box-shadow: 0 28px 60px rgba(0, 0, 0, .36); }
.page--case-study .case-content { box-shadow: 0 -1px rgba(214, 232, 237, .08); }
.page--case-study .case-content__layout { padding-top: clamp(2.2rem, 5vw, 4.5rem); }
.page--case-study .case-copy-grid { padding: clamp(1.2rem, 3vw, 2.5rem) 0; }
.page--case-study .case-feature, .page--case-study .case-technology { box-shadow: 0 16px 38px rgba(20, 48, 59, .08); }

/* White surfaces have a precise project-builder/editorial language, not an old plain form. */
.page--light { background: #f6f9fa; }
.page--light .site-header { box-shadow: 0 1px rgba(38, 73, 88, .06); }
.page--pricing .page-hero, .page--about .page-hero, .page--insights .page-hero { position: relative; overflow: hidden; padding: clamp(4.4rem, 8vw, 7.6rem) 0 clamp(2.8rem, 5vw, 4.2rem); background: linear-gradient(124deg, #f8fbfc, #eaf5fa 72%, #dfeef5); }
.page--pricing .page-hero::after, .page--about .page-hero::after, .page--insights .page-hero::after { position: absolute; top: -18rem; right: -10rem; width: 43rem; height: 43rem; border: 1px solid rgba(19, 126, 208, .16); border-radius: 50%; box-shadow: 0 0 0 75px rgba(34, 144, 220, .035); content: ""; }
.page--pricing .page-hero .shell, .page--about .page-hero .shell, .page--insights .page-hero .shell { position: relative; z-index: 1; }
.page--pricing .page-hero h1, .page--about .page-hero h1, .page--insights .page-hero h1 { max-width: 11ch; margin: .75rem 0; font-size: clamp(3rem, 6vw, 6.15rem); font-weight: 710; line-height: .84; letter-spacing: -.1em; }
.page--pricing .page-hero p:last-child, .page--about .page-hero p:last-child, .page--insights .page-hero p:last-child { max-width: 36rem; color: #56717d; }
.page--pricing .pricing-grid { gap: .75rem; }
.page--pricing .pricing-card { border-color: #d4e2e7; border-radius: 7px; box-shadow: 0 15px 35px rgba(30, 67, 81, .07); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.page--pricing .pricing-card:hover { transform: translateY(-5px); box-shadow: 0 26px 44px rgba(30, 67, 81, .13); }
.page--pricing .pricing-card--featured { box-shadow: 0 21px 46px rgba(8, 117, 218, .2); }
.page--about .about-intro, .page--about .approach-grid, .page--insights .insights-grid { position: relative; }
.page--about .about-stats { border-top: 1px solid #d7e4e8; padding-top: 1.3rem; }
.page--about .approach-grid article { border-color: #d8e5e8; border-radius: 7px; box-shadow: 0 12px 25px rgba(35, 66, 79, .055); }
.page--about .about-quote { position: relative; overflow: hidden; background: linear-gradient(110deg, #06171d, #0a2b35); }
.page--about .about-quote p { max-width: 22ch; font-size: clamp(2rem, 4vw, 4.1rem); line-height: .95; letter-spacing: -.085em; }
.page--insights .insights-grid { gap: 1rem; }
.page--insights .insight-card { overflow: hidden; border: 1px solid #d8e5e8; border-radius: 7px; background: #fff; box-shadow: 0 15px 34px rgba(35, 66, 79, .07); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.page--insights .insight-card:hover { transform: translateY(-5px); box-shadow: 0 26px 43px rgba(35, 66, 79, .13); }
.page--insights .insight-card__media img { transition: transform 650ms var(--ease-out); }
.page--insights .insight-card:hover .insight-card__media img { transform: scale(1.045); }
.page--article .article-layout { max-width: 1040px; }
.page--article .article-header h1 { max-width: 12ch; font-size: clamp(2.6rem, 5vw, 5.6rem); line-height: .88; letter-spacing: -.095em; }
.page--contact .contact-page { min-height: calc(100svh - 72px); display: grid; align-items: center; background: linear-gradient(135deg, #f7fbfc, #eaf4f7); }
.page--contact .contact-layout { gap: clamp(2rem, 8vw, 9rem); }
.page--contact .contact-page h1 { max-width: 10ch; font-size: clamp(3rem, 6vw, 6rem); line-height: .84; letter-spacing: -.1em; }
.page--contact .contact-form { border: 1px solid #d5e3e8; border-radius: 8px; box-shadow: 0 24px 54px rgba(21, 63, 79, .12); }
.page--builder .builder-page { position: relative; overflow: hidden; background: linear-gradient(135deg, #f8fbfc, #eef6f9); }
.page--builder .builder-page::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(14, 93, 132, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 93, 132, .045) 1px, transparent 1px); background-size: 44px 44px; content: ""; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.page--builder .builder-shell { position: relative; z-index: 1; }
.page--builder .builder-header { max-width: 580px; }
.page--builder .builder-header h1 { max-width: 10ch; font-size: clamp(3rem, 5.6vw, 5.8rem); line-height: .86; }
.page--builder .project-builder { border-color: #d6e4e9; border-radius: 9px; box-shadow: 0 25px 54px rgba(29, 67, 83, .12); }
.page--builder .builder-progress { position: sticky; z-index: 3; top: 4.5rem; padding: .75rem; border: 1px solid #d6e4e9; border-radius: 7px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); }
.page--builder .choice-card { border-radius: 6px; transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.page--builder .choice-card:hover { transform: translateY(-2px); border-color: #4aa4f8; box-shadow: 0 10px 22px rgba(16, 116, 205, .1); }
.page--builder .choice-card:has(input:checked) { border-color: #1685f8; box-shadow: 0 0 0 3px rgba(22, 133, 248, .1); }
.builder-feedback { min-height: 1.2rem; margin: 1rem 0 0; color: #0c7d52; font-size: .76rem; }

/* CMS and client portal are real app workspaces, not a dark collection of boxes. */
.admin-body, .client-body { background: radial-gradient(65rem 40rem at 100% -10%, rgba(8, 108, 166, .15), transparent 62%), #06161c; }
.admin-sidebar, .client-sidebar { background: linear-gradient(180deg, #071a20, #051218); box-shadow: 13px 0 42px rgba(0, 0, 0, .13); }
.admin-sidebar .brand, .client-sidebar .brand { min-height: 40px; }
.admin-sidebar nav a, .client-sidebar nav > a { border: 1px solid transparent; transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.admin-sidebar nav a[aria-current="page"], .client-sidebar nav > a[aria-current="page"], .admin-sidebar nav a:hover, .client-sidebar nav > a:hover { border-color: rgba(64, 169, 246, .3); background: linear-gradient(90deg, rgba(14, 104, 164, .38), rgba(10, 49, 65, .22)); color: #f0fbff; }
.admin-sidebar nav a[aria-current="page"]::after, .client-sidebar nav > a[aria-current="page"]::after { width: 4px; height: 4px; margin-left: auto; border-radius: 50%; background: #3db2ff; box-shadow: 0 0 12px rgba(61, 178, 255, .8); content: ""; }
.admin-topbar, .client-topbar { position: sticky; z-index: 15; top: 0; background: rgba(6, 22, 28, .82); backdrop-filter: blur(16px); }
.admin-topbar { box-shadow: 0 1px rgba(151, 214, 233, .08); }
.admin-user, .client-topbar__state { border-color: rgba(98, 190, 237, .34); background: rgba(12, 74, 97, .23); }
.admin-dashboard, .admin-resource { max-width: 1540px; margin: 0 auto; }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.admin-stats article { position: relative; overflow: hidden; border-color: rgba(109, 193, 229, .19); background: linear-gradient(145deg, #0b252d, #081b22); box-shadow: inset 0 1px rgba(229, 251, 255, .035); }
.admin-stats article::after { position: absolute; right: -1rem; bottom: -1.6rem; width: 5rem; height: 5rem; border: 1px solid rgba(88, 190, 239, .17); border-radius: 50%; content: ""; }
.admin-stats strong { color: #f3fbff; }
.admin-panel, .portal-panel, .portal-project-card, .portal-summary article { border-color: rgba(103, 191, 227, .19); background: linear-gradient(145deg, rgba(11, 35, 44, .98), rgba(7, 23, 29, .98)); box-shadow: inset 0 1px rgba(230, 251, 255, .03), 0 14px 30px rgba(0, 0, 0, .12); }
.admin-panel table tbody tr { transition: background 150ms var(--ease-out); }
.admin-panel table tbody tr:hover { background: rgba(24, 110, 150, .12); }
.admin-panel th, .admin-panel td { padding-top: .78rem; padding-bottom: .78rem; }
.admin-form { border-color: rgba(103, 191, 227, .21); background: linear-gradient(145deg, #0a252e, #071a20); box-shadow: inset 0 1px rgba(230, 251, 255, .025), 0 16px 35px rgba(0, 0, 0, .12); }
.admin-form[data-pending="true"] { opacity: .72; pointer-events: none; }
.admin-form__actions { position: sticky; z-index: 4; bottom: 0; margin: 0 -.1rem; background: linear-gradient(180deg, transparent, #071a20 36%); }
.media-library__item { border-color: rgba(103, 191, 227, .18); border-radius: 6px; background: #081c23; }
.portal-main { width: min(1320px, calc(100vw - 56px)); }
.portal-dashboard h1, .portal-project h1 { max-width: 14ch; }
.portal-dashboard__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(108, 193, 227, .17); }
.portal-dashboard__head h1 { margin-bottom: .45rem; }
.portal-dashboard__head > div > p:last-child { max-width: 38rem; margin: 0; color: #9ab6c0; font-size: .76rem; }
.portal-dashboard__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.portal-dashboard__metrics article { position: relative; overflow: hidden; min-height: 92px; border: 1px solid rgba(103, 191, 227, .19); border-radius: 6px; padding: .85rem; background: linear-gradient(145deg, rgba(11, 35, 44, .98), rgba(7, 23, 29, .98)); }
.portal-dashboard__metrics article::after { position: absolute; right: -1rem; bottom: -1.8rem; width: 5.5rem; height: 5.5rem; border: 1px solid rgba(97, 194, 234, .16); border-radius: 50%; content: ""; }
.portal-dashboard__metrics span, .portal-dashboard__metrics strong { position: relative; z-index: 1; display: block; }
.portal-dashboard__metrics span { color: #94b4be; font-family: var(--font-mono); font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; }
.portal-dashboard__metrics strong { margin-top: .35rem; font-size: 1.65rem; letter-spacing: -.08em; }
.portal-dashboard__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .36fr); gap: .8rem; }
.portal-section-heading { display: flex; align-items: end; justify-content: space-between; gap: .8rem; margin-bottom: .75rem; }
.portal-section-heading h2 { margin: .35rem 0 0; font-size: 1.18rem; letter-spacing: -.06em; }
.portal-section-heading > span { color: #83a5af; font-family: var(--font-mono); font-size: .56rem; }
.portal-dashboard__next { align-self: stretch; border: 1px solid rgba(103, 191, 227, .19); border-radius: 6px; padding: 1rem; background: linear-gradient(155deg, rgba(7, 50, 66, .9), rgba(6, 22, 29, .98)); box-shadow: inset 0 1px rgba(230, 251, 255, .03); }
.portal-dashboard__next h2 { margin: .6rem 0; font-size: 1.2rem; line-height: 1.04; letter-spacing: -.065em; }
.portal-dashboard__next > p:last-child { margin: 0; color: #9ab6c0; font-size: .71rem; line-height: 1.5; }
.portal-project-card { min-height: 184px; }
.portal-project-card:hover { border-color: rgba(53, 166, 247, .72); box-shadow: 0 22px 42px rgba(0, 0, 0, .27), 0 0 28px rgba(15, 128, 228, .11); }
.progress-circle { position: relative; box-shadow: 0 0 0 1px rgba(112, 207, 237, .15), 0 0 26px rgba(27, 189, 138, .12); }
.portal-project__header { padding-bottom: 1.2rem; border-bottom: 1px solid rgba(108, 193, 227, .17); }
.portal-summary article { min-height: 96px; }
.portal-panel { transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.portal-panel:hover { border-color: rgba(66, 171, 246, .36); }
.approval-card form[data-pending="true"] { opacity: .65; pointer-events: none; }
.portal-file, .invoice-row { border-top-color: rgba(108, 193, 227, .13); }

@media (max-width: 1120px) {
  .page--products .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page--services .service-row { grid-template-columns: 3.2rem 3.2rem minmax(0, 1fr) 3rem; }
}
@media (max-width: 920px) {
  .page--services .page-hero, .page--products .page-hero, .page--lab .page-hero, .page--process .page-hero { min-height: 360px; }
  .page--lab .lab-entry { grid-template-columns: 1fr; }
  .page--lab .lab-entry:nth-child(even) .lab-entry__visual { order: 0; }
  .page--products .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page--service .service-hero, .page--product .product-hero { min-height: 0; }
  .page--builder .builder-progress { top: .7rem; }
  .portal-main { width: min(100% - 38px, 1320px); }
  .portal-dashboard__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .route-indicator { height: 3px; }
  .page--services .page-hero, .page--products .page-hero, .page--lab .page-hero, .page--process .page-hero { min-height: 300px; padding-top: 5.2rem; }
  .page--services .page-hero h1, .page--products .page-hero h1, .page--lab .page-hero h1, .page--process .page-hero h1 { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .page--services .service-row { grid-template-columns: 2.2rem 1fr 2.3rem; min-height: 112px; gap: .6rem; }
  .page--services .service-row .icon-tile { display: none; }
  .page--process .process-list { grid-template-columns: 1fr; }
  .page--process .process-step, .page--process .process-step:nth-child(2n) { border-right: 0; }
  .page--products .products-grid { grid-template-columns: 1fr; }
  .page--products .product-card { min-height: 225px; }
  .page--pricing .page-hero, .page--about .page-hero, .page--insights .page-hero { padding-top: 5rem; }
  .page--pricing .page-hero h1, .page--about .page-hero h1, .page--insights .page-hero h1, .page--contact .contact-page h1, .page--builder .builder-header h1 { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .page--builder .builder-progress { top: .45rem; overflow-x: auto; }
  .page--builder .project-builder { padding: .8rem; }
  .admin-topbar, .client-topbar { position: relative; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form__actions { position: sticky; bottom: .4rem; }
  .portal-main { width: min(100% - 28px, 1320px); }
  .portal-dashboard__head { align-items: flex-start; flex-direction: column; }
  .portal-dashboard__metrics { grid-template-columns: 1fr; }
}

/* Legal, recovery and authentication retain the same finished surface quality. */
.page--privacy .legal-page, .page--cookies .legal-page { position: relative; overflow: hidden; min-height: calc(100svh - 72px); background: linear-gradient(135deg, #f8fbfc, #edf6f9); }
.page--privacy .legal-page::before, .page--cookies .legal-page::before { position: absolute; top: -13rem; right: -8rem; width: 34rem; height: 34rem; border: 1px solid rgba(18, 126, 207, .15); border-radius: 50%; box-shadow: 0 0 0 62px rgba(29, 137, 208, .03); content: ""; }
.page--privacy .legal-layout, .page--cookies .legal-layout { position: relative; z-index: 1; max-width: 920px; }
.page--privacy .legal-layout h1, .page--cookies .legal-layout h1 { max-width: 11ch; font-size: clamp(3rem, 6vw, 6rem); line-height: .84; }
.page--privacy .legal-layout section { border-color: #d5e4e8; }
.page--cookies .privacy-list { gap: 0; border-top: 1px solid #d5e4e8; }
.page--cookies .privacy-list article { gap: 1.25rem; border: 0; border-bottom: 1px solid #d5e4e8; padding: 1rem 0; }
.not-found { position: relative; overflow: hidden; background: radial-gradient(35rem 24rem at 68% 20%, rgba(12, 125, 207, .17), transparent 65%), #06171d; }
.not-found::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(159, 219, 244, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 219, 244, .055) 1px, transparent 1px); background-size: 45px 45px; content: ""; mask-image: linear-gradient(to bottom, black, transparent); }
.not-found .shell { position: relative; z-index: 1; }
.auth-body { position: relative; overflow: hidden; background: radial-gradient(30rem 30rem at 74% 23%, rgba(18, 141, 225, .2), transparent 68%), linear-gradient(135deg, #06171d, #031014); }
.auth-body::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(159, 219, 244, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 219, 244, .05) 1px, transparent 1px); background-size: 44px 44px; content: ""; mask-image: radial-gradient(circle at 50% 50%, black, transparent 74%); }
.auth-card { position: relative; z-index: 1; overflow: hidden; border-color: rgba(109, 194, 232, .3); border-radius: 9px; background: linear-gradient(145deg, rgba(10, 35, 45, .96), rgba(5, 19, 25, .96)); box-shadow: 0 32px 85px rgba(0, 0, 0, .45); }
.auth-card::after { position: absolute; top: 0; left: 9%; width: 48%; height: 1px; background: #238ffc; content: ""; }
.auth-card .brand, .auth-card .eyebrow, .auth-card h1, .auth-card > p, .auth-card form { position: relative; z-index: 1; }
.auth-card h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.auth-card .field input { border-color: rgba(116, 194, 227, .24); }
