/* UltraDense page (the release page). Loads after /assets/site.css. */

/* Hero */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, calc(100svh - 92px), 940px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #000;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, .3) 1px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: center;
  -webkit-mask-image: radial-gradient(62% 56% at 50% 42%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
  mask-image: radial-gradient(62% 56% at 50% 42%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
  opacity: .3;
  animation: grid-in 2.8s var(--ease) both;
}
.hero-stage {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  padding-bottom: 12vh;
  transform: translateY(calc(var(--p, 0) * -48px)) scale(calc(1 - var(--p, 0) * .08));
  opacity: calc(1 - var(--p, 0) * 1.3);
}
.hero-mark { position: relative; isolation: isolate; display: grid; font-size: clamp(92px, 21vw, 330px); }
.hero-word {
  grid-area: 1 / 1;
  display: block;
  padding: .07em .04em .05em .02em;
  font-weight: 800; line-height: .8; letter-spacing: -0.04em;
  -webkit-user-select: none;
  user-select: none;
  animation: word-in 1.6s .1s var(--ease-out) both;
}

.hero-foot {
  position: relative; z-index: 1;
  width: var(--wide); margin: 0 auto; padding-bottom: 56px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero-text { animation: rise 1.1s .45s var(--ease-out) both; }
.hero-name { font-size: 32px; line-height: 1.125; font-weight: 600; letter-spacing: .004em; }
.hero-headline { margin-top: 2px; font-size: 80px; line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; }
.hero-cta {
  flex: none;
  display: flex; align-items: center; gap: 22px;
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
  background: rgba(66, 66, 69, .5);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: rise 1.1s .65s var(--ease-out) both;
}
.hero-cta p { font-size: 12px; line-height: 1.5; font-weight: 600; }
.hero-cta code { font-size: 12px; font-weight: 400; color: var(--text-2); }

@media (max-width: 1068px) {
  .hero-headline { font-size: 64px; }
  .hero-name { font-size: 28px; }
}

@media (max-width: 734px) {
  .hero { min-height: clamp(560px, calc(100svh - 120px), 760px); }
  .hero-stage { padding-bottom: 30vh; }
  .hero-mark { font-size: 25vw; }
  .br-sm { display: inline; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 24px; padding-bottom: 28px; }
  .hero-name { font-size: 24px; }
  .hero-headline { font-size: 48px; }
  .hero-cta { justify-content: space-between; padding-left: 20px; }
  }

@keyframes grid-in { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: .3; } }
@keyframes word-in { from { opacity: 0; transform: translateY(.12em) scale(.96); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Highlights */

.highlights { padding-bottom: 110px; overflow: hidden; }
.highlights-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }

.gallery { container-type: inline-size; }
.gallery-track {
  --cw: min(1260px, calc(100cqw - 2 * var(--gutter)));
  position: relative;
  display: flex; gap: 24px;
  padding-inline: calc((100cqw - var(--cw)) / 2);
  scroll-padding-inline: calc((100cqw - var(--cw)) / 2);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 var(--cw); scroll-snap-align: center; }

.hcard {
  position: relative; isolation: isolate; overflow: hidden;
  container-type: size;
  height: clamp(520px, 50vw, 680px);
  border-radius: 28px;
  background: #000;
}
.hcard-caption {
  position: relative; z-index: 3;
  max-width: 660px; margin: 52px auto 0; padding: 0 32px;
  text-align: center;
  font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: .007em;
}
.gallery-item:not(.is-current) .hcard * { animation-play-state: paused !important; }

.streaks { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.streaks i {
  position: absolute; left: 0; top: var(--y);
  width: 40%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(143, 167, 255, .85), transparent);
  opacity: .7;
  transform: translateX(-110%);
  animation: streak var(--d) linear var(--dl) infinite;
}
.streaks i:nth-child(1) { --y: 30%; --d: 1.9s; --dl: 0s; }
.streaks i:nth-child(2) { --y: 36%; --d: 2.6s; --dl: .4s; }
.streaks i:nth-child(3) { --y: 41%; --d: 1.6s; --dl: 1.1s; }
.streaks i:nth-child(4) { --y: 47%; --d: 2.2s; --dl: .2s; }
.streaks i:nth-child(5) { --y: 52%; --d: 1.4s; --dl: .8s; }
.streaks i:nth-child(6) { --y: 58%; --d: 2.8s; --dl: 1.6s; }
.streaks i:nth-child(7) { --y: 63%; --d: 1.8s; --dl: .5s; }
.streaks i:nth-child(8) { --y: 69%; --d: 2.4s; --dl: 1.3s; }
.streaks i:nth-child(9) { --y: 74%; --d: 1.5s; --dl: .1s; }
.streaks i:nth-child(10) { --y: 80%; --d: 2.1s; --dl: 1.8s; }
.streaks i:nth-child(11) { --y: 85%; --d: 2.9s; --dl: .7s; }
.streaks i:nth-child(12) { --y: 90%; --d: 1.7s; --dl: 1.4s; }
.hcard-center { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; padding-top: 90px; text-align: center; }
.hcard-num { font-size: clamp(84px, 13cqw, 190px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.hcard-note { margin-top: 12px; font-size: 17px; color: var(--text-2); }

/* UltraEfficient: the size mark morphs (cards.js); the four sizes underneath */
.morph {
  position: absolute; left: 50%; top: 53%; z-index: 2;
  width: min(62cqh, 70cqw); height: auto; overflow: visible;
  transform: translate(-50%, -50%);
}
.morph-names {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3;
  display: flex; justify-content: center; gap: clamp(18px, 5cqw, 56px);
  padding: 0 24px;
}
.morph-names li { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .32; transition: opacity .5s var(--ease); }
.morph-names li.is-on { opacity: 1; }
.morph-names span { font-size: 17px; font-weight: 600; }
.morph-names small { font-size: 13px; color: var(--text-2); }

.photo { position: relative; overflow: hidden; border-radius: 18px; }
.photo img { width: 100%; height: auto; }

.export-line {
  position: absolute; left: 50%; top: 58%; z-index: 2;
  transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: clamp(15px, 3.6cqw, 44px); letter-spacing: -0.02em;
  white-space: nowrap;
}
.cycle { display: inline-block; height: 1.2em; overflow: hidden; vertical-align: bottom; animation: cycle-w 7.2s var(--ease) infinite; }
.cycle-list { display: flex; flex-direction: column; animation: cycle 7.2s var(--ease) infinite; }
.cycle-list span { height: 1.2em; line-height: 1.2em; }

.tok-kw { color: #ff7ab2; }
.tok-str { color: var(--glacier-l); }
.tok-c { color: var(--text-3); font-style: italic; }
.tok-num { color: #d9c97c; }
.tok-fn { color: #b9c6ff; }

.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; }
.dotnav {
  height: 56px; padding: 0 18px;
  display: flex; align-items: center; gap: 6px;
  border-radius: 999px;
  background: var(--raise);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.dot { width: 22px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; transition: width .5s var(--ease); }
.dot span { position: relative; overflow: hidden; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .42); transition: width .5s var(--ease); }
.dot span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--text); transform: scaleX(0); transform-origin: left; }
.dot.is-active { width: 60px; }
.dot.is-active span { width: 48px; }
.dot.is-active span::after { animation: dot-fill var(--dot-dur, 6s) linear forwards; }
.dotnav.is-paused .dot.is-active span::after { animation-play-state: paused; }
.dotnav.is-static .dot.is-active span::after { animation: none; transform: none; }
.playpause {
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--raise);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--text);
}
.playpause svg { width: 20px; height: 20px; fill: currentColor; }
.playpause .i-play, .playpause.is-paused .i-pause { display: none; }
.playpause.is-paused .i-play { display: block; }

@media (max-width: 734px) {
  .highlights-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
  .gallery-track { gap: 12px; }
  .hcard { height: 540px; border-radius: 22px; }
  .hcard-caption { margin-top: 36px; padding: 0 22px; font-size: 21px; line-height: 1.19; }
  .hcard-center { padding-top: 110px; }
  .morph-names { bottom: 24px; gap: 14px; }
  .morph-names span { font-size: 14px; }
  .morph-names small { font-size: 12px; }
}

@keyframes streak { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes dot-fill { to { transform: scaleX(1); } }
@keyframes cycle {
  0%, 22% { transform: translateY(0); }
  28%, 50% { transform: translateY(-1.2em); }
  56%, 78% { transform: translateY(-2.4em); }
  84%, 100% { transform: translateY(-3.6em); }
}
@keyframes cycle-w {
  0%, 22% { width: 4ch; }
  28%, 50% { width: 8ch; }
  56%, 78% { width: 11ch; }
  84%, 100% { width: 4ch; }
}

/* Overview */

.overview { padding-bottom: 120px; }
.compare { margin-top: 80px; padding-top: 64px; border-top: 1px solid var(--line); }
.compare-control { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; font-size: 17px; font-weight: 600; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; text-align: center; }
.stat-pre, .stat-post { display: block; font-size: 14px; line-height: 1.43; font-weight: 600; color: var(--text-2); }
.stat-val { display: block; margin: 4px 0; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; transition: opacity .2s, transform .25s var(--ease-out); }
.stat-val.is-swapping { opacity: 0; transform: translateY(10px); }

.window {
  margin-top: 100px; overflow: hidden;
  border-radius: 22px;
  background: #0d0e0f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 30px 60px rgba(0, 0, 0, .6);
}
.window-bar { height: 44px; padding: 0 18px; display: flex; align-items: center; gap: 8px; background: #19191b; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3d; }
.window-bar span { margin-left: 12px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.window-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.code { padding: 40px 36px; overflow-x: auto; font-size: 15px; line-height: 1.8; color: #e6e6e9; }
.code .ln { display: block; width: max-content; white-space: pre; }
.window-out { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #000; border-left: 1px solid rgba(255, 255, 255, .06); }
.window-out .photo { border-radius: 12px; }
.window-status { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--glacier-l); }
.caption-center { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-2); }

.dets { position: absolute; inset: 0; }
.det { position: absolute; border: 2px solid var(--glacier-l); border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.det-tag {
  position: absolute; left: -2px; bottom: 100%;
  padding: 2px 6px 1px;
  border-radius: 4px 4px 0 0;
  background: var(--glacier-l); color: #0a1630;
  font: 600 11px/1.35 var(--mono); letter-spacing: 0; white-space: nowrap;
}

html.js .window .ln { clip-path: inset(0 100% 0 0); }
html.js .window.is-typing .ln { animation: type var(--t, .5s) steps(var(--n, 20), end) var(--d, 0s) forwards; }
html.js .window .det { opacity: 0; transform: scale(1.08); }
html.js .window.is-done .det { opacity: 1; transform: none; transition: opacity .45s, transform .6s var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
html.js .window .window-status { opacity: 0; }
html.js .window.is-done .window-status { opacity: 1; transition: opacity .4s .7s; }

@media (max-width: 734px) {
  .stats3 { grid-template-columns: 1fr; gap: 36px; }
  .window { margin-top: 64px; border-radius: 18px; }
  .window-body { grid-template-columns: 1fr; }
  .code { padding: 24px 20px; font-size: 12px; }
  .window-out { padding: 16px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
  .det-tag { font-size: 9px; padding: 1px 4px 0; }
}

@keyframes type { to { clip-path: inset(0 0 0 0); } }

/* Models */

.models { padding-top: 0; }
.models-head { padding: var(--section-pad) 0 80px; }
.viewer-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vpill {
  max-width: 100%;
  border-radius: 28px;
  background: var(--raise);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.vpill-btn {
  height: 56px; padding: 0 26px 0 14px;
  display: flex; align-items: center; gap: 14px;
  border: 0; background: none;
  font-size: 17px; font-weight: 600; letter-spacing: -0.022em; color: var(--text);
}
.vpill-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.vpill-icon::before, .vpill-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 1px; background: currentColor;
  transition: transform .35s var(--ease);
}
.vpill-icon::after { transform: rotate(90deg); }
.vpill.is-open .vpill-icon::after { transform: rotate(0deg); }
.vpill-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.vpill.is-open .vpill-body { grid-template-rows: 1fr; }
.vpill-inner { overflow: hidden; min-height: 0; }
.vpill-inner p { max-width: 360px; padding: 0 28px 24px; font-size: 17px; line-height: 1.47; color: var(--text); }
.size-logo { position: relative; width: 100%; height: auto; overflow: visible; }
.size-logo .panel { transition: transform .8s var(--ease-out), opacity .5s var(--ease); }

@media (max-width: 1068px) {
  .viewer-pills { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .vpill.is-open { flex-basis: 100%; }
}

@media (max-width: 734px) {
  .viewer-pills { gap: 10px; }
  .vpill-btn { height: 48px; padding: 0 18px 0 10px; font-size: 15px; gap: 10px; }
  .vpill-icon { width: 24px; height: 24px; }
  .vpill-inner p { padding: 0 20px 18px; font-size: 15px; }
}

/* UltraFast */

.stats2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 100px; text-align: center; }
.stat-block .stat-pre, .stat-block .stat-post { font-size: 21px; line-height: 1.38; }
.stat-huge { display: block; margin: 2px 0 6px; font-size: 112px; line-height: 1; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

.race { margin-top: 160px; display: grid; gap: 48px; }
.race-copy { max-width: 700px; }
.race-copy p { margin-top: 20px; font-size: 21px; line-height: 1.38; font-weight: 600; color: var(--text-2); }
.race-board { display: grid; gap: 26px; padding: 48px; border-radius: 28px; background: var(--alt); }
.lane { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 24px; }
.lane-name { font-size: 17px; font-weight: 600; color: var(--text-2); }
.lane-ours .lane-name { color: var(--text); }
.lane-track { display: flex; height: 54px; overflow: hidden; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.seg { position: relative; flex: 0 0 var(--w, 33%); display: flex; align-items: center; padding-left: 14px; overflow: hidden; }
.seg + .seg { box-shadow: inset 2px 0 0 #1d1d1f; }
.seg i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: #3b3b3f; }
.seg-net i { background: linear-gradient(90deg, #26357c, var(--accent)); }
.seg-nms i { background: linear-gradient(90deg, rgba(245, 158, 11, .35), rgba(245, 158, 11, .7)); }
.lane-ours .seg-net i { background: linear-gradient(90deg, #1f3594, var(--glacier-l)); }
.seg em { position: relative; font-style: normal; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.seg-done em { display: flex; align-items: center; gap: 6px; color: var(--glacier-l); }
.seg-done em::before { content: ""; width: 14px; height: 8px; margin-top: -4px; border: solid var(--glacier-l); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.race-board.is-running .seg i { animation: seg-fill var(--dur, 1s) linear var(--delay, 0s) forwards; }
.race-board.is-running .seg em { opacity: 1; transition-delay: var(--delay, 0s); }

.speed { margin-top: 160px; text-align: center; }
.speed-bars { display: grid; gap: 14px; max-width: 760px; margin: 56px auto 40px; }
.sbar { display: grid; grid-template-columns: 88px minmax(0, 1fr) 186px; align-items: center; gap: 18px; text-align: left; opacity: .72; transition: opacity .3s; }
.sbar.is-on { opacity: 1; }
.sbar-name { font-size: 15px; font-weight: 600; }
.sbar-track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.sbar-track i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: #5c5c61; transition: width 1.2s var(--ease-out), background-color .3s; }
.sbar.is-on .sbar-track i { background: linear-gradient(90deg, var(--glacier-n), var(--glacier-l)); }
html.js .speed-bars:not(.is-in) .sbar-track i { width: 0; }
.sbar-val { text-align: right; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.segmented { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--raise); }
.segmented button { height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 600; color: var(--text-2); transition: background-color .25s, color .25s; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: var(--glacier-l); }
.speed-caption { max-width: 640px; margin: 28px auto 0; font-size: 17px; color: var(--text-2); }
.speed-caption strong { font-weight: 600; color: var(--glacier-l); }

@media (max-width: 1068px) {
  .stat-huge { font-size: 96px; }
}

@media (max-width: 734px) {
  .stats2 { grid-template-columns: 1fr; gap: 48px; margin-top: 64px; }
  .stat-block .stat-pre, .stat-block .stat-post { font-size: 19px; }
  .stat-huge { font-size: 80px; }
  .race { margin-top: 110px; gap: 32px; }
  .race-copy p { font-size: 19px; }
  .race-board { padding: 24px 18px; gap: 22px; }
  .lane { grid-template-columns: 1fr; gap: 10px; }
  .lane-track { height: 44px; border-radius: 12px; }
  .seg { padding-left: 8px; }
  .seg em { font-size: 11px; }
  .speed { margin-top: 110px; }
  .sbar { grid-template-columns: 68px minmax(0, 1fr) 150px; gap: 10px; }
  .sbar-name, .sbar-val { font-size: 13px; }
  .segmented button { height: 36px; padding: 0 11px; font-size: 13px; }
}

@keyframes seg-fill { to { transform: scaleX(1); } }

/* Feature cards */

.features { padding-top: 40px; padding-bottom: 120px; }
.scroller { margin-top: 64px; container-type: inline-size; }
.scroller-track {
  --cw: min(1260px, calc(100cqw - 2 * var(--gutter)));
  display: flex; gap: 20px;
  padding-inline: calc((100cqw - var(--cw)) / 2);
  scroll-padding-inline: calc((100cqw - var(--cw)) / 2);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.scroller-track::-webkit-scrollbar { display: none; }
.fcard {
  flex: 0 0 max(276px, min(80cqw, calc((var(--cw) - 3 * 20px) / 4)));
  min-height: 460px; padding: 22px 22px 26px;
  display: flex; flex-direction: column; gap: 22px;
  border-radius: 28px;
  background: var(--alt);
  scroll-snap-align: start;
}
.fcard p { font-size: 17px; line-height: 1.47; font-weight: 500; color: var(--text-2); }
.fcard p strong { font-weight: 600; color: var(--text); }
.fcard code { margin-top: auto; align-self: flex-start; padding: 6px 10px; border-radius: 8px; background: rgba(167, 207, 250, .09); font-size: 13px; color: var(--glacier-l); }
.paddles { width: min(1260px, calc(100cqw - 2 * var(--gutter))); margin: 26px auto 0; display: flex; justify-content: flex-end; gap: 16px; }
.paddle { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--raise); color: var(--text); transition: opacity .2s; }
.paddle svg { width: 16px; height: 16px; }
.paddle:disabled { opacity: .36; cursor: default; }

.fvis { position: relative; overflow: hidden; isolation: isolate; height: 210px; border-radius: 16px; background: #111; }
.fv-photo { position: absolute; left: 50%; top: 50%; width: max(100%, calc(210px * 4 / 3)); aspect-ratio: 4 / 3; transform: translate(-50%, -50%); }
.fv-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.fv-boxes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fv-boxes rect { stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.fv-boxes rect.fv-tag { stroke: none; }
.fv-boxes text { font: 600 15px var(--font); fill: #0b0b0c; }
.fvis-thresh .fv-det { opacity: 0; transition: opacity .18s var(--ease); }
.fvis-thresh .fv-det.is-on { opacity: 1; }
.fv-cursor { position: absolute; left: 0; top: 0; z-index: 9; width: 22px; height: 22px; transform-origin: 4px 2px; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.fv-cursor path { fill: #fff; stroke: #111; stroke-width: 1.3; stroke-linejoin: round; }

/* one threshold: a slider on frosted glass over the photo */
.fv-slider {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4;
  display: flex; flex-direction: column; gap: 7px; padding: 10px 14px 9px;
  border-radius: 14px;
  background: rgba(20, 20, 22, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16);
}
.fv-track { position: relative; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.fv-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--glacier-l); transform-origin: left; }
.fv-knob { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); transition: transform .15s var(--ease); }
.fv-knob.is-held { transform: scale(1.18); }
.fv-label { font: 500 11.5px var(--mono); color: #e8e8ed; }

/* video ready: bananas fall with their track IDs, then how to turn tracking on */
.fv-field { position: absolute; inset: 0; }
/* soft light on every surface: a little brighter top left, a little darker at the edges */
.fv-field::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 30% 20%, rgba(255, 255, 255, .1), transparent 55%), radial-gradient(140% 120% at 50% 45%, transparent 55%, rgba(0, 0, 0, .32)); pointer-events: none; }
.fv-ban { position: absolute; inset: 0; visibility: hidden; }
.fv-fruit { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; background: url("assets/bananas.png") 0 0 / 600% 100% no-repeat; }

/* the surface: a black and white zig-zag print */
.fvis-track {
  background-color: #ebe8e1;
  background-image:
    linear-gradient(135deg, #1c1c1e 25%, transparent 25%), linear-gradient(225deg, #1c1c1e 25%, transparent 25%),
    linear-gradient(315deg, #1c1c1e 25%, transparent 25%), linear-gradient(45deg, #1c1c1e 25%, transparent 25%);
  background-size: 34px 34px;
  background-position: -17px 0, -17px 0, 0 0, 0 0;
}
.fv-tbox { position: absolute; left: 0; top: 0; border: 2px solid var(--c); border-radius: 4px; background: color-mix(in srgb, var(--c) 12%, transparent); }
.fv-tbox b { position: absolute; left: -2px; bottom: 100%; padding: 1px 5px; border-radius: 3px 3px 3px 0; background: var(--c); color: #fff; font: 600 10px var(--font); white-space: nowrap; }
.fv-code {
  position: absolute; left: 12px; right: 12px; top: 18px; z-index: 4; opacity: 0;
  min-height: 52px; margin: 0; padding: 11px 13px;
  border-radius: 12px;
  background: rgba(10, 12, 16, .62);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16);
  font: 500 11.5px/1.55 var(--mono); color: #c9f2e5; white-space: pre;
}
.fv-btn {
  position: absolute; left: 50%; bottom: 26px; z-index: 5; opacity: 0;
  padding: 9px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: background .12s;
}
.fv-btn.is-pressed { background: var(--accent-hover); }
.fv-dark { position: absolute; inset: 0; z-index: 8; background: #000; pointer-events: none; }
.fvis-track.is-capture :is(.fv-tbox, .fv-dark, .fv-cursor, .fv-code, .fv-btn) { display: none !important; }

/* plain results: the photo blurs into the backdrop for the raw values */
.fvis-results .fv-det { opacity: 0; }
.fv-rows { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 14px; }
.fv-rows p { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; margin: 0; opacity: 0; font: 500 10.5px var(--mono); color: #f5f5f7; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.fv-rows b { font-weight: 600; }

/* train your own: the trainer's mosaics go by, the loss trace grows over the epoch bar */
.fvis-train canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fv-trainbar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  padding: 9px 12px 11px; border-radius: 14px;
  background: rgba(20, 20, 22, .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16);
}
.fv-trainhead { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 600; color: #f5f5f7; }
.fv-saved { font-weight: 500; color: var(--glacier-l); opacity: 0; transition: opacity .3s var(--ease); }
.fv-saved.is-on { opacity: 1; }
.fv-loss { display: block; width: 100%; height: 30px; margin: 6px 0 2px; overflow: visible; }
.fv-loss .line { fill: none; stroke: var(--glacier-l); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fv-loss .area { fill: rgba(167, 207, 250, .18); }
.fv-ebar { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.fv-ebar i { display: block; height: 100%; background: var(--glacier-l); transform-origin: left; transform: scaleX(0); }

@media (max-width: 734px) {
  .fcard { min-height: 420px; }
}

/* UltraEfficient */

.eff-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: end; margin-top: 90px; }
.eff-stat .stat-pre, .eff-stat .stat-post { font-size: 21px; line-height: 1.38; }
.stat-giant { display: block; margin: 4px 0 8px; font-size: 160px; line-height: 1; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.eff-copy { font-size: 21px; line-height: 1.38; font-weight: 600; color: var(--text-2); }
.eff-copy strong { color: var(--text); font-weight: 600; }

.eff-mem { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; margin-top: 150px; }
.eff-mem-copy p, .scratch-copy p { font-size: 21px; line-height: 1.38; font-weight: 600; color: var(--text-2); }
.stat-inline { margin-top: 30px; display: flex; flex-direction: column; gap: 2px; }
p.stat-inline .ultra { font-size: 64px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
p.stat-inline > span:last-child { font-size: 17px; color: var(--text-2); }

@media (max-width: 1068px) {
  .stat-giant { font-size: 128px; }
}

@media (max-width: 734px) {
  .eff-row, .eff-mem { grid-template-columns: 1fr; gap: 28px; }
  .eff-row { margin-top: 56px; }
  .eff-stat .stat-pre, .eff-stat .stat-post, .eff-copy, .eff-mem-copy p, .scratch-copy p { font-size: 19px; }
  .stat-giant { font-size: 96px; }
  .eff-mem { margin-top: 100px; }
  p.stat-inline .ultra { font-size: 48px; }
}

/* UltraDense */

.dense { overflow: hidden; }

.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 100px; }
.col-title { margin-bottom: 16px; font-size: 28px; line-height: 1.14; font-weight: 600; }
.cols2 p { font-size: 17px; line-height: 1.47; color: var(--text-2); }
.scratch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; margin-top: 140px; padding-top: 80px; border-top: 1px solid var(--line); }

@media (max-width: 734px) {
  .cols2, .scratch { grid-template-columns: 1fr; gap: 40px; }
  .cols2 { margin-top: 64px; }
  .col-title { font-size: 24px; }
  .scratch { margin-top: 90px; padding-top: 56px; gap: 24px; }
}

/* Toolkit */

.family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 80px; }
.fam { min-height: 240px; padding: 34px 32px; display: flex; flex-direction: column; gap: 22px; border-radius: 28px; background: #000; }
.fam-icon, .fam-logo { width: 40px; height: 40px; color: var(--glacier-l); }
.fam p { font-size: 17px; line-height: 1.47; color: var(--text-2); }
.fam p strong { font-weight: 600; color: var(--text); }

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

@media (max-width: 734px) {
  .family-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 56px; }
  .fam { min-height: 0; border-radius: 22px; }
}

/* Live demo */

.demo-lede { max-width: 560px; margin-top: 18px; font-size: 21px; line-height: 1.38; font-weight: 600; color: var(--text-2); }
.demo { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 80px; }
.demo-pills .vpill { width: 100%; }
.demo-pills .vpill-inner { display: grid; gap: 14px; }
.demo-pills .vpill-inner > :first-child { margin-top: 2px; }
.demo-pills .vpill-inner > :last-child { margin-bottom: 22px; }
.demo-pills .vpill-inner > * { margin-inline: 20px; }
.demo-pills .vpill-inner p { max-width: none; padding: 0; font-size: 14px; color: var(--text-2); }
.pick-logo { position: relative; height: 112px; display: grid; place-items: center; }
.pick-logo .size-logo { width: 112px; height: 112px; transition: opacity .3s; }
.pick-logo::after { content: ""; position: absolute; width: 84px; height: 84px; background: url("/assets/logos/fotonet-general.svg") center / contain no-repeat; opacity: 0; transition: opacity .3s; }
.pick-logo.is-v1::after { opacity: 1; }
.model-list { display: grid; gap: 6px; }
.model-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--text); text-align: left; transition: background-color .2s, box-shadow .2s; }
.model-row img { flex: none; width: 32px; height: 32px; }
.model-row b { display: block; font-size: 15px; font-weight: 600; }
.model-row small { display: block; font-size: 12px; color: var(--text-2); }
.model-row:hover { background: rgba(255, 255, 255, .08); }
.model-row[aria-pressed="true"] { background: rgba(167, 207, 250, .08); box-shadow: inset 0 0 0 2px var(--glacier-l); }
.model-row[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.seg-row { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.seg-row button { flex: 1; height: 34px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background-color .2s, color .2s; }
.seg-row button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: var(--glacier-l); }
.seg-row button:disabled { opacity: .35; cursor: not-allowed; }
.input-pane { display: grid; gap: 12px; }
.input-pane[hidden] { display: none; }
.thumbs { display: flex; gap: 8px; }
.thumb { width: 72px; height: 54px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; opacity: .65; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: opacity .2s, box-shadow .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; }
.thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--glacier-l); }
.file-btn { position: relative; justify-self: start; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 14px; cursor: pointer; }
.file-btn:hover { background: rgba(255, 255, 255, .14); }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn:focus-within { outline: 2px solid var(--link); outline-offset: 3px; }
.range { display: grid; gap: 8px; font-size: 14px; }
.range span { display: flex; justify-content: space-between; }
.range output { font-family: var(--mono); color: var(--glacier-l); }
.range input { width: 100%; accent-color: var(--glacier-l); }
.switches { display: flex; flex-wrap: wrap; gap: 16px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { position: relative; width: 36px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .18); transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-out); }
.switch input:checked + span { background: var(--glacier-l); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.pill-count { margin-left: 2px; padding: 2px 9px; border-radius: 999px; background: rgba(167, 207, 250, .16); font-size: 13px; color: var(--glacier-l); font-variant-numeric: tabular-nums; }
.det-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 4px; padding-right: 4px; scrollbar-width: thin; }
.det-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.det-list b { font-weight: 600; }
.det-i { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.det-score { font-family: var(--mono); font-size: 13px; color: var(--glacier-l); }
.det-list code { grid-column: 2 / -1; font-size: 11px; color: var(--text-2); }
.det-list .det-empty { display: block; padding: 4px 0; background: none; color: var(--text-2); }
.demo-stage { display: grid; gap: 16px; }
.demo-frame { position: relative; width: min(100%, calc(72vh * var(--ratio, 1.3333))); aspect-ratio: var(--ratio, 4 / 3); margin-inline: auto; overflow: hidden; border-radius: 22px; background: #050506; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.demo-canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
/* The video stays rendered under the canvas; Chrome pauses hidden muted video to save power. */
.demo-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: fill; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.demo-run { flex: none; }
.demo-run:disabled { opacity: .6; cursor: progress; }
.demo-status { flex: 1; min-width: 200px; font-size: 14px; color: var(--text-2); }
.demo-stats { display: flex; gap: 22px; margin: 0; }
.demo-stats div { display: grid; }
.demo-stats dt { font-size: 11px; color: var(--text-3); }
.demo-stats dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-note { font-size: 13px; color: var(--text-3); }

@media (max-width: 1068px) {
  .demo { grid-template-columns: 1fr; gap: 28px; }
  .demo-stage { order: -1; }
}

@media (max-width: 734px) {
  .demo { padding-top: 48px; }
  .demo-lede { font-size: 19px; }
  .demo-frame { border-radius: 16px; }
  .demo-stats { width: 100%; justify-content: space-between; }
}

/* Compare */

.compare-intro { max-width: 760px; margin-left: 0; }
.bench-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 56px; font-size: 14px; color: var(--text-2); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: #5c5c61; }
.lg-n::before { background: var(--glacier-l); }
.lg-e::before { background: var(--glacier-n); }
.bench-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.bench-card { display: grid; align-content: start; gap: 18px; padding: 28px 28px 26px; border-radius: 28px; background: var(--alt); }
.bench-card h3 { font-size: 21px; line-height: 1.19; font-weight: 600; }
.bench-card header p { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.bench-card ul { display: grid; gap: 12px; }
.bench-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 62px; align-items: center; gap: 10px; font-size: 13px; }
.bench-name { font-weight: 600; color: var(--text-2); }
.bench-row.is-n .bench-name { color: var(--glacier-l); }
.bench-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.bench-track i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: #5c5c61; transition: width 1.1s var(--ease-out); }
.bench-row.is-n .bench-track i { background: linear-gradient(90deg, var(--glacier-n), var(--glacier-l)); }
.bench-row.is-e .bench-track i { background: var(--glacier-n); }
html.js .bench-card:not(.is-in) .bench-track i { width: 0; }
.bench-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bench-row.is-missing .bench-track { display: none; }
.bench-row.is-missing .bench-value { grid-column: 2 / -1; text-align: left; font-weight: 400; color: var(--text-3); }
.bench-note { margin-top: 28px; font-size: 13px; line-height: 1.5; color: var(--text-3); }

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

@media (max-width: 734px) {
  .bench-grid { grid-template-columns: 1fr; gap: 14px; }
  .bench-card { padding: 24px 20px; border-radius: 22px; }
}

/* Demo loader. Built in demo.js with the Web Animations API. Only transform and opacity
   animate, so the compositor keeps it smooth while ONNX Runtime compiles kernels or runs on the
   main thread. The rules here set the parts' sizes and their resting state. */

.demo-frame { container-type: size; }
.loader { position: absolute; inset: 0; z-index: 2; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; border-radius: inherit; pointer-events: none; }
.loader[hidden] { display: none; }
.loader > * { grid-area: 1 / 1; }
/* Smoked glass over the frame; it clears when the light rolls across it. */
.ld-cover { position: absolute; inset: 0; background: rgba(6, 6, 8, .8); -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); }
.ld-stage { position: relative; width: 34cqmin; height: 34cqmin; }
.ld-grid, .ld-slot { position: absolute; inset: 0; }
.ld-slot { display: grid; place-items: center; }
.ld-dot { display: block; width: 13%; height: 13%; border-radius: 50%; }
/* The landing: one flat dot, a soft light around it, and a lens-like ring of light that rolls
   out to the edges, where the frame's rim catches it. */
.ld-ball { width: 6.4cqmin; height: 6.4cqmin; border-radius: 50%; background: var(--glacier-l); opacity: 0; }
.ld-bloom {
  width: 110cqmax; height: 110cqmax; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .13), rgba(205, 224, 250, .06) 45%, rgba(205, 224, 250, 0) 75%);
}
.ld-wave {
  width: 160cqmax; height: 160cqmax; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0) 60%, rgba(214, 230, 252, .07) 80%, rgba(236, 244, 255, .24) 93%, rgba(255, 255, 255, .5) 97.5%, rgba(176, 226, 255, .16) 99%, rgba(255, 255, 255, 0) 100%);
}
.ld-ball, .ld-bloom, .ld-wave { position: relative; flex: none; }
.ld-edge { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), inset 0 0 28px rgba(220, 235, 255, .12); opacity: 0; }

/* Selected and hovered model rows keep their small print readable. */
.model-row small { color: #c7c7cc; }

/* The smallest phones (320 px): the four size buttons fit on one line. */
@media (max-width: 374px) {
  .segmented button { padding: 0 8px; font-size: 12px; }
}

/* The live demo is one part: heading and demo on one background, the heading
   in one line with its lede beside it, and on desktop the whole part fits one screen. */
.models { padding-top: var(--section-pad); background: rgb(6, 6, 6); } /* a step off black, so its edge shows */
.models-head { padding: 0; }
.models-head .wide { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; }
.models-head .demo-lede { max-width: 520px; margin: 0 0 6px; }
.demo { padding-top: 40px; }
@media (min-width: 1069px) {
  .models { padding-block: 88px 72px; }
  .demo-frame { width: min(100%, calc((var(--screen) - 470px) * var(--ratio, 1.3333))); }
  /* every model row carries its own size mark, so the big one goes: the controls end with the picture */
  .pick-logo { display: none; }
}
/* short windows: the model rows tighten, so the Model pill alone still fits beside the picture */
@media (min-width: 1069px) and (max-height: 800px) {
  .model-row { padding-block: 6px; }
}
