.gnx-page {
  --ink: #b9d0d9;
  --shell-text: #e1e6e7;
  --shell-muted: #b7c1cc;
  --shell-edge: #2c313a;
}

.gnx-page .site-link { display: inline-flex; align-items: center; gap: .55rem; }
.gnx-page .site-link > span { color: var(--ink); }
.gnx-page .website-brand img { transform: translateY(-2px); }
.gnx-page .hero h1 {
  font-size: clamp(42px, 6.75vw, 108px);
  line-height: .99;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.opening {
  position: relative;
  isolation: isolate;
}
.opening::before {
  position: absolute;
  z-index: -1;
  inset: -30px 0 0;
  background: radial-gradient(ellipse 48% 49% at 52% 61%, #242d35 0%, #10111300 100%);
  content: "";
  pointer-events: none;
}

.product-window {
  --rail: 51px;
  --rail-width: var(--rail);
  --info-width: 0px;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  position: relative;
  font-family: "Segoe UI", Geist, sans-serif;
  color: var(--shell-text);
  background: #101315;
  border: 1px solid var(--shell-edge);
  border-radius: 9px;
  box-shadow: 0 26px 86px -26px #000c, 0 1px 0 #fff1 inset;
  overflow: hidden;
}
.product-window[data-rail-open] { --rail-width: 218px; }
.product-window[data-info-open] { --info-width: 219px; }
.window-title, .window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 15px;
}
.window-title { min-height: 40px; border-bottom: 1px solid #2a2e33; }
.window-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.window-brand img { flex: none; }
.window-brand span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 600; transition: max-width 260ms var(--ease); }
[data-rail-open] .window-brand span { max-width: 160px; }
.window-footer { font-size: 11px; color: var(--shell-muted); }
.window-footer { grid-area: 2 / 3; justify-content: flex-end; min-height: 29px; background: #101315; }
.workspace-gallery-link { margin-right: auto; color: var(--ink); }
.workspace-gallery-link:hover { text-decoration: underline; }

.window-main {
  display: grid;
  position: relative;
  grid-template-columns: var(--rail-width) var(--info-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc((100cqw - var(--rail) - 9px) * 431 / 723 + 39px);
  transition: grid-template-columns 260ms var(--ease);
  background: #101213;
}
.product-rail { grid-area: 1 / 1 / 3; display: flex; flex-direction: column; min-width: 0; overflow: clip; padding-top: 4px; background: #101315; }
.product-rail :is(a, button) {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  min-height: 40px;
  width: 100%;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a3adb1;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  transition: background 140ms, color 140ms;
}
.product-rail :is(a, button):is(:hover, :focus-visible) { color: #f1f5f5; background: #292f32; }
.product-rail :focus-visible, .engine-tile:focus-visible, .engine-workspace:focus-visible { outline-offset: -3px; }
.product-rail a[aria-current] {
  color: #e1e6e7;
  background: #343c40;
  box-shadow: inset 2px 0 #bcc9cd;
}
.product-rail svg { justify-self: center; width: 19px; height: 19px; display: block; }
.product-rail .rail-info { margin-top: auto; border-radius: 0; box-shadow: none; }
.rail-info-icon { display: block; justify-self: center; width: 18px; height: 18px; background: currentColor; mask: url("../assets/native/navigation/application-info.svg") center / contain no-repeat; }
.workspace-info { grid-area: 1 / 2 / 3; min-width: 0; min-height: min-content; overflow: clip; background: linear-gradient(#17191b, #151719); box-shadow: inset -1px 0 #303438; }
.workspace-info[aria-hidden="true"] { contain: size; }
.workspace-info-body { display: flex; flex-direction: column; width: 219px; min-height: 100%; padding: 0 24px 30px; color: #b7bec2; font-size: 12px; line-height: 1.4; }
.workspace-info header { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: #e0e3e5; }
.workspace-info header button { display: grid; place-items: center; width: 21px; height: 22px; flex: none; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #abb5bc; }
.workspace-info header button:hover { background: #252a2e; color: #e0e3e5; }
.workspace-info-brand { display: grid; justify-items: center; padding-block: 22px 16px; border-bottom: 1px solid #303438; text-align: center; color: #e0e3e5; }
.workspace-info-mark { display: grid; place-items: center; width: 62px; height: 62px; }
.workspace-info-brand p { display: grid; place-items: center; height: 36px; white-space: nowrap; font-size: 15px; font-weight: 300; letter-spacing: 1.6px; }
.workspace-info-version { display: grid; place-items: center; height: 21px; margin-top: 4px; color: #abb5bc; font-size: 10px; letter-spacing: 2.6px; }
.workspace-info-copy { padding-top: 16px; }
.workspace-info-copy p + p { margin-top: 16px; }
.workspace-info-footer { margin-top: auto; padding-top: 28px; }
.workspace-info dl { display: grid; gap: 3px; margin: 0; }
.workspace-info dl div { display: grid; grid-template-columns: 67px minmax(0, 1fr); gap: 4px; min-height: 17px; align-items: center; }
.workspace-info dt { color: #98a3ab; font-size: 9px; text-transform: uppercase; }
.workspace-info dd { margin: 0; color: #d8dee2; font-size: 11.5px; }
.workspace-info-links { display: grid; gap: 5px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #303438; }
.workspace-info-links a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 17px; align-items: center; gap: 9px; height: 27px; border-radius: 3px; color: #d8dee2; font-size: 9.7px; white-space: nowrap; }
.workspace-info-links a:hover { background: #252a2e; }
.workspace-info-links a > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.info-link-icon { width: 20px; height: 20px; background: currentColor; mask: var(--info-icon) center / contain no-repeat; }
.info-link-website { --info-icon: url("assets/application-info-icon-globe.png"); }
.info-link-mail { --info-icon: url("assets/application-info-icon-mail.png"); }
.info-link-external { width: 17px; height: 17px; background: #abb5bc; mask: url("assets/application-info-icon-external.png") center / contain no-repeat; }

.window-canvas {
  grid-area: 1 / 3;
  position: relative;
  isolation: isolate;
  overflow: clip;
  container-type: inline-size;
  margin: 5px 5px 5px 4px;
  padding: clamp(18px, 2.1vw, 32px);
  background: #101920 url("assets/ink-drift.webp") right bottom / cover no-repeat;
}
.window-canvas::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22% -11% -18% 22%;
  pointer-events: none;
  background: radial-gradient(ellipse 45% 38% at 56% 69%, #8499b434, #6d92a814 56%, transparent 100%);
  transform: translate(0, 0);
  mix-blend-mode: screen;
  animation: ink-wash 10s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.product-window[data-in-view] .window-canvas::before { animation-play-state: running; }
[data-engine-open] .window-canvas { display: grid; grid-template-rows: minmax(0, 1fr); padding: 0; }
.engine-workspace { contain: size; min-width: 0; overflow: auto; overflow-y: scroll; scrollbar-width: thin; scrollbar-color: #66757c #141b20; }
.engine-workspace-screens { min-width: min(76vw, 600px); }
.engine-workspace-screens figure + figure { margin-top: 8px; border-top: 1px solid var(--shell-edge); }
.engine-workspace-screens figcaption { padding: 10px 14px; background: #141b20; color: var(--shell-text); font-size: 12px; }
/* Keep the 723 × 431 content area of the 768 × 471 captures. */
.engine-workspace-image { position: relative; aspect-ratio: var(--capture-ratio); overflow: clip; }
.engine-workspace-image img { width: 100%; height: auto; }
.engine-workspace-image[data-crop-shell] { aspect-ratio: 723 / 431; }
.engine-workspace-image[data-crop-shell] img { position: absolute; inset: -5.336% auto auto -4.426%; width: 106.224%; max-width: none; }
.engine-workspace-image p { padding: 20px; }
@keyframes ink-wash {
  from { transform: translate(-8%, 4%); }
  to { transform: translate(9%, -9%); }
}

.engine-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.55vw, 20px);
  max-width: 970px;
}
.engine-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 13px;
  border: 1px solid #414750;
  border-bottom-color: #252b34;
  border-radius: clamp(12px, 1.28vw, 20px);
  background: linear-gradient(164deg, #363d49, #1c2330 42%, #0c1016 89%);
  box-shadow: 0 10px 17px -6px #000b, inset 0 1px 0 #fff1;
}
.tile-lead {
  display: grid;
  grid-template-columns: clamp(38px, 5.3vw, 74px) 1fr;
  gap: 10px;
  align-items: center;
  flex: 1;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #151d28, #111722);
  border: 1px solid #323b49;
  border-radius: 23%;
}
.tile-icon svg { width: 63%; height: 63%; }
.tile-lead h2 { font-size: clamp(13px, 1.48vw, 18px); font-weight: 620; line-height: 1.25; }
.tile-lead p { margin-top: 5px; font-size: clamp(11px, 1.18vw, 13px); color: var(--shell-muted); line-height: 1.43; }
.tile-meta {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid #ffffff12;
  font-variant-numeric: tabular-nums;
}
.tile-meta dt { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #a8b5c5; }
.tile-meta dd { margin: 0; font-size: 12px; }
.tile-link {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #506376;
  border-radius: 9px;
  background: linear-gradient(105deg, #2b424d, #263249);
  color: #edf4f8;
  font-size: 12px;
  font-weight: 550;
  transition: background 160ms, border-color 160ms;
}
.engine-tile:is(:hover, :focus-visible) .tile-link { background: #395668; border-color: #88a3b5; }
.tile-link span[aria-hidden] { display: inline-block; transition: transform 160ms; }
.engine-tile:hover .tile-link span[aria-hidden] { transform: translateX(3px); }

@container (max-width: 620px) {
  .engine-tiles { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .tile-meta { display: none; }
  .tile-lead { grid-template-columns: 44px 1fr; }
}

.engine-showcase { padding-bottom: 74px; }
.architecture { border-top: 1px solid var(--border); }
.architecture .thinking-preface { margin-top: 0; }
.architecture .principle-figure h3 { min-height: 0; }
.architecture-label {
  color: #898b90;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.architecture .principle-figure { border-radius: 9px; }
.architecture-art {
  --art-light: #80dfcc;
  --art-mid: #419789;
  --art-dark: #234e4b;
  --art-shadow: #172d30;
}
.architecture-art[data-art="forecast"] {
  --art-light: #93c0fa;
  --art-mid: #517ebd;
  --art-dark: #324d76;
  --art-shadow: #1d293f;
}
.architecture-art[data-art="planning"] {
  --art-light: #f4c689;
  --art-mid: #ac7950;
  --art-dark: #664735;
  --art-shadow: #34271e;
}
.art-signal-light { stop-color: var(--art-light); }
.art-signal-mid { stop-color: var(--art-mid); }
.art-signal-dark { stop-color: var(--art-dark); }
.art-signal-shadow { stop-color: var(--art-shadow); }
.architecture .principle-drawing svg {
  display: block;
  max-width: 360px;
  height: auto;
  overflow: hidden;
  fill: none;
  stroke-width: 1.08;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-depth { fill: #090c0f; stroke: #56606c; }
.art-edge { stroke: #6b7682; }
.art-engraving { stroke: #34383f; stroke-width: .75; }
.art-channel { stroke: #56606c; stroke-width: 1.45; }
.art-metal { stroke: #6b7682; }
.art-fine { stroke: #88919c; stroke-width: .9; }
.art-ticket-ink { stroke: #d3dce2; }
.art-worksheet-grid { opacity: .63; stroke-width: .8; }
.art-accent { stroke: var(--art-light); stroke-width: 1.45; }
.art-forecast-junction { fill: var(--art-shadow); }
.art-flow { stroke-dasharray: 19 100; stroke-dashoffset: -54; }
.art-trough { fill: #0c1014; stroke: #64707d; }
.art-stock { fill: #454e5a; stroke: #717e89; }
.art-incoming { fill: #303941; stroke: #586673; }
.art-shortfall-edge { fill: var(--art-shadow); stroke: var(--art-dark); }
.art-shortfall-face { stroke: var(--art-light); }
.art-plan-gaps .art-ticket-ink { stroke: #39271c; }
.art-beam { opacity: .67; }
.art-quote-ticket { transform: translateX(47px); }
.art-plan-gaps { transform: translate(3px, -6px); }

@media (prefers-reduced-motion: no-preference) {
  .architecture [data-motion-ready] .architecture-art [class^="art-"] {
    animation-duration: 5.8s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    animation-play-state: paused;
  }
  .architecture [data-motion-ready] [data-in-view] .architecture-art [class^="art-"] {
    animation-play-state: running;
  }
  .architecture .art-quote-ticket { animation-name: quote-feed; }
  .architecture .art-beam { animation-name: quote-read; }
  .architecture .art-quote-seal { animation-name: quote-verify; }
  .architecture .art-flow { animation-name: forecast-route; }
  .architecture .art-flow-mid { animation-delay: .18s; }
  .architecture .art-flow-low { animation-delay: .36s; }
  .architecture .art-forecast-junction { animation-name: forecast-confirm; }
  .architecture .art-forecast-sheet { animation-name: workbook-settle; }
  .architecture .art-workbook-row { animation-name: workbook-record; }
  .architecture .art-row-mid { animation-delay: .18s; }
  .architecture .art-row-low { animation-delay: .36s; }
  .architecture .art-plan-supply { animation-name: planning-fill; transform-origin: 30px 67px; }
  .architecture .art-plan-gaps { animation-name: planning-lift; }
}

@keyframes quote-feed {
  0%, 9%, 100% { transform: translateX(0); }
  33%, 40% { transform: translateX(22px); }
  59%, 82% { transform: translateX(47px); }
}
@keyframes quote-read {
  0%, 19%, 53%, 100% { opacity: .16; }
  36%, 43% { opacity: 1; }
}
@keyframes quote-verify {
  0%, 50%, 100% { opacity: .24; }
  65%, 82% { opacity: 1; }
}
@keyframes forecast-route {
  0%, 100% { stroke-dashoffset: 20; opacity: 0; }
  12% { opacity: 1; }
  56%, 72% { stroke-dashoffset: -100; opacity: 1; }
  85% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes forecast-confirm {
  0%, 36%, 100% { opacity: .35; }
  51%, 82% { opacity: 1; }
}
@keyframes workbook-settle {
  0%, 37%, 100% { transform: translate(5px, -9px); }
  59%, 82% { transform: translate(0, 0); }
}
@keyframes workbook-record {
  0%, 47%, 100% { opacity: .14; }
  65%, 82% { opacity: 1; }
}
@keyframes planning-fill {
  0%, 9%, 100% { transform: scaleX(.07); opacity: .45; }
  54%, 83% { transform: scaleX(1); opacity: 1; }
}
@keyframes planning-lift {
  0%, 50%, 100% { transform: translate(0, 2px); opacity: .07; }
  68%, 82% { transform: translate(3px, -6px); opacity: 1; }
}
.gnx-page .gallery-image { aspect-ratio: 1550 / 950; max-height: none; }
.gnx-page .gallery-image img { object-position: center; }
.gnx-page .lightbox-footer { justify-content: flex-end; }
.gnx-page .ending .site-link { font-size: 12px; color: #dadedd; }

@media(max-width: 1100px) {
  .engine-showcase { padding-bottom: 54px; }
  .architecture .principle-figure { grid-template-rows: auto auto auto; }
  .architecture .principle-drawing svg { position: static; }
}
@media(max-width: 1030px) {
  .tile-lead { grid-template-columns: clamp(36px, 4.8vw, 53px) minmax(0, 1fr); gap: 8px; }
  .engine-tile { padding: 10px; }
}
@media(max-width: 760px) {
  .gnx-page .hero h1 { font-size: clamp(36px, 8.4vw, 58px); }
  .window-main { grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 0; }
  .product-window { --rail: 42px; }
  .product-rail { z-index: 2; width: var(--rail-width); transition: width 260ms var(--ease); }
  .workspace-info { z-index: 3; width: min(var(--info-width), 100%); transition: width 260ms var(--ease); }
  .workspace-info-body { width: min(219px, calc(100cqw - var(--rail))); }
  .window-canvas { grid-area: 1 / 2; }
  .window-footer { grid-area: 2 / 2; }
  [data-engine-open] .window-canvas { min-height: clamp(252px, 60vw, 410px); }
  .window-canvas { padding: 13px; }
  .engine-tiles { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .engine-tile { gap: 9px; }
  .tile-lead { grid-template-columns: 44px 1fr; }
  .tile-lead h2 { font-size: 15px; }
  .tile-lead p { font-size: 12px; }
  .tile-meta { display: none; }
  .tile-link { min-height: 42px; }
  .product-rail :is(a, button) { min-height: 44px; }
}
@media(max-width: 360px) {
  .gnx-page .website-nav { gap: 8px; }
  .gnx-page .website-brand { font-size: 11px; gap: 6px; white-space: nowrap; }
  .gnx-page .website-brand img { width: 20px; height: 20px; }
  .gnx-page .website-nav > div { gap: 9px; font-size: 11px; }
  .gnx-page .hero h1 { font-size: 34px; }
  .window-footer { padding-inline: 8px; font-size: 10px; }
}
@media(prefers-reduced-motion: reduce) {
  .window-canvas::before { animation: none; }
  .tile-link, .tile-link span[aria-hidden], .product-rail, .product-rail :is(a, button), .workspace-info, .window-main, .window-brand span { transition: none; }
}
html:has(.gnx-page) { scroll-behavior: auto; }
@media(prefers-reduced-motion: no-preference) {
  html:has(.gnx-page) { scroll-behavior: smooth; }
}

.window-chrome { display: flex; align-items: center; gap: clamp(14px, 2vw, 27px); color: #a3adb1; }
.window-chrome svg { display: block; width: 16px; height: 16px; }
.engine-tile { transition: border-color 160ms, box-shadow 160ms; }
.engine-tile:is(:hover, :focus-visible) { border-color: #627b8b; box-shadow: 0 12px 28px -8px #000c, inset 0 1px 0 #fff2; }
@media(max-width: 760px) {
  .gnx-page .lightbox-bar { min-height: 62px; padding-inline: 12px; }
  .gnx-page .lightbox-bar > div:last-child { gap: 6px; }
  .gnx-page .lightbox-stage { gap: 2px; padding-inline: 4px; }
  .gnx-page .lightbox-stage > button { width: 34px; flex: none; }
}
