/* Section layer. Hero, gap diagram, switcher, collaborate, status, contact, auth shell. */

/* S01 Hero */

.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 132px;
  padding-bottom: var(--s9);
  border-top: 0;
}

/* Content sits above the spotlight layer. */
.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.hero__eyebrow::after {
  content: "";
  flex: 1;
  height: var(--hair);
  background: linear-gradient(to right, var(--line-strong), transparent);
  max-width: 240px;
}

.hero__title {
  font-size: var(--fs-display);
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: var(--s6);
}

/* The word "gaps" sits inside a frame with a visible break in it. */
.gapword {
  position: relative;
  display: inline-block;
  padding: 0 0.18em;
  margin-left: 0.06em;
}

.gapword::before,
.gapword::after {
  content: "";
  position: absolute;
  inset-block: -0.06em;
  width: 0.42em;
  border: 2px solid var(--line-strong);
  pointer-events: none;
}

.gapword::before {
  left: 0;
  border-right: 0;
  animation: gap-left 900ms var(--ease) 320ms both;
}

.gapword::after {
  right: 0;
  border-left: 0;
  animation: gap-right 900ms var(--ease) 320ms both;
}

/* The two halves close in on the word on load. Only a from state is declared,
   so the animation always resolves to the rules above, including when reduced
   motion collapses the duration to nothing. */
@keyframes gap-left {
  from {
    transform: translateX(-26px);
    opacity: 0;
  }
}

@keyframes gap-right {
  from {
    transform: translateX(26px);
    opacity: 0;
  }
}

.hero__lead {
  max-width: 58ch;
  font-size: var(--fs-md);
  color: var(--text-2);
  margin-bottom: var(--s7);
}

.hero__actions {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s8);
}

.hero__readout {
  display: flex;
  align-items: stretch;
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}

.hero__readout::-webkit-scrollbar {
  display: none;
}

.hero__readout > * {
  flex: 1;
  min-width: 116px;
  padding: var(--s3) var(--s4);
  border-right: var(--hair) solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  transition: color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.hero__readout > *:last-child {
  border-right: 0;
}

.hero__readout > *:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* The readout doubles as the plate control: the pressed domain is the one on show. */
.hero__readout > [aria-pressed="true"] {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 2px 0 var(--text);
}

.hero__readout > button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

/* Copy beside the plate on wide screens; stacked below 1024px. */
.hero__grid {
  display: grid;
  gap: var(--s7);
  align-items: center;
  margin-bottom: var(--s8);
}

.hero__copy .hero__actions {
  margin-bottom: 0;
}

.hero__plate {
  width: 100%;
  max-width: 560px;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: clamp(32px, 5vw, 72px);
  }

  .hero__plate {
    justify-self: end;
  }
}

/* Keep clear of the fixed section rail, whose active label floats over the
   right edge of the wrap from 1120px up. */
@media (min-width: 1120px) {
  .hero__plate {
    margin-right: clamp(40px, 4vw, 72px);
  }
}

.hero__scroll {
  position: absolute;
  bottom: var(--s5);
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text-3);
}

.hero__scroll .ico {
  animation: nudge 2.6s var(--ease) infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* S02 Gap diagram */

.gapmap {
  position: relative;
  width: 100%;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s5);
}

/* The canvas sits under the SVG in the same coordinate space, so the simulated
   packets travel exactly along the drawn connectors. */
.gapmap__stage {
  position: relative;
  width: 100%;
}

.gapmap__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.gapmap svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  overflow: visible;
}

.gapmap .node-box {
  /* Lets the packets read through the boxes rather than vanishing behind them. */
  fill-opacity: 0.92;
}

.gapmap .node-box {
  fill: var(--surface-2);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.gapmap .node-label {
  fill: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Node indicators. Same grammar as the systems status dots: a solid dot in a
   state colour plus a ring that beeps outward. Each node carries its own state. */

.gapmap .node-dot {
  fill: var(--line-strong);
  transition: fill var(--t-slow) var(--ease);
}

.gapmap .node-pulse {
  fill: var(--line-strong);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.gapmap .node--ok .node-dot,
.gapmap .node--ok .node-pulse {
  fill: var(--ok);
}
.gapmap .node--warn .node-dot,
.gapmap .node--warn .node-pulse {
  fill: var(--warn);
}
.gapmap .node--err .node-dot,
.gapmap .node--err .node-pulse {
  fill: var(--err);
}
.gapmap .node--info .node-dot,
.gapmap .node--info .node-pulse {
  fill: var(--info);
}

/* The beep starts only once the section has been revealed. */
.is-in .gapmap .node-pulse {
  animation: node-beep 2.6s var(--ease) infinite;
}

.is-in .gapmap .node:nth-of-type(2) .node-pulse {
  animation-delay: 0.32s;
}
.is-in .gapmap .node:nth-of-type(3) .node-pulse {
  animation-delay: 0.64s;
}
.is-in .gapmap .node:nth-of-type(4) .node-pulse {
  animation-delay: 0.16s;
}
.is-in .gapmap .node:nth-of-type(5) .node-pulse {
  animation-delay: 0.48s;
}
.is-in .gapmap .node:nth-of-type(6) .node-pulse {
  animation-delay: 0.8s;
}

@keyframes node-beep {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  70% {
    transform: scale(3);
    opacity: 0;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.gapmap__legend {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

.gapmap__legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.gapmap .seam {
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.gapmap .seam-label {
  fill: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
}

.gapmap .link {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  stroke-dashoffset: 300;
  opacity: 0.9;
}

.is-in .gapmap .link {
  animation: draw 1.5s var(--ease) forwards;
}

.is-in .gapmap .link:nth-of-type(2) {
  animation-delay: 0.14s;
}
.is-in .gapmap .link:nth-of-type(3) {
  animation-delay: 0.28s;
}
.is-in .gapmap .link:nth-of-type(4) {
  animation-delay: 0.42s;
}
.is-in .gapmap .link:nth-of-type(5) {
  animation-delay: 0.56s;
}
.is-in .gapmap .link:nth-of-type(6) {
  animation-delay: 0.7s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.gapmap__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: var(--hair) solid var(--line);
}

.gapmap .seam-label {
  letter-spacing: 0.34em;
}

.claim {
  display: flex;
  gap: var(--s4);
  padding-block: var(--s4);
  border-top: var(--hair) solid var(--line);
}

.claim__no {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.2em;
  color: var(--text-3);
  padding-top: 4px;
  flex: none;
  width: 42px;
}

/* S03 Switcher */

/* The switch is a scroll track. The stage inside it is what the reader sees,
   pinned in place while the section is scrolled through. */
.switch {
  position: relative;
}

.switch__stage {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.switch__list {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  position: relative;
  border-left: var(--hair) solid var(--line);
}

.switch__marker {
  position: absolute;
  left: -1px;
  width: 2px;
  background: var(--text);
  transition: transform var(--t-base) var(--ease), height var(--t-base) var(--ease);
}

.switch__tab {
  display: flex;
  align-items: center;
  gap: var(--s4);
  width: 100%;
  padding: var(--s4) var(--s5);
  text-align: left;
  color: var(--text-3);
  transition: color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.switch__tab:hover {
  color: var(--text-2);
  background: var(--surface);
}

.switch__tab[aria-selected="true"] {
  color: var(--text);
  background: var(--surface);
}

.switch__tab-index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  color: var(--text-3);
}

.switch__tab-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.switch__panel {
  position: relative;
  min-height: 340px;
}

.switch__pane {
  display: none;
}

.switch__pane.is-active {
  display: block;
  animation: pane-in var(--t-base) var(--ease);
}

@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.switch__readout {
  position: absolute;
  top: var(--s5);
  right: var(--s6);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  color: var(--text-3);
  z-index: 2;
}

.switch__headline {
  font-size: var(--fs-xl);
  margin-bottom: var(--s4);
  max-width: 24ch;
}

.points {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: var(--hair) solid var(--line);
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.points .ico {
  color: var(--ok);
  margin-top: 2px;
}

/* Scroll driven mode, switched on by switcher.js. Applies at every width:
   the stage pins, and each track owns one step of the section's height, so a
   reader walks the four tracks in order and cannot scroll past any of them. */

.switch--scroll {
  height: calc(var(--switch-steps, 4) * 72svh);
}

/* Where the stage comes to rest. Pinning it just under the nav shoved the panel
   against the top edge of the screen, which read as the layout breaking rather
   than as a deliberate hold. Parking it lower leaves air above and lands the
   content nearer the middle of the viewport, where the eye already is.
   switcher.js reads this same computed value, so the two cannot drift. */
.switch--scroll .switch__stage {
  position: sticky;
  top: clamp(104px, 15vh, 190px);
}

.switch--scroll .switch__pane {
  /* Stops the pinned box resizing as tracks of different lengths swap in. */
  min-height: 420px;
}

/* Position through the section, drawn down the tab list beside the marker. */
.switch__marker {
  z-index: 2;
}

.switch__progress {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 100%;
  z-index: 1;
}

.switch__progress span {
  display: block;
  width: 100%;
  height: var(--switch-progress, 0%);
  background: var(--line-strong);
  transition: height var(--t-micro) linear;
}

/* Narrow screens.

   The old layout put the tabs in a horizontally scrolling row, which left three
   of the four tracks off screen with no hint that they existed. People saw one
   track and assumed that was all of it.

   All four are now laid out as equal columns so the whole set is visible at a
   glance, and the section drives them from the scroll itself: the stage pins to
   the viewport and each track takes one step of the scroll, so nothing can be
   skipped past. Tapping a tab scrolls to that step, which keeps the scroll
   position and the selected track from ever disagreeing. */

@media (max-width: 900px) {
  .switch__stage {
    display: block;
  }

  .switch__list {
    flex-direction: row;
    overflow: visible;
    border-left: 0;
    border-bottom: var(--hair) solid var(--line);
    position: relative;
    gap: 0;
    margin-bottom: var(--s5);
  }

  .switch__marker {
    display: none;
  }

  .switch__tab {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: var(--s3) var(--s1) var(--s4);
    text-align: center;
    border-radius: 0;
  }

  .switch__tab .ico {
    width: 18px;
    height: 18px;
  }

  .switch__tab-index {
    font-size: 0.5625rem;
    opacity: 0.7;
  }

  .switch__tab-name {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-weight: 500;
  }

  .switch__tab[aria-selected="true"] {
    background: var(--surface);
  }

  /* The progress line turns horizontal, running under the strip. */
  .switch__progress {
    left: 0;
    right: 0;
    top: auto;
    bottom: -1px;
    width: auto;
    height: 2px;
    background: var(--line);
  }

  .switch__progress span {
    height: 100%;
    width: var(--switch-progress, 0%);
    background: var(--text);
    transition: width var(--t-micro) linear;
  }

  .switch__panel {
    min-height: 0;
  }

  .switch--scroll .switch__pane {
    min-height: 400px;
  }

  .switch__readout {
    display: block;
    top: var(--s4);
    right: var(--s5);
  }
}

/* S04 Collaborate */

.marquee {
  position: relative;
  margin-top: var(--s8);
  padding-block: var(--s4);
  border-block: var(--hair) solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--s7);
  width: max-content;
  animation: slide 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  display: flex;
  align-items: center;
  gap: var(--s7);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.marquee__track span::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--line-strong);
  border-radius: 50%;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.card__lines {
  display: flex;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s4);
  border-top: var(--hair) solid var(--line);
  flex-wrap: wrap;
}

/* S05 Status: the status panel itself lives in shared/css/components.css. */

/* S06 Contact */

.contactform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

.contactform .field--wide {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .contactform {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contactside {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.contactside__mail {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Auth shell */

.auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 112px var(--gutter) var(--s9);
  position: relative;
}

.auth__card {
  width: 100%;
  max-width: 480px;
  padding: clamp(24px, 4vw, 44px);
}

.auth__head {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s6);
  padding-bottom: var(--s5);
  border-bottom: var(--hair) solid var(--line);
}

.auth__title {
  font-size: var(--fs-xl);
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.auth__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: var(--hair) solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-2);
  flex-wrap: wrap;
}

/* Errors */

.errorpage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s10) var(--gutter);
}

.errorpage__code {
  font-size: clamp(4rem, 18vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}


/* Photo plates inside panels: the plate bleeds to the panel's top edge. */

/* The switch stage is pinned to the viewport, so the track plate is sized from
   the viewport height, not its width, and steps aside on short screens. */
.switch__pane > .plate__media {
  aspect-ratio: auto;
  height: clamp(96px, 26vh, 240px);
  margin: calc(var(--s6) * -1) calc(var(--s6) * -1) var(--s6);
  border-bottom: var(--hair) solid var(--line);
}

@media (max-height: 760px) {
  .switch__pane > .plate__media {
    display: none;
  }
}

.switch__pane .switch__readout {
  padding: var(--s1) var(--s2);
  background: var(--surface);
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
}

/* Written first in the card; not :first-child, as data-spotlight injects a .spot. */
.card > .plate__media {
  --plate-ratio: 16 / 9;
  margin: calc(var(--s6) * -1) calc(var(--s6) * -1) 0;
  border-bottom: var(--hair) solid var(--line);
}

/* Secondary pages: title and lead beside a plate when the page supplies one. */
.page__head {
  display: grid;
  gap: var(--s7);
  align-items: end;
}

@media (min-width: 900px) {
  .page__head:has(.page__plate .plate__media) {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }
}

.page__plate:empty {
  display: none;
}

/* Scenes: blueprints that draw themselves on scroll (home/js/scenes.js).
   Static by default; .is-live (added by JS, never under reduced motion) turns the
   scene into a tall track with a sticky stage. */

.scene {
  position: relative;
  margin-top: var(--s8);
}

.scene.is-live {
  height: calc(var(--scene-steps, 5) * 55vh + 100vh);
}

.scene__stage {
  position: relative;
}

.scene.is-live .scene__stage {
  position: sticky;
  top: 72px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.scene__grid {
  display: grid;
  gap: var(--s6);
  align-items: center;
}

@media (min-width: 960px) {
  .scene__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 4vw, 64px);
  }
}

/* Keep the drawing clear of the fixed section rail on wide screens. */
@media (min-width: 1120px) {
  .scene__figure {
    margin-right: clamp(40px, 4vw, 72px);
  }
}

.scene__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: var(--hair) solid var(--line);
}

.scene__item {
  position: relative;
  padding: var(--s2) var(--s4);
  color: var(--text-3);
  transition: color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.scene__item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background-color var(--t-base) var(--ease);
}

.scene__item.is-active,
.scene:not(.is-live) .scene__item {
  color: var(--text);
}

.scene__item.is-active {
  background: var(--surface);
}

.scene__item.is-active::before {
  background: var(--text);
}

.scene__item.is-past {
  color: var(--text-2);
}

.scene__link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: inherit;
  text-decoration: none;
}

a.scene__link:hover .scene__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scene__index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  color: var(--text-3);
}

.scene__name {
  flex: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Notes show for the current step only while the scene is live. */
.scene__note {
  margin: var(--s1) 0 0;
  padding-left: calc(var(--s3) + 26px);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.scene.is-live .scene__item:not(.is-active) .scene__note {
  display: none;
}

.chip--sm {
  padding: 2px var(--s2);
  font-size: var(--fs-xs);
  gap: var(--s1);
}

.scene__figure {
  margin: 0;
}

.scene__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.scene__svg path,
.scene__svg circle {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* The always-there site plan: faint and dashed. */
.scene__svg .scene__base path {
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

/* Drawn steps settle to the secondary ink; the current step stays full black. */
.scene.is-live [data-scene-group] path,
.scene.is-live [data-scene-group] circle {
  stroke: var(--text-2);
}

.scene.is-live [data-scene-group].is-current path,
.scene.is-live [data-scene-group].is-current circle {
  stroke: var(--text);
}

.scene__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  fill: var(--text-3);
  stroke: none;
}

.scene.is-live .scene__label {
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.scene.is-live .is-drawn .scene__label,
.scene.is-live .is-current .scene__label {
  opacity: 1;
}

@media (max-width: 959px) {
  .scene.is-live .scene__stage {
    align-items: flex-start;
    padding-top: var(--s4);
  }

  /* On phones the drawing leads and the list shows the current step only. */
  .scene.is-live .scene__figure {
    order: -1;
  }

  .scene.is-live .scene__item:not(.is-active) {
    display: none;
  }
}

/* System pages. */

.hero--page {
  min-height: 0;
  padding-bottom: var(--s9);
}

.system__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1;
}

.system__byline {
  margin-top: var(--s3);
  color: var(--text-3);
}

.system__gaps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hair) solid var(--line);
}

.system__gaps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s3);
  padding: var(--s4) 0;
  border-bottom: var(--hair) solid var(--line);
  color: var(--text-2);
}

.system__caution {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  margin-top: var(--s6);
  padding: var(--s4) var(--s5);
  border: var(--hair) solid var(--line-strong);
  border-left: 2px solid var(--warn);
  border-radius: var(--r);
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.system__caution p {
  margin: 0;
}

.system__caution .ico {
  flex: none;
  color: var(--warn);
}

.system__cta {
  display: grid;
  gap: var(--s6);
  align-items: center;
}

@media (min-width: 900px) {
  .system__cta {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  }
}

.system__pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s4);
  align-items: end;
  margin-top: var(--s7);
}

.system__pager a {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.system__pager a:last-child {
  align-items: flex-end;
}

.system__pager a .mono,
.system__pager > a.mono {
  color: var(--text-3);
  font-weight: 400;
}

.system__pager > a.mono {
  align-self: center;
}

/* ---------------------------------------------------------------------------
   Cinema: the landing opening (S01).
   Two states. Base rules are the finished composition, used without JS and
   under reduced motion. .is-live (motion.js) makes the section a tall track and
   lets --e (0 to 1, eased scroll progress) drive the timeline:
     --a  0 to 1 over the first 60%: the slit opens, the words part
     --b  0 to 1 over the last 45%: lead, actions and readout rise in
   ------------------------------------------------------------------------- */

.cine {
  --a: 1;
  --b: 1;
  position: relative;
  background: var(--bg);
  color: var(--text);
  border-top: 0;
  padding: 0;
}

.cine.is-live {
  --a: clamp(0, calc(var(--e, 0) / 0.6), 1);
  --b: clamp(0, calc((var(--e, 0) - 0.55) / 0.45), 1);
  height: 260vh;
}

.cine__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
}

.cine.is-live .cine__stage {
  position: sticky;
  top: 0;
}

/* The photograph, opened from a slit to the full stage. */
.cine__media {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
  clip-path: inset(calc((1 - var(--a)) * 17vh) calc((1 - var(--a)) * 46vw));
}

.cine__media .plate__stack {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: #000;
}

.cine .plate__stack .plate__img {
  transform: scale(calc(1.22 - var(--a) * 0.22));
  transition: opacity 1100ms var(--ease);
}

.cine__caption {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--s6) + 4px);
  color: rgba(255, 255, 255, 0.7);
  opacity: var(--a);
  text-transform: uppercase;
}

.cine__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.12);
}

.cine__progress span {
  background: rgba(255, 255, 255, 0.85);
}

.cine__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.5) 100%);
  opacity: calc(0.35 + var(--a) * 0.65);
}

/* Giant outlined word behind everything, as in a product reveal. */
.cine__ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  transform: translate(-50%, -50%) scale(calc(1 + var(--a) * 0.18));
  font-size: clamp(6rem, 26vw, 28rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  opacity: 0;
  pointer-events: none;
}

.cine.is-live .cine__ghost {
  opacity: calc(0.9 - var(--a));
}

.cine__top {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  color: rgba(255, 255, 255, 0.75);
}

.cine__top .label,
.cine__top .section__coord {
  color: inherit;
}

/* The two halves of the headline, either side of the gap. */
.cine__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.28em;
  margin: 0;
  font-size: clamp(2.6rem, 9.5vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.cine.is-live .cine__title {
  top: 50%;
  transform: translateY(-50%);
  gap: calc(9vw + 0.3em);
}

.cine.is-live .cine__half--l {
  transform: translateX(calc(var(--a) * -34vw));
  opacity: clamp(0, calc(1 - var(--a) * 1.5), 1);
}

.cine.is-live .cine__half--r {
  transform: translateX(calc(var(--a) * 34vw));
  opacity: clamp(0, calc(1 - var(--a) * 1.5), 1);
}

.cine__half--r {
  font-style: italic;
  font-weight: 700;
}

/* Lead, actions and the domain readout, over the photograph. */
.cine__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--s9);
  display: grid;
  gap: var(--s5);
  opacity: var(--b);
  transform: translateY(calc((1 - var(--b)) * 48px));
}

.cine.is-live .cine__copy {
  pointer-events: none;
}

.cine.is-live.is-settled .cine__copy {
  pointer-events: auto;
}

.cine__lead {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.35;
  color: #fff;
}

.cine__copy .hero__actions {
  margin: 0;
}

.cine__readout {
  max-width: 820px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.14);
}

.cine__readout > * {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
}

.cine__readout > [aria-pressed="true"],
.cine__readout > *:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 0 #fff;
}

.cine__cue {
  position: absolute;
  left: 50%;
  bottom: var(--s5);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
}

.cine.is-live .cine__cue {
  opacity: calc(1 - var(--a) * 3);
}

.cine__cue .ico {
  animation: nudge 2.6s var(--ease) infinite;
}

@media (max-width: 700px) {
  .cine__top {
    top: 84px;
  }

  .cine__copy {
    bottom: var(--s7);
  }

  .cine__caption {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Film: the systems (S04). A counters band, then a pinned track whose strip of
   full-height panels slides sideways by --p x --travel. Without the live track
   the strip is a plain horizontal scroller with snap points.
   ------------------------------------------------------------------------- */

.film {
  position: relative;
  background: var(--bg);
  color: var(--text);
  padding-top: var(--s10);
  border-top: 0;
}

.film__title {
  margin: var(--s6) 0 var(--s8);
  max-width: 14ch;
  font-size: clamp(2.8rem, 8vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: var(--hair) solid var(--line);
}

.counters__item {
  padding: var(--s5) var(--s4) var(--s6) 0;
  border-right: var(--hair) solid var(--line);
}

.counters__item + .counters__item {
  padding-left: var(--s5);
}

.counters__item:last-child {
  border-right: 0;
}

.counters dt {
  color: var(--text-3);
  text-transform: uppercase;
}

.counters dd {
  margin: var(--s3) 0 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.film__track {
  position: relative;
  margin-top: var(--s8);
}

.film__track.is-live {
  height: calc(var(--n, 7) * 75vh + 100vh);
}

.film__stage {
  position: relative;
}

.film__track.is-live .film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.film__strip {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 2vw, 28px);
  margin: 0;
  padding: 0 var(--gutter) var(--s8);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.film__strip::-webkit-scrollbar {
  display: none;
}

.film__track.is-live .film__strip {
  height: 100%;
  padding-top: 92px;
  padding-bottom: 110px;
  overflow: visible;
  scroll-snap-type: none;
  transform: translate3d(calc(var(--p, 0) * var(--travel, 0px) * -1), 0, 0);
  will-change: transform;
}

.film__intro,
.film__end {
  flex: 0 0 min(34vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s5);
  padding-bottom: var(--s5);
  scroll-snap-align: start;
}

.film__end {
  flex-basis: min(30vw, 380px);
  justify-content: center;
  align-items: flex-start;
  color: var(--text-3);
}

.film__kicker {
  margin: 0;
  color: var(--text-3);
  text-transform: uppercase;
}

.film__intro-lead {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.3;
}

.film__hint {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text-3);
}

.film__hint .ico {
  animation: nudge-x 2.4s var(--ease) infinite;
}

@keyframes nudge-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.film__panel {
  flex: 0 0 min(68vw, 1080px);
  height: 68vh;
  min-height: 420px;
  scroll-snap-align: center;
}

.film__track.is-live .film__panel {
  height: auto;
  min-height: 0;
}

.film__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #050505;
  border: var(--hair) solid rgba(255, 255, 255, 0.1);
}

.film__media,
.film__shade {
  position: absolute;
  inset: 0;
}

.film__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: brightness(0.7);
  transition: transform 1400ms cubic-bezier(0.2, 0.7, 0.1, 1), filter 900ms var(--ease);
}

.film__panel.is-current .film__img {
  transform: scale(1);
  filter: brightness(0.95);
}

.film__link:hover .film__img,
.film__link:focus-visible .film__img {
  transform: scale(1.04);
  filter: brightness(1);
}

.film__shade {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.45) 100%);
}

.film__index {
  position: absolute;
  top: clamp(8px, 2vw, 24px);
  left: clamp(16px, 2.5vw, 36px);
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
  transition: color 700ms var(--ease);
}

.film__panel.is-current .film__index {
  color: rgba(255, 255, 255, 0.08);
}

.film__body {
  position: absolute;
  left: clamp(16px, 2.5vw, 36px);
  right: clamp(16px, 2.5vw, 36px);
  bottom: clamp(18px, 3vw, 40px);
  display: grid;
  gap: var(--s3);
}

.film__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.film__name {
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.film__tagline {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.4;
}

.film__open {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s2);
  color: #fff;
  text-transform: uppercase;
}

.film__open .ico {
  transition: transform var(--t-base) var(--ease);
}

.film__link:hover .film__open .ico {
  transform: translateX(4px);
}

.film__chapters {
  display: none;
}

.film__track.is-live .film__chapters {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--s5);
  display: grid;
  gap: var(--s3);
}

.film__bar {
  display: block;
  height: 1px;
  background: var(--line);
}

.film__bar span {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: var(--text);
}

.film__chapters ol {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.film__chapters a {
  color: var(--text-3);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-base) var(--ease);
}

.film__chapters a[aria-current],
.film__chapters a:hover {
  color: var(--text);
}

@media (max-width: 1100px) {
  .film__chapters a {
    font-size: 0;
  }

  .film__chapters a .mono {
    font-size: 0.8rem;
  }
}

@media (max-width: 760px) {
  .counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counters__item:nth-child(2) {
    border-right: 0;
  }

  .counters__item:nth-child(3) {
    padding-left: 0;
  }

  .counters__item:nth-child(n + 3) {
    border-top: var(--hair) solid var(--line);
  }

  .film__panel {
    flex-basis: 84vw;
  }

  .film__intro {
    flex-basis: 72vw;
  }

  .film__end {
    flex-basis: 60vw;
  }
}

/* ---------------------------------------------------------------------------
   System page (/transport, /homes, ...). Cinematic dark hero, a full-bleed photo
   band, the blueprint scene for /homes, and the next-system feature.
   ------------------------------------------------------------------------- */

.shero {
  position: relative;
  background: #000;
  color: var(--text);
}

.shero.is-live {
  height: 150vh;
}

.shero__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

.shero.is-live .shero__stage {
  position: sticky;
  top: 0;
}

.shero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.shero__media .plate__stack {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: #000;
}

.shero .plate__stack .plate__img {
  transform: scale(calc(1 + var(--e, 0) * 0.14));
  transition: opacity 1100ms var(--ease);
}

.shero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 60%);
  opacity: calc(0.85 + var(--e, 0) * 0.15);
}

.shero__index {
  position: absolute;
  right: calc(var(--gutter) - 0.04em);
  top: 50%;
  transform: translateY(calc(-50% - var(--e, 0) * 12vh));
  font-size: clamp(9rem, 34vw, 34rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.shero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--s6) + 4px);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.shero__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.12);
}

.shero__progress span {
  background: rgba(255, 255, 255, 0.85);
}

.shero__top {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  color: rgba(255, 255, 255, 0.75);
}

.shero__top .label,
.shero__top .section__coord {
  color: inherit;
}

.shero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--s9);
  display: grid;
  gap: var(--s4);
  justify-items: start;
  transform: translateY(calc(var(--e, 0) * -10vh));
  opacity: calc(1 - var(--e, 0) * 1.2);
}

.shero__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.shero__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: #fff;
}

.shero__lead {
  max-width: 44ch;
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.shero__copy .hero__actions {
  margin: var(--s3) 0 0;
}

/* Full-bleed photo band with a sliding image and an outlined word. */
.band {
  position: relative;
  height: clamp(320px, 70vh, 760px);
  overflow: hidden;
  background: #000;
}

.band__img {
  position: absolute;
  inset: -14% 0;
  transform: translate3d(0, var(--py, 0px), 0);
}

.band__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.band__word {
  position: absolute;
  left: var(--gutter);
  bottom: var(--s6);
  font-size: clamp(3rem, 12vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
}

/* /homes: the plot-to-keys drawing as blueprint lines over the site photo. */
.blueprint {
  position: relative;
  overflow: clip; /* not hidden: hidden would break the scene's sticky stage */
  background: #04070d;
  color: var(--text);
}

/* The photo stays pinned to the viewport while the tall scene scrolls past. */
.blueprint__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  pointer-events: none;
}

.blueprint__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.blueprint__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

.blueprint > :not(.blueprint__bg) {
  position: relative;
}

.blueprint .scene__figure {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(1px);
}

.blueprint .scene__svg {
  background: transparent;
}

.blueprint .scene__item:not(.is-active) {
  color: rgba(255, 255, 255, 0.6);
}

/* Next system: the whole band is one link. */
.nextsys {
  position: relative;
  display: block;
  height: clamp(420px, 86vh, 900px);
  overflow: hidden;
  background: #000;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.nextsys__media {
  position: absolute;
  inset: -12% 0;
  transform: translate3d(0, var(--py, 0px), 0);
}

.nextsys__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transform: scale(1.06);
  transition: transform 1600ms cubic-bezier(0.2, 0.7, 0.1, 1), filter 900ms var(--ease);
}

.nextsys:hover .nextsys__img,
.nextsys:focus-visible .nextsys__img {
  transform: scale(1);
  filter: brightness(0.85);
}

.nextsys__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1) 70%);
}

.nextsys__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--s9);
  display: grid;
  gap: var(--s4);
}

.nextsys__label {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.nextsys__name {
  max-width: 14ch;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.nextsys__tagline {
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.nextsys__go {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 112px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), transform 600ms var(--ease);
}

.nextsys:hover .nextsys__go {
  background: #fff;
  color: #000;
  transform: translateX(8px);
}

@media (max-width: 700px) {
  .shero__top {
    top: 84px;
  }

  .shero__copy {
    bottom: var(--s7);
  }

  .shero__caption {
    display: none;
  }

  .nextsys__go {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   /systems: the typographic index and the floating photo (showcase.js).
   ------------------------------------------------------------------------- */

.sysindex {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hair) solid var(--line);
}

.sysrow {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto 2rem;
  grid-template-areas:
    "index name meta go"
    "index tagline tagline go";
  align-items: baseline;
  column-gap: var(--s5);
  row-gap: var(--s2);
  padding: var(--s6) 0;
  border-bottom: var(--hair) solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-base) var(--ease), padding var(--t-slow, 400ms) var(--ease);
}

.sysrow__index {
  grid-area: index;
  color: var(--text-3);
}

.sysrow__name {
  grid-area: name;
  font-size: clamp(2.2rem, 6.4vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.sysrow__meta {
  grid-area: meta;
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--text-3);
  text-transform: uppercase;
}

.sysrow__tagline {
  grid-area: tagline;
  max-width: 60ch;
  color: var(--text-2);
}

.sysrow__go {
  grid-area: go;
  align-self: center;
  transition: transform var(--t-base) var(--ease);
}

.sysrow__thumb {
  display: none;
}

/* Hovering one row dims the rest, as on an editorial index. */
.sysindex.is-hovering .sysrow {
  color: var(--text-3);
}

.sysindex.is-hovering .sysrow:hover {
  color: var(--text);
  padding-left: var(--s4);
}

.sysrow:hover .sysrow__go,
.sysrow:focus-visible .sysrow__go {
  transform: translateX(6px);
}

.sysfloat {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 4 / 3;
  margin: calc(clamp(220px, 22vw, 340px) * -0.375) 0 0 calc(clamp(220px, 22vw, 340px) * -0.5);
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background: #000;
  transition: opacity 260ms var(--ease);
}

.sysfloat.is-on {
  opacity: 1;
}

.sysfloat__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 320ms var(--ease), transform 700ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.sysfloat__img.is-on {
  opacity: 1;
  transform: scale(1);
}

.sysfloat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: none), (pointer: coarse) {
  .sysfloat {
    display: none;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 700px) {
  .sysrow {
    grid-template-columns: 2.2rem minmax(0, 1fr) 88px;
    grid-template-areas:
      "index name thumb"
      "index meta thumb"
      "index tagline tagline";
  }

  .sysrow__go {
    display: none;
  }

  .sysrow__thumb {
    grid-area: thumb;
    display: block;
    align-self: start;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .sysrow__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sysrow__name {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
}

/* Cross-page transitions: pages crossfade, and a system's photo on the landing
   film morphs into its page's hero (shared view-transition-name). */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
