:root {
  --ink: #20221f;
  --ink-soft: #4c4e48;
  --paper: #fffaf2;
  --paper-deep: #f5ecdf;
  --paper-card: #fffefb;
  --orange: #f15136;
  --orange-dark: #c83b29;
  --blue: #244ae5;
  --blue-dark: #17329e;
  --muted: #6e7069;
  --line: rgba(32, 34, 31, 0.14);
  --line-strong: rgba(32, 34, 31, 0.24);
  --line-light: rgba(255, 250, 242, 0.24);
  --lime: var(--orange);
  --lime-dark: var(--orange-dark);
  --radius: 24px;
  --radius-small: 14px;
  --shell: 1240px;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-soft: 0 18px 45px rgba(48, 39, 25, 0.09);
  --shadow-card: 0 8px 24px rgba(48, 39, 25, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
select,
input[type="checkbox"],
input[type="radio"],
label {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.shell {
  width: min(var(--shell), calc(100% - 64px));
  margin: 0 auto;
}

.section-pad {
  padding: clamp(84px, 10vw, 136px) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 20px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 20px;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.22rem;
  letter-spacing: -0.06em;
  line-height: 1;
  text-decoration: none;
}

.brand-word span {
  color: var(--orange);
}

.brand-mark {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: -0.12em;
  line-height: 1;
  transform: rotate(-9deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--orange-dark);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(241, 81, 54, 0.2);
}

.button-primary:hover {
  color: #fff;
  background: var(--orange-dark);
  box-shadow: 0 11px 24px rgba(200, 59, 41, 0.24);
}

.button-primary:focus-visible {
  outline-color: var(--orange-dark);
}

.button-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.button-ghost:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.button-ghost:focus-visible {
  outline-color: var(--blue);
}

.button-small {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 0.84rem;
}

.button-wide {
  width: 100%;
}

.button-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.button-dark:hover {
  color: #fff;
  background: var(--blue-dark);
}

.button-dark:focus-visible {
  outline-color: var(--blue);
}

.button-outline-dark {
  color: var(--ink);
  background: transparent;
  border-color: rgba(32, 34, 31, 0.44);
}

.button-outline-dark:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.button-outline-dark:focus-visible {
  outline-color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-card);
}

.menu-line {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 180ms var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-line:first-of-type {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:last-of-type {
  transform: translateY(-3px) rotate(-45deg);
}

/* Shared typography */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(241, 81, 54, 0.13);
}

.eyebrow-light {
  color: #fff;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.065em;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.3vw, 5.8rem);
  line-height: 0.92;
}

h2 span,
h1 span {
  color: var(--orange);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(74px, 9vw, 126px);
  padding-bottom: clamp(84px, 10vw, 132px);
  background:
    radial-gradient(circle at 7% 15%, rgba(36, 74, 229, 0.08), transparent 24rem),
    var(--paper);
}

.hero::before {
  position: absolute;
  top: 7%;
  left: -130px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(241, 81, 54, 0.22);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(42px, 6vw, 96px);
}

.hero-copy {
  min-width: 0;
}

.hero .eyebrow {
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.15rem, 7vw, 7.35rem);
  line-height: 0.87;
  overflow-wrap: normal;
}

.hero-lede {
  max-width: 535px;
  margin-top: 29px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.text-link,
.text-link-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.text-link:hover,
.text-link-button:hover {
  color: var(--orange-dark);
  transform: translateX(2px);
}

.text-link:focus-visible,
.text-link-button:focus-visible {
  outline-color: var(--blue);
  outline-offset: 5px;
}

.hero-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 47px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-note span:first-child {
  color: var(--orange-dark);
}

.hero-note i {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
}

/* Vinyl record hero */

.hero-art {
  position: relative;
  min-width: 0;
  min-height: 560px;
}

.record-scene {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), transparent 42%),
    #dfe7ff;
  border: 1px solid rgba(36, 74, 229, 0.2);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
}

.record-scene::before,
.record-scene::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.record-scene::before {
  right: -18%;
  bottom: -30%;
  width: 76%;
  aspect-ratio: 1;
  background: rgba(241, 81, 54, 0.22);
}

.record-scene::after {
  top: -28%;
  left: -13%;
  width: 45%;
  aspect-ratio: 1;
  background: rgba(255, 250, 242, 0.65);
}

.record-orbit {
  position: absolute;
  top: 8%;
  right: 5%;
  width: 89%;
  max-width: 530px;
  aspect-ratio: 1;
  border: 1px solid rgba(36, 74, 229, 0.35);
  border-radius: 50%;
  transform: rotate(18deg);
}

.record-orbit::before,
.record-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.record-orbit::before {
  inset: 7%;
  border: 1px dashed rgba(36, 74, 229, 0.3);
}

.record-orbit::after {
  top: 12%;
  left: 12%;
  width: 9px;
  height: 9px;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(241, 81, 54, 0.16);
}

.record-disc {
  position: absolute;
  z-index: 2;
  top: 15%;
  right: 12%;
  width: min(74%, 430px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(32, 34, 31, 0.72);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 47% 44%, rgba(255, 250, 242, 0.08) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 43% 37%, #393d38 0, #1c211e 48%, #0e100e 100%);
  box-shadow:
    0 23px 28px rgba(32, 34, 31, 0.22),
    inset 10px 12px 26px rgba(255, 250, 242, 0.08);
  transform: rotate(-13deg);
  animation: recordSpin 24s linear infinite;
}

.record-disc::before {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 50%;
  content: "";
}

.record-disc::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  background: var(--paper);
  border: 4px solid #161917;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.record-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: 39%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--ink);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), transparent 22%),
    var(--orange);
  border: 2px solid rgba(32, 34, 31, 0.8);
  border-radius: 50%;
  font-family: var(--display);
  gap: clamp(2px, 0.6vw, 8px);
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
}

.record-label span,
.record-label strong,
.record-label small {
  display: block;
  max-width: 100%;
}

.record-label span {
  font-size: clamp(0.43rem, 0.9vw, 0.62rem);
  letter-spacing: 0.08em;
}

.record-label strong {
  font-size: clamp(0.62rem, 1.4vw, 0.9rem);
  letter-spacing: -0.05em;
}

.record-label small {
  font-size: clamp(0.34rem, 0.62vw, 0.48rem);
  letter-spacing: 0.08em;
}

.record-label i {
  position: static;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.record-sticker {
  position: absolute;
  z-index: 4;
  top: 13%;
  left: 8%;
  display: block;
  min-width: 126px;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 6px 7px 0 var(--orange);
  font-family: var(--display);
  font-size: clamp(0.72rem, 1.4vw, 0.94rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.record-sticker strong {
  display: block;
  color: var(--blue);
}

.record-wave {
  position: absolute;
  z-index: 4;
  bottom: 10%;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  transform: rotate(-7deg);
}

.record-wave > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
}

.record-wave > div {
  display: grid;
  gap: 2px;
  padding: 10px 13px;
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(32, 34, 31, 0.2);
  border-radius: 7px;
}

.record-wave strong {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.record-wave small {
  color: var(--muted);
  font-size: 0.62rem;
}

.record-caption {
  position: absolute;
  right: 8%;
  bottom: 7%;
  z-index: 5;
  max-width: 185px;
  margin: 0;
  padding: 11px 13px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(32, 34, 31, 0.18);
  border-radius: 7px;
  box-shadow: 5px 5px 0 rgba(36, 74, 229, 0.75);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-align: center;
}

@keyframes recordSpin {
  from {
    transform: rotate(-13deg);
  }
  to {
    transform: rotate(347deg);
  }
}

/* Compatibility while old hero art is still in a cached page. */

.art-grid,
.art-sticker,
.art-mic,
.art-wave,
.art-caption {
  display: none;
}

/* Marquee */

.marquee-band {
  overflow: hidden;
  color: #fff;
  background: var(--blue);
  border-top: 1px solid var(--blue-dark);
  border-bottom: 1px solid var(--blue-dark);
  transform: rotate(-1.2deg) scale(1.03);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
  font-family: var(--display);
  font-size: clamp(0.78rem, 1.4vw, 0.94rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}

.marquee-track b {
  color: var(--orange);
  font-size: 1.3rem;
}

@keyframes marquee {
  to {
    transform: translateX(-25%);
  }
}

/* Process */

.process {
  background: var(--paper);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.58fr);
  align-items: end;
  gap: 40px;
}

.section-intro {
  max-width: 460px;
  color: var(--ink-soft);
  line-height: 1.68;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 58px;
}

.process-card {
  position: relative;
  min-height: 320px;
  padding: 29px 30px 31px;
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.process-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.process-card-accent {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  border-top-color: var(--ink);
}

.process-card-accent:hover {
  box-shadow: 0 19px 35px rgba(241, 81, 54, 0.2);
}

.card-index {
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.process-card-accent .card-index {
  color: #fff;
}

.process-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 45px 0 27px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 20px;
  font-family: Georgia, serif;
  font-size: 2.1rem;
  transform: rotate(-7deg);
}

.process-card-accent .process-icon {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
}

.icon-pen {
  font-size: 2.2rem;
}

.icon-frame {
  font-family: var(--body);
  font-size: 2.3rem;
}

.icon-wave {
  font-size: 2.4rem;
}

.process-card h3 {
  max-width: 12ch;
  font-size: clamp(1.32rem, 2vw, 1.72rem);
  line-height: 1;
}

.process-card p {
  max-width: 31ch;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.process-card-accent p {
  color: rgba(255, 255, 255, 0.88);
}

/* Studio form */

.studio {
  background:
    radial-gradient(circle at 94% 12%, rgba(36, 74, 229, 0.12), transparent 24rem),
    #f1f4ff;
  border-top: 1px solid rgba(36, 74, 229, 0.12);
  border-bottom: 1px solid rgba(36, 74, 229, 0.12);
}

.studio h2 {
  max-width: 10ch;
}

.studio h2 span {
  color: var(--blue);
}

.studio .section-intro {
  max-width: 445px;
}

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

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(295px, 0.75fr);
  align-items: start;
  gap: 25px;
  margin-top: 58px;
}

.generator-form {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.form-step {
  color: var(--muted);
}

.form-step i {
  padding: 0 4px;
  color: var(--orange);
  font-style: normal;
}

.field-group {
  min-width: 0;
  margin-top: 27px;
}

.field-group label,
.aspect-fieldset legend {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.required-mark {
  color: var(--orange);
}

.field-large {
  margin-top: 29px;
}

input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

input,
select {
  min-height: 50px;
  padding: 11px 14px;
}

input::placeholder,
textarea::placeholder {
  color: #9b9b91;
}

input:focus,
textarea:focus,
select:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 74, 229, 0.13);
}

textarea {
  display: block;
  min-height: 184px;
  padding: 15px 44px 15px 16px;
  resize: vertical;
  line-height: 1.56;
}

.textarea-wrap {
  position: relative;
}

.textarea-corner {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: var(--orange);
  font-size: 1.25rem;
  pointer-events: none;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.field-meta span:last-child {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 800;
}

.form-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-two-col .field-group {
  min-width: 0;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  content: "";
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

select {
  appearance: none;
  padding-right: 44px;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.field-label-row label {
  margin-bottom: 9px;
}

.field-hint {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.field-hint-bottom {
  margin-top: 8px;
}

.upload-shell {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  background: #fffaf2;
  border: 1px dashed rgba(36, 74, 229, 0.56);
  border-radius: 14px;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.upload-shell:focus-within,
.upload-shell.is-dragging {
  background: #f3f5ff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(241, 81, 54, 0.12);
}

.upload-shell.has-error {
  border-color: var(--orange-dark);
  box-shadow: 0 0 0 4px rgba(241, 81, 54, 0.12);
}

.upload-shell input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-label {
  display: flex;
  min-height: 122px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
}

.upload-label:focus-within strong,
.upload-label:hover strong {
  color: var(--orange-dark);
}

.upload-label > span:last-child {
  display: grid;
  gap: 3px;
}

.upload-label strong {
  color: var(--blue-dark);
  font-size: 0.94rem;
  transition: color 180ms var(--ease);
}

.upload-label small {
  color: var(--muted);
  font-size: 0.78rem;
}

.upload-plus {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
}

.photo-preview {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  min-height: 122px;
  align-items: center;
  gap: 14px;
  padding: 15px;
}

.photo-preview img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  background: var(--paper-deep);
  border-radius: 10px;
}

.photo-preview-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.photo-preview-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-preview-copy small {
  color: var(--muted);
  font-size: 0.74rem;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
}

.icon-button:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.icon-button:focus-visible {
  outline-color: var(--orange);
}

.aspect-fieldset {
  padding: 0;
  border: 0;
}

.aspect-fieldset legend {
  margin-bottom: 11px;
}

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

.aspect-option {
  min-width: 0;
  cursor: pointer;
}

.aspect-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.aspect-option > span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 14px;
  background: #fffaf2;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.aspect-option input:checked + span {
  background: #eef2ff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 74, 229, 0.12);
}

.aspect-option input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.aspect-shape {
  grid-row: 1 / span 2;
  display: block;
  width: 21px;
  height: 31px;
  background: transparent;
  border: 2px solid var(--blue);
  border-radius: 4px;
}

.shape-landscape {
  width: 31px;
  height: 21px;
  align-self: center;
}

.aspect-option strong {
  font-size: 0.88rem;
}

.aspect-option small {
  color: var(--muted);
  font-size: 0.72rem;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 26px;
}

.consent-row input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.consent-row label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.consent-row a,
.dialog-footnote a {
  color: var(--blue-dark);
  font-weight: 800;
}

.form-error,
.form-message {
  margin-top: 13px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.form-message {
  color: var(--blue-dark);
}

.form-error {
  color: var(--orange-dark);
  font-weight: 700;
}

.generator-form.is-busy .button-primary,
.auth-form .button-primary[aria-busy="true"] {
  cursor: wait;
  opacity: 0.75;
  pointer-events: none;
}

/* Studio aside */

.studio-aside {
  display: grid;
  gap: 16px;
}

.aside-card {
  min-width: 0;
  padding: 27px 27px 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.aside-card-dark {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.aside-card-lime {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.aside-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aside-symbol {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--blue-dark);
  background: var(--paper);
  border-radius: 50%;
  font-weight: 900;
}

.aside-big {
  margin-top: 35px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(4.8rem, 8vw, 7.6rem);
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.aside-big span {
  margin-left: 7px;
  color: #aebdff;
  font-size: 0.33em;
  letter-spacing: -0.04em;
}

.aside-card-dark > p:not(.aside-big) {
  max-width: 28ch;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.55;
}

.format-rule {
  height: 1px;
  margin: 24px 0 16px;
  background: rgba(255, 255, 255, 0.22);
}

.format-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 13px;
  padding: 9px 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.76rem;
}

.format-row + .format-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.format-row strong {
  color: #fff;
  font-size: 0.78rem;
  text-align: right;
}

.aside-card-lime .aside-card-top {
  color: var(--ink);
}

.status-pip {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(36, 74, 229, 0.15);
}

.status-pip-muted {
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(110, 112, 105, 0.13);
}

.status-pip-error {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(241, 81, 54, 0.14);
}

.aside-card-lime h3 {
  max-width: 14ch;
  margin-top: 35px;
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 0.97;
  overflow-wrap: anywhere;
}

.aside-card-lime p:not(.test-payment p) {
  max-width: 31ch;
  margin-top: 15px;
  color: rgba(32, 34, 31, 0.78);
  font-size: 0.88rem;
  line-height: 1.55;
}

.aside-card-lime > .button {
  margin-top: 23px;
}

.test-payment {
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 34, 31, 0.24);
}

.test-payment > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.test-payment strong {
  font-size: 0.83rem;
}

.test-label {
  color: rgba(32, 34, 31, 0.66);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.test-payment .button {
  width: 100%;
  margin-top: 13px;
}

.test-payment p {
  margin-top: 9px;
  font-size: 0.75rem;
}

.config-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.77rem;
}

.config-status.is-error .status-pip {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(241, 81, 54, 0.14);
}

/* Library */

.library {
  background: var(--paper);
}

.library-heading {
  align-items: center;
}

.library-heading-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.library-heading-action .section-intro {
  max-width: 230px;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: right;
}

.text-link-button {
  padding: 0;
  background: transparent;
  border: 0;
}

.text-link-button:focus-visible {
  outline-color: var(--blue);
}

.library-empty {
  display: grid;
  min-height: 250px;
  margin-top: 54px;
  place-items: center;
  align-content: center;
  padding: 35px;
  text-align: center;
  background: var(--paper-card);
  border: 1px dashed rgba(36, 74, 229, 0.43);
  border-radius: var(--radius);
}

.empty-mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: -0.12em;
  transform: rotate(-8deg);
}

.empty-mark span {
  margin-left: 2px;
  color: var(--orange);
  font-size: 0.82rem;
}

.library-empty h3 {
  margin-top: 20px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1;
}

.library-empty p {
  max-width: 40ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.video-grid:empty {
  display: none;
}

.video-card {
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
}

.video-card-body {
  padding: 20px;
}

.video-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.video-card-meta strong {
  color: var(--blue-dark);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-card h3 {
  margin-top: 14px;
  font-size: 1.35rem;
  line-height: 1;
}

.video-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.video-card-actions {
  margin-top: 18px;
}

.video-download {
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.video-download:hover {
  color: var(--orange-dark);
}

.video-download:focus-visible {
  outline-color: var(--blue);
}

.video-card.is-processing video {
  opacity: 0.45;
}

.video-placeholder {
  display: grid;
  min-height: 198px;
  place-items: center;
  padding: 30px;
  color: var(--ink-soft);
  background: #edf1ff;
  text-align: center;
}

.video-placeholder > div {
  display: grid;
  justify-items: center;
  gap: 14px;
  font-size: 0.82rem;
}

/* FAQ */

.faq {
  background: #f1f4ff;
  border-top: 1px solid rgba(36, 74, 229, 0.12);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.58fr) minmax(0, 1fr);
  gap: clamp(48px, 9vw, 140px);
}

.faq h2 {
  max-width: 9ch;
}

.faq h2 span {
  color: var(--blue);
}

.faq-aside-copy {
  max-width: 28ch;
  margin-top: 25px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  position: relative;
  padding: 22px 45px 22px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 800;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 25px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms var(--ease);
}

.faq details[open] summary::after {
  top: 30px;
  transform: rotate(225deg);
}

.faq details p {
  max-width: 64ch;
  padding: 0 48px 23px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Footer */

.site-footer {
  color: rgba(255, 250, 242, 0.74);
  background: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding-top: 45px;
  padding-bottom: 37px;
}

.footer-main .brand {
  color: #fff;
}

.footer-main .brand-mark {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.footer-main > p {
  color: rgba(255, 250, 242, 0.7);
  font-size: 0.86rem;
  text-align: center;
}

.footer-main nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.footer-main nav a {
  color: rgba(255, 250, 242, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-main nav a:hover,
.footer-main nav a:focus-visible {
  color: var(--orange);
}

.footer-main nav a:focus-visible {
  outline-color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 22px;
  color: rgba(255, 250, 242, 0.45);
  border-top: 1px solid rgba(255, 250, 242, 0.16);
  font-size: 0.71rem;
  letter-spacing: 0.03em;
}

/* Auth dialog */

.auth-dialog {
  width: min(100% - 32px, 530px);
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  overflow: visible;
}

.auth-dialog:not([open]) {
  display: none;
}

.auth-dialog::backdrop {
  background: rgba(23, 50, 158, 0.5);
  backdrop-filter: blur(5px);
}

.dialog-surface {
  position: relative;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: clamp(26px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid rgba(32, 34, 31, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(32, 34, 31, 0.24);
}

.dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-close:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.dialog-close:focus-visible {
  outline-color: var(--orange);
}

.dialog-surface h2 {
  max-width: 9ch;
  font-size: clamp(2.55rem, 6vw, 4.35rem);
}

.dialog-surface h2 span {
  color: var(--orange);
}

.dialog-intro {
  max-width: 38ch;
  margin-top: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.auth-tabs {
  display: flex;
  gap: 25px;
  margin-top: 30px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  position: relative;
  padding: 0 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.88rem;
  font-weight: 800;
}

.auth-tabs button[aria-selected="true"] {
  color: var(--blue-dark);
}

.auth-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  content: "";
}

.auth-form .field-group {
  margin-top: 20px;
}

.auth-form .form-error {
  margin-top: 15px;
}

.auth-form .button {
  margin-top: 22px;
}

.dialog-footnote {
  margin-top: 23px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

/* Toast */

.toast {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100% - 48px));
  padding: 15px 18px;
  color: #fff;
  background: var(--ink);
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(32, 34, 31, 0.22);
  font-size: 0.84rem;
}

/* Responsive */

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
  }

  .hero-art,
  .record-scene {
    min-height: 480px;
  }

  .record-disc {
    right: 10%;
  }

  .studio-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.78fr);
  }
}

@media (max-width: 900px) {
  .section-pad {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art,
  .record-scene {
    min-height: min(68vw, 560px);
  }

  .hero-art {
    width: min(100%, 650px);
  }

  .studio-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .config-status {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(var(--shell), calc(100% - 36px));
  }

  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    width: 100%;
    padding: 15px 18px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(48, 39, 25, 0.08);
  }

  .site-nav.is-open {
    display: grid;
    gap: 0;
  }

  .site-nav a,
  .site-nav .nav-auth {
    width: 100%;
    min-height: 48px;
    align-content: center;
    justify-content: flex-start;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-auth {
    justify-content: center;
    margin-top: 14px;
  }

  .hero {
    padding-top: 70px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(3.05rem, 12.7vw, 5.5rem);
  }

  .hero-lede {
    max-width: 54ch;
    margin-top: 25px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-note {
    margin-top: 33px;
  }

  .hero-art,
  .record-scene {
    min-height: min(83vw, 460px);
  }

  .record-sticker {
    min-width: 106px;
    padding: 12px 13px;
    font-size: 0.7rem;
  }

  .record-caption {
    right: 7%;
    bottom: 6%;
    max-width: 148px;
    padding: 9px 10px;
    font-size: 0.5rem;
  }

  .record-wave {
    left: 7%;
    gap: 8px;
  }

  .record-wave > span {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .record-wave > div {
    padding: 8px 10px;
  }

  .record-wave strong,
  .record-wave small {
    font-size: 0.52rem;
  }

  .split-heading,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  h2 {
    font-size: clamp(2.75rem, 12vw, 4.5rem);
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 42px;
  }

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

  .process-icon {
    margin-top: 32px;
  }

  .studio-layout {
    margin-top: 42px;
  }

  .studio-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .config-status {
    grid-column: auto;
  }

  .library-heading-action {
    justify-content: flex-start;
  }

  .library-heading-action .section-intro {
    max-width: 260px;
    text-align: left;
  }

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

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
  }

  .footer-main > p {
    text-align: left;
  }

  .footer-main nav {
    justify-content: flex-start;
  }
}

@media (max-width: 510px) {
  .hero h1 {
    max-width: 10.5ch;
    font-size: clamp(2.65rem, 13.2vw, 4.25rem);
    letter-spacing: -0.08em;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
    min-height: 42px;
  }

  .hero-art,
  .record-scene {
    min-height: 310px;
  }

  .record-disc {
    top: 17%;
    right: 10%;
    width: 66%;
  }

  .record-sticker {
    top: 12%;
    left: 6%;
  }

  .record-caption {
    top: 8%;
    right: 5%;
    bottom: auto;
  }

  .record-wave {
    bottom: 8%;
    left: 6%;
  }

  .record-wave > div {
    max-width: 128px;
  }

  .generator-form {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .form-two-col,
  .aspect-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-label-row {
    display: block;
  }

  .field-label-row .field-hint {
    display: block;
    margin-top: -3px;
    margin-bottom: 9px;
  }

  .field-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .field-meta span:last-child {
    order: -1;
  }

  .photo-preview {
    grid-template-columns: 55px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .photo-preview img {
    width: 55px;
    height: 55px;
  }

  .aside-card {
    padding: 24px 21px 26px;
  }

  .aside-big {
    font-size: 5.7rem;
  }

  .library-heading-action {
    display: grid;
    justify-content: stretch;
    gap: 12px;
  }

  .library-heading-action .section-intro {
    max-width: none;
  }

  .footer-main nav {
    flex-wrap: wrap;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
