:root {
  --pulso-pink: #ff2aa3;
  --pulso-pink-soft: #ff63bd;
  --pulso-ink: #070709;
  --pulso-panel: #121216;
  --pulso-line: rgba(255, 255, 255, .13);
}

html,
body {
  overflow-x: clip;
}

.studio-sandbox,
.studio-sandbox * {
  box-sizing: border-box;
}

.studio-sandbox {
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(5rem, 9vw, 9rem);
  overflow: clip;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 42, 163, .09), transparent 34rem),
    #08080b;
}

.studio-sandbox::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .17;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
}

.studio-heading {
  align-items: end;
}

.studio-example-rail {
  width: min(1180px, calc(100% - 48px));
  margin: 3rem auto 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.studio-example-rail button {
  min-width: 0;
  padding: .65rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  border: 1px solid var(--pulso-line);
  border-radius: 1.15rem;
  background: rgba(20, 20, 24, .76);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.studio-example-rail button:hover,
.studio-example-rail button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .34);
  outline: none;
}

.studio-example-rail button.active {
  border-color: var(--pulso-pink);
  background: linear-gradient(115deg, rgba(255, 42, 163, .15), rgba(24, 24, 29, .92) 48%);
  box-shadow: 0 0 0 1px rgba(255, 42, 163, .16), 0 18px 50px rgba(0, 0, 0, .28);
}

.studio-example-rail img,
.studio-example-rail video {
  width: 4.4rem;
  height: 4.4rem;
  flex: 0 0 auto;
  display: block;
  border-radius: .8rem;
  object-fit: cover;
}

.studio-example-rail video {
  pointer-events: none;
  background: #0b0b0e;
}

.studio-example-rail span {
  min-width: 0;
  display: grid;
  gap: .18rem;
}

.studio-example-rail small {
  color: #a9a9b3;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .1em;
}

.studio-example-rail strong {
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-example-rail b {
  overflow: hidden;
  color: var(--pulso-pink-soft);
  font-size: .78rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-sandbox .studio-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, .62fr);
  gap: 1rem;
  align-items: stretch;
}

.studio-window,
.studio-result {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1.75rem;
  background: rgba(14, 14, 17, .94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.studio-window {
  display: flex;
  flex-direction: column;
}

.studio-window-top,
.result-top {
  min-height: 5rem;
  padding: 1.15rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--pulso-line);
}

.studio-window-top > div,
.result-top p {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.studio-window-top p,
.result-top p {
  margin: 0;
}

.studio-window-top p {
  display: grid;
  gap: .1rem;
}

.studio-window-top small,
.result-top small {
  color: #9898a3;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .13em;
}

.studio-window-top strong,
.result-top strong {
  color: #fff;
  font-size: 1rem;
}

.studio-spark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #08080a;
  background: var(--pulso-pink);
  box-shadow: 0 0 26px rgba(255, 42, 163, .32);
}

.studio-status {
  padding: .48rem .72rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--pulso-line);
  border-radius: 999px;
  color: #cfcfd6;
  font-size: .78rem;
}

.studio-status i,
.result-action-row > span i {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #65e3a2;
  box-shadow: 0 0 10px rgba(101, 227, 162, .6);
}

.studio-composer {
  padding: 1.1rem 1.3rem 1.2rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.composer-add,
.improve-prompt,
.composer-mode,
.model-trigger,
.settings-trigger {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--pulso-line);
  border-radius: 999px;
  background: #202025;
  color: #f4f4f6;
  font-size: .79rem;
  font-weight: 650;
}

.composer-add {
  padding: .35rem .75rem .35rem .35rem;
  cursor: pointer;
}

.composer-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.composer-add span {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2d2d34;
  font-size: 1.2rem;
}

.improve-prompt {
  padding: .55rem .8rem;
  cursor: pointer;
}

.improve-prompt span {
  color: var(--pulso-pink-soft);
}

.composer-mode {
  margin-left: auto;
  padding: .55rem .8rem;
  color: #a9a9b3;
}

.composer-label {
  margin-top: 1rem;
  color: #85858f;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.studio-composer textarea {
  width: 100%;
  min-height: 8.5rem;
  margin: .45rem 0 .7rem;
  padding: 0;
  resize: none;
  border: 0;
  outline: 0;
  color: #f5f5f7;
  background: transparent;
  font: 500 clamp(1.18rem, 2vw, 1.55rem)/1.55 inherit;
  caret-color: var(--pulso-pink);
}

.studio-composer textarea::placeholder {
  color: #666670;
}

.studio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.studio-chips button {
  padding: .52rem .72rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: transparent;
  color: #a9a9b1;
  font-size: .74rem;
  cursor: pointer;
}

.studio-chips button.active {
  border-color: rgba(255, 42, 163, .52);
  color: #fff;
  background: rgba(255, 42, 163, .12);
}

.upload-preview {
  margin-top: .8rem;
  padding: .6rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 1px dashed rgba(255, 255, 255, .19);
  border-radius: .85rem;
  background: rgba(255,255,255,.025);
}

.upload-preview[hidden] {
  display: none;
}

.upload-preview img {
  width: 3rem;
  height: 3rem;
  border-radius: .55rem;
  object-fit: cover;
}

.upload-preview p {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: .1rem;
}

.upload-preview strong,
.upload-preview small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview strong {
  color: #eeeef2;
  font-size: .82rem;
}

.upload-preview small {
  color: #888893;
  font-size: .72rem;
}

.upload-preview button {
  margin-left: auto;
  border: 0;
  color: #aaaab2;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.composer-footer {
  margin-top: auto;
  padding-top: .9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  border-top: 1px solid var(--pulso-line);
}

.composer-controls {
  min-width: 0;
  display: flex;
  gap: .5rem;
}

.model-trigger,
.settings-trigger {
  max-width: 14rem;
  padding: .55rem .78rem;
  cursor: pointer;
}

.model-trigger b,
.settings-trigger b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-trigger span,
.settings-trigger span {
  color: var(--pulso-pink-soft);
}

.model-trigger i {
  color: #8f8f98;
  font-style: normal;
}

.prompt-count {
  color: #777780;
  font-size: .72rem;
}

.create-direction {
  min-height: 3.15rem;
  padding: .7rem 1.05rem;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border: 0;
  border-radius: 999px;
  background: var(--pulso-pink);
  color: #08080a;
  font-size: .94rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(255, 42, 163, .22);
}

.create-direction.loading {
  opacity: .78;
  pointer-events: none;
}

.try-safe {
  margin: 0;
  padding: 0 1rem .8rem;
  color: #777780;
  font-size: .72rem;
  text-align: center;
}

.studio-result {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.result-top p {
  display: grid;
  gap: .18rem;
}

.result-top > span {
  padding: .45rem .6rem;
  border: 1px solid var(--pulso-line);
  border-radius: 999px;
  color: #aaaab4;
  font-size: .72rem;
}

.result-media {
  position: relative;
  flex: 1;
  min-height: 22rem;
  overflow: hidden;
  background: #060607;
}

.result-media > img,
.result-media > video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: opacity .25s ease, transform .8s ease;
}

.result-media > video {
  object-fit: contain;
  background: #060607;
}

.result-media > video[hidden],
.result-media > img[hidden] {
  display: none;
}

.result-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 48%, rgba(4,4,5,.84));
  pointer-events: none;
}

.result-media > button {
  width: 4rem;
  height: 4rem;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(8,8,11,.62);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.result-media > button span {
  transform: translateX(2px);
}

.studio-result[data-state="ready"] .result-media > button {
  display: none;
}

.result-state {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .5rem .68rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #f4f4f6;
  background: rgba(6,6,8,.58);
  font-size: .72rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.result-progress {
  height: 3px;
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 3.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  opacity: 0;
}

.result-progress i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--pulso-pink);
  transition: width 1.5s cubic-bezier(.16, 1, .3, 1);
}

.studio-result[data-state="generating"] .result-media > img,
.studio-result[data-state="generating"] .result-media > video {
  opacity: .52;
  transform: scale(1.06);
}

.studio-result[data-state="generating"] .result-media > button {
  display: none;
}

.studio-result[data-state="generating"] .result-progress {
  opacity: 1;
}

.studio-result[data-state="generating"] .result-progress i {
  width: 82%;
}

.result-details,
.result-action-row {
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  border-top: 1px solid var(--pulso-line);
}

.result-details p {
  margin: 0;
  display: grid;
  gap: .2rem;
}

.result-details small {
  color: #777780;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .09em;
}

.result-details strong {
  color: #f6f6f8;
  font-size: .8rem;
}

.result-action-row {
  align-items: center;
}

.result-action-row > span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #8b8b95;
  font-size: .7rem;
}

.result-action-row button {
  min-height: 2.55rem;
  border: 0;
  border-radius: 999px;
  color: #070709;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.studio-settings[hidden] {
  display: none;
}

.studio-settings {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: end center;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}

.settings-sheet {
  width: min(42rem, 100%);
  max-height: min(90vh, 58rem);
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,.2);
  border-bottom: 0;
  border-radius: 1.7rem 1.7rem 0 0;
  color: #fff;
  background: rgba(17,17,20,.98);
  box-shadow: 0 -30px 100px rgba(0,0,0,.6);
}

.sheet-handle {
  width: 3.2rem;
  height: .3rem;
  margin: .8rem auto .25rem;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
}

.settings-head {
  padding: 1rem 1.3rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--pulso-line);
}

.settings-head small {
  color: var(--pulso-pink-soft);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.settings-head h3 {
  margin: .18rem 0 0;
  font-size: 1.35rem;
}

.settings-head button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--pulso-line);
  border-radius: 50%;
  color: #fff;
  background: #222228;
  font-size: 1.35rem;
  cursor: pointer;
}

.model-picker,
.setting-block {
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--pulso-line);
}

.model-picker h4,
.setting-block h4 {
  margin: 0 0 .85rem;
  font-size: .88rem;
}

.model-options {
  display: grid;
  gap: .55rem;
}

.model-options button {
  width: 100%;
  padding: .8rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .72rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: #fff;
  background: #202025;
  text-align: left;
  cursor: pointer;
}

.model-options button.selected {
  border-color: var(--pulso-pink);
  background: rgba(255,42,163,.1);
}

.model-glyph {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: .72rem;
  color: #09090b;
  background: #fff;
  font-weight: 900;
}

.model-options p {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: .18rem;
}

.model-options strong {
  font-size: .88rem;
}

.model-options small {
  overflow: hidden;
  color: #9a9aa4;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-options i {
  color: #8c8c95;
  font-size: .65rem;
  font-style: normal;
}

.ratio-options,
.resolution-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
}

.ratio-options button,
.resolution-options button {
  min-height: 4.8rem;
  display: grid;
  place-items: center;
  gap: .35rem;
  border: 1px solid var(--pulso-line);
  border-radius: .9rem;
  color: #aaaab3;
  background: #1c1c21;
  cursor: pointer;
}

.ratio-options button.selected,
.resolution-options button.selected {
  border-color: var(--pulso-pink);
  color: #fff;
  background: rgba(255,42,163,.11);
}

.ratio-options i {
  display: block;
  border: 1.5px solid currentColor;
  border-radius: .2rem;
}

.ratio-options .portrait { width: .8rem; height: 1.35rem; }
.ratio-options .square { width: 1.15rem; height: 1.15rem; }
.ratio-options .landscape { width: 1.45rem; height: .82rem; }

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

.resolution-options button {
  min-height: 3rem;
  font-weight: 750;
}

.duration-setting > div,
.audio-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.duration-setting h4,
.audio-setting h4 {
  margin: 0;
}

.duration-setting strong {
  color: var(--pulso-pink-soft);
  font-size: .8rem;
}

.duration-setting input {
  width: 100%;
  margin: 1rem 0 .2rem;
  accent-color: var(--pulso-pink);
}

.duration-setting p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  color: #777780;
  font-size: .68rem;
}

.audio-setting > div {
  display: grid;
  gap: .2rem;
}

.audio-setting small {
  color: #81818b;
  font-size: .72rem;
}

.switch {
  width: 3.1rem;
  height: 1.65rem;
  padding: .15rem;
  border: 0;
  border-radius: 999px;
  background: #36363d;
  cursor: pointer;
}

.switch i {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.switch.active {
  background: var(--pulso-pink);
}

.switch.active i {
  transform: translateX(1.45rem);
}

.settings-total {
  position: sticky;
  bottom: 0;
  padding: 1rem 1.3rem calc(1rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  background: rgba(13,13,16,.94);
  backdrop-filter: blur(16px);
}

.settings-total p {
  margin: 0;
  display: grid;
  gap: .15rem;
}

.settings-total small {
  color: #7e7e87;
  font-size: .68rem;
}

.settings-total strong {
  font-size: .92rem;
}

.settings-total button {
  min-height: 2.9rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 999px;
  color: #070709;
  background: var(--pulso-pink);
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 900px) {
  .studio-example-rail,
  .studio-sandbox .studio-shell {
    width: min(100% - 32px, 42rem);
  }

  .studio-example-rail {
    grid-template-columns: repeat(3, minmax(15rem, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .studio-example-rail::-webkit-scrollbar {
    display: none;
  }

  .studio-example-rail button {
    scroll-snap-align: center;
  }

  .studio-sandbox .studio-shell {
    grid-template-columns: 1fr;
  }

  .result-media {
    min-height: 25rem;
  }
}

@media (max-width: 600px) {
  .studio-sandbox {
    padding-bottom: 1.75rem;
  }

  .studio-heading {
    align-items: start;
  }

  .studio-example-rail {
    width: calc(100% - 24px);
    margin-top: 2rem;
    grid-template-columns: repeat(3, minmax(16.5rem, 82vw));
  }

  .studio-sandbox .studio-shell {
    width: calc(100% - 24px);
  }

  .studio-window,
  .studio-result {
    border-radius: 1.35rem;
  }

  .studio-window-top,
  .result-top {
    min-height: 4rem;
    padding: .8rem .9rem;
  }

  .studio-composer {
    padding: .85rem .9rem .95rem;
  }

  .composer-toolbar {
    flex-wrap: nowrap;
    gap: .4rem;
  }

  .composer-add,
  .improve-prompt {
    min-height: 2.35rem;
    font-size: .72rem;
  }

  .composer-add {
    padding: .25rem .6rem .25rem .25rem;
  }

  .composer-add span {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 1rem;
  }

  .improve-prompt {
    padding: .45rem .62rem;
  }

  .composer-mode {
    display: none;
  }

  .studio-composer textarea {
    min-height: 7rem;
    margin-bottom: .6rem;
    font-size: 1.03rem;
    line-height: 1.45;
  }

  .composer-label {
    margin-top: .85rem;
  }

  .studio-chips {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: .25rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .studio-chips button {
    flex: 0 0 auto;
    padding: .4rem .45rem;
    font-size: .68rem;
  }

  .composer-footer {
    grid-template-columns: 1fr auto;
    gap: .6rem;
    padding-top: .75rem;
  }

  .composer-controls {
    grid-column: 1 / -1;
  }

  .model-trigger,
  .settings-trigger {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }

  .prompt-count {
    grid-column: 2;
    grid-row: 2;
  }

  .create-direction {
    grid-column: 1 / -1;
  }

  .result-media {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .result-media > img,
  .result-media > video {
    object-position: center 52%;
  }

  .result-details,
  .result-action-row {
    padding: .8rem .9rem;
  }

  .result-action-row button {
    min-height: 2.35rem;
  }

  .settings-sheet {
    max-height: 92vh;
  }

  .model-options i {
    display: none;
  }

  .model-options button {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-sandbox *,
  .studio-sandbox *::before,
  .studio-sandbox *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Visual generation gallery */
.generation-gallery.case-studies {
  position: relative;
  isolation: isolate;
  padding: clamp(6rem, 10vw, 10rem) 0 clamp(5rem, 9vw, 9rem);
  overflow: clip;
  background:
    radial-gradient(circle at 50% 49%, rgba(255, 42, 163, .12), transparent 32rem),
    #070708;
}

.generation-gallery::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(72rem, 120vw);
  height: min(72rem, 120vw);
  z-index: -1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 50%;
  box-shadow: inset 0 0 120px rgba(255,42,163,.035);
}

.gallery-heading {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 12;
  text-align: center;
}

.gallery-heading .eyebrow {
  justify-content: center;
}

.gallery-heading h2 {
  margin: .85rem 0 .7rem;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.gallery-heading h2 em {
  color: var(--pulso-pink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}

.gallery-heading > p:last-child {
  margin: 0;
  color: #8d8d97;
  font-size: 1rem;
}

.gallery-stage {
  width: min(1240px, 100%);
  height: clamp(42rem, 68vw, 51rem);
  margin: -1.5rem auto 0;
  position: relative;
  perspective: 1200px;
}

.gallery-card {
  --gx: 0rem;
  --gy: 0rem;
  --gr: 0deg;
  --orbit-duration: 7s;
  --orbit-swing: 2deg;
  --orbit-from-x: -4px;
  --orbit-from-y: -3px;
  --orbit-to-x: 4px;
  --orbit-to-y: 3px;
  width: clamp(16rem, 26vw, 21rem);
  aspect-ratio: 4 / 5;
  padding: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(.6) rotate(0deg);
  opacity: .18;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: clamp(1.2rem, 2.4vw, 2rem);
  background: #151519;
  box-shadow: 0 26px 72px rgba(0,0,0,.5);
  cursor: pointer;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.16, 1, .3, 1), opacity .75s ease, filter .45s ease, border-color .45s ease;
}

.gallery-stage.is-open .gallery-card {
  transform: translate(-50%, -50%) translate(var(--gx), var(--gy)) rotate(var(--gr));
  opacity: .68;
}

.gallery-card:nth-child(1) { --gx: -27rem; --gy: -8.5rem; --gr: -8deg; --orbit-duration: 6.8s; --orbit-swing: 2.3deg; --orbit-from-x: -5px; --orbit-to-x: 5px; transition-delay: .04s; animation-delay: -1.1s; }
.gallery-card:nth-child(2) { --gx: 0rem; --gy: -13rem; --gr: 2deg; --orbit-duration: 7.6s; --orbit-swing: 1.7deg; --orbit-from-y: 4px; --orbit-to-y: -4px; transition-delay: .12s; animation-delay: -3.2s; }
.gallery-card:nth-child(3) { --gx: 27rem; --gy: -8.5rem; --gr: 8deg; --orbit-duration: 7.1s; --orbit-swing: 2.5deg; --orbit-from-x: 6px; --orbit-to-x: -5px; transition-delay: .2s; animation-delay: -4.6s; }
.gallery-card:nth-child(4) { --gx: -26rem; --gy: 13rem; --gr: 8deg; --orbit-duration: 7.8s; --orbit-swing: 1.9deg; --orbit-from-y: 5px; --orbit-to-y: -4px; transition-delay: .28s; animation-delay: -2.4s; }
.gallery-card:nth-child(5) { --gx: 0rem; --gy: 16rem; --gr: -3deg; --orbit-duration: 6.6s; --orbit-swing: 2.1deg; --orbit-from-x: 4px; --orbit-to-x: -4px; transition-delay: .36s; animation-delay: -5.1s; }
.gallery-card:nth-child(6) { --gx: 26rem; --gy: 13rem; --gr: -8deg; --orbit-duration: 7.4s; --orbit-swing: 2.4deg; --orbit-from-x: -5px; --orbit-to-x: 5px; transition-delay: .44s; animation-delay: -.6s; }

.gallery-stage.is-open.is-orbiting .gallery-card {
  animation: gallery-depth-sway var(--orbit-duration) ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes gallery-depth-sway {
  from {
    transform: translate(-50%, -50%) translate(var(--gx), var(--gy)) translate3d(var(--orbit-from-x), var(--orbit-from-y), -28px) rotate(calc(var(--gr) - var(--orbit-swing))) scale(.975);
  }
  to {
    transform: translate(-50%, -50%) translate(var(--gx), var(--gy)) translate3d(var(--orbit-to-x), var(--orbit-to-y), 34px) rotate(calc(var(--gr) + var(--orbit-swing))) scale(1.025);
  }
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.72) brightness(.76);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .55s ease;
}

.gallery-card video {
  background: #0b0b0e;
  pointer-events: none;
}

.gallery-play {
  width: 3.15rem;
  height: 3.15rem;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(7,7,9,.58);
  box-shadow: 0 12px 32px rgba(0,0,0,.32);
  font-size: .9rem;
  font-style: normal;
  backdrop-filter: blur(12px);
  transition: transform .25s ease, background .25s ease;
}

.gallery-play {
  display: none;
}

.gallery-video-card:hover .gallery-play,
.gallery-video-card:focus-visible .gallery-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255,42,163,.82);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(5,5,7,.72));
  pointer-events: none;
}

.gallery-card > span {
  position: absolute;
  left: .9rem;
  bottom: .9rem;
  z-index: 2;
  padding: .46rem .62rem;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(8,8,10,.48);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  backdrop-filter: blur(10px);
}

.gallery-stage.is-open .gallery-card.active {
  z-index: 7;
  opacity: 1;
  border-color: rgba(255, 42, 163, .62);
  filter: drop-shadow(0 0 32px rgba(255,42,163,.17));
}

.gallery-card.active img,
.gallery-card.active video {
  transform: scale(1.055);
  filter: saturate(1) brightness(.98);
}

.gallery-video-card.is-playing .gallery-play {
  background: rgba(255,42,163,.82);
}

.gallery-center {
  width: min(26rem, calc(100% - 40px));
  padding: 1.15rem;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  transform: translate(-50%, -42%);
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 1.35rem;
  background: rgba(10,10,13,.78);
  box-shadow: 0 28px 80px rgba(0,0,0,.62);
  backdrop-filter: blur(22px);
}

.gallery-center small {
  color: var(--pulso-pink-soft);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .11em;
}

.gallery-center p {
  min-height: 4.5rem;
  margin: .72rem 0 1rem;
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.48;
}

.gallery-center button {
  width: 100%;
  min-height: 3rem;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 999px;
  color: #09090b;
  background: var(--pulso-pink);
  font-weight: 850;
  cursor: pointer;
}

.gallery-dots {
  position: relative;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: .45rem;
}

.gallery-dots button {
  width: .48rem;
  height: .48rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.gallery-dots button.active {
  width: 1.8rem;
  background: var(--pulso-pink);
}

/* Artlist-inspired product walkthrough, in Pulso's own visual system */
.studio-walkthrough.how {
  padding-top: clamp(6rem, 10vw, 10rem);
  background: #09090c;
}

.walkthrough-steps.steps {
  width: min(1160px, calc(100% - 48px));
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  display: grid;
  gap: clamp(5rem, 10vw, 9rem);
}

.walkthrough-steps .step,
.walkthrough-steps .step.reverse {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.walkthrough-steps .step.reverse .step-copy {
  order: 2;
}

.walkthrough-steps .step.reverse .studio-flow-mock {
  order: 1;
}

.walkthrough-steps .step-copy {
  min-width: 0;
}

.walkthrough-steps .step-copy > span {
  width: 3.3rem;
  height: 3.3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,42,163,.5);
  border-radius: 50%;
  color: var(--pulso-pink-soft);
  background: rgba(255,42,163,.08);
  font-size: .78rem;
  font-weight: 850;
}

.walkthrough-steps .step-copy > p {
  margin: 1.4rem 0 .65rem;
  color: var(--pulso-pink-soft);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.walkthrough-steps .step-copy h3 {
  margin: 0 0 .8rem;
  color: #fff;
  font-size: clamp(2rem, 4.1vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.walkthrough-steps .step-copy > small {
  display: block;
  color: #9999a3;
  font-size: 1rem;
  line-height: 1.65;
}

.studio-flow-mock.mock {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 1.8rem;
  color: #fff;
  background: linear-gradient(145deg, #17171b, #0f0f12);
  box-shadow: 0 32px 90px rgba(0,0,0,.42);
}

.flow-toolbar {
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  border-bottom: 1px solid var(--pulso-line);
}

.flow-toolbar button,
.flow-toolbar span,
.flow-toolbar b {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pulso-line);
  border-radius: 999px;
  background: #24242a;
}

.flow-toolbar button {
  width: 2.55rem;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.flow-toolbar span,
.flow-toolbar b {
  padding: .55rem .78rem;
  color: #dddde2;
  font-size: .74rem;
}

.flow-toolbar span {
  color: var(--pulso-pink-soft);
}

.flow-toolbar b {
  margin-left: auto;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-placeholder {
  margin: 0;
  padding: 1.2rem 1.25rem 0;
  color: #767680;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.flow-prompt {
  min-height: 10rem;
  padding: .7rem 1.25rem 1rem;
  color: #f4f4f6;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  line-height: 1.55;
}

.flow-prompt i {
  width: 2px;
  height: 1.25em;
  display: inline-block;
  margin-left: .15rem;
  transform: translateY(.24em);
  background: var(--pulso-pink);
  animation: pulso-caret 1s steps(1) infinite;
}

@keyframes pulso-caret { 50% { opacity: 0; } }

.flow-suggestions {
  padding: 0 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.flow-suggestions button {
  padding: .45rem .65rem;
  border: 1px solid var(--pulso-line);
  border-radius: 999px;
  color: #aaaab4;
  background: transparent;
  font-size: .69rem;
}

.flow-reference {
  margin: 0 1.25rem 1rem;
  padding: .55rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: .9rem;
}

.flow-reference img {
  width: 3rem;
  height: 3rem;
  border-radius: .6rem;
  object-fit: cover;
}

.flow-reference p {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: .15rem;
}

.flow-reference strong,
.flow-reference small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-reference strong { font-size: .78rem; }
.flow-reference small { color: #85858e; font-size: .68rem; }
.flow-reference > b { margin-left: auto; color: #777780; }

.flow-bottom {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  border-top: 1px solid var(--pulso-line);
}

.flow-bottom > span {
  padding: .48rem .65rem;
  border: 1px solid var(--pulso-line);
  border-radius: 999px;
  color: #aaaab3;
  background: #202025;
  font-size: .7rem;
}

.flow-bottom button {
  min-height: 2.7rem;
  margin-left: auto;
  padding: .55rem 1rem;
  border: 0;
  border-radius: 999px;
  color: #08080a;
  background: var(--pulso-pink);
  font-weight: 850;
}

.settings-flow-mock {
  position: relative;
}

.flow-sheet-handle {
  width: 3rem;
  height: .3rem;
  margin: .85rem auto 0;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.flow-settings-head {
  padding: .9rem 1.2rem 1.1rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--pulso-line);
}

.flow-settings-head span {
  color: #888891;
}

.flow-setting-row,
.flow-inline-setting,
.flow-audio {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--pulso-line);
}

.flow-setting-row > small,
.flow-inline-setting small {
  display: block;
  margin-bottom: .65rem;
  color: #777781;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.flow-setting-row > button {
  width: 100%;
  padding: .65rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .65rem;
  border: 1px solid var(--pulso-line);
  border-radius: .9rem;
  color: #fff;
  background: #222227;
  text-align: left;
}

.flow-setting-row > button > b {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: .65rem;
  color: #08080a;
  background: #fff;
}

.flow-setting-row > button span {
  display: grid;
  gap: .12rem;
}

.flow-setting-row > button strong { font-size: .8rem; }
.flow-setting-row > button i { color: #898993; font-size: .67rem; font-style: normal; }
.flow-setting-row > button em { color: #777781; font-style: normal; }

.flow-ratios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.flow-ratios button {
  min-height: 4.1rem;
  display: grid;
  place-items: center;
  gap: .3rem;
  border: 1px solid var(--pulso-line);
  border-radius: .8rem;
  color: #8e8e98;
  background: #202025;
}

.flow-ratios button.active {
  border-color: var(--pulso-pink);
  color: #fff;
  background: rgba(255,42,163,.1);
}

.flow-ratios i {
  display: block;
  border: 1px solid currentColor;
  border-radius: .15rem;
}

.flow-ratios .portrait { width: .65rem; height: 1rem; }
.flow-ratios .square { width: .9rem; height: .9rem; }
.flow-ratios .landscape { width: 1.15rem; height: .65rem; }
.flow-ratios b { font-size: .67rem; }

.flow-inline-setting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.flow-inline-setting p {
  margin: 0;
  padding: .65rem;
  border: 1px solid var(--pulso-line);
  border-radius: .75rem;
  background: #202025;
}

.flow-inline-setting small { margin-bottom: .25rem; }
.flow-inline-setting strong { font-size: .78rem; }

.flow-duration {
  height: 2.5rem;
  margin: 0 1.2rem;
  position: relative;
}

.flow-duration::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #3b3b43;
}

.flow-duration i {
  width: 52%;
  height: 2px;
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 1;
  background: var(--pulso-pink);
}

.flow-duration span {
  width: .85rem;
  height: .85rem;
  position: absolute;
  left: 52%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -43%);
  border-radius: 50%;
  background: #fff;
}

.flow-audio {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flow-audio p {
  margin: 0;
  display: grid;
  gap: .15rem;
}

.flow-audio strong { font-size: .8rem; }
.flow-audio small { color: #808089; font-size: .68rem; }
.flow-audio > i { width: 2.6rem; height: 1.4rem; padding: .12rem; border-radius: 999px; background: var(--pulso-pink); }
.flow-audio > i b { width: 1.15rem; height: 1.15rem; display: block; margin-left: auto; border-radius: 50%; background: #fff; }

.flow-estimate {
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .8rem;
}

.flow-estimate p {
  margin: 0;
  display: grid;
  gap: .18rem;
}

.flow-estimate small { color: #777781; font-size: .64rem; letter-spacing: .08em; }
.flow-estimate strong { font-size: .85rem; }
.flow-estimate button { min-height: 2.7rem; padding: .55rem .9rem; border: 0; border-radius: 999px; color: #08080a; background: var(--pulso-pink); font-weight: 850; }

.generate-flow-mock {
  padding: .85rem;
}

.generate-preview {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
}

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

.generate-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(4,4,6,.52));
}

.generate-preview > span {
  position: absolute;
  right: .75rem;
  top: .75rem;
  z-index: 2;
  padding: .4rem .55rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(8,8,10,.56);
  font-size: .68rem;
  backdrop-filter: blur(10px);
}

.generate-preview > button {
  width: 3.6rem;
  height: 3.6rem;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(8,8,10,.55);
  backdrop-filter: blur(10px);
}

.generate-info {
  margin-top: .8rem;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: .65rem;
}

.generate-info p {
  margin: 0;
  padding: .75rem;
  display: grid;
  gap: .25rem;
  border: 1px solid var(--pulso-line);
  border-radius: .9rem;
  background: #1b1b20;
}

.generate-info small { color: #777781; font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.generate-info strong { font-size: .75rem; line-height: 1.4; }

.generate-ready {
  padding: 1rem .4rem .7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  color: #9a9aa3;
  font-size: .72rem;
}

.generate-ready span { display: flex; align-items: center; gap: .4rem; }
.generate-ready i { width: .45rem; height: .45rem; border-radius: 50%; background: #65e3a2; box-shadow: 0 0 10px rgba(101,227,162,.6); }
.generate-ready strong { color: #fff; }

.generate-button {
  width: 100%;
  min-height: 3.2rem;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 999px;
  color: #08080a;
  background: var(--pulso-pink);
  font-weight: 850;
}

.walkthrough-steps .no-spend {
  margin-top: 1.2rem;
  padding: .75rem .9rem;
  display: inline-flex;
  border: 1px solid rgba(101,227,162,.22);
  border-radius: 999px;
  color: #a9e9c9;
  background: rgba(101,227,162,.06);
  font-size: .72rem;
}

@media (max-width: 1050px) {
  .gallery-card:nth-child(1) { --gx: -20rem; }
  .gallery-card:nth-child(3) { --gx: 20rem; }
  .gallery-card:nth-child(4) { --gx: -19rem; }
  .gallery-card:nth-child(6) { --gx: 19rem; }
}

@media (max-width: 820px) {
  .gallery-stage {
    height: 43rem;
    margin-top: .5rem;
  }

  .gallery-card {
    width: 13.3rem;
    aspect-ratio: 4 / 4.7;
  }

  .gallery-card:nth-child(1) { --gx: -7.3rem; --gy: -12rem; --gr: -8deg; }
  .gallery-card:nth-child(2) { --gx: 6.8rem; --gy: -13.5rem; --gr: 7deg; }
  .gallery-card:nth-child(3) { --gx: -8rem; --gy: .4rem; --gr: 6deg; }
  .gallery-card:nth-child(4) { --gx: 8rem; --gy: .7rem; --gr: -6deg; }
  .gallery-card:nth-child(5) { --gx: -6.7rem; --gy: 13.8rem; --gr: -7deg; }
  .gallery-card:nth-child(6) { --gx: 7.1rem; --gy: 13.6rem; --gr: 7deg; }

  .gallery-center {
    width: min(20rem, calc(100% - 32px));
    padding: .9rem;
  }

  .gallery-center p {
    min-height: 4rem;
    margin: .55rem 0 .8rem;
    font-size: .92rem;
  }

  .walkthrough-steps .step,
  .walkthrough-steps .step.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .walkthrough-steps .step.reverse .step-copy,
  .walkthrough-steps .step.reverse .studio-flow-mock,
  .walkthrough-steps .step .step-copy,
  .walkthrough-steps .step .studio-flow-mock {
    order: initial;
  }
}

@media (max-width: 600px) {
  .generation-gallery.case-studies {
    padding-top: 5.5rem;
  }

  .gallery-heading {
    width: calc(100% - 32px);
  }

  .gallery-heading h2 {
    font-size: clamp(3.25rem, 15vw, 5rem);
  }

  .gallery-stage {
    height: 41rem;
  }

  .gallery-card {
    width: 11.2rem;
  }

  .gallery-card:nth-child(1) { --gx: -6.1rem; --gy: -11.5rem; }
  .gallery-card:nth-child(2) { --gx: 5.9rem; --gy: -12.8rem; }
  .gallery-card:nth-child(3) { --gx: -6.8rem; --gy: -.4rem; }
  .gallery-card:nth-child(4) { --gx: 6.8rem; --gy: .2rem; }
  .gallery-card:nth-child(5) { --gx: -5.8rem; --gy: 11.6rem; }
  .gallery-card:nth-child(6) { --gx: 6rem; --gy: 11.8rem; }

  .gallery-card > span {
    left: .55rem;
    bottom: .55rem;
    padding: .35rem .46rem;
    font-size: .57rem;
  }

  .gallery-center {
    width: min(18.5rem, calc(100% - 28px));
    transform: translate(-50%, -46%);
  }

  .gallery-center small {
    font-size: .6rem;
  }

  .gallery-center button {
    min-height: 2.7rem;
    font-size: .78rem;
  }

  .walkthrough-steps.steps {
    width: calc(100% - 24px);
    margin-top: 3.5rem;
  }

  .walkthrough-steps .step-copy h3 {
    font-size: 2.55rem;
  }

  .studio-flow-mock.mock {
    border-radius: 1.35rem;
  }

  .flow-toolbar {
    padding: .8rem;
  }

  .flow-toolbar b {
    max-width: 8rem;
  }

  .flow-prompt {
    min-height: 8.5rem;
    font-size: 1.03rem;
  }

  .flow-suggestions,
  .flow-reference,
  .flow-bottom {
    margin-left: .9rem;
    margin-right: .9rem;
    padding-left: 0;
    padding-right: 0;
  }

  .flow-bottom {
    margin: 0;
    padding: .9rem;
  }

  .generate-info {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-stage.is-open.is-orbiting .gallery-card {
    animation: none;
  }
}

.studio-walkthrough {
  overflow: hidden;
}

.live-walkthrough {
  width: min(100%, 66rem);
  margin: clamp(2.2rem, 5vw, 4rem) auto 0;
  color: #f7f5f7;
}

.walkthrough-shell {
  position: relative;
  padding: clamp(1rem, 2.8vw, 1.65rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: clamp(1.4rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 84% 10%, rgba(255,38,159,.13), transparent 28%),
    linear-gradient(145deg, rgba(26,24,31,.98), rgba(10,10,15,.98));
  box-shadow: 0 2rem 5rem rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.04);
}

.walkthrough-head,
.walkthrough-brand,
.walkthrough-status,
.walkthrough-tools,
.walkthrough-footer,
.walkthrough-result-copy,
.walkthrough-timeline {
  display: flex;
  align-items: center;
}

.walkthrough-head {
  justify-content: space-between;
  padding: .15rem .2rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.walkthrough-brand {
  gap: .75rem;
}

.walkthrough-brand > span {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: #ff2aa4;
  color: #0a090d;
  font-size: 1rem;
  box-shadow: 0 0 1.5rem rgba(255,42,164,.28);
}

.walkthrough-brand p,
.walkthrough-result-copy p,
.walkthrough-generating p {
  display: grid;
  gap: .15rem;
  margin: 0;
}

.walkthrough-brand small,
.walkthrough-prompt > small,
.walkthrough-result-copy small {
  color: #a9a4b0;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.walkthrough-brand strong {
  font-size: 1rem;
}

.walkthrough-status {
  gap: .5rem;
  min-height: 2.45rem;
  padding: 0 .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  color: #c7c2cc;
  font-size: .78rem;
  white-space: nowrap;
}

.walkthrough-status i {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: #67e7ae;
  box-shadow: 0 0 .75rem #67e7ae;
}

.walkthrough-stage {
  position: relative;
  min-height: 32rem;
  margin-top: 1.2rem;
}

.walkthrough-composer,
.walkthrough-generating,
.walkthrough-result {
  position: absolute;
  inset: 0;
  transition: opacity .55s ease, transform .65s cubic-bezier(.22,.9,.28,1);
}

.walkthrough-composer {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 1.45rem;
  background: rgba(10,10,15,.76);
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}

.walkthrough-tools {
  gap: .6rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.walkthrough-tools button,
.walkthrough-footer button,
.walkthrough-result-copy button,
.walkthrough-replay {
  border: 1px solid rgba(255,255,255,.14);
  color: #f7f5f7;
  font: inherit;
}

.walkthrough-tools button {
  min-height: 2.75rem;
  padding: 0 .9rem;
  border-radius: 999px;
  background: #24222a;
  font-size: .78rem;
  font-weight: 750;
}

.walkthrough-add span {
  margin-right: .3rem;
  font-size: 1.25rem;
  line-height: 0;
}

.walkthrough-model {
  margin-left: auto;
}

.walkthrough-workspace {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.55fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1.15rem;
}

.walkthrough-reference {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  align-self: start;
  min-height: 6.25rem;
  padding: .65rem;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 1rem;
  background: rgba(255,255,255,.035);
  opacity: 0;
  transform: translateY(.75rem) scale(.97);
  transition: opacity .45s ease, transform .55s cubic-bezier(.22,.9,.28,1);
}

.walkthrough-reference img {
  width: 4.5rem;
  height: 5.35rem;
  border-radius: .72rem;
  object-fit: cover;
}

.walkthrough-reference p {
  min-width: 0;
  margin: 0;
}

.walkthrough-reference strong,
.walkthrough-reference small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walkthrough-reference strong {
  font-size: .83rem;
}

.walkthrough-reference small {
  margin-top: .3rem;
  color: #9d98a4;
  font-size: .68rem;
}

.walkthrough-reference > span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(83,227,164,.13);
  color: #63e3aa;
  font-size: .7rem;
}

.walkthrough-prompt {
  min-height: 13.5rem;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
}

.walkthrough-prompt p {
  margin: 1.35rem 0 0;
  color: #f8f5f8;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.42;
}

.walkthrough-prompt p > i {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: .12rem;
  background: #ff2aa4;
  vertical-align: -.2em;
  animation: walkthroughCaret .78s steps(1) infinite;
}

.walkthrough-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.walkthrough-footer > div {
  display: flex;
  gap: .45rem;
}

.walkthrough-footer > div span {
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #aaa5b0;
  font-size: .73rem;
}

.walkthrough-footer button,
.walkthrough-result-copy button {
  min-height: 3rem;
  padding: 0 1.25rem;
  border-color: transparent;
  border-radius: 999px;
  background: #ff2aa4;
  color: #09080b;
  font-size: .88rem;
  font-weight: 850;
  box-shadow: 0 .75rem 2rem rgba(255,42,164,.2);
}

.walkthrough-generating,
.walkthrough-result {
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.2rem) scale(.985);
}

.walkthrough-generating {
  align-content: center;
  gap: 1.35rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,42,164,.14), transparent 32%),
    rgba(8,8,13,.88);
  text-align: center;
}

.walkthrough-loader {
  position: relative;
  display: grid;
  width: 6.5rem;
  height: 6.5rem;
  place-items: center;
}

.walkthrough-loader i {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: #ff2aa4;
  border-radius: 50%;
  animation: walkthroughSpin 1.15s linear infinite;
}

.walkthrough-loader span {
  display: grid;
  width: 3.8rem;
  height: 3.8rem;
  place-items: center;
  border-radius: 50%;
  background: #ff2aa4;
  color: #09080b;
  box-shadow: 0 0 2.5rem rgba(255,42,164,.28);
}

.walkthrough-generating strong {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.walkthrough-generating small {
  margin-top: .3rem;
  color: #a39da9;
  font-size: .86rem;
}

.walkthrough-progress {
  width: min(100%, 27rem);
  height: .42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}

.walkthrough-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff70bd, #ff1597);
}

.walkthrough-percent {
  color: #ff70bd;
  font-size: .8rem;
  font-weight: 800;
}

.walkthrough-result {
  grid-template-columns: minmax(14rem, .8fr) minmax(15rem, 1fr);
  gap: clamp(1.15rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.45rem;
  background: radial-gradient(circle at 18% 20%, rgba(255,42,164,.12), transparent 30%), rgba(8,8,13,.88);
}

.walkthrough-video-frame {
  position: relative;
  width: min(100%, 16.6rem);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.3rem;
  background: #05060a;
  box-shadow: 0 1.4rem 3rem rgba(0,0,0,.35);
}

.walkthrough-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05060a;
}

.walkthrough-result-tag,
.walkthrough-duration {
  position: absolute;
  top: .8rem;
  padding: .45rem .62rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(7,7,11,.65);
  backdrop-filter: blur(.65rem);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.walkthrough-result-tag {
  left: .8rem;
}

.walkthrough-duration {
  right: .8rem;
}

.walkthrough-result-copy {
  align-items: flex-end;
  gap: 1rem;
}

.walkthrough-result-copy p {
  flex: 1;
}

.walkthrough-result-copy strong {
  margin-top: .2rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.walkthrough-result-copy p > span {
  margin-top: .35rem;
  color: #aaa4af;
  font-size: .75rem;
}

.walkthrough-cursor {
  --cursor-x: clamp(2.4rem, 8vw, 5.2rem);
  --cursor-y: 3.4rem;
  position: absolute;
  z-index: 8;
  top: var(--cursor-y);
  left: var(--cursor-x);
  width: 1.8rem;
  height: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-.3rem, -.25rem);
  transition: left 1s cubic-bezier(.22,.8,.3,1), top 1s cubic-bezier(.22,.8,.3,1), opacity .25s ease;
}

.walkthrough-cursor svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 .18rem .35rem rgba(0,0,0,.5));
}

.walkthrough-cursor i {
  position: absolute;
  z-index: 1;
  top: .35rem;
  left: .2rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #ff2aa4;
  border-radius: 50%;
  opacity: 0;
}

.live-walkthrough[data-phase="ready"] .walkthrough-cursor,
.live-walkthrough[data-phase="upload"] .walkthrough-cursor,
.live-walkthrough[data-phase="typing"] .walkthrough-cursor,
.live-walkthrough[data-phase="submit"] .walkthrough-cursor {
  opacity: 1;
}

.live-walkthrough[data-phase="ready"] .walkthrough-cursor,
.live-walkthrough[data-phase="upload"] .walkthrough-cursor {
  --cursor-x: clamp(2.4rem, 8vw, 5.2rem);
  --cursor-y: 3.4rem;
}

.live-walkthrough[data-phase="typing"] .walkthrough-cursor,
.live-walkthrough[data-phase="submit"] .walkthrough-cursor {
  --cursor-x: calc(100% - 5.6rem);
  --cursor-y: calc(100% - 2.65rem);
}

.live-walkthrough[data-phase="upload"] .walkthrough-cursor i,
.live-walkthrough[data-phase="submit"] .walkthrough-cursor i {
  animation: walkthroughClick .7s ease-out;
}

.live-walkthrough[data-phase="upload"] .walkthrough-reference,
.live-walkthrough[data-phase="typing"] .walkthrough-reference,
.live-walkthrough[data-phase="submit"] .walkthrough-reference {
  opacity: 1;
  transform: none;
}

.live-walkthrough[data-phase="generating"] .walkthrough-composer,
.live-walkthrough[data-phase="result"] .walkthrough-composer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem) scale(.985);
}

.live-walkthrough[data-phase="generating"] .walkthrough-generating,
.live-walkthrough[data-phase="result"] .walkthrough-result {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.live-walkthrough[data-phase="generating"] .walkthrough-progress i {
  animation: walkthroughFill 2.25s cubic-bezier(.2,.8,.25,1) forwards;
}

.walkthrough-timeline {
  justify-content: center;
  gap: .65rem;
  padding: 1.2rem .3rem .3rem;
  color: #77727c;
  font-size: .69rem;
  font-weight: 750;
}

.walkthrough-timeline span {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  transition: color .3s ease;
}

.walkthrough-timeline span i {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  font-size: .56rem;
  font-style: normal;
  transition: border-color .3s ease, background .3s ease;
}

.walkthrough-timeline b {
  width: clamp(.75rem, 3vw, 2.4rem);
  height: 1px;
  background: rgba(255,255,255,.1);
}

.live-walkthrough[data-phase="upload"] [data-step="upload"],
.live-walkthrough[data-phase="typing"] [data-step="prompt"],
.live-walkthrough[data-phase="submit"] [data-step="prompt"],
.live-walkthrough[data-phase="generating"] [data-step="generating"],
.live-walkthrough[data-phase="result"] [data-step="result"] {
  color: #ff65b6;
}

.live-walkthrough[data-phase="upload"] [data-step="upload"] i,
.live-walkthrough[data-phase="typing"] [data-step="prompt"] i,
.live-walkthrough[data-phase="submit"] [data-step="prompt"] i,
.live-walkthrough[data-phase="generating"] [data-step="generating"] i,
.live-walkthrough[data-phase="result"] [data-step="result"] i {
  border-color: #ff2aa4;
  background: rgba(255,42,164,.12);
}

.walkthrough-replay {
  display: block;
  min-height: 2.5rem;
  margin: .7rem auto 0;
  padding: 0 1rem;
  border-radius: 999px;
  background: transparent;
  color: #aba6af;
  font-size: .72rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(.4rem);
  transition: opacity .35s ease, transform .35s ease, color .2s ease;
}

.walkthrough-replay:hover {
  color: #fff;
}

.live-walkthrough[data-phase="result"] .walkthrough-replay {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@keyframes walkthroughCaret {
  50% { opacity: 0; }
}

@keyframes walkthroughSpin {
  to { transform: rotate(360deg); }
}

@keyframes walkthroughFill {
  from { width: 5%; }
  to { width: 92%; }
}

@keyframes walkthroughClick {
  0% { opacity: .8; transform: scale(.2); }
  100% { opacity: 0; transform: scale(2.3); }
}

@media (max-width: 700px) {
  .live-walkthrough {
    width: calc(100% + .25rem);
    margin-left: -.125rem;
  }

  .walkthrough-shell {
    padding: .8rem;
    border-radius: 1.35rem;
  }

  .walkthrough-head {
    padding: .1rem .1rem .85rem;
  }

  .walkthrough-brand > span {
    width: 2.35rem;
    height: 2.35rem;
  }

  .walkthrough-status {
    min-height: 2.1rem;
    padding: 0 .7rem;
    font-size: .67rem;
  }

  .walkthrough-stage {
    min-height: 34.5rem;
    margin-top: .8rem;
  }

  .walkthrough-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    padding: .8rem;
  }

  .walkthrough-tools button {
    min-height: 2.55rem;
    padding: 0 .72rem;
    font-size: .7rem;
  }

  .walkthrough-enhance {
    display: none;
  }

  .walkthrough-model {
    margin-left: 0;
  }

  .walkthrough-workspace {
    grid-template-columns: 1fr;
    gap: .75rem;
    padding: .8rem;
  }

  .walkthrough-reference {
    grid-template-columns: 3.55rem minmax(0, 1fr) auto;
    min-height: 4.7rem;
    padding: .5rem;
  }

  .walkthrough-reference img {
    width: 3.55rem;
    height: 3.7rem;
  }

  .walkthrough-prompt {
    min-height: 12rem;
    padding: 1rem;
  }

  .walkthrough-prompt p {
    margin-top: 1rem;
    font-size: 1.1rem;
  }

  .walkthrough-footer {
    align-items: flex-end;
    padding: .8rem;
  }

  .walkthrough-footer > div {
    flex-wrap: wrap;
    gap: .3rem;
  }

  .walkthrough-footer > div span {
    padding: .42rem .55rem;
    font-size: .63rem;
  }

  .walkthrough-footer button {
    min-width: 8.2rem;
    min-height: 2.8rem;
    padding: 0 .85rem;
    font-size: .76rem;
  }

  .walkthrough-result {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: .85rem;
    padding: .8rem;
  }

  .walkthrough-video-frame {
    width: min(100%, 16.5rem);
    max-height: 28rem;
  }

  .walkthrough-result-copy {
    align-items: center;
    gap: .6rem;
  }

  .walkthrough-result-copy strong {
    font-size: 1.18rem;
  }

  .walkthrough-result-copy button {
    min-height: 2.65rem;
    padding: 0 .9rem;
    font-size: .72rem;
  }

  .live-walkthrough[data-phase="typing"] .walkthrough-cursor,
  .live-walkthrough[data-phase="submit"] .walkthrough-cursor {
    --cursor-x: calc(100% - 5.2rem);
    --cursor-y: calc(100% - 2.55rem);
  }

  .walkthrough-timeline {
    gap: .35rem;
    font-size: .58rem;
  }

  .walkthrough-timeline span {
    gap: .2rem;
  }

  .walkthrough-timeline span i {
    width: 1.18rem;
    height: 1.18rem;
  }
}

@media (max-width: 390px) {
  .walkthrough-status span {
    max-width: 7.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .walkthrough-timeline span {
    font-size: 0;
  }

  .walkthrough-timeline span i {
    font-size: .54rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .walkthrough-composer,
  .walkthrough-generating,
  .walkthrough-result,
  .walkthrough-reference,
  .walkthrough-cursor {
    transition: none;
  }

  .walkthrough-cursor,
  .walkthrough-loader i,
  .walkthrough-prompt p > i {
    display: none;
  }

  .walkthrough-progress i {
    animation: none !important;
  }
}
