/* dexOS application surfaces */

.dx-app {
  --app-accent: var(--acid);
  position: relative;
  min-height: 100%;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 92% -10%, color-mix(in srgb, var(--app-accent) 20%, transparent), transparent 34%),
    linear-gradient(145deg, #0e0e16 0%, #08080d 52%, #050508 100%);
  isolation: isolate;
  container-type: inline-size;
}

.dx-app::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
}

.dx-app button,
.dx-app input,
.dx-app a {
  outline: none;
}

.dx-app button:focus-visible,
.dx-app input:focus-visible,
.dx-app a:focus-visible {
  box-shadow: 0 0 0 2px #09090d, 0 0 0 4px var(--app-accent);
}

.dx-app-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(20px) saturate(1.25);
}

.dx-app-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: clamp(80px, 25%, 280px);
  height: 2px;
  background: var(--app-accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--app-accent) 75%, transparent);
  content: "";
}

.dx-app-header__copy {
  min-width: 0;
}

.dx-app-kicker {
  margin: 0 0 3px;
  color: var(--app-accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dx-app-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

.dx-app-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.dx-app-button,
.dx-app-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.dx-app-button:hover,
.dx-app-pill:hover,
.dx-app-pill.is-active {
  border-color: var(--app-accent);
  color: #08080b;
  background: var(--app-accent);
  transform: translateY(-2px);
}

.dx-app-button--bright {
  border-color: var(--app-accent);
  color: #07070a;
  background: var(--app-accent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--app-accent) 20%, transparent);
}

/* Portfolio */

.portfolio-overview {
  display: grid;
  grid-template-columns: minmax(105px, 0.28fr) minmax(240px, 1fr) auto;
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 5vw, 62px) clamp(18px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}

.portfolio-stat {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.portfolio-stat__value {
  color: var(--app-accent);
  font-family: var(--display);
  font-size: clamp(54px, 10vw, 108px);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.7;
}

.portfolio-stat__label {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portfolio-overview__copy {
  max-width: 560px;
  margin: 0;
  color: #d8d6dd;
  font-size: clamp(14px, 1.8vw, 20px);
  line-height: 1.45;
  text-wrap: pretty;
}

.portfolio-available {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio-available::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  content: "";
  animation: app-pulse 1.8s ease-in-out infinite;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.portfolio-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 1200 / 630;
  color: inherit;
  background: #0a0a10;
  text-decoration: none;
  isolation: isolate;
}

.portfolio-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.portfolio-card__media::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.99) 0%, rgba(5, 5, 8, 0.86) 34%, rgba(5, 5, 8, 0.2) 78%);
  content: "";
}

.portfolio-card__backdrop {
  position: absolute;
  z-index: 0;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  opacity: 0.56;
  filter: blur(18px) saturate(1.35) contrast(1.08) brightness(0.72);
  transform: scale(1.08);
  transition: filter 500ms ease, transform 700ms var(--ease-out);
}

.portfolio-card__image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.92) contrast(1.03) drop-shadow(0 14px 34px rgba(0, 0, 0, 0.34));
  transition: filter 500ms ease;
}

.portfolio-card__number {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 20px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  backdrop-filter: blur(10px);
}

.portfolio-card__copy {
  z-index: 2;
  align-self: end;
  padding: clamp(24px, 4vw, 40px);
}

.portfolio-card__copy h2,
.portfolio-card__copy p {
  margin: 0;
}

.portfolio-card__copy .portfolio-card__filename {
  margin-top: 12px;
  color: var(--app-accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-card__copy h2 {
  max-width: 90%;
  font-family: var(--display);
  font-size: clamp(25px, 4vw, 49px);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.portfolio-card__copy p {
  max-width: 490px;
  margin-top: 10px;
  color: #b9b7c0;
  font-size: 12px;
}

.portfolio-card__launch {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  width: auto;
  min-width: 44px;
  height: 44px;
  gap: 0;
  padding: 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  color: #050508;
  background: var(--app-accent);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translate(70px, 70px) rotate(-25deg);
  transition: transform 450ms var(--ease-out);
}

.portfolio-card__launch span {
  text-align: center;
}

.portfolio-card__launch b {
  position: absolute;
  right: 13px;
  top: 50%;
  line-height: 1;
  transform: translateY(-50%);
}

.portfolio-card:hover .portfolio-card__image {
  filter: saturate(1.12) contrast(1.08);
}

.portfolio-card:hover .portfolio-card__backdrop,
.portfolio-card.is-selected .portfolio-card__backdrop {
  filter: blur(16px) saturate(1.6) contrast(1.12) brightness(0.82);
  transform: scale(1.13);
}

.portfolio-card:hover .portfolio-card__launch,
.portfolio-card.is-selected .portfolio-card__launch {
  transform: translate(0) rotate(0);
}

.portfolio-card.is-selected {
  outline: 1px solid color-mix(in srgb, var(--app-accent) 70%, transparent);
  outline-offset: -1px;
  box-shadow: inset 0 0 0 4px rgba(255, 0, 237, 0.055);
}

.web-project-app {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.web-project-app > .dx-app-header {
  flex: 0 0 auto;
}

.web-project-browser {
  display: flex;
  min-height: 360px;
  flex: 1;
  padding: clamp(12px, 2vw, 20px);
  flex-direction: column;
}

.web-project-browser__chrome {
  display: grid;
  min-height: 42px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #101018;
}

.web-project-browser__lights {
  display: flex;
  gap: 6px;
}

.web-project-browser__lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff625f;
}

.web-project-browser__lights i:nth-child(2) { background: #fff04d; }
.web-project-browser__lights i:nth-child(3) { background: var(--acid); }

.web-project-browser__address {
  overflow: hidden;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #08080d;
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-project-browser__status {
  color: var(--app-accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.web-project-browser__viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: #030305;
}

.web-project-snapshot,
.web-project-frame {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  border: 0;
}

.web-project-snapshot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.7);
  transform: scale(1.01);
}

.web-project-snapshot__veil {
  position: absolute;
  inset: 0;
  display: flex;
  max-width: 720px;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(30px, 6vw, 76px);
  background: linear-gradient(90deg, rgba(4, 4, 7, 0.96), rgba(4, 4, 7, 0.68) 58%, transparent);
  flex-direction: column;
}

.web-project-snapshot__veil h2 {
  max-width: 650px;
  margin: 8px 0 14px;
  font-family: var(--display);
  font-size: clamp(36px, 7vw, 82px);
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.web-project-snapshot__veil > p {
  max-width: 540px;
  margin: 0 0 24px;
  color: #d2d0d8;
  font-size: 13px;
  line-height: 1.6;
}

@container (max-width: 560px) {
  .web-project-browser__chrome {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .web-project-browser__status {
    display: none;
  }

  .web-project-snapshot__veil {
    padding: 24px;
  }
}

/* Anaesterizer */

.anaesterizer-app {
  --app-accent: #58f3d4;
  background:
    radial-gradient(circle at 55% 25%, rgba(74, 244, 208, 0.15), transparent 25%),
    linear-gradient(145deg, #101119, #050608 68%);
}

.anaesterizer-body {
  display: grid;
  grid-template-columns: minmax(270px, 1.25fr) minmax(250px, 0.75fr);
  gap: 1px;
  background: var(--line);
}

.anaesterizer-display,
.anaesterizer-controls,
.anaesterizer-keyboard-panel {
  background: rgba(7, 9, 12, 0.94);
}

.anaesterizer-display {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 24px;
}

.anaesterizer-display::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 3px 4px);
  content: "";
  pointer-events: none;
}

.anaesterizer-display__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.anaesterizer-display__status {
  color: var(--cyan);
}

.anaesterizer-display__note {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 15px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
  opacity: 0.16;
}

.anaesterizer-illustration {
  position: absolute;
  inset: 40px 20px 15px;
}

.anaesterizer-illustration__base,
.anaesterizer-illustration__punch,
.anaesterizer-illustration__pointer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.anaesterizer-illustration__base {
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.7));
}

.anaesterizer-illustration__punch {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 90ms ease, transform 150ms var(--ease-out);
}

.anaesterizer-illustration__punch.is-punched,
.anaesterizer-illustration.is-punched .anaesterizer-illustration__punch {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.anaesterizer-illustration__pointer {
  z-index: 2;
  cursor: ns-resize;
  opacity: 0.92;
}

.anaesterizer-loops {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(4, 38px);
  gap: 7px;
}

.anaesterizer-loop {
  position: relative;
  display: grid;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  transition: 160ms ease;
}

.anaesterizer-loop > strong {
  display: none;
}

.anaesterizer-loop > span {
  line-height: 1;
}

.anaesterizer-loop__signal {
  position: absolute;
  right: 2px;
  bottom: 2px;
}

.anaesterizer-loop__signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.anaesterizer-loop.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(74, 244, 208, 0.17);
}

.anaesterizer-loop.is-step {
  color: #07100e;
  background: var(--cyan);
  transform: scale(1.12);
}

.anaesterizer-controls {
  padding: 24px;
}

.anaesterizer-controls > h2,
.anaesterizer-controls > .dx-app-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.anaesterizer-controls__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 24px 14px;
}

.anaesterizer-dial {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 8px;
}

.anaesterizer-dial__heading {
  width: 100%;
  color: #c6c4cc;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.anaesterizer-dial__dot {
  position: relative;
  display: grid;
  width: clamp(64px, 9vw, 88px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--dial-color) 55%, var(--line));
  border-radius: 50%;
  background:
    radial-gradient(circle, #17171e 0 45%, transparent 46%),
    conic-gradient(from 230deg, var(--dial-color), rgba(255, 255, 255, 0.07) 55%, var(--dial-color));
  box-shadow: inset 0 0 0 7px #08080d, 0 0 25px color-mix(in srgb, var(--dial-color) 10%, transparent);
}

.anaesterizer-dial__dot::after {
  width: 4px;
  height: 28%;
  border-radius: 4px;
  background: var(--dial-color);
  content: "";
  transform: translateY(-75%) rotate(var(--dial-angle, -65deg));
  transform-origin: 50% 175%;
}

.anaesterizer-dial__input {
  width: 100%;
  height: 14px;
  accent-color: var(--dial-color);
  cursor: ew-resize;
}

.anaesterizer-keyboard-panel {
  grid-column: 1 / -1;
  padding: 19px 22px 25px;
}

.anaesterizer-keyboard-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.anaesterizer-keys {
  display: grid;
  gap: 5px;
}

.anaesterizer-keys--black {
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  margin: 0 2% 5px;
}

.anaesterizer-keys--white {
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
}

.anaesterizer-key {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  transition: transform 80ms ease, color 80ms ease, background 80ms ease;
  user-select: none;
}

.anaesterizer-key--black {
  min-height: 50px;
  color: #a9a8b0;
  background: linear-gradient(#17171e, #08080c);
  box-shadow: inset 0 -5px 8px #030304;
}

.anaesterizer-key--white {
  min-height: 76px;
  color: #17171c;
  background: linear-gradient(#f8f6f0, #bcbac0);
  box-shadow: inset 0 -7px 9px rgba(0, 0, 0, 0.2);
}

.anaesterizer-key.is-playing {
  color: #07100e;
  background: var(--cyan);
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.22), 0 0 26px rgba(74, 244, 208, 0.35);
  transform: translateY(3px);
}

/* Drummer */

.drummer-app {
  --app-accent: var(--yellow);
  background: #080809;
}

.drummer-transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px clamp(15px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  background: #101014;
}

.drummer-transport__button {
  min-height: 37px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #09090d;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 150ms ease;
}

.drummer-transport__button:hover,
.drummer-transport__button.is-active {
  border-color: var(--yellow);
  color: #090909;
  background: var(--yellow);
}

.drummer-transport__button--record.is-active {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
  animation: app-pulse 1s infinite;
}

.drummer-bpm {
  display: flex;
  min-width: 180px;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.drummer-bpm input {
  width: min(150px, 20vw);
  accent-color: var(--yellow);
}

.drummer-monitor {
  padding: 18px clamp(15px, 3vw, 30px) 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 240, 77, 0.025), transparent 40%),
    #08080c;
}

.drummer-monitor__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drummer-timeline {
  display: grid;
  gap: 4px;
  min-width: 550px;
  overflow: hidden;
}

.drummer-monitor {
  overflow-x: auto;
}

.drummer-timeline__row {
  display: grid;
  grid-template-columns: 72px repeat(16, minmax(16px, 1fr));
  gap: 3px;
  align-items: center;
}

.drummer-timeline__row > span:first-child {
  overflow: hidden;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.drummer-timeline__step {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  transition: 80ms ease;
}

.drummer-timeline__step:nth-child(4n + 2) {
  background: rgba(255, 255, 255, 0.12);
}

.drummer-timeline__step.is-note {
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 240, 77, 0.32);
}

.drummer-timeline__step.is-playhead {
  background: var(--cyan);
  transform: scaleY(2.1);
}

.drummer-pads {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
  padding: clamp(15px, 3vw, 30px);
}

.drummer-pad {
  position: relative;
  display: flex;
  min-height: clamp(92px, 14vw, 145px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #d9d7de;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 55%),
    #111117;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  text-align: left;
  text-transform: uppercase;
  transition: 120ms var(--ease-out);
}

.drummer-pad::after {
  width: 10px;
  height: 10px;
  border: 1px solid var(--dim);
  border-radius: 50%;
  content: "";
}

.drummer-pad kbd {
  align-self: flex-end;
}

.drummer-pad:hover {
  border-color: rgba(255, 240, 77, 0.5);
  transform: translateY(-2px);
}

.drummer-pad.is-hit {
  border-color: var(--yellow);
  color: #090909;
  background: var(--yellow);
  box-shadow: 0 0 35px rgba(255, 240, 77, 0.26);
  transform: scale(0.97);
}

.drummer-pad.is-hit::after {
  border-color: #090909;
  background: #090909;
}

/* Virtual Vandal */

.vandal-app {
  --app-accent: #ff6b2f;
  --heritage-accent: #0004ff;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #090909;
}

.vandal-workspace {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 152px minmax(0, 1fr);
  height: auto;
  min-height: 0;
}

.vandal-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 24%),
    rgba(10, 10, 13, 0.96);
  scrollbar-width: thin;
}

.vandal-color {
  position: relative;
  flex: 0 0 72px;
  width: 100%;
  height: 72px;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #18181c, #09090b);
  cursor: pointer;
  transition: 180ms var(--ease-out);
}

.vandal-color img {
  position: relative;
  z-index: 2;
  width: 58%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
  transition: transform 220ms var(--ease-out);
}

.vandal-color__material {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background-position: 50% 46%;
  background-size: 185%;
  box-shadow:
    inset -8px -8px 12px rgba(0, 0, 0, 0.55),
    inset 5px 5px 10px rgba(255, 255, 255, 0.15),
    0 6px 14px #000;
}

.vandal-color > span {
  position: absolute;
  right: 5px;
  bottom: 4px;
  left: 5px;
  overflow: hidden;
  color: #fff;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.09em;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px #000;
  text-transform: uppercase;
  white-space: nowrap;
}

.vandal-color::after {
  position: absolute;
  inset: 6px;
  border: 2px solid var(--spray-color);
  border-radius: 8px;
  content: "";
  opacity: 0;
  transition: opacity 150ms ease;
}

.vandal-color:hover,
.vandal-color.is-active {
  border-color: var(--spray-color);
  background: color-mix(in srgb, var(--spray-color) 13%, #090909);
  transform: rotate(-2deg) scale(1.02);
}

.vandal-color:hover img,
.vandal-color.is-active img {
  transform: translateY(-3px) rotate(2deg);
}

.vandal-color.is-active::after {
  opacity: 1;
}

.vandal-ranges {
  display: grid;
  gap: 8px;
  padding: 6px 0;
}

.vandal-range {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vandal-range input {
  width: 100%;
  accent-color: var(--spray-color, var(--app-accent));
}

.vandal-utilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.vandal-utilities .dx-app-button,
.vandal-utilities .dx-app-pill {
  width: 100%;
  padding-inline: 8px;
}

.vandal-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 480px;
  padding: 48px clamp(15px, 3vw, 34px) 50px;
  perspective: 1300px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--heritage-accent) 17%, transparent), transparent 48%),
    #030304;
  isolation: isolate;
}

.vandal-stage::before,
.vandal-stage::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.vandal-stage::before {
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.045) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, rgba(255, 255, 255, 0.035) 50%, transparent 50.1%);
  background-size: 92px 92px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
}

.vandal-stage::after {
  right: 8%;
  bottom: 5%;
  left: 8%;
  height: 14%;
  border-radius: 50%;
  background: #000;
  filter: blur(24px);
  opacity: 0.78;
  transform: rotateX(74deg);
}

.vandal-scene {
  --orbit-light-x: 42%;
  --orbit-light-y: 41%;
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  aspect-ratio: 1100 / 650;
  border-radius: 15px;
  transition: filter 260ms ease;
  transform: translateZ(0);
  will-change: filter;
}

.vandal-scene::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--heritage-accent) 35%, rgba(255, 255, 255, 0.1));
  border-radius: inherit;
  background: #050506;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.9),
    0 0 55px color-mix(in srgb, var(--heritage-accent) 11%, transparent);
  content: "";
  transform: translateZ(-28px) scale(1.02);
}

.vandal-scene.is-manipulating {
  filter: saturate(1.14) brightness(1.04);
  transition: none;
}

.vandal-scene--webgl::after {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  content: "TRUE 3D // WEBGL";
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.vandal-scene__sheen {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--orbit-light-x) var(--orbit-light-y), rgba(255, 255, 255, 0.16), transparent 27%),
    linear-gradient(118deg, transparent 25%, rgba(255, 255, 255, 0.045) 48%, transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateZ(10px);
}

.vandal-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #050506;
  cursor: crosshair;
  touch-action: none;
}

.vandal-loading {
  --load-progress: 0.04;
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  border-radius: inherit;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--heritage-accent) 22%, transparent), transparent 38%),
    #030304;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.vandal-loading__meter {
  position: relative;
  width: min(260px, 58%);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
}

.vandal-loading__meter::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--heritage-accent), #fff);
  box-shadow: 0 0 18px var(--heritage-accent);
  content: "";
  transform: scaleX(var(--load-progress));
  transform-origin: left;
  transition: transform 280ms var(--ease-out);
}

.vandal-loading.is-ready {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.vandal-loading.is-error {
  color: #fff;
  background: linear-gradient(135deg, #24020d, #050305);
}

.vandal-loading.is-error .vandal-loading__meter {
  background: #ff315f;
}

.vandal-canvas.is-orbiting {
  cursor: grab;
}

.vandal-scene.is-manipulating .vandal-canvas {
  cursor: grabbing;
}

.vandal-heritage-nav {
  position: absolute;
  z-index: 5;
  top: 15px;
  left: 50%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.vandal-heritage-nav__button {
  width: 34px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  transition: 180ms ease;
}

.vandal-heritage-nav__button:hover,
.vandal-heritage-nav__button.is-active {
  border-color: var(--heritage-accent);
  color: #050506;
  background: var(--heritage-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--heritage-accent) 35%, transparent);
}

.vandal-orbit-hint {
  position: absolute;
  z-index: 6;
  top: 46px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.09em;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
}

.vandal-orbit-hint img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  filter: invert(1);
}

.vandal-orbit-hint.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
}

.vandal-stage__meta {
  position: absolute;
  right: 24px;
  bottom: 15px;
  left: 24px;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.vandal-stage__meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.vandal-stage__meta strong {
  color: var(--heritage-accent);
}

.vandal-stage__object {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vandal-stage__object span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 7px;
}

/* WhoRU */

.whoru-app {
  --app-accent: var(--magenta);
  min-height: 100%;
  background: #040405;
}

.whoru-stage {
  position: relative;
  display: grid;
  min-height: 100%;
}

.whoru-stage--intro {
  min-height: clamp(500px, 75vh, 900px);
  place-items: center;
  overflow: hidden;
}

.whoru-intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.2) saturate(0.7);
  transform: scale(1.02);
}

.whoru-intro__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, transparent, rgba(0, 0, 0, 0.78)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), #000);
}

.whoru-intro__copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 680px;
  flex-direction: column;
  align-items: center;
  padding: 35px;
  text-align: center;
}

.whoru-intro__copy small {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.whoru-intro__copy h1,
.whoru-intro__copy h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(68px, 15vw, 178px);
  letter-spacing: -0.1em;
  line-height: 0.7;
  text-shadow: 0 0 60px rgba(255, 78, 219, 0.3);
}

.whoru-intro__copy p {
  max-width: 420px;
  margin: 35px auto 24px;
  color: #c5c3cb;
  font-size: 15px;
  text-wrap: balance;
}

.whoru-intro__start,
.whoru-continue,
.whoru-result__restart {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--magenta);
  border-radius: 99px;
  color: #080808;
  background: var(--magenta);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: 200ms var(--ease-out);
}

.whoru-intro__start:hover,
.whoru-continue:hover,
.whoru-result__restart:hover {
  box-shadow: 0 0 45px rgba(255, 78, 219, 0.35);
  transform: scale(1.04);
}

.whoru-stage--question {
  grid-template-columns: minmax(260px, 1.2fr) minmax(280px, 0.8fr);
  min-height: 580px;
}

.whoru-question__image-frame {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #000;
}

.whoru-question__image-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, rgba(0, 0, 0, 0.55));
  content: "";
}

.whoru-question__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.07) saturate(0.85);
}

.whoru-question__panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 70px);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 78, 219, 0.06), transparent 35%),
    #09090d;
}

.whoru-progress {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.whoru-question__panel h1,
.whoru-question__panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 76px);
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

.whoru-response {
  display: grid;
  gap: 8px;
}

.whoru-response__input {
  width: 100%;
  min-height: 52px;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-family: var(--mono);
  font-size: 15px;
}

.whoru-response__input:focus {
  border-color: var(--magenta);
  box-shadow: none;
}

.whoru-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 47px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #cfccd5;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  text-align: left;
  transition: 150ms ease;
}

.whoru-choice:hover,
.whoru-choice.is-selected {
  border-color: var(--magenta);
  color: #0a080a;
  background: var(--magenta);
}

.whoru-continue {
  justify-self: start;
}

.whoru-stage--result {
  min-height: 570px;
  place-items: center;
  background:
    repeating-radial-gradient(circle at center, transparent 0 20px, rgba(255, 78, 219, 0.045) 21px 22px),
    #040405;
}

.whoru-result {
  max-width: 690px;
  padding: 40px;
  text-align: center;
}

.whoru-result h1,
.whoru-result h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(74px, 16vw, 185px);
  letter-spacing: -0.1em;
  line-height: 0.67;
}

.whoru-result p {
  margin: 37px auto 24px;
  color: var(--muted);
}

/* Meme generator */

.meme-app {
  --app-accent: var(--cyan);
}

.meme-upload {
  position: relative;
  overflow: hidden;
}

.meme-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.meme-workspace {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-height: calc(100% - 86px);
}

.meme-presets {
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: #09090e;
}

.meme-presets__rail {
  display: grid;
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 165px);
  gap: 8px;
  overflow-y: auto;
}

.meme-preset {
  position: relative;
  width: 100%;
  aspect-ratio: 1.3;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111;
  cursor: pointer;
  transition: 160ms var(--ease-out);
}

.meme-preset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
}

.meme-preset > span {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  font-family: var(--mono);
  font-size: 7px;
}

.meme-preset:hover,
.meme-preset.is-active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 8px 25px rgba(74, 244, 208, 0.12);
  transform: translateY(-2px);
}

.meme-preset.is-active img {
  filter: saturate(1.05);
}

.meme-editor {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  gap: 18px;
  min-width: 0;
  padding: clamp(16px, 3vw, 30px);
}

.meme-canvas-frame {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  padding: 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(45deg, #111 25%, transparent 25%),
    linear-gradient(-45deg, #111 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #111 75%),
    linear-gradient(-45deg, transparent 75%, #111 75%),
    #0b0b0e;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.meme-canvas {
  width: auto;
  max-width: 100%;
  max-height: min(58vh, 680px);
  border-radius: 3px;
  box-shadow: 0 25px 60px #000;
  transition: opacity 220ms ease, filter 220ms ease;
}

.meme-preview-status {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(5, 5, 9, 0.82);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.11em;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.meme-canvas-frame.is-loading .meme-canvas {
  opacity: 0.34;
  filter: grayscale(0.55);
}

.meme-canvas-frame.is-ready .meme-preview-status {
  opacity: 0;
  transform: translate(-50%, 5px);
}

.meme-canvas-frame.is-error .meme-preview-status {
  border-color: rgba(255, 98, 95, 0.5);
  color: #fff;
  background: rgba(68, 10, 16, 0.9);
}

.meme-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meme-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meme-field input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.meme-field input:focus {
  border-color: var(--cyan);
}

/* BYOA product studio */

.byoa-app {
  --app-accent: #b8ff36;
  background:
    radial-gradient(circle at 85% 4%, rgba(184, 255, 54, 0.13), transparent 25%),
    radial-gradient(circle at 8% 36%, rgba(142, 97, 255, 0.14), transparent 24%),
    #07070b;
}

.byoa-app::before {
  opacity: 0.8;
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 5%, transparent 54%);
}

.byoa-hero {
  position: relative;
  display: grid;
  min-height: 500px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: clamp(28px, 5cqw, 70px);
  align-items: center;
  padding: clamp(42px, 7cqw, 82px) clamp(24px, 6cqw, 72px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.byoa-hero::before {
  position: absolute;
  z-index: -1;
  right: -0.05em;
  bottom: -0.24em;
  color: transparent;
  content: "BUILD";
  font-family: var(--display);
  font-size: clamp(150px, 34cqw, 390px);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.75;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.byoa-hero::after {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 45%;
  width: 1px;
  height: 100%;
  opacity: 0.35;
  background: linear-gradient(transparent, var(--app-accent), transparent);
  content: "";
  transform: rotate(21deg);
  transform-origin: center;
}

.byoa-hero__copy {
  position: relative;
  z-index: 1;
}

.byoa-hero__copy h1 {
  max-width: 710px;
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(62px, 11cqw, 128px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.78;
  text-wrap: balance;
}

.byoa-hero__joke {
  margin: 24px 0 0;
  color: var(--app-accent);
  font-family: var(--display);
  font-size: clamp(18px, 3.1cqw, 34px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.byoa-hero__pitch {
  max-width: 690px;
  margin: 27px 0 0;
  color: #c5c3cc;
  font-size: clamp(13px, 1.7cqw, 17px);
  line-height: 1.7;
  text-wrap: pretty;
}

.byoa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 31px;
}

.byoa-platforms {
  position: relative;
  z-index: 1;
  padding: 19px;
  border: 1px solid rgba(184, 255, 54, 0.24);
  border-radius: 17px;
  background: rgba(8, 8, 12, 0.74);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.byoa-platforms::before {
  position: absolute;
  top: -1px;
  right: 22px;
  width: 72px;
  height: 2px;
  background: var(--app-accent);
  box-shadow: 0 0 20px rgba(184, 255, 54, 0.6);
  content: "";
}

.byoa-platforms__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.byoa-platforms__head span {
  color: var(--muted);
}

.byoa-platforms__head strong {
  color: var(--app-accent);
}

.byoa-platforms__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
}

.byoa-platforms__grid > span {
  display: flex;
  min-height: 54px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #0b0b11;
}

.byoa-platforms__grid i {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
}

.byoa-platforms__grid b {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.byoa-platforms > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.byoa-services,
.byoa-stack,
.byoa-process {
  position: relative;
  padding: clamp(48px, 7cqw, 82px) clamp(24px, 6cqw, 72px);
  border-bottom: 1px solid var(--line);
}

.byoa-section-head,
.byoa-stack__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 35px;
}

.byoa-section-head h2,
.byoa-stack__head h2,
.byoa-process__intro h2,
.byoa-cta h2 {
  max-width: 760px;
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: clamp(36px, 6cqw, 68px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.93;
  text-wrap: balance;
}

.byoa-section-head > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.byoa-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.byoa-service-card {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  padding: clamp(22px, 3.5cqw, 38px);
  background: #0a0a0f;
  transition: background 220ms ease, transform 280ms var(--ease-out);
}

.byoa-service-card::after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  transition: border-color 220ms ease, transform 450ms var(--ease-out);
}

.byoa-service-card:hover {
  z-index: 1;
  background: #101017;
  transform: translateY(-4px);
}

.byoa-service-card:hover::after {
  border-color: var(--app-accent);
  transform: scale(1.35);
}

.byoa-service-card > span {
  color: var(--app-accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.byoa-service-card h3 {
  max-width: 240px;
  margin: 42px 0 13px;
  font-family: var(--display);
  font-size: clamp(23px, 3.2cqw, 34px);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.byoa-service-card p {
  position: relative;
  z-index: 1;
  max-width: 310px;
  margin: 0;
  color: #9997a1;
  font-size: 11px;
  line-height: 1.65;
}

.byoa-service-card > i {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-accent);
  box-shadow: 0 0 15px var(--app-accent);
}

.byoa-stack {
  background:
    linear-gradient(rgba(184, 255, 54, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 255, 54, 0.025) 1px, transparent 1px),
    #050508;
  background-size: 34px 34px;
}

.byoa-stack__count {
  flex: 0 0 auto;
  color: var(--app-accent);
  font-family: var(--mono);
  font-size: clamp(18px, 3cqw, 30px);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.byoa-stack__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.byoa-stack__filter {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 170ms ease;
}

.byoa-stack__filter:hover,
.byoa-stack__filter.is-active {
  border-color: var(--app-accent);
  color: #08080b;
  background: var(--app-accent);
}

.byoa-stack__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 110px;
}

.byoa-tech {
  display: flex;
  min-height: 38px;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  animation: byoa-chip-in 380ms var(--ease-out) both;
  animation-delay: var(--tech-delay, 0ms);
}

.byoa-tech i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--app-accent);
  box-shadow: 0 0 9px rgba(184, 255, 54, 0.7);
}

.byoa-tech b {
  color: #d8d6dd;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.byoa-process {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(350px, 1.25fr);
  gap: clamp(35px, 7cqw, 90px);
  align-items: start;
}

.byoa-process__intro > p:last-child {
  max-width: 560px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.byoa-process__rail {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.byoa-process__rail li {
  display: grid;
  min-height: 78px;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.byoa-process__rail span {
  color: var(--app-accent);
  font-family: var(--mono);
  font-size: 8px;
}

.byoa-process__rail strong {
  font-family: var(--display);
  font-size: clamp(18px, 2.7cqw, 28px);
  letter-spacing: -0.035em;
}

.byoa-quote {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(300px, 1.1fr) minmax(210px, 0.7fr);
  gap: clamp(28px, 5cqw, 64px);
  align-items: start;
  padding: clamp(48px, 7cqw, 82px) clamp(24px, 6cqw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(184, 255, 54, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(184, 255, 54, 0.035) 1px, transparent 1px),
    #09090e;
  background-size: 38px 38px;
}

.byoa-quote::before {
  position: absolute;
  top: 0;
  left: clamp(24px, 6cqw, 72px);
  width: min(200px, 28%);
  height: 2px;
  background: var(--app-accent);
  box-shadow: 0 0 24px rgba(184, 255, 54, 0.5);
  content: "";
}

.byoa-quote__copy h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 5.8cqw, 66px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.byoa-quote__copy > p:last-child {
  margin: 24px 0 0;
  color: #aaa8b2;
  font-size: 12px;
  line-height: 1.7;
}

.byoa-quote__checklist {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.byoa-quote__checklist li {
  display: grid;
  min-height: 58px;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.byoa-quote__checklist span,
.byoa-quote__action > span {
  color: var(--app-accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.byoa-quote__checklist strong {
  font-size: 11px;
  line-height: 1.45;
}

.byoa-quote__action {
  padding: 22px;
  border: 1px solid rgba(184, 255, 54, 0.3);
  border-radius: 17px;
  background: rgba(8, 8, 13, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.byoa-quote__action > p {
  margin: 15px 0 22px;
  color: #cbc9d1;
  font-size: 11px;
  line-height: 1.6;
}

.byoa-quote__action .dx-app-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.byoa-cta {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 330px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: clamp(48px, 8cqw, 92px) clamp(24px, 6cqw, 72px);
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 255, 54, 0.2), transparent 28%),
    linear-gradient(130deg, #12121c, #07070b 68%);
}

.byoa-cta::after {
  position: absolute;
  top: 32px;
  right: 35%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(184, 255, 54, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(184, 255, 54, 0.06);
  content: "";
  pointer-events: none;
}

.byoa-cta > div,
.byoa-cta__link {
  position: relative;
  z-index: 1;
}

.byoa-cta > div > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: #aaa8b2;
  font-size: 12px;
  line-height: 1.65;
}

.byoa-cta__link {
  display: flex;
  min-width: 230px;
  min-height: 66px;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding: 12px 18px 12px 24px;
  border-radius: 999px;
  color: #07070b;
  background: var(--app-accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.byoa-cta__link b {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--app-accent);
  background: #07070b;
  font-size: 18px;
}

.byoa-cta__link:hover {
  box-shadow: 0 20px 55px rgba(184, 255, 54, 0.18);
  transform: translateY(-4px);
}

@container (max-width: 760px) {
  .byoa-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .byoa-platforms {
    max-width: 560px;
  }

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

  .byoa-process {
    grid-template-columns: 1fr;
  }

  .byoa-quote {
    grid-template-columns: 1fr 1fr;
  }

  .byoa-quote__copy {
    grid-column: 1 / -1;
  }

  .byoa-cta {
    grid-template-columns: 1fr;
  }

  .byoa-cta__link {
    width: min(100%, 360px);
  }
}

@container (max-width: 500px) {
  .byoa-hero__copy h1 {
    font-size: clamp(52px, 17cqw, 82px);
  }

  .byoa-section-head,
  .byoa-stack__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .byoa-section-head > span {
    white-space: normal;
  }

  .byoa-service-grid {
    grid-template-columns: 1fr;
  }

  .byoa-service-card {
    min-height: 210px;
  }

  .byoa-platforms__grid {
    grid-template-columns: 1fr;
  }

  .byoa-quote {
    grid-template-columns: 1fr;
  }

  .byoa-quote__copy {
    grid-column: auto;
  }

  .byoa-cta {
    gap: 30px;
  }
}

@keyframes byoa-chip-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* About + resume */

.about-app {
  --app-accent: var(--violet);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(280px, 1.18fr);
  min-height: calc(100% - 86px);
}

.about-portrait {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #0b0b10;
}

.about-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(7, 7, 11, 0.9));
  content: "";
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08);
}

.about-portrait figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 88px);
}

.about-copy__lead {
  max-width: 730px;
  margin: 0 0 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
  text-wrap: balance;
}

.about-copy p.about-copy__lead {
  margin: 0 0 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.about-copy h2 {
  margin: 0 0 35px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(68px, 12vw, 145px);
  letter-spacing: -0.09em;
  line-height: 0.7;
}

.about-copy p {
  max-width: 670px;
  margin: 0;
  color: #aaa8b2;
  font-size: 14px;
  line-height: 1.7;
}

.about-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.about-contacts a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #dedce3;
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
  transition: 160ms ease;
}

.about-contacts a span {
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.about-contacts a strong {
  font-weight: 500;
}

.about-contacts a:hover {
  border-color: var(--violet);
  background: rgba(142, 97, 255, 0.14);
}

.resume-app {
  --app-accent: var(--acid);
}

.resume-document {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(30px, 7vw, 92px) clamp(20px, 5vw, 65px);
}

.resume-mast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-strong);
}

.resume-mast strong {
  font-family: var(--display);
  font-size: clamp(54px, 10vw, 118px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.72;
}

.resume-mast > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resume-mast > span:last-child {
  grid-column: 1 / -1;
  justify-self: end;
  color: var(--acid);
}

.resume-intro {
  max-width: 780px;
  margin: clamp(34px, 6vw, 72px) 0;
  color: #d4d2da;
  font-size: clamp(17px, 2.4vw, 25px);
  line-height: 1.5;
  text-wrap: pretty;
}

.resume-intro h2 {
  margin: 10px 0 20px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(31px, 5vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.resume-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.resume-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.resume-capability {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.resume-capability h2,
.resume-capability h3,
.resume-capability p {
  margin: 0;
}

.resume-capability h2,
.resume-capability h3 {
  margin-top: 15px;
  color: var(--acid);
  font-family: var(--display);
  font-size: clamp(23px, 4vw, 40px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.resume-capability p {
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.resume-capability > span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
}

.resume-capability > i {
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 18px;
  background: var(--acid);
}

.resume-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-top: 42px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Grumpy Cat chat */

.chat-app {
  --app-accent: var(--yellow);
  display: flex;
  height: 100%;
  min-height: 420px;
  flex-direction: column;
}

.chat-dormant {
  display: grid;
  flex: 1;
  gap: 18px;
  padding: 35px;
  place-content: center;
  place-items: center;
  text-align: center;
}

.chat-dormant p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.chat-dormant__orb {
  position: relative;
  display: grid;
  width: 124px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 240, 77, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 77, 0.16), transparent 65%);
  color: var(--yellow);
  font-family: var(--display);
  font-size: 30px;
  box-shadow: 0 0 70px rgba(255, 240, 77, 0.1);
}

.chat-dormant__orb::before,
.chat-dormant__orb::after {
  position: absolute;
  inset: -12px;
  border: 1px dashed rgba(255, 240, 77, 0.22);
  border-radius: 50%;
  content: "";
  animation: app-spin 9s linear infinite;
}

.chat-dormant__orb::after {
  inset: -25px;
  animation-direction: reverse;
  animation-duration: 14s;
}

.chat-conversation {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.chat-conversation[hidden],
.chat-dormant[hidden] {
  display: none;
}

.chat-messages {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  padding: clamp(16px, 3vw, 30px);
}

.chat-message {
  display: flex;
  max-width: min(82%, 520px);
  align-items: flex-end;
  gap: 9px;
  align-self: flex-end;
  animation: app-message-in 350ms var(--ease-out) both;
}

.chat-message--remote,
.chat-message--typing {
  align-self: flex-start;
}

.chat-message__avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--yellow);
  background: #121216;
  font-family: var(--display);
  font-size: 12px;
}

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

.chat-message__bubble {
  padding: 10px 13px;
  border: 1px solid rgba(74, 244, 208, 0.28);
  border-radius: 15px 15px 3px 15px;
  color: #e5e3e8;
  background: rgba(74, 244, 208, 0.08);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chat-message--remote .chat-message__bubble,
.chat-message--typing .chat-message__bubble {
  border-color: var(--line);
  border-radius: 15px 15px 15px 3px;
  background: rgba(255, 255, 255, 0.055);
}

.chat-message--typing .chat-message__bubble {
  color: var(--dim);
  font-family: var(--mono);
  letter-spacing: 0.16em;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 13px;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 12, 0.94);
}

.chat-form input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-transform: none !important;
}

.chat-form input::placeholder {
  text-transform: none;
}

.chat-form input:focus {
  border-color: var(--yellow);
}

.chat-form__send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #070708;
  background: var(--yellow);
  cursor: pointer;
  font-size: 16px;
  transition: 160ms var(--ease-out);
}

.chat-form__send:hover {
  transform: rotate(-8deg) scale(1.05);
}

/* Terminal */

.terminal-app {
  --app-accent: var(--acid);
  display: flex;
  height: 100%;
  min-height: 420px;
  flex-direction: column;
  color: #cfefc9;
  background:
    radial-gradient(circle at 50% 120%, rgba(184, 255, 54, 0.09), transparent 45%),
    #050807;
  font-family: var(--mono);
}

.terminal-app::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.014) 3px 4px);
  content: "";
  pointer-events: none;
}

.terminal-shell {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: clamp(17px, 3vw, 31px);
}

.terminal-output {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 22px;
}

.terminal-line {
  margin: 0 0 8px;
  color: #bcd5b7;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.terminal-line--command {
  color: #fff;
}

.terminal-line--accent,
.terminal-line--success {
  color: var(--acid);
}

.terminal-line--muted {
  color: #697966;
}

.terminal-line--error {
  color: var(--red);
}

.terminal-app-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0 15px;
}

.terminal-app-link,
.terminal-shortcut {
  padding: 6px 9px;
  border: 1px solid rgba(184, 255, 54, 0.2);
  border-radius: 4px;
  color: #a8cf94;
  background: rgba(184, 255, 54, 0.035);
  cursor: pointer;
  font-family: inherit;
  font-size: 9px;
  text-transform: lowercase;
  transition: 130ms ease;
}

.terminal-app-link:hover,
.terminal-shortcut:hover {
  border-color: var(--acid);
  color: #071006;
  background: var(--acid);
}

.terminal-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 11px 0;
  border-top: 1px solid rgba(184, 255, 54, 0.12);
}

.terminal-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 7px;
  gap: 9px;
  align-items: center;
  padding-top: 11px;
  border-top: 1px solid rgba(184, 255, 54, 0.12);
}

.terminal-prompt label {
  color: var(--acid);
  font-size: 11px;
  white-space: nowrap;
}

.terminal-prompt input {
  min-width: 0;
  padding: 8px 0;
  border: 0;
  color: #eaffdf;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  caret-color: var(--acid);
  text-transform: none !important;
}

.terminal-prompt input:focus {
  box-shadow: none;
}

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--acid);
  animation: app-blink 0.9s steps(1) infinite;
}

.fallback-app {
  display: grid;
  min-height: 440px;
  place-items: center;
}

.fallback-app__copy {
  max-width: 480px;
  padding: 40px;
  text-align: center;
}

.fallback-app__copy h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 70px);
}

.fallback-app__copy h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 70px);
}

.fallback-app__copy p {
  color: var(--muted);
}

@keyframes app-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes app-spin {
  to { transform: rotate(1turn); }
}

@keyframes app-message-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes app-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 760px) {
  .dx-app-header {
    min-height: 76px;
    gap: 12px;
    padding: 13px 16px;
  }

  .dx-app-actions {
    gap: 5px;
  }

  .dx-app-button,
  .dx-app-pill {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 8px;
  }

  .portfolio-overview {
    grid-template-columns: 88px 1fr;
  }

  .portfolio-available {
    grid-column: 1 / -1;
  }

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

  .portfolio-card {
    min-height: 0;
  }

  .anaesterizer-body {
    grid-template-columns: 1fr;
  }

  .anaesterizer-keyboard-panel {
    grid-column: auto;
    overflow-x: auto;
  }

  .anaesterizer-keys {
    min-width: 600px;
  }

  .drummer-pads {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }

  .drummer-bpm {
    width: 100%;
    margin-left: 0;
  }

  .drummer-bpm input {
    width: 100%;
  }

  .vandal-workspace {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .vandal-toolbar {
    padding: 10px;
  }

  .vandal-stage {
    min-height: 390px;
    padding: 48px 12px 54px;
  }

  .vandal-stage__meta {
    right: 12px;
    bottom: 10px;
    left: 12px;
  }

  .whoru-stage--question {
    grid-template-columns: 1fr;
  }

  .whoru-question__image-frame {
    min-height: 310px;
    max-height: 48vh;
  }

  .whoru-question__panel {
    min-height: 360px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .meme-workspace {
    grid-template-columns: 1fr;
  }

  .meme-presets {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meme-presets__rail {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 5px 10px;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .meme-presets__rail::-webkit-scrollbar {
    display: none;
  }

  .meme-preset {
    width: clamp(108px, 30vw, 142px);
    flex: 0 0 clamp(108px, 30vw, 142px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    min-height: 380px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .resume-mast {
    grid-template-columns: 1fr;
  }

  .resume-mast > span {
    text-align: left;
  }
}

@media (max-width: 470px) {
  .dx-app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dx-app-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .portfolio-overview {
    grid-template-columns: 1fr;
  }

  .portfolio-stat {
    border-right: 0;
  }

  .portfolio-stat__value {
    font-size: 64px;
  }

  .anaesterizer-display {
    min-height: 285px;
  }

  .anaesterizer-controls__grid {
    gap: 18px 8px;
  }

  .anaesterizer-loops {
    grid-template-columns: repeat(4, 32px);
  }

  .anaesterizer-loop {
    height: 32px;
  }

  .drummer-pads {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
  }

  .drummer-pad {
    min-height: 90px;
  }

  .vandal-workspace {
    grid-template-columns: 1fr;
  }

  .vandal-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vandal-toolbar > .dx-app-kicker {
    grid-column: 1 / -1;
  }

  .vandal-color {
    min-height: 58px;
  }

  .vandal-color__material {
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
  }

  .vandal-ranges,
  .vandal-utilities {
    grid-column: 1 / -1;
  }

  .vandal-ranges {
    grid-template-columns: repeat(2, 1fr);
  }

  .vandal-utilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .vandal-stage {
    min-height: 320px;
    padding: 46px 8px 54px;
  }

  .vandal-orbit-hint {
    display: none;
  }

  .vandal-stage__object span {
    display: none;
  }

  .meme-fields,
  .resume-capabilities {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding: 30px 22px 45px;
  }

  .about-portrait {
    min-height: 300px;
  }

  .resume-footer {
    flex-direction: column;
  }

  .chat-message {
    max-width: 94%;
  }

  .terminal-prompt label {
    max-width: 91px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* The desktop can resize an app independently of the viewport. */

@container (max-width: 650px) {
  .portfolio-overview {
    grid-template-columns: 88px 1fr;
  }

  .portfolio-available {
    grid-column: 1 / -1;
  }
}

@container (max-width: 610px) {
  .whoru-stage--question {
    grid-template-columns: 1fr;
  }

  .whoru-question__image-frame {
    min-height: 310px;
    max-height: 48vh;
  }

  .whoru-question__panel {
    min-height: 360px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@container (max-width: 590px) {
  .anaesterizer-body {
    grid-template-columns: 1fr;
  }

  .anaesterizer-keyboard-panel {
    grid-column: auto;
    overflow-x: auto;
  }

  .anaesterizer-keys {
    min-width: 600px;
  }

  .meme-workspace {
    grid-template-columns: 1fr;
  }

  .meme-presets {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meme-presets__rail {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 5px 10px;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .meme-presets__rail::-webkit-scrollbar {
    display: none;
  }

  .meme-preset {
    width: clamp(108px, 34cqw, 142px);
    flex: 0 0 clamp(108px, 34cqw, 142px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

@container (max-width: 560px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    min-height: 380px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .resume-mast {
    grid-template-columns: 1fr;
  }

  .resume-mast > span {
    text-align: left;
  }
}

@container (max-width: 520px) {
  .drummer-pads {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }

  .drummer-bpm {
    width: 100%;
    margin-left: 0;
  }

  .drummer-bpm input {
    width: 100%;
  }

  .vandal-workspace {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .vandal-toolbar {
    padding: 10px;
  }

  .vandal-stage {
    min-height: 390px;
    padding: 48px 12px 54px;
  }

  .vandal-stage__meta {
    right: 12px;
    bottom: 10px;
    left: 12px;
  }
}

@container (max-width: 430px) {
  .dx-app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dx-app-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .portfolio-overview {
    grid-template-columns: 1fr;
  }

  .portfolio-stat {
    border-right: 0;
  }

  .portfolio-stat__value {
    font-size: 64px;
  }

  .anaesterizer-display {
    min-height: 285px;
  }

  .anaesterizer-controls__grid {
    gap: 18px 8px;
  }

  .anaesterizer-loops {
    grid-template-columns: repeat(4, 32px);
  }

  .anaesterizer-loop {
    height: 32px;
  }

  .drummer-pads {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
  }

  .drummer-pad {
    min-height: 90px;
  }

  .vandal-workspace {
    grid-template-columns: 1fr;
  }

  .vandal-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vandal-toolbar > .dx-app-kicker {
    grid-column: 1 / -1;
  }

  .vandal-color {
    min-height: 58px;
  }

  .vandal-color__material {
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
  }

  .vandal-ranges,
  .vandal-utilities {
    grid-column: 1 / -1;
  }

  .vandal-ranges,
  .vandal-utilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .vandal-stage {
    min-height: 320px;
    padding: 46px 8px 54px;
  }

  .vandal-orbit-hint {
    display: none;
  }

  .vandal-stage__object span {
    display: none;
  }

  .meme-fields,
  .resume-capabilities {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding: 30px 22px 45px;
  }

  .about-portrait {
    min-height: 300px;
  }

  .resume-footer {
    flex-direction: column;
  }

  .chat-message {
    max-width: 94%;
  }

  .terminal-prompt label {
    max-width: 91px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dx-app *,
  .dx-app *::before,
  .dx-app *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
