/* Visuals. Each frame has its own type position.
   The menu keeps the chronik face. */

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/z/fonts/league-spartan-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/z/fonts/league-spartan-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/z/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/z/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/z/fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/z/fonts/caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.cv-visuals {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000;
  color: #fff;
  font-family: "Instrument Sans", sans-serif;
}

.cv-visuals[hidden] {
  display: none;
}

.cv-visuals-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.vx-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #000;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.vx-soft,
.vx-where,
.vx-clips {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.vx-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 22vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent);
  pointer-events: none;
}

.vx-pan {
  --vx-shift: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: -14%;
  height: 128%;
  will-change: transform;
  transform: translate3d(0, calc(var(--vx-shift) * 1%), 0);
  transition: none;
}

.cv-visuals.is-pan-ease .vx-pan {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.vx-pan img,
.vx-pan video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.vx-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
}

.vx-boot {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: #000;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.vx-boot[hidden] {
  display: none;
}

.vx-boot.is-done {
  opacity: 0;
}

.vx-boot-bar {
  width: min(9rem, 36vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.vx-boot-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: #fff;
  animation: vx-boot-slide 0.9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.vx-copy,
.vx-word,
.vx-where,
.vx-soft {
  animation: none;
}

.vx-who,
.vx-word,
.vx-note,
.vx-repo {
  margin: 0;
  color: #fff;
  font-family: "Instrument Sans", sans-serif;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.vx-who,
.vx-spec,
.vx-key,
.vx-repo,
.vx-idx {
  font-family: "Source Code Pro", ui-monospace, monospace;
}

.vx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: none;
  color: #fff;
  background: #24292f;
  cursor: pointer;
}

.vx-btn:hover,
.vx-btn:focus-visible {
  outline: none;
}

.vx-gh {
  border-color: rgba(255, 255, 255, 0.14);
  background: #24292f;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.04);
}

.vx-gh:hover,
.vx-gh:focus-visible {
  background: #32383f;
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.vx-gh-mark {
  display: block;
  flex: 0 0 auto;
}

.vx-who {
  font-weight: 500;
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vx-word {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.88;
  font-size: clamp(3.4rem, 9vw, 9.5rem);
}

.vx-phrase {
  margin: 0;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 4px 22px rgba(0, 0, 0, 0.55),
    0 18px 48px rgba(0, 0, 0, 0.4);
}

[data-vx-type] {
  --vx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vx-dur: 1.05s;
  --vx-from-x: -1.4rem;
  will-change: transform, opacity, filter;
  opacity: 0;
  filter: blur(16px);
  transform: translate3d(var(--vx-from-x), 1.6rem, 0);
  transition:
    opacity var(--vx-dur) var(--vx-ease),
    filter calc(var(--vx-dur) * 1.05) var(--vx-ease),
    transform var(--vx-dur) var(--vx-ease),
    clip-path 1.15s var(--vx-ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.vx-copy--end [data-vx-type] {
  --vx-from-x: 1.4rem;
}

[data-vx-type="scale"] {
  transform: translate3d(var(--vx-from-x), 1rem, 0) scale(0.94);
  filter: blur(12px);
}

[data-vx-type="drift"] {
  transform: translate3d(calc(var(--vx-from-x) * 1.6), 0.7rem, 0);
  filter: blur(10px);
}

[data-vx-type="clip"] {
  opacity: 1;
  filter: blur(8px);
  transform: translate3d(0, 1.1rem, 0);
  clip-path: inset(0 0 100% 0);
}

[data-vx-type="rise"] {
  filter: none;
  transform: translate3d(0, 2.2rem, 0);
}

[data-vx-type="fade"] {
  filter: none;
  transform: none;
  opacity: 0;
}

[data-vx-type="wipe"] {
  opacity: 1;
  filter: none;
  transform: none;
  clip-path: inset(0 108% 0 0);
}

.vx-copy--end [data-vx-type="wipe"] {
  clip-path: inset(0 0 0 108%);
}

[data-vx-type="glitch"] {
  opacity: 0;
  filter: none;
  transform: none;
  animation: none;
}

[data-vx-type="stagger"],
[data-vx-type="stream"],
[data-vx-type="type"] {
  opacity: 1;
  filter: none;
  transform: none;
  overflow: visible;
}

.vx-tw {
  display: inline-block;
  will-change: transform, opacity, filter;
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(var(--vx-from-x, -0.8rem), 1.1rem, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

[data-vx-type="stagger"] .vx-tail {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(var(--vx-from-x, -0.6rem), 0.7rem, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s,
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s;
}

/* Soft stream: glyphs clear from blur one by one. */
.vx-ch {
  display: inline-block;
  will-change: opacity, filter, transform;
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 0.22em, 0);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 18ms);
}

[data-vx-type="type"] .vx-ch {
  filter: none;
  transform: none;
  opacity: 0;
  transition: opacity 0.01s linear;
  transition-delay: calc(var(--i, 0) * 30ms);
}

[data-vx-type="stream"] .vx-tail:has(a),
[data-vx-type="type"] .vx-tail:has(a) {
  opacity: 0;
  transition: opacity 0.55s ease;
  transition-delay: calc(var(--vx-ch-n, 18) * 32ms + 0.15s);
}

.is-settled [data-vx-type="stream"] .vx-tail:has(a),
.is-settled [data-vx-type="type"] .vx-tail:has(a) {
  opacity: 1;
}

.vx-caret {
  display: inline-block;
  width: 0.085em;
  height: 0.82em;
  margin-left: 0.08em;
  vertical-align: -0.05em;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(0.08em);
}

.vx-phrase[data-vx-type="clip"],
.vx-phrase[data-vx-type="wipe"] {
  overflow: hidden;
}

/* While snapping away from a slide, park its type without killing the incoming reveal. */
.cv-visuals.is-scrolling .vx-frame:not(.is-settled) [data-vx-type],
.cv-visuals.is-scrolling .vx-frame:not(.is-settled) .vx-tw,
.cv-visuals.is-scrolling .vx-frame:not(.is-settled) .vx-ch,
.cv-visuals.is-scrolling .vx-frame:not(.is-settled) .vx-caret,
.cv-visuals.is-scrolling .vx-frame:not(.is-settled) [data-vx-type="stagger"] .vx-tail {
  transition: none !important;
  animation: none !important;
}

.is-settled [data-vx-type],
.is-settled [data-vx-type="scale"],
.is-settled [data-vx-type="drift"],
.is-settled [data-vx-type="rise"],
.is-settled [data-vx-type="fade"] {
  opacity: 1;
  filter: none;
  transform: none;
}

.is-settled [data-vx-type="clip"] {
  opacity: 1;
  filter: none;
  transform: none;
  clip-path: inset(0 0 0 0);
}

.is-settled [data-vx-type="wipe"] {
  opacity: 1;
  filter: none;
  transform: none;
  clip-path: inset(0 -2% 0 0);
}

.is-settled .vx-copy--end [data-vx-type="wipe"] {
  clip-path: inset(0 0 0 -2%);
}

.is-settled [data-vx-type="glitch"] {
  opacity: 1;
  filter: none;
  transform: none;
  animation: vx-glitch 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-settled .vx-tw,
.is-settled .vx-ch,
.is-settled [data-vx-type="stagger"] .vx-tail {
  opacity: 1;
  filter: none;
  transform: none;
}

.is-settled .vx-caret {
  animation:
    vx-caret-blink 0.7s step-end infinite,
    vx-caret-hide 0s linear forwards;
  animation-delay:
    0s,
    calc(var(--i, 12) * 32ms + 0.45s);
}

.is-settled [data-vx-type="type"] .vx-caret {
  animation-delay:
    0s,
    calc(var(--i, 12) * 48ms + 0.2s);
}

.vx-serif {
  display: block;
  font-family: "League Spartan", "Montserrat", "Instrument Sans", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(2.35rem, 4.6vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-align: left;
  margin: 0;
  padding: 0;
  max-width: none;
  white-space: nowrap;
}

.vx-tail {
  display: block;
  margin: 0.28rem 0 0;
  padding: 0;
  font-family: "Montserrat", "Instrument Sans", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(0.78rem, 1.05vw, 0.98rem);
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: left;
  color: rgba(255, 255, 255, 0.86);
  max-width: none;
}

/* Image insets: left/right alternating. Booking end stays centered. */
.vx-copy--south .vx-phrase,
.vx-copy--band .vx-phrase {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.vx-booking.vx-copy--center .vx-phrase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vx-copy--south .vx-serif,
.vx-copy--band .vx-serif {
  max-width: none;
}

.vx-copy--south .vx-tail,
.vx-copy--band .vx-tail {
  max-width: none;
}

/*
  Optical flush: League Spartan stems sit closer to the em-box edge than
  Montserrat caps. Pull only the first glyph of the subline.
*/
.vx-copy--south:not(.vx-copy--end) .vx-tail:not(:has(.vx-ch)),
.vx-copy--band .vx-tail:not(:has(.vx-ch)) {
  text-indent: -0.14em;
  padding-inline-end: 0.14em;
}

.vx-copy--south:not(.vx-copy--end) .vx-tail > .vx-ch:first-child,
.vx-copy--band .vx-tail > .vx-ch:first-child {
  margin-inline-start: -0.14em;
}

.vx-copy--end .vx-tail:not(:has(.vx-ch)) {
  text-indent: 0;
  padding-inline-start: 0.14em;
}

.vx-copy--end .vx-tail > .vx-ch:last-child {
  margin-inline-end: -0.14em;
}

.vx-tail--caps {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Char/word splits must not invent a left inset. */
.vx-tw,
.vx-ch {
  margin: 0;
  padding: 0;
  letter-spacing: normal;
}

.vx-soft {
  padding: 10vh clamp(1rem, 3.2vw, 2.8rem) 12vh;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(36, 41, 47, 0.55), transparent 55%),
    #0d1117;
  color: #e6edf3;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
}

.vx-soft-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 2rem;
  max-width: 72rem;
  margin: 0 auto 1.6rem;
  align-items: start;
}

.vx-soft-title {
  margin: 0.4rem 0 0.75rem;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  text-shadow: none;
}

.vx-soft-about {
  margin: 0;
  max-width: 44rem;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: rgba(230, 237, 243, 0.68);
}

.vx-soft-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  justify-self: end;
  align-self: center;
}

.vx-soft-aside .vx-repo {
  margin: 0;
  color: rgba(230, 237, 243, 0.45);
  font-size: 0.8rem;
  text-shadow: none;
}

.vx-soft .vx-who {
  text-shadow: none;
  color: #3fb950;
}

.vx-soft-shot {
  max-width: 72rem;
  margin: 0 auto 1.8rem;
  border: 1px solid #30363d;
  background: #010409;
}

.vx-soft-thumb {
  position: relative;
  display: block;
}

.vx-soft-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.vx-gh--on-thumb {
  --vx-gh-pad-y: 0.78rem;
  --vx-gh-pad-x: 1.15rem;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  gap: 0.55rem;
  padding: var(--vx-gh-pad-y) var(--vx-gh-pad-x);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #0d1117;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.22);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  transform: translate(-50%, -50%);
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.vx-gh--on-thumb .vx-gh-mark {
  width: 1.1rem;
  height: 1.1rem;
}

.vx-gh--on-thumb .vx-gh-label {
  line-height: 1;
}

.vx-gh--on-thumb .vx-gh-arrow {
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 180ms ease, transform 180ms ease;
}

.vx-gh--on-thumb:hover,
.vx-gh--on-thumb:focus-visible {
  color: #0d1117;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  border-color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 16px 40px rgba(0, 0, 0, 0.48),
    0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, calc(-50% - 2px));
}

.vx-gh--on-thumb:hover .vx-gh-arrow,
.vx-gh--on-thumb:focus-visible .vx-gh-arrow {
  opacity: 0.9;
  transform: translate(1px, -1px);
}

.vx-gh--on-thumb:active {
  transform: translate(-50%, -50%) scale(0.98);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 16px rgba(0, 0, 0, 0.3);
}

.vx-soft-shot figcaption {
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid #21262d;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #8b949e;
}

.vx-soft-board {
  display: grid;
  grid-template-columns: minmax(13.5rem, 0.72fr) minmax(0, 1.8fr);
  gap: 1.4rem 1.75rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: start;
}

.vx-soft-modes {
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid #30363d;
  background: #010409;
}

.vx-soft-modes .vx-soft-h {
  margin-bottom: 0.55rem;
}

.vx-soft-devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
  min-width: 0;
}

.vx-soft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.vx-soft-h {
  margin: 0 0 0.65rem;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #3fb950;
}

.vx-soft-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.35;
}

.vx-soft-list li {
  display: grid;
  grid-template-columns: 1.1rem 5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.35rem 0.4rem;
  padding: 0.22rem 0;
  border-bottom: 1px solid #21262d;
  color: #e6edf3;
}

.vx-soft-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vx-soft-list kbd {
  color: #8b949e;
  font: inherit;
}

.vx-soft-list em {
  color: #8b949e;
  font-style: normal;
}

.vx-soft-device {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vx-device {
  display: flex;
  align-items: center;
  gap: 0.9rem 1rem;
  min-width: 0;
  color: #8b949e;
}

.vx-soft-device[data-device="tether"] .vx-device-icon {
  color: #58a6ff;
}

.vx-soft-device[data-device="pad"] .vx-device-icon {
  color: #3fb950;
}

.vx-soft-device[data-device="stoptrick"] .vx-device-icon {
  color: #e2c08d;
}

.vx-soft-device[data-device="mapping"] .vx-device-icon {
  color: #8fd6c4;
}

.vx-device-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vx-device-glyph {
  display: block;
  width: auto;
  height: 5.4rem;
}

.vx-device-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.vx-device-name {
  margin: 0 0 0.28rem;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.vx-device-meta {
  margin: 0;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #8b949e;
}

.vx-soft-note {
  max-width: 72rem;
  margin: 0.95rem auto 0;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.72rem;
  color: #6e7681;
}

.vx-booking {
  pointer-events: none;
}

.vx-booking .vx-mail {
  pointer-events: auto;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(255, 255, 255, 0.42);
}

.vx-booking .vx-mail:hover,
.vx-booking .vx-mail:focus-visible {
  text-decoration-color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.vx-note {
  margin-top: 0.7rem;
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.vx-spec {
  margin: 0.85rem 0 0;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: 0;
}

.vx-spec div {
  display: flex;
  justify-content: flex-end;
  gap: 0.9em;
}

.vx-spec dt,
.vx-spec dd {
  margin: 0;
}

.vx-spec dt {
  opacity: 0.55;
}

.vx-key {
  margin: 0 0 0.4rem;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.vx-word--pixel {
  font-family: Silkscreen, monospace;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  font-size: clamp(1.5rem, 3.6vw, 3.1rem);
}

.vx-serif.vx-word--pixel {
  max-width: none;
  font-family: Silkscreen, monospace;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-size: clamp(1.85rem, 4.2vw, 3.4rem);
}

.vx-idx {
  position: absolute;
  z-index: 3;
  left: clamp(1rem, 3.2vw, 2.8rem);
  bottom: clamp(1rem, 4vh, 2.4rem);
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.vx-copy {
  position: absolute;
  z-index: 3;
}

.vx-copy--left {
  top: calc(var(--cv-menu-height) + 0.6rem);
  left: clamp(1rem, 3.2vw, 2.8rem);
  max-width: 92vw;
}

.vx-copy--left .vx-who {
  margin-bottom: 0.45rem;
}

.vx-copy--south {
  --vx-from-x: -1.4rem;
  left: clamp(1rem, 3.2vw, 2.8rem);
  right: auto;
  bottom: clamp(1.6rem, 7vh, 3.4rem);
  max-width: none;
  width: max-content;
  text-align: left;
}

.vx-copy--south.vx-copy--end {
  --vx-from-x: 1.4rem;
  left: auto;
  right: clamp(1rem, 3.2vw, 2.8rem);
  text-align: right;
}

.vx-copy--south.vx-copy--end .vx-phrase {
  align-items: flex-end;
  text-align: right;
}

.vx-copy--south.vx-copy--end .vx-serif,
.vx-copy--south.vx-copy--end .vx-tail {
  text-align: right;
}

.vx-copy--south .vx-phrase,
.vx-copy--center .vx-phrase {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 8px 32px rgba(0, 0, 0, 0.6);
}

.vx-frame:has(.vx-copy--south)::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32) 45%, transparent);
  pointer-events: none;
}

.vx-frame:has(.vx-copy--center)::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: radial-gradient(60% 45% at 50% 50%, rgba(0, 0, 0, 0.55), transparent 75%);
  pointer-events: none;
}

.vx-copy--right {
  top: 50%;
  right: clamp(1rem, 4vw, 3.5rem);
  transform: translateY(-50%);
  text-align: right;
}

.vx-copy--band {
  left: clamp(1rem, 3.2vw, 2.8rem);
  right: clamp(1rem, 3.2vw, 2.8rem);
  bottom: clamp(1.2rem, 6vh, 3rem);
  text-align: center;
}

.vx-copy--band .vx-serif {
  margin-inline: auto;
}

.vx-copy--band .vx-tail {
  margin-inline: auto;
}

.vx-booking .vx-serif {
  margin-inline: auto;
  font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  max-width: none;
  white-space: nowrap;
  text-align: center;
}

.vx-booking .vx-serif--alt {
  margin-top: 0.02em;
  margin-inline: auto;
  font-family: "Montserrat", "Instrument Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-size: clamp(1.7rem, 3.8vw, 3.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
  white-space: nowrap;
  text-align: center;
}

.vx-booking .vx-tail {
  margin-inline: auto;
  text-indent: 0;
  text-align: center;
}

.vx-booking .vx-tail > .vx-ch:first-child {
  margin-inline-start: 0;
}

.vx-copy--band .vx-word {
  font-size: clamp(2.6rem, 7vw, 6.6rem);
}

.vx-copy--top {
  top: calc(var(--cv-menu-height) + 0.8rem);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.vx-copy--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 52rem);
  text-align: center;
}

.vx-copy--center .vx-who {
  margin-bottom: 0.85rem;
}

.vx-repo {
  display: block;
  max-width: 100%;
  font-weight: 500;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
  overflow-wrap: anywhere;
}

.vx-place--band,
.vx-place--top,
.vx-place--br {
  position: absolute;
  z-index: 3;
}

.vx-place--band {
  left: clamp(1rem, 3.2vw, 2.8rem);
  right: clamp(1rem, 3.2vw, 2.8rem);
  bottom: clamp(1.2rem, 6vh, 3rem);
  font-size: clamp(2.8rem, 7vw, 7rem);
}

.vx-place--top {
  top: calc(var(--cv-menu-height) + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3.2rem, 10vw, 9rem);
  text-align: center;
}

.vx-place--br {
  right: clamp(1rem, 3.2vw, 2.8rem);
  bottom: clamp(1rem, 4vh, 2.6rem);
  text-align: right;
  text-decoration: none;
}

a.vx-place--br:hover,
a.vx-place--br:focus-visible {
  color: #fff;
  opacity: 0.72;
  outline: none;
}

.vx-where,
.vx-clips {
  padding: 12vh clamp(1rem, 3.2vw, 2.8rem) 14vh;
  background: #000;
}

.vx-where .vx-who,
.vx-clips .vx-who {
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.vx-clips {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.vx-clip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.vx-clip {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #121212;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.vx-clip:hover,
.vx-clip:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}

.vx-clip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0a0a;
}

.vx-lb {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  padding: clamp(1rem, 4vw, 2.5rem);
}

.vx-lb[hidden] {
  display: none;
}

.vx-lb-video {
  width: min(96vw, 1100px);
  max-height: min(78vh, 720px);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.vx-lb-close,
.vx-lb-nav {
  position: absolute;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}

.vx-lb-close {
  top: calc(var(--cv-menu-height, 3rem) + 0.8rem);
  right: 1rem;
}

.vx-lb-close::before,
.vx-lb-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: #fff;
}

.vx-lb-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.vx-lb-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.vx-lb-prev {
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}

.vx-lb-next {
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}

.vx-lb-prev::before,
.vx-lb-next::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
}

.vx-lb-prev::before {
  transform: translate(-30%, -50%) rotate(45deg);
}

.vx-lb-next::before {
  transform: translate(-70%, -50%) rotate(-135deg);
}

.vx-lb-close:hover,
.vx-lb-nav:hover,
.vx-lb-close:focus-visible,
.vx-lb-nav:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.vx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 1.1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.vx-card {
  --vx-accent: #8fd6c4;
  --vx-accent-soft: rgba(143, 214, 196, 0.14);
  --vx-accent-border: rgba(143, 214, 196, 0.28);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    #121212;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 28px rgba(0, 0, 0, 0.28);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.vx-card[data-kind="live"] {
  --vx-accent: #8fd6c4;
  --vx-accent-soft: rgba(143, 214, 196, 0.14);
  --vx-accent-border: rgba(143, 214, 196, 0.28);
}

.vx-card[data-kind="stage"] {
  --vx-accent: #e2c08d;
  --vx-accent-soft: rgba(226, 192, 141, 0.14);
  --vx-accent-border: rgba(226, 192, 141, 0.28);
}

.vx-card[data-kind="paint"] {
  --vx-accent: #d9a0b0;
  --vx-accent-soft: rgba(217, 160, 176, 0.14);
  --vx-accent-border: rgba(217, 160, 176, 0.28);
}

.vx-card[data-kind="av"] {
  --vx-accent: #9db7e8;
  --vx-accent-soft: rgba(157, 183, 232, 0.14);
  --vx-accent-border: rgba(157, 183, 232, 0.28);
}

.vx-card[data-kind="orch"] {
  --vx-accent: #c4b5e8;
  --vx-accent-soft: rgba(196, 181, 232, 0.14);
  --vx-accent-border: rgba(196, 181, 232, 0.28);
}

.vx-card:hover {
  border-color: var(--vx-accent-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 48%),
    #161616;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px color-mix(in srgb, var(--vx-accent) 18%, transparent),
    0 18px 36px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.vx-card-media {
  position: relative;
  isolation: isolate;
}

.vx-card-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}

.vx-card-shot.vx-log-setup,
.vx-pan img.vx-log-setup {
  object-position: 55% 78%;
}

.vx-card-year {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}

.vx-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
}

.vx-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.vx-card-title {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f4f4f4;
}

.vx-card-badge {
  flex: 0 0 auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--vx-accent-border);
  background: var(--vx-accent-soft);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vx-accent);
}

.vx-card-desc {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.vx-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.vx-card-tags span {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.vx-card-foot {
  margin: auto 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--vx-accent);
}

body.cv-visuals-active .cv-menu {
  background: transparent;
  border-bottom-color: transparent;
}

body.cv-visuals-active #cv-top-nav a.cv-top-link,
body.cv-visuals-active #cv-top-nav a.cv-top-link:link,
body.cv-visuals-active #cv-top-nav a.cv-top-link:visited {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

body.cv-visuals-active #cv-top-nav a.cv-top-link:hover,
body.cv-visuals-active #cv-top-nav a.cv-top-link:focus-visible,
body.cv-visuals-active #cv-top-nav a.cv-top-link.is-active {
  color: #fff;
}

body.cv-visuals-active #cv-top-nav a.cv-top-link.is-active {
  box-shadow: none;
}

@keyframes vx-rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes vx-boot-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@keyframes vx-glitch {
  0% {
    opacity: 0;
    transform: translate3d(-10px, 3px, 0);
    text-shadow: 3px 0 #ff3af2, -3px 0 #3af2ff;
    clip-path: inset(0 0 65% 0);
  }
  18% {
    opacity: 1;
    transform: translate3d(8px, -4px, 0);
    text-shadow: -2px 0 #ff3af2, 2px 0 #3af2ff;
    clip-path: inset(40% 0 10% 0);
  }
  36% {
    transform: translate3d(-4px, 2px, 0);
    text-shadow: 1px 0 #ff3af2, -1px 0 #3af2ff;
    clip-path: inset(10% 0 50% 0);
  }
  54% {
    transform: translate3d(3px, -1px, 0);
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    transform: none;
    text-shadow: none;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes vx-caret-blink {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes vx-caret-hide {
  to { opacity: 0; visibility: hidden; }
}

@media (max-width: 960px) {
  .vx-soft-head,
  .vx-soft-grid,
  .vx-soft-board {
    grid-template-columns: 1fr;
  }

  .vx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vx-clip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .vx-frame--loop .vx-pan img,
  .vx-frame--loop .vx-pan video {
    object-fit: contain;
  }

  .vx-word {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .vx-grid {
    grid-template-columns: 1fr;
  }

  .vx-clip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vx-place--band,
  .vx-place--top {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .vx-soft-devices {
    grid-template-columns: 1fr;
  }

  .vx-soft-list li {
    grid-template-columns: 1.2rem 5.2rem minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vx-pan {
    top: 0;
    height: 100%;
  }

  .vx-copy,
  .vx-word,
  .vx-where,
  .vx-soft,
  .vx-idx,
  .vx-boot-bar::after {
    animation: none;
  }

  .cv-visuals.is-pan-ease .vx-pan {
    transition: none;
  }

  .cv-visuals-scroll {
    scroll-behavior: auto;
    scroll-snap-type: y proximity;
  }

  [data-vx-type],
  .vx-tw,
  .vx-ch,
  [data-vx-type="stagger"] .vx-tail {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
    text-shadow: none !important;
  }

  .vx-caret {
    display: none !important;
  }
}
