/* The shared page: one screen, split in two. Each half is in its product's own colors and type:
   Sound Asset Manager — amber, Geologica; Video Asset Manager — lime, Unbounded + Onest.
   Each card sits in a small 3D scene (.stage): the widgets around it hide behind the card and,
   when the card is hovered (or on a phone, when it scrolls into view), fly out past its edges. */
:root {
  --bg: #1b1f25;
  --text: #e8e3d8;
  --soft: #c9c4ba;
  --muted: #8c95a0;
  --line: #343b46;
  --amber: #edb04a;
  --amber-ink: #2a1d05;
  --lime: #d7f75b;
  --lime-ink: #1f2606;
  --cyan: #5bc6d3;
  --violet: #b79cf2;
  --green: #8cc48a;
  --pink: #f08fb6;
  --red: #e2544a;
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --k: min(var(--kw, 1), var(--kh, 1)); /* how big the scenes are (smaller screens) */
  --spread: 1; /* how far the widgets fly */
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a {
  color: inherit;
}
p,
h2 {
  margin: 0;
}

/* ---------- top line ---------- */
.top {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  pointer-events: none;
}
.pick {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 27, 32, 0.72);
  backdrop-filter: blur(8px);
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
}
.lang {
  position: absolute;
  right: 22px;
  pointer-events: auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(24, 27, 32, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.lang:hover {
  color: var(--text);
  border-color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- the two halves ---------- */
.split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  height: 100dvh;
}
.half {
  --acc: var(--amber);
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1300px;
  isolation: isolate;
}
.half:hover,
.half:focus-within,
.half.open {
  z-index: 2;
}
.half-sam {
  background:
    radial-gradient(circle at 1px 1px, #2a3038 1px, transparent 1.3px) 0 0 / 24px 24px,
    #1b1f25;
}
.half-vam {
  --acc: var(--lime);
  background:
    radial-gradient(circle at 1px 1px, #2b313a 1px, transparent 1.3px) 12px 12px / 24px 24px,
    #171a1f;
}
/* the glow behind the card, stronger while it's hovered */
.half::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(42% 46% at 50% 52%, color-mix(in srgb, var(--acc) 15%, transparent), transparent 70%);
  opacity: 0.6;
  transition: opacity 0.5s;
}
.half:hover::before,
.half.open::before {
  opacity: 1;
}
/* the other half steps back while one is hovered */
.half::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #0c0e11;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s;
}
.split:has(.half-sam .stage:hover) .half-vam::after,
.split:has(.half-vam .stage:hover) .half-sam::after {
  opacity: 0.5;
}
.or {
  position: absolute;
  z-index: 15;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(transparent, #2f3640 18%, #2f3640 82%, transparent);
  pointer-events: none;
}
.or span {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #181b20;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- the 3D scene: the card and its widgets ---------- */
.stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: block;
  width: 380px;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  transform: scale(var(--k)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
  outline: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 30px;
  border: 1.5px solid color-mix(in srgb, var(--acc) 24%, #343b46);
  border-radius: 24px;
  background: linear-gradient(180deg, #242a32, #1e2329);
  box-shadow:
    0 40px 90px -36px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateZ(0);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1),
    border-color 0.3s;
}
.stage:hover .card,
.stage:focus-visible .card,
.half.open .card {
  transform: translateZ(24px);
  border-color: color-mix(in srgb, var(--acc) 55%, #343b46);
}
.stage:focus-visible .card {
  box-shadow:
    0 0 0 3px #181b20,
    0 0 0 5px var(--acc),
    0 40px 90px -36px rgba(0, 0, 0, 0.85);
}
.mark {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #343b46;
}
.name {
  margin-top: 22px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.half-sam .name {
  font: 600 32px/1.06 'Geologica', var(--ui);
  letter-spacing: -0.03em;
}
.half-vam .name {
  font: 600 27px/1.12 'Unbounded', var(--ui);
  letter-spacing: -0.035em;
}
.tag {
  margin-top: 12px;
  color: var(--acc);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}
.half-sam .tag,
.half-sam .text {
  font-family: 'Geologica', var(--ui);
}
.text {
  margin-top: 10px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}
.half-sam .text {
  font-weight: 300;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pills span {
  padding: 5px 11px;
  border: 1px solid #3a424e;
  border-radius: 999px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.3;
}
.go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 13px;
  background: var(--acc);
  color: var(--amber-ink);
  font-weight: 600;
  font-size: 16px;
}
.half-vam .go {
  color: var(--lime-ink);
}
.go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s;
}
.stage:hover .go svg {
  transform: translateX(4px);
}

/* the widgets: hidden behind the card, out past its edges when it's hovered */
.w {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) translate3d(var(--x0), var(--y0), -70px) rotateZ(var(--c0)) scale(0.9);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc((5 - var(--i)) * 25ms);
}
.stage:hover .w,
.stage:focus-visible .w,
.half.open .w {
  transform: translate(-50%, -50%) translate3d(calc(var(--x1) * var(--spread)), var(--y1), var(--z1)) rotateX(var(--a1)) rotateY(var(--b1)) rotateZ(var(--c1));
  transition: transform 0.85s cubic-bezier(0.18, 1.25, 0.4, 1);
  transition-delay: calc(var(--i) * 40ms);
}
.w-in {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #3a424e;
  border-radius: 14px;
  background: #262c34;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  font-size: 13px;
  animation: bob 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.15s);
}
@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}
.w-in b {
  font-weight: 600;
}
.ok {
  flex: none;
  width: 18px;
  height: 18px;
}
.ok circle {
  fill: var(--green);
}
.ok path {
  fill: none;
  stroke: #13240f;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* — Sound Asset Manager — */
.half-sam .w-in {
  font-family: 'Geologica', var(--ui);
}
.w-track .w-in {
  flex-direction: column;
  align-items: stretch;
  width: 210px;
  padding: 12px 14px 14px;
  border-color: rgba(237, 176, 74, 0.45);
}
.tr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tr-head b {
  font-weight: 500;
}
.tr-head i {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
}
.tr-play {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  position: relative;
}
.tr-play::after {
  content: '';
  position: absolute;
  left: 7.5px;
  top: 5.5px;
  border-style: solid;
  border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent var(--amber-ink);
}
.w-track svg {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 10px;
}
.w-fx .w-in {
  padding: 9px 16px 9px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: #231a3a;
  font-size: 14px;
}
.knob {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #231a3a;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.knob-hand {
  transform-origin: 11px 11px;
  transform: rotate(-60deg);
  transition: transform 0.9s cubic-bezier(0.2, 1.2, 0.4, 1) 0.15s;
}
.stage:hover .knob-hand,
.half.open .knob-hand {
  transform: rotate(75deg);
}
.w-cut .w-in {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
}
.cut-row {
  display: flex;
  gap: 6px;
}
.cut-seg {
  display: block;
  padding: 4px 5px;
  border: 1.5px dashed rgba(91, 198, 211, 0.6);
  border-radius: 7px;
  transition: transform 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) 0.2s;
}
.cut-seg svg {
  display: block;
  width: 40px;
  height: 22px;
}
.stage:hover .cut-seg:first-child,
.half.open .cut-seg:first-child {
  transform: translateX(-4px) rotate(-3deg);
}
.stage:hover .cut-seg:last-child,
.half.open .cut-seg:last-child {
  transform: translateX(4px) rotate(3deg);
}
.w-cut p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--cyan);
  font-weight: 500;
}
.sc {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.w-loop .w-in {
  border-color: rgba(140, 196, 138, 0.45);
}
.inf {
  width: 26px;
  height: 14px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
}
.w-cursor .w-in {
  gap: 2px;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.ptr {
  width: 22px;
  height: 24px;
  fill: var(--pink);
  stroke: #1b1f25;
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}
.who {
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 8px 8px 8px 2px;
  background: var(--pink);
  color: #3a1226;
  font-weight: 600;
  font-size: 12px;
}
.dl {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* — Video Asset Manager — */
.w-stream .w-in {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 214px;
  padding: 8px;
}
.thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.live {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tl {
  position: relative;
  height: 10px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #2f3a4e 0 18px, #283040 18px 36px);
}
.tl i {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 20%;
  width: 2.5px;
  border-radius: 2px;
  background: var(--lime);
  transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}
.stage:hover .tl i,
.half.open .tl i {
  left: 78%;
}
.w-clip .w-in {
  position: relative;
  padding: 0;
  border: 2px solid var(--lime);
  border-radius: 14px;
  overflow: hidden;
  background: #1d2533;
}
.vert {
  display: block;
  width: 92px;
  height: 164px;
}
.ratio {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 10px;
  font-weight: 700;
}
.brk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--lime);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.yt svg {
  display: block;
  width: 24px;
  height: 18px;
}
.yt rect {
  fill: var(--red);
}
.yt path {
  fill: #fff;
}
.tt svg {
  display: block;
  width: 18px;
  height: 20px;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.tt .c {
  stroke: var(--cyan);
}
.tt .p {
  stroke: var(--pink);
}
.two {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.two small {
  color: var(--muted);
  font-size: 11.5px;
}
.w-tt .w-in {
  padding: 9px 14px;
}
.w-cal .w-in {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 116px;
  padding: 11px 12px 12px;
}
.cal-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.cal-h span {
  color: var(--text);
  font: 600 22px/1 'Unbounded', var(--ui);
}
.cal-l {
  display: grid;
  gap: 5px;
}
.cal-l i {
  display: block;
  height: 6px;
  border-radius: 3px;
}
.cal-l .a {
  width: 92%;
  background: var(--lime);
}
.cal-l .b {
  width: 70%;
  background: var(--cyan);
}
.cal-l .c {
  width: 82%;
  background: var(--red);
}
.w-cal small {
  color: var(--muted);
  font-size: 11.5px;
}
.cloud {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1500px) {
  :root {
    --kw: 0.9;
  }
}
@media (max-width: 1280px) {
  :root {
    --kw: 0.8;
  }
}
@media (max-width: 1080px) {
  :root {
    --kw: 0.7;
  }
}
@media (max-height: 880px) {
  :root {
    --kh: 0.86;
  }
}
@media (max-height: 760px) {
  :root {
    --kh: 0.76;
  }
}
@media (max-height: 660px) {
  :root {
    --kh: 0.66;
  }
}
/* phones and narrow windows: the halves one under the other; the widgets fly out on their own
   when a card is on screen (there's no hover) */
@media (max-width: 820px) {
  :root {
    --kw: 0.78;
    --kh: 1;
    --spread: 0.6;
  }
  body {
    overflow: auto;
  }
  .split {
    grid-template-columns: 1fr;
    height: auto;
  }
  .half {
    min-height: 680px;
    padding: 80px 0 60px;
  }
  .or {
    inset: 50% 0 auto 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2f3640 18%, #2f3640 82%, transparent);
  }
  .or span {
    left: 50%;
    top: 0;
  }
  .top {
    position: absolute;
  }
  /* no room at the sides on a phone: only the widgets above and below the card fly out */
  .w-loop,
  .w-export,
  .w-yt,
  .w-cal {
    display: none;
  }
  .w-clip {
    --x1: 150px !important;
    --y1: -252px !important;
  }
}
@media (max-width: 420px) {
  :root {
    --kw: 0.72;
    --spread: 0.5;
  }
  .half {
    min-height: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .w-in {
    animation: none;
  }
  .stage,
  .card,
  .w,
  .stage:hover .w,
  .half.open .w,
  .knob-hand,
  .cut-seg,
  .tl i {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
