:root {
  color-scheme: dark;
  --bg: #101010;
  --panel: #181818;
  --ink: #f5f3ef;
  --muted: #b7b4b1;
  --red: #ff555b;
  --line: #353332;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.9rem, 1.55rem + 5vw, 6.5rem); line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--red); font-weight: 400; }
h2 { font-size: clamp(2rem, 1.25rem + 2.8vw, 4rem); line-height: 1.04; letter-spacing: -.04em; }
h3 { margin: 0 0 .5rem; font-weight: 610; font-size: 1.16rem; }
.shell { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1.5rem; flex-wrap: wrap; padding-block: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.25rem; }
.site-header a, .site-footer a { text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.brand { gap: .65rem; font-weight: 650; }
.brand img { width: 2.25rem; border-radius: .5rem; }
.red { color: var(--red); }
.skip { position: absolute; left: 1rem; top: -8rem; z-index: 2; background: var(--ink); color: var(--bg); padding: .75rem; }
.skip:focus { top: 1rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); padding-block: clamp(3rem, 9vw, 7rem); }
.eyebrow { display: flex; align-items: center; gap: .66rem; color: var(--muted); font-size: .88rem; font-weight: 560; margin-bottom: 1.6rem; }
.dot { width: .48rem; height: .48rem; background: var(--red); border-radius: 50%; flex: none; }
.lead { color: var(--muted); max-width: 33rem; font-size: clamp(1rem, .93rem + .45vw, 1.25rem); margin-block: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.15rem; min-height: 3rem; padding: .7rem 1rem; border-radius: .5rem; background: var(--ink); color: var(--bg); font-weight: 650; text-decoration: none; }
.button:hover { color: var(--bg); background: #dfddda; }
.button span { color: #a51324; }
.hero-preview { margin: 0; justify-self: center; text-align: center; }
.hero-preview img { width: min(100%, 15.9rem); aspect-ratio: 432 / 940; border-radius: 1.75rem; border: 1px solid #4d4948; box-shadow: 0 14px 48px #0008; }
figcaption { margin-top: .9rem; color: var(--muted); font-size: .82rem; }
.workflow { padding-block: 3rem 4.5rem; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.8rem; }
.steps article { border-top: 2px solid var(--red); padding-top: 1.15rem; }
.steps p, .site-footer p { color: var(--muted); margin: 0; }
.site-footer { border-top: 1px solid var(--line); font-size: .9rem; }
.document { width: min(45rem, calc(100% - 3rem)); margin: 0 auto; padding-block: 3.5rem; overflow-wrap: anywhere; }
.document h1 { font-size: clamp(2.75rem, 1.65rem + 4vw, 5rem); margin-bottom: 1.3rem; }
.document h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem); margin: 2rem 0 .65rem; }
.document p, .document li { color: var(--muted); }
.document a { color: var(--ink); }
.document a:hover { color: var(--red); }
.document ol, .document ul { padding-inline-start: 1.4rem; }
.document li + li { margin-top: .45rem; }
@media (max-width: 45rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-preview { justify-self: start; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 24rem) {
  .shell, .document { width: calc(100% - 2rem); }
}

/* The homepage borrows its framing and light from a production monitor. */
.home {
  --bg: #090909;
  --red: #ff4b52;
  background:
    radial-gradient(ellipse 56rem 34rem at 79% 22rem, #55111780, transparent 70%),
    var(--bg);
}
.home .site-header { border-color: #ffffff26; }
.home .hero {
  min-height: min(46rem, 90svh);
  gap: clamp(2rem, 4vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
}
.home h1 { font-size: clamp(3rem, 1.3rem + 5.8vw, 7.1rem); }
.home .eyebrow { color: #ddd8d5; }
.home .dot { box-shadow: 0 0 .9rem #ff4b5290; }
.home .button { border-radius: .2rem; }
.home .button span { color: #bd1424; }
.home .hero-preview { width: 100%; }
.viewfinder {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(1.4rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid #ffffff20;
  background:
    linear-gradient(145deg, #08060835, #08060863),
    url("/assets/studio-light.jpg") center / cover no-repeat, #0d0b0d;
}
.finder-corners {
  position: absolute;
  inset: .7rem;
  pointer-events: none;
  background:
    linear-gradient(#d55960, #d55960) left top / 1.3rem 1px,
    linear-gradient(#d55960, #d55960) left top / 1px 1.3rem,
    linear-gradient(#d55960, #d55960) right top / 1.3rem 1px,
    linear-gradient(#d55960, #d55960) right top / 1px 1.3rem,
    linear-gradient(#d55960, #d55960) left bottom / 1.3rem 1px,
    linear-gradient(#d55960, #d55960) left bottom / 1px 1.3rem,
    linear-gradient(#d55960, #d55960) right bottom / 1.3rem 1px,
    linear-gradient(#d55960, #d55960) right bottom / 1px 1.3rem;
  background-repeat: no-repeat;
}
.viewfinder img {
  position: relative;
  width: min(100%, 13rem);
  border: 3px solid #383235;
  box-shadow: 0 1.6rem 2.5rem #000d, 0 0 3.5rem #f81e363a;
}
.home figcaption { text-align: left; }
.home figcaption .red { margin-inline-end: .4rem; font-size: .65em; }
.home .steps article { border-top: 1px solid #854046; }
@media (max-width: 45rem) {
  .home .hero { grid-template-columns: 1fr; min-height: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .home .intro h1,
  .home .intro .lead,
  .home .hero-preview figcaption {
    animation: studio-title-in .66s cubic-bezier(.22, 1, .36, 1) backwards;
  }

  .home .intro .lead { animation-delay: .12s; }
  .home .hero-preview figcaption { animation-delay: .32s; }
  .home .viewfinder img {
    animation: studio-monitor-in .9s .12s cubic-bezier(.22, 1, .36, 1) backwards;
  }

  .home .viewfinder { overflow: hidden; }
  .home .viewfinder::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 29%, #ff4b5226 47%, transparent 65%);
    opacity: 0;
    animation: studio-light-pass 1.35s .18s ease-out;
  }

  .home .intro .button span {
    transition: transform .22s ease-out;
  }

  .home .intro .button:is(:hover, :focus-visible) span {
    transform: translate(2px, 2px);
  }
}

@keyframes studio-title-in {
  from { transform: translateY(.65rem); }
  to { transform: translateY(0); }
}

@keyframes studio-monitor-in {
  from { transform: translateY(.9rem) scale(.98); }
  to { transform: translateY(0) scale(1); }
}

@keyframes studio-light-pass {
  0% { opacity: 0; transform: translateX(-65%); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translateX(65%); }
}

[hidden] { display: none !important; }
.studio-demo { border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 6rem); }
.demo-intro { max-width: 38rem; }
.demo-intro p { margin-top: 1rem; color: var(--muted); }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.demo-panel { padding: clamp(1rem, 3vw, 1.8rem); background: #121112; border: 1px solid var(--line); min-width: 0; }
#demo-form { display: grid; align-content: start; gap: .55rem; }
.demo-panel label { font-size: .88rem; color: var(--muted); }
.demo-panel input, .demo-panel select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .45rem .65rem;
  background: #0a0a0a;
  color: var(--ink);
  border: 1px solid #565050;
  border-radius: .2rem;
  font: inherit;
}
#demo-form input, #demo-form select { margin-bottom: .45rem; }
.demo-panel button { cursor: pointer; font: inherit; }
.demo-panel :is(button, input, select):focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
#demo-form .button { justify-self: start; border: 0; margin-top: .45rem; }
.demo-kicker { font-size: .85rem; color: var(--red); font-weight: 650; margin-bottom: .5rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 1rem; }
.demo-output button { color: var(--ink); background: #231d1e; border: 1px solid #6a494d; min-height: 2.75rem; padding: .45rem .8rem; border-radius: .2rem; }
.demo-output button:hover, .demo-output button[aria-pressed="true"] { background: #50202a; }
.demo-output section + section:not([hidden]) { margin-top: 1.3rem; }
.demo-output p, .demo-output h3 { overflow-wrap: anywhere; }
.demo-output p:not(.demo-kicker) { color: var(--muted); }
.demo-output #demo-status { margin: .85rem 0 0; }
.demo-monitor {
  min-height: 9rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .55rem;
  padding: .85rem;
  border: 1px solid #61383b;
  background: linear-gradient(0deg, #080609e8, #08060922), url("/assets/studio-light.jpg") center / cover;
}
.demo-monitor h3 { margin: 0; }
.demo-monitor span { color: #ffc1bf; font-size: .8rem; }
.demo-audio { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .55rem; margin-top: .85rem; }
.demo-audio meter { width: 100%; accent-color: var(--red); }
.demo-audio button { justify-self: start; grid-column: 1 / -1; }

.home #headline {
  max-width: 12ch;
  font-size: clamp(3rem, 1.75rem + 4.3vw, 6.25rem);
  text-wrap: balance;
}
.app-showcase {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.showcase-copy p { color: var(--muted); max-width: 35rem; margin-block: 1rem 1.4rem; }
.showcase-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 1rem; }
.showcase-media figure { margin: 0; min-width: 0; }
.showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 432 / 940;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: clamp(.75rem, 2vw, 1.5rem);
  background: #010101;
}

/* Public site navigation and product gallery */
.home { --header-offset: 5rem; }
.home :is(main, section)[id] { scroll-margin-top: var(--header-offset); }
.home .hero { perspective: 1050px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.2rem; }
.screen-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.website-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #ffffff25;
  background: #0a080aec;
  backdrop-filter: blur(16px);
}
.website-header .site-header { border-bottom: 0; }
.website-header nav { font-size: .91rem; }
.website-header .nav-demo { gap: .42rem; border: 1px solid #e34e596b; padding-inline: .85rem; border-radius: .2rem; }
.website-header .nav-demo span { color: var(--red); }
.web-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 6;
  height: 2px;
  background: #fb4d57;
  box-shadow: 0 0 9px #ff3346;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.home .skip:focus { z-index: 7; }
.hero-pointer-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #ff586e77, #d8133a1e 34%, transparent 66%);
  opacity: 0;
  pointer-events: none;
}
.hero-iris {
  position: absolute;
  inset: 0;
  border: 1px solid #f16978b3;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
.app-showcase .showcase-copy { margin-bottom: 1.65rem; }
.showcase-media a { display: block; }
.showcase-media a:hover img { border-color: var(--red); }
.event-showcase {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}
.reveal-film { width: 100%; margin: 0; }
.reveal-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #080508 url("/assets/studio-light.jpg") center / cover;
}
.website-footer { border-top: 1px solid #ffffff25; background: #110b0e; }
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.25rem 2rem;
  padding-block: clamp(1.8rem, 5vw, 3.5rem);
}
.footer-content .brand { display: inline-flex; align-items: center; text-decoration: none; }
.footer-content p { margin-top: .65rem; color: var(--muted); }
.footer-content nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-content nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.footer-legal { border-top: 1px solid var(--line); padding-block: 1rem; color: var(--muted); }
@media (max-width: 45rem) {
  .home { --header-offset: 8rem; }
  .event-showcase { grid-template-columns: 1fr; }
  .reveal-film { justify-self: start; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-content > div { grid-column: 1 / -1; }
  .website-header .site-header { padding-block: .45rem; }
  .website-header nav { gap: .15rem .88rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(body.home) { scroll-behavior: smooth; }
  .hero-iris { animation: studio-iris-open 1.65s .12s cubic-bezier(.2,.7,.2,1); }
  .home .button span,
  .showcase-media img { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
  .home .button:is(:hover,:focus-visible) span { transform: translate(3px,-2px); }
  .showcase-media a:is(:hover,:focus-visible) img { transform: translateY(-.2rem); }
}
@keyframes studio-iris-open {
  0% { transform: scale(.77); border-radius: 43%; opacity: 0; }
  26% { opacity: .85; }
  100% { transform: scale(1.05); border-radius: .2rem; opacity: 0; }
}

#screens { position: relative; }
#screens::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, #fb3d51, #96313d 58%, transparent);
  transform-origin: left;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    #screens::before {
      animation: studio-line-in auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes studio-line-in {
  from { opacity: .2; transform: scaleX(.1); }
  to { opacity: 1; transform: scaleX(1); }
}

/* The studio plate moves independently of the product and copy. */
.hero-stage {
  position: absolute;
  inset: -2.5rem 0;
  background: linear-gradient(145deg, #08060835, #08060863), url("/assets/studio-light.jpg") center / cover;
  pointer-events: none;
}
.home .viewfinder { background: #0d0b0d; }
.finder-corners { z-index: 1; }
.home .viewfinder::before { z-index: 1; }
.hero-pointer-light { z-index: 1; mix-blend-mode: screen; }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .home .hero { view-timeline: --studio-hero; }
    .hero-stage {
      animation: studio-stage-depth auto linear both;
      animation-timeline: --studio-hero;
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes studio-stage-depth {
  from { transform: translateY(-1.75rem); }
  to { transform: translateY(1.75rem); }
}

.home .hero-actions .button {
  box-shadow: 0 0 1.5rem #ff4b523c;
}
.home .hero-actions .button:is(:hover, :focus-visible) { box-shadow: 0 0 1.7rem #ff4b5265; }
.home .demo-panel { box-shadow: 0 1rem 2rem #0004; }

@media (max-width: 45rem) {
  .home { --header-offset: 6.6rem; }
  .website-header .site-header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: .45rem;
    row-gap: 0;
  }
  .website-header .brand { grid-column: 1 / 3; grid-row: 1; }
  .website-header nav { display: contents; }
  .website-header nav a:not(.nav-demo) { grid-row: 2; min-height: 2.25rem; }
  .website-header .nav-demo { grid-column: 2 / 4; grid-row: 1; justify-self: end; font-size: .82rem; padding-inline: .55rem; }
  .website-header .brand { font-size: .9rem; gap: .42rem; }
  .website-header .brand img { width: 1.9rem; }
}
