/* Two product forms, one quiet exhibition space. All rules stay in #product. */
#product {
  --p-s1: 4px;
  --p-s2: 8px;
  --p-s3: 12px;
  --p-s4: 16px;
  --p-s5: 24px;
  --p-s6: 32px;
  --p-s7: 48px;
  --p-s8: 64px;
  --p-hairline: 1px;
  --p-heading: clamp(66px, 7.5vw, 108px);
  --p-title: clamp(23px, 2.3vw, 36px);
  --p-body: clamp(13px, 1.12vw, 16px);
  --p-caption: 11px;
  --p-motion: 240ms;
  --p-media-scale: 1.25;
  --p-instrument-type: 9px;
  --p-instrument-edge: 14px;
  --p-rider-width: 55px;
  --p-follower-width: 28px;
  --p-transport-gap: 8px;
  --p-transport-width: calc(var(--p-rider-width) + 2 * var(--p-follower-width) + 2 * var(--p-transport-gap));
  --p-transport-height: 16px;
  --p-transport-cycle: 20s;
  gap: var(--p-s5);
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + var(--p-s5));
  padding-bottom: calc(var(--bar-h) + var(--p-s5));
  background: var(--bg-0);
  isolation: isolate;
}
#product .product-head {
  display: grid;
  grid-template-columns: auto minmax(var(--p-s6), 1fr);
  align-items: baseline;
  gap: var(--p-s5);
}
#product .product-head__title {
  color: var(--fg-0);
  font: 200 var(--p-heading)/.95 var(--font-display);
  letter-spacing: -.015em;
  white-space: nowrap;
}
#product .product-head__title > span { color: var(--accent); }
#product .product-head__rule {
  height: var(--p-hairline);
  background: var(--fg-3);
  align-self: center;
  transform: translateY(var(--p-s3));
}
#product .product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--p-s5);
  min-width: 0;
}
#product .product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--p-s8);
  flex: 1;
}
#product .product-item {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}
#product .product-item + .product-item::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: calc(var(--p-s6) * -1);
  width: var(--p-hairline);
  background: var(--line-2);
}
#product .product-item__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--p-s4);
  color: var(--fg-2);
  font: 400 var(--p-caption)/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
#product .product-item__no { color: var(--fg-1); }
#product .product-item__eyebrow::after {
  content: '';
  flex: 1;
  height: var(--p-hairline);
  background: var(--line-1);
}
#product .product-item__rule {
  width: var(--p-s6);
  height: var(--p-hairline);
  background: var(--line-3);
}
#product .product-item__stage {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 0;
  min-height: 200px;
  height: clamp(220px, 32svh, 360px);
  flex: 1;
  overflow: hidden;
  background: var(--bg-0);
}
#product .product-video {
  position: absolute;
  /* the renders were made on pure black; lighten lets that black become the page ground */
  mix-blend-mode: lighten;
  width: calc(100% * var(--p-media-scale));
  height: calc(100% * var(--p-media-scale));
  max-width: none;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
#product .product-viewfinder {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
#product .product-viewfinder__drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--line-3);
  stroke-width: var(--p-hairline);
}
#product .product-viewfinder__drawing path { vector-effect: non-scaling-stroke; }
#product .product-viewfinder__corners { opacity: .85; transition: stroke var(--p-motion) ease; }
#product .product-viewfinder__ticks { opacity: .65; }
#product .product-viewfinder__datum { opacity: .35; }
#product .product-flow__rail {
  stroke: color-mix(in srgb, var(--accent) 38%, var(--line-1));
  stroke-width: var(--p-hairline);
}
#product .product-flow__packet {
  stroke: var(--accent);
  stroke-width: 1.4px;
  stroke-dasharray: 16 196 4 310 8 466;
  opacity: .85;
  animation: product-packet-flow var(--flow-speed, 8s) linear infinite;
  animation-delay: var(--flow-delay, 0s);
  animation-play-state: paused;
}
#product .product-flow__pixel {
  fill: var(--accent);
  stroke: none;
  opacity: .2;
  animation: product-pixel-flux 3.4s steps(1, end) infinite;
  animation-delay: var(--flow-delay, 0s);
  animation-play-state: paused;
}
#product[data-product-motion="playing"] :is(.product-flow__packet, .product-flow__pixel) {
  animation-play-state: running;
}
@keyframes product-packet-flow { to { stroke-dashoffset: -1000; } }
@keyframes product-pixel-flux {
  0%, 18%, 62%, 100% { opacity: .12; }
  19%, 37% { opacity: .9; }
  38%, 61% { opacity: .3; }
  63%, 78% { opacity: .65; }
  79%, 99% { opacity: .2; }
}
#product .product-scan {
  position: absolute;
  inset-inline: var(--p-instrument-edge);
  top: 12%;
  height: var(--p-hairline);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  animation: product-laser-scan 5s ease-in-out infinite;
  animation-play-state: paused;
}
#product [data-playback="playing"] .product-scan { animation-play-state: running; }
@keyframes product-laser-scan {
  0% { top: 12%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 88%; opacity: 0; }
}
#product .product-item:hover .product-viewfinder__corners { stroke: var(--fg-3); }
#product .product-item__copy {
  padding-top: var(--p-s4);
  min-height: 112px;
}
#product .product-item__title {
  margin: 0 0 var(--p-s3);
  color: var(--fg-0);
  font: 300 var(--p-title)/1.45 var(--font-jp);
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
#product .product-item__facts {
  display: grid;
  gap: var(--p-s2);
  margin: 0;
  padding-top: var(--p-s3);
  border-top: var(--p-hairline) solid var(--line-1);
}
#product .product-fact {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: var(--p-s5);
  align-items: baseline;
  font-family: var(--font-jp);
  line-height: 1.75;
}
#product .product-fact__label {
  color: var(--fg-2);
  font-size: var(--p-caption);
  letter-spacing: .06em;
}
#product .product-fact__value {
  color: var(--fg-1);
  font-size: var(--p-body);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
#product .product-common {
  position: relative;
  padding-top: var(--p-s3);
  border-top: var(--p-hairline) solid var(--line-3);
  border-bottom: var(--p-hairline) solid var(--line-3);
}
#product .product-common::before {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  top: calc(var(--p-s3) * -1);
  height: var(--p-s3);
  border-left: var(--p-hairline) solid var(--line-3);
  border-right: var(--p-hairline) solid var(--line-3);
  pointer-events: none;
}
#product .product-common__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--p-s4);
  min-height: var(--p-s6);
}
#product .product-function-stream {
  flex: 1;
  min-width: 0;
  margin-inline: var(--p-s5);
  overflow: hidden;
  color: color-mix(in srgb, var(--accent) 58%, var(--fg-3));
  font: 400 var(--p-caption)/1.5 var(--font-mono);
  letter-spacing: .14em;
  user-select: none;
}
#product .product-function-stream__track {
  display: flex;
  width: max-content;
  animation: product-function-flow 32s linear infinite;
  animation-play-state: paused;
}
#product .product-function-stream__track > span { flex: none; padding-right: var(--p-s7); white-space: nowrap; }
#product[data-product-motion="playing"] .product-function-stream__track { animation-play-state: running; }
@keyframes product-function-flow { to { transform: translateX(-50%); } }
#product .product-common__title {
  color: var(--fg-2);
  font: 400 var(--p-caption)/1.5 var(--font-jp);
  letter-spacing: .12em;
}
#product .product-transport-lane {
  position: relative;
  height: var(--p-transport-height);
  overflow-x: clip;
  overflow-y: visible;
  pointer-events: none;
}
#product .product-transport-lane::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: calc(100% + var(--p-s3));
  height: var(--p-hairline);
  background: var(--line-2);
}
#product .product-transport__traveler {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% - var(--p-transport-width));
  animation: product-transport-drive var(--p-transport-cycle) linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
#product .product-transport__convoy {
  position: absolute;
  bottom: calc(var(--p-s3) * -1);
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: var(--p-transport-gap);
  width: var(--p-transport-width);
}
#product .product-transport__vehicle,
#product .product-transport__follower {
  position: relative;
  display: block;
  flex: none;
}
#product .product-transport__vehicle { width: var(--p-rider-width); }
#product .product-transport__follower { width: var(--p-follower-width); }
#product .product-transport__body {
  display: block;
  width: 100%;
  height: auto;
}
#product .product-transport__kit {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  animation: product-transport-electric 2.4s ease-in-out infinite;
  animation-play-state: paused;
}
#product .product-transport__follower:nth-child(2) .product-transport__kit { animation-delay: -.8s; }
#product .product-transport__vehicle .product-transport__kit { animation-delay: -1.6s; }
#product[data-product-motion="playing"] :is(.product-transport__traveler, .product-transport__kit) { animation-play-state: running; }
@keyframes product-transport-electric {
  0%, 100% { filter: saturate(1.15) brightness(.85); opacity: .8; }
  40% { filter: saturate(1.25) brightness(1.35); opacity: 1; }
  75% { filter: saturate(1.1) brightness(1.04); opacity: .95; }
}
@keyframes product-transport-drive {
  0% { transform: translateX(0); opacity: 0; }
  4%, 96% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
#product .product-features {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  padding-block: var(--p-s5) var(--p-s4);
}
#product .product-feature {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--p-s7);
  padding-inline: var(--p-s4);
  text-align: center;
  color: var(--fg-1);
  font: 400 clamp(12px, 1.05vw, 15px)/1.65 var(--font-jp);
  letter-spacing: .03em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
  animation: product-feature-cycle 10s linear infinite;
  animation-delay: var(--feature-delay, 0s);
  animation-play-state: paused;
}
#product .product-feature::before {
  content: '';
  position: absolute;
  top: calc(var(--p-s3) * -1 - var(--p-hairline));
  left: 50%;
  width: 3px;
  height: 3px;
  background: currentColor;
  opacity: .65;
}
#product .product-feature:nth-child(2) { --feature-delay: -8s; }
#product .product-feature:nth-child(3) { --feature-delay: -6s; }
#product .product-feature:nth-child(4) { --feature-delay: -4s; }
#product .product-feature:nth-child(5) { --feature-delay: -2s; }
#product[data-product-motion="playing"] .product-feature { animation-play-state: running; }
@keyframes product-feature-cycle {
  0%, 16% { color: var(--accent); }
  20%, 100% { color: var(--fg-1); }
}
#product .product-feature + .product-feature { border-left: var(--p-hairline) solid var(--line-3); }

@media (max-width: 1100px) {
  #product {
    padding-inline: calc(var(--page-pad) + var(--p-s6));
    --p-title: clamp(22px, 2.65vw, 29px);
  }
  #product .product-grid { gap: var(--p-s7); }
  #product .product-item + .product-item::before { left: calc(var(--p-s5) * -1); }
  #product .product-head { gap: var(--p-s4); }
  #product .product-item__stage { height: clamp(200px, 31svh, 300px); }
  #product .product-feature { padding-inline: var(--p-s2); }
}
@media (min-width: 641px) and (max-height: 800px) {
  #product {
    --p-heading: clamp(60px, 6.6vw, 84px);
    gap: var(--p-s4);
    padding-top: calc(var(--nav-h) + var(--p-s4));
    padding-bottom: calc(var(--bar-h) + var(--p-s4));
  }
  #product .product-content { gap: var(--p-s4); }
  #product .product-item__stage { min-height: 160px; height: clamp(160px, 24svh, 240px); }
  #product .product-common { padding-top: var(--p-s2); }
  #product .product-common__head { min-height: var(--p-s4); }
  #product .product-feature { min-height: calc(var(--p-s5) + var(--p-s4)); }
  #product .product-features { padding-block: var(--p-s5) var(--p-s3); }
}
@media (max-width: 640px) {
  #product {
    --p-title: clamp(23px, 5.7vw, 30px);
    --p-body: 14px;
    --p-media-scale: 1.2;
    --p-transport-cycle: 14s;
    padding-inline: var(--p-s5);
    gap: var(--p-s6);
  }
  #product .product-head { grid-template-columns: auto minmax(0, 1fr); gap: var(--p-s3) var(--p-s4); }
  #product .product-head__title { grid-column: 1; grid-row: 1; font-size: clamp(60px, 15vw, 92px); }
  #product .product-head__rule { grid-column: 2; grid-row: 1; transform: translateY(var(--p-s2)); }
  #product .product-content { gap: var(--p-s6); }
  #product .product-grid { grid-template-columns: minmax(0, 1fr); gap: var(--p-s6); }
  #product .product-item + .product-item { border-top: var(--p-hairline) solid var(--line-2); padding-top: var(--p-s5); }
  #product .product-item + .product-item::before { content: none; }
  #product .product-item__stage { flex: none; height: clamp(180px, 49vw, 260px); min-height: 0; }
  #product .product-item__copy { min-height: 0; padding-top: var(--p-s2); }
  #product .product-item__title { margin-bottom: var(--p-s2); }
  #product .product-features { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 0; }
  #product .product-feature { padding: var(--p-s4) var(--p-s2); border-top: var(--p-hairline) solid var(--line-1); }
  #product .product-feature + .product-feature { border-left: 0; }
  #product .product-feature:nth-child(even) { border-left: var(--p-hairline) solid var(--line-2); }
  #product .product-feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #product .product-common__head { padding-bottom: var(--p-s3); }
  #product .product-transport-lane { margin-bottom: var(--p-s3); }
  #product .product-function-stream { margin-inline: var(--p-s3) 0; }
  #product .product-common::before,
  #product .product-feature::before { content: none; }
  #product .product-viewfinder__datum { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  #product .product-viewfinder__corners { transition: none; }
  #product .product-scan { display: none; animation: none; }
  #product .product-flow__packet { display: none; animation: none; }
  #product .product-flow__pixel { animation: none; opacity: .25; }
  #product .product-function-stream__track { animation: none; transform: none; }
  #product .product-feature { animation: none; color: var(--fg-1); }
  #product .product-feature::before { opacity: .4; }
  #product .product-transport__traveler { animation: none; opacity: 1; transform: translateX(50%); }
  #product .product-transport__kit { animation: none; filter: none; opacity: 1; }
}

/* A card with its own page: hovering dims the whole card and an iridescent invitation rises in its
   centre, in the accent yellow-green with a moving sheen (a user-approved exception, this lure only). */
#product .product-item__detail {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center;
  background: transparent;
  transition: background .45s cubic-bezier(.2,.8,.2,1);
}
#product .product-item--linked:hover .product-item__detail,
#product .product-item__detail:focus-visible {
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  outline: none;
}
#product .product-item__lure {
  display: inline-flex; align-items: center; gap: 20px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s, transform .6s cubic-bezier(.2,.8,.2,1);
}
#product .product-item--linked:hover .product-item__lure,
#product .product-item__detail:focus-visible .product-item__lure { opacity: 1; transform: none; }
#product .product-item__lure-text {
  font: 500 clamp(20px, 2.1vw, 32px)/1.3 var(--font-jp);
  letter-spacing: .16em;
  /* Yellow-green throughout; a paler band of the same hue glides across like a sheen. */
  background: linear-gradient(105deg, var(--accent) 0%, var(--accent) 38%, #F4FFC2 50%, var(--accent) 62%, var(--accent) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: product-lure 2.6s cubic-bezier(.45, 0, .2, 1) infinite;
}
/* Arrow: a short rail and three chevrons lit one after another, like a signal moving forward. */
#product .product-item__lure-arrow { display: inline-flex; align-items: center; gap: 3px; height: 14px; color: var(--accent); }
#product .product-item__lure-arrow::before { content: ''; width: 24px; height: 1px; margin-right: 6px; background: currentColor; transition: width .5s cubic-bezier(.2,.8,.2,1); }
#product .product-item__lure-arrow b { width: 9px; height: 9px; margin-left: -1px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); opacity: .25; animation: product-lure-arrow 1.2s linear infinite; }
#product .product-item__lure-arrow b:nth-child(2) { animation-delay: .16s; }
#product .product-item__lure-arrow b:nth-child(3) { animation-delay: .32s; }
#product .product-item--linked:hover .product-item__lure-arrow::before { width: 40px; }
@keyframes product-lure-arrow { 0%, 100% { opacity: .25; } 25% { opacity: 1; } 55% { opacity: .25; } }
@keyframes product-lure { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@media (prefers-reduced-motion: reduce) { #product .product-item__lure-text, #product .product-item__lure-arrow b { animation: none; opacity: 1; } }
