:root {
  --v27-bg: #030711;
  --v27-panel: #071827;
  --v27-panel-2: #0a2030;
  --v27-line: rgba(86, 220, 255, .24);
  --v27-cyan: #55e7ff;
  --v27-mint: #55efbd;
  --v27-muted: #a9c0d0;
}

/* Keep the home page on one coherent navy surface. */
#technology.v8-home-tech {
  border-block: 1px solid rgba(86, 220, 255, .12);
  background: var(--v27-bg);
}

.v26-model-stage model-viewer,
.v25-scene > model-viewer {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, #12364a 0%, #061522 58%, #020913 100%);
}

.v27-3d-context {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--v27-line);
  border-radius: 999px;
  background: rgba(4, 16, 28, .84);
  scrollbar-width: thin;
}

.v27-3d-context a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  color: #b8cfdd;
  font: 800 .7rem var(--font-mono, monospace);
  letter-spacing: .045em;
  text-decoration: none;
}

.v27-3d-context a:hover,
.v27-3d-context a:focus-visible,
.v27-3d-context a.is-active {
  color: #f8fdff;
  background: rgba(83, 229, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(83, 229, 255, .2);
}

.v27-realm-twin {
  position: relative;
  padding: clamp(72px, 8vw, 118px) 0;
  border-block: 1px solid rgba(83, 229, 255, .13);
  background: var(--v27-bg);
}

.v27-realm-twin-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 30px;
}

.v27-realm-twin-head h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.v27-realm-twin-head > p {
  margin: 0;
  color: var(--v27-muted);
  line-height: 1.7;
}

.v27-realm-twin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--v27-line);
  border-radius: 26px;
  background: #04111c;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
}

.v27-realm-assets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px;
  border-right: 1px solid var(--v27-line);
  background: rgba(5, 22, 35, .86);
}

.v27-realm-assets button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #b6cad7;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.v27-realm-assets button:hover,
.v27-realm-assets button[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(83, 229, 255, .32);
  background: rgba(83, 229, 255, .09);
}

.v27-realm-assets button span {
  color: var(--v27-cyan);
  font: 800 .65rem var(--font-mono, monospace);
}

.v27-realm-assets button strong { font-size: .82rem; line-height: 1.25; }
.v27-realm-stage { position: relative; min-width: 0; background: #020b15; }
.v27-realm-stage model-viewer { width: 100%; height: 100%; min-height: 610px; background: radial-gradient(circle at 50% 45%, #10344a, #020b15 68%); }
.v27-realm-stage-status { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid rgba(83, 229, 255, .24); border-radius: 14px; background: rgba(2, 12, 22, .82); backdrop-filter: blur(12px); }
.v27-realm-stage-status span { color: var(--v27-mint); font: 800 .62rem var(--font-mono, monospace); letter-spacing: .09em; }
.v27-realm-stage-status strong { font-size: .9rem; text-align: right; }

.v27-realm-telemetry { padding: 24px; border-left: 1px solid var(--v27-line); background: linear-gradient(155deg, #092335, #04131f); }
.v27-realm-telemetry > small { color: var(--v27-mint); font: 800 .65rem var(--font-mono, monospace); letter-spacing: .12em; }
.v27-realm-telemetry h3 { margin: 12px 0 18px; font-size: 1.45rem; }
.v27-realm-telemetry code { display: block; overflow-wrap: anywhere; padding: 12px; border: 1px solid var(--v27-line); border-radius: 11px; color: var(--v27-cyan); background: #03101b; font-size: .72rem; }
.v27-realm-telemetry > div { margin-top: 12px; padding: 13px; border: 1px solid rgba(83, 229, 255, .14); border-radius: 12px; background: rgba(2, 13, 23, .5); }
.v27-realm-telemetry > div span,
.v27-realm-telemetry > div strong { display: block; }
.v27-realm-telemetry > div span { color: var(--v27-muted); font-size: .72rem; }
.v27-realm-telemetry > div strong { margin-top: 4px; font-size: .84rem; }
.v27-realm-telemetry > a { display: inline-flex; margin-top: 24px; color: var(--v27-cyan); font-weight: 850; text-decoration: none; }

/* Portal: real-account state and a denser, clearer dashboard. */
body.v25-portal {
  background:
    radial-gradient(circle at 85% 0%, rgba(67, 76, 180, .16), transparent 32rem),
    radial-gradient(circle at 5% 35%, rgba(16, 151, 180, .1), transparent 30rem),
    var(--v27-bg);
}

.v25-portal-shell { width: min(1540px, calc(100vw - 24px)); margin-inline: auto; }
.v25-portal-top { background: rgba(4, 16, 29, .86) !important; backdrop-filter: blur(18px); }
.v25-auth { min-height: calc(100vh - 110px); align-items: center; }
.v25-auth-copy h1 { max-width: 10ch; }
.v25-auth-card { background: linear-gradient(155deg, rgba(9, 34, 51, .96), rgba(4, 15, 27, .98)) !important; }
.v27-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0 0 20px; padding: 5px; border: 1px solid var(--v27-line); border-radius: 999px; background: #03101b; }
.v27-auth-tabs button { min-height: 42px; border: 0; border-radius: 999px; color: var(--v27-muted); background: transparent; font-weight: 850; cursor: pointer; }
.v27-auth-tabs button[aria-selected="true"] { color: #fff; background: rgba(83, 229, 255, .13); box-shadow: inset 0 0 0 1px rgba(83, 229, 255, .2); }
.v27-password-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v27-auth-message { min-height: 1.5em; margin: 12px 0 0; color: var(--v27-muted); font-size: .82rem; }
.v27-auth-message[data-tone="error"] { color: #ff9dac; }
.v27-auth-message[data-tone="success"] { color: var(--v27-mint); }
.v27-auth-message a { color: var(--v27-cyan); }
.v27-verified { color: var(--v27-mint); }

.v25-app { grid-template-columns: 248px minmax(0, 1fr) !important; gap: 20px !important; }
.v25-sidebar { background: rgba(5, 20, 34, .9) !important; }
.v25-main { min-width: 0; }
.v25-panel-head { gap: 48px; }
.v25-panel-head h1 { max-width: 15ch; }
.v25-kpis { gap: 12px !important; }
.v25-kpi { min-height: 132px !important; }
.v26-intelligence-grid { align-items: stretch; }
.v26-portfolio-health,
.v26-competency-board,
.v26-next-brief { min-height: 360px; }
.v26-brief-number { opacity: .45; }
.v27-account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.v27-empty-state { padding: 28px; border: 1px dashed rgba(83, 229, 255, .24); border-radius: 16px; color: var(--v27-muted); text-align: center; }

/* V28: premium industrial navigation, fast visual previews and consistent cards. */
.v28-model-poster,
.v28-lab-media { overflow: hidden; }

.v28-model-poster img,
.v28-lab-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
}

.v28-poster-card:hover img,
.v28-lab-card:hover img { transform: scale(1.025); filter: saturate(1.08) contrast(1.03); }

.v28-poster-card .v26-model-stage::after,
.v28-lab-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 44%, rgba(2, 11, 20, .72));
}

.v28-poster-card .v26-model-source,
.v28-lab-media > span { z-index: 2; }

.v28-command-deck {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .55fr);
  gap: clamp(18px, 2vw, 26px);
  margin-top: clamp(30px, 4vw, 52px);
}

.v28-command-deck .v26-command-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
}

.v28-command-deck .v29-command-link {
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  justify-content: flex-start;
  background: #04131f;
}

.v29-command-media {
  position: relative;
  display: block !important;
  flex: 0 0 230px;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #061522;
}

.v29-command-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 13, 22, .8));
}

.v29-command-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease, filter .65s ease;
}

.v29-command-link:hover .v29-command-media img { transform: scale(1.035); filter: saturate(1.08) contrast(1.04); }

.v29-command-copy {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.v28-command-deck .v29-command-link > i {
  top: 20px;
  right: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(85, 239, 189, .32);
  border-radius: 50%;
  background: rgba(2, 13, 23, .82);
  backdrop-filter: blur(12px);
}

.v28-command-deck .v26-command-passport {
  min-height: 430px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
}

body[data-v26-portal="true"] .v28-lab-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch;
}

body[data-v26-portal="true"] .v28-lab-card {
  display: flex !important;
  grid-column: auto !important;
  flex-direction: column !important;
  min-width: 0;
  min-height: 510px;
  border-radius: 22px;
}

body[data-v26-portal="true"] .v28-lab-media {
  position: relative;
  flex: 0 0 270px;
  width: 100%;
  height: 270px !important;
  min-height: 270px !important;
  border-right: 0 !important;
  border-bottom: 1px solid var(--v27-line) !important;
}

body[data-v26-portal="true"] .v28-lab-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px !important;
}

body[data-v26-portal="true"] .v28-lab-card h3 {
  min-height: 2.15em;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

body[data-v26-portal="true"] .v28-lab-card p { margin-bottom: 0; }
body[data-v26-portal="true"] .v28-lab-card b { margin-top: auto; }

.v28-platform-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
  background: #03111e;
}

.v28-platform-scene[hidden] { display: none !important; }
.v28-platform-scene > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.04);
}

.v28-platform-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 10, 18, .02), rgba(2, 10, 18, .5));
  pointer-events: none;
}

.v28-platform-overlay {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  display: grid;
  gap: 7px;
  justify-items: end;
  padding: 13px 15px;
  border: 1px solid rgba(83, 229, 255, .28);
  border-radius: 14px;
  color: #dffaff;
  background: rgba(2, 12, 22, .76);
  backdrop-filter: blur(14px);
  font: 800 .62rem var(--font-mono, monospace);
  letter-spacing: .09em;
}

.v28-platform-overlay i { width: 8px; height: 8px; border-radius: 50%; background: var(--v27-mint); box-shadow: 0 0 14px var(--v27-mint); }
.v28-platform-overlay b { color: var(--v27-mint); }

/* Give the Ultimate proof grid the same breathing room and rhythm as the rest of the site. */
#ultimate .ultimate-grid { gap: clamp(18px, 2vw, 28px); }
#ultimate .capability-stack { gap: clamp(18px, 2vw, 24px); }
#ultimate .v14-lab-overview-grid {
  gap: clamp(20px, 2.2vw, 30px);
  margin-top: clamp(32px, 4.2vw, 64px);
}

#ultimate .v14-lab-overview {
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}

/* Keep the premium header composed before the full navigation runs out of room. */
@media (max-width: 1320px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 1080px) {
  .v27-realm-twin-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .v27-realm-telemetry { grid-column: 1 / -1; border-top: 1px solid var(--v27-line); border-left: 0; }
  .v25-app { grid-template-columns: 210px minmax(0, 1fr) !important; }
  body[data-v26-portal="true"] .v28-lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .v28-command-deck { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .v27-realm-twin-head { grid-template-columns: 1fr; gap: 20px; }
  .v27-realm-twin-head h2 { max-width: 14ch; }
  .v27-realm-twin-shell { display: block; }
  .v27-realm-assets { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--v27-line); }
  .v27-realm-assets button { flex: 0 0 190px; }
  .v27-realm-stage model-viewer { min-height: 480px; }
  .v27-password-row { grid-template-columns: 1fr; }
  .v25-app { display: block !important; }
  .v25-sidebar { position: static !important; width: auto !important; margin-bottom: 18px; }
  .v28-command-deck .v26-command-rail { grid-template-columns: 1fr; }
  .v28-command-deck .v29-command-link { min-height: 390px; }
  .v29-command-media { flex-basis: 210px; height: 210px; }
  body[data-v26-portal="true"] .v28-lab-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  .v27-3d-context { width: 100%; border-radius: 16px; }
  .v27-realm-stage model-viewer { min-height: 390px; }
  .v27-realm-stage-status { align-items: flex-start; flex-direction: column; }
  .v27-realm-stage-status strong { text-align: left; }
  .v28-platform-scene,
  .v28-platform-scene > img { min-height: 430px; }
  .v28-platform-overlay { top: 14px; right: 14px; }
  #ultimate .v14-lab-overview-grid { margin-top: 30px; gap: 22px; }
}
