:root {
  color-scheme: light;

  --bg: #f6f8fc;
  --surface: #fbfcff;
  --surface-soft: #eef3f9;
  --surface-dark: #191919;

  --text: #22292d;
  --text-soft: #667176;
  --text-faint: #8a9498;

  --line: #dbe3ee;
  --line-strong: #c9d5e3;

  --accent: #3674bb;
  --accent-hover: #2e639f;
  --accent-light: #7cacff;
  --accent-soft: #edf4ff;

  --danger: #aa343d;
  --danger-soft: #fff0f1;

  --shadow-soft: 0 12px 32px rgba(31, 44, 49, 0.07);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shell: 1160px;
  --content-width: 820px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height, 112px) + 16px);
}

::selection {
  background: rgba(124, 172, 255, 0.32);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

main:focus {
  outline: none;
}

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

main .shell {
  width: min(var(--content-width), calc(100% - clamp(32px, 6vw, 48px)));
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid rgba(124, 172, 255, 0.48);
  outline-offset: 3px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 255, 0.96);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand small {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-soft);
  font-size: 12px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

/* Language rail */

.language-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 92px;
  width: 92px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
}

.language-switch::before {
  content: "";
  position: absolute;
  inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--accent);
  transition: transform 160ms ease;
}

.language-switch[data-active-language="en"]::before {
  transform: translateX(100%);
}

.language-switch button {
  position: relative;
  z-index: 1;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .language-switch::before { transition: none; }
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

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

.button:active {
  transform: none;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent-light);
}

.button-large {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 13px;
}

.button-block {
  width: 100%;
}

.header-action {
  min-height: 40px;
}

/* Typography */

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1,
.story-copy h2,
.closing-inner h2,
.utility-aside h2,
.panel h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 650;
  line-height: 1.16;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.lead,
.page-intro > p:last-child,
.story-copy > p:not(.eyebrow),
.utility-aside > p,
.form-heading > p:not(.eyebrow) {
  color: var(--text-soft);
  line-height: 1.9;
}

.lead {
  max-width: 600px;
  margin: 26px 0 0;
  font-size: 15px;
}

/* Homepage hero */

.hero {
  padding-block: clamp(72px, 9vw, 118px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.meta-line {
  margin: 18px 0 0;
  color: var(--text-faint);
  font-size: 11px;
}

/* Reusable media shell */

.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 256 / 141;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.media-frame img,
.media-frame video,
.media-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame video {
  display: block;
  object-fit: contain;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #282828, #191919);
  background-size: 28px 28px, 28px 28px, auto;
}

.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.media-placeholder span {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.36);
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.13em;
}

/* Story sections */

.story-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.story-stack {
  padding-block: 8px;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  min-height: 0;
  padding-block: clamp(72px, 8vw, 108px);
}

.story-row + .story-row {
  border-top: 1px solid var(--line);
}

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

.story-copy h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 650;
  line-height: 1.2;
}

.story-copy > p:not(.eyebrow) {
  margin: 18px 0 0;
  font-size: 14px;
}

.story-media {
  min-width: 0;
}

/* Closing CTA */

.closing-section {
  background: var(--accent-soft);
}

.closing-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-block: 64px;
}

.closing-inner h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 650;
}

.closing-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.85;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.text-link {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Subpages */

.subpage-main {
  min-height: 68vh;
}

.page-intro {
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: clamp(54px, 6vw, 76px);
}

.page-intro h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 650;
  line-height: 1.3;
}

.page-intro > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 14px;
}

.support-tip-section {
  padding-bottom: 48px;
}

.support-tip-panel {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 42px);
}

.support-tip-panel h2 {
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 650;
}

.support-tip-panel > p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 16px;
  font-size: 13px;
}

.support-tip-note,
.support-payment-status,
.support-tip-legal {
  color: var(--text-soft);
}

.support-tip-panel > .button {
  margin-top: 16px;
}

.support-tip-panel .support-tip-legal {
  margin-top: 22px;
  font-size: 12px;
}

.utility-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: clamp(90px, 10vw, 132px);
}

.utility-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.utility-aside {
  min-width: 0;
  padding-top: 0;
}

.utility-aside h2 {
  font-size: 28px;
  font-weight: 650;
}

.utility-aside > p {
  margin: 16px 0 0;
  font-size: 13px;
}

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

.info-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
}

.panel {
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.form-heading {
  margin-bottom: 30px;
}

.form-heading h2,
.download-panel h2 {
  font-size: 26px;
  font-weight: 650;
}

.form-heading > p:not(.eyebrow) {
  margin: 10px 0 0;
  font-size: 13px;
}

.form-fields {
  min-width: 0;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-fields:disabled {
  opacity: 0.72;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.required-label,
.optional-label {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 650;
}

.required-label {
  color: var(--accent);
}

.optional-label {
  color: var(--text-faint);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 150px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.65;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aeb9bd;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 172, 255, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: #a0a8ab;
}

.field-help {
  margin: 0;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.65;
}

.field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

#description-count {
  flex-shrink: 0;
  white-space: nowrap;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-message {
  min-height: 18px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.form-message.error {
  padding: 11px 12px;
  border: 1px solid #efcbd0;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
}

.success-panel {
  display: grid;
  gap: 14px;
}

.success-panel h2,
.success-panel p {
  margin: 0;
}

.success-panel p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

.success-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.panel-secondary-link {
  display: block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 11px;
}

.panel-secondary-link:hover {
  color: var(--accent);
}

.app-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.app-summary .eyebrow {
  margin-bottom: 5px;
}

.app-summary h2 {
  margin: 0;
}

.app-summary span {
  display: block;
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 11px;
}

.download-status {
  margin: 28px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

.download-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px 48px;
  padding-block: 48px 26px;
}

.footer-brand-block {
  display: grid;
  gap: 7px;
}

.footer-brand {
  width: max-content;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.footer-brand-block span {
  color: var(--text-faint);
  font-size: 10px;
}

.footer-links {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  color: var(--text-soft);
  font-size: 10px;
}

.footer-secondary-nav {
  color: var(--text-faint) !important;
}

.footer-links nav a:hover {
  color: var(--accent);
}

.footer-inner small {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 9px;
}


/* Legal utility pages */

.legal-main {
  min-height: 68vh;
}

.legal-intro {
  padding-bottom: 42px;
}

.legal-intro,
.legal-content {
  max-width: var(--content-width);
}

.legal-content {
  padding-bottom: clamp(90px, 10vw, 132px);
}

.legal-meta {
  margin-bottom: 38px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 10px;
}

.legal-content section + section {
  margin-top: 40px;
}

.legal-content h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.9;
}

.legal-content p {
  margin: 0;
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Commercial disclosure */

.commerce-details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.commerce-details > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
}

.commerce-details dt {
  font-weight: 600;
}

.commerce-details dd {
  margin: 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

/* Responsive */

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding-block: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px 16px;
  }

  .brand {
    margin-right: auto;
  }

  .header-action {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    grid-column: 1;
    min-width: 0;
    width: auto;
    gap: 12px;
    font-size: 11px;
    flex-wrap: wrap;
    row-gap: 0;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .language-switch {
    order: 4;
    grid-column: 2;
    margin-left: auto;
  }

  .site-nav a {
    min-height: 38px;
    white-space: nowrap;
  }

}

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

  .hero {
    padding-block: 64px 76px;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .story-stack {
    padding: 0;
  }

  .page-intro {
    padding-top: 64px;
    padding-bottom: 44px;
  }

  .utility-section {
    padding-bottom: 84px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 38px;
  }

  .footer-links {
    justify-items: start;
  }

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

  .footer-inner small {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .hero-actions,
  .closing-actions {
    width: 100%;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .field-meta {
    display: grid;
    gap: 4px;
  }

  .panel-links {
    display: grid;
  }

  .footer-inner nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
  }
}

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

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

/* Final content refinements */
.hero { padding-block: clamp(64px, 8vw, 100px); }
.hero-grid { gap: clamp(24px, 4vw, 40px); }
.lead { line-height: 1.85; }
.story-row { padding-block: clamp(64px, 7vw, 92px); }
.download-note { margin: 16px 0 0; color: var(--text-soft); font-size: 12px; line-height: 1.75; }
@media (max-width: 720px) { .hero { padding-block: 48px 64px; } .story-row { min-height: 0; } }

/* Release refinements: readable text and room for the actual product demos. */
.site-nav { font-size: 13px; }
.button { font-size: 13px; }
.button-large { font-size: 14px; }
.eyebrow { font-size: 11px; }
.lead { font-size: 16px; }
.meta-line { font-size: 12px; }
.story-copy > p:not(.eyebrow) { font-size: 16px; }
.closing-copy { font-size: 15px; }
.text-link { font-size: 13px; }
.page-intro > p:last-child { font-size: 15px; }
.utility-aside > p { font-size: 14px; }
.info-list li { font-size: 13px; }
.form-heading > p:not(.eyebrow) { font-size: 14px; }
.footer-brand-block span { font-size: 11px; }
.footer-links nav { font-size: 12px; }
.footer-inner small { font-size: 11px; }

/* Large recordings blend into the page beneath the explanation. */
main .hero,
.story-section .shell { width: min(1600px, 100%); }
.hero { padding-block: 24px 48px; }
.story-section { border: 0; background: var(--bg); }
.story-stack { padding: 0; }
.media-scene {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  position: relative;
  isolation: isolate;
  align-items: center;
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  gap: 28px;
  text-align: center;
}
.hero-copy {
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
  padding-top: clamp(32px, 5vw, 72px);
}
.story-row { padding-block: 48px; }
.story-row + .story-row { border: 0; }
.media-scene .story-media,
.media-scene .media-frame-hero {
  grid-area: 1 / 2 / 2 / -1;
  min-width: 0;
}
.media-scene .media-frame {
  mask-image: linear-gradient(to right, transparent 26%, rgba(0, 0, 0, 0.12) 28%, #000 36%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.media-scene .hero-copy,
.media-scene .story-copy {
  grid-area: 1 / 1 / 2 / 5;
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: none;
  padding: 40px 12px 56px clamp(24px, 4vw, 64px);
}
.hero h1 { font-size: clamp(42px, 5.2vw, 76px); }
.media-frame-hero {
  width: min(1320px, 100%);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
  mask-composite: intersect;
}
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.hero-actions { justify-content: center; margin-top: 26px; }
.story-copy h2 { font-size: clamp(38px, 4.2vw, 64px); }
.story-row:nth-child(even) .story-media { grid-column: 1 / 12; }
.story-row:nth-child(even) .story-copy {
  grid-column: 9 / -1;
  padding-inline: 12px clamp(24px, 4vw, 64px);
}
.story-row:nth-child(even) .media-frame {
  mask-image: linear-gradient(to left, transparent 26%, rgba(0, 0, 0, 0.12) 28%, #000 36%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.story-row-lightweight video {
  transform: scale(1.35);
  transform-origin: left top;
}
.story-row-lightweight .media-frame {
  mask-image: linear-gradient(to right, transparent 26%, rgba(0, 0, 0, 0.12) 28%, #000 32%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.story-row.story-row-flexibility .story-media { grid-column: 2 / -1; }
.story-row.story-row-flexibility .story-copy {
  grid-column: 1 / 5;
  padding-inline: clamp(24px, 4vw, 64px) 12px;
}
.story-row.story-row-flexibility .media-frame {
  mask-image: linear-gradient(to right, transparent 26%, rgba(0, 0, 0, 0.12) 28%, #000 32%, #000 98%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.story-row .media-frame video:fullscreen,
.story-row .media-frame video:-webkit-full-screen {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  transform: none;
}
.video-toggle,
.video-expand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 20px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.video-toggle::before { content: "▶"; font-size: 10px; }
.video-toggle[data-playing="true"]::before { content: "Ⅱ"; }
.video-expand { margin-left: 20px; }
.video-expand::after { content: "↗"; }
.video-toggle:hover,
.video-expand:hover { color: var(--accent); }
.video-toggle:focus-visible,
.video-expand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* The download card comes before the installation instructions. */
.download-layout .utility-stack { order: 1; }
.download-layout .utility-aside { order: 2; }
.download-layout .aside-heading {
  margin: 30px 0 4px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.download-layout .install-steps {
  margin: 20px 0 0;
  padding-left: 1.5rem;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
}
.download-layout .install-steps li { padding: 5px 0; }
.download-layout .utility-aside .text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#download-version { font-size: 12px; }
@media (min-width: 900px) {
  main .download-layout {
    width: min(1040px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(36px, 5vw, 70px);
  }
}
@media (max-width: 900px) {
  .hero { padding-block: 24px 40px; }
  .media-scene { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .story-row { padding-block: 32px; }
  .media-scene .story-media,
  .media-scene .media-frame-hero,
  .story-row:nth-child(even) .story-media,
  .story-row.story-row-flexibility .story-media { grid-area: 1 / 1; }
  .media-scene .media-frame,
  .story-row:nth-child(even) .media-frame {
    mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 48%, transparent 74%);
    mask-composite: add;
  }
  .story-row.story-row-flexibility .media-frame {
    mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 67%, transparent 95%);
    mask-composite: add;
  }
  .media-scene .hero-copy,
  .media-scene .story-copy,
  .story-row:nth-child(even) .story-copy,
  .story-row.story-row-flexibility .story-copy {
    grid-area: 1 / 1;
    margin-top: 38%;
    padding: 0 clamp(24px, 6vw, 48px) 24px;
    max-width: 680px;
  }
  .story-row.story-row-flexibility .story-copy { margin-top: 52%; }
  .story-row-intuitive .media-frame {
    mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 67%, transparent 95%);
  }
  .story-row-intuitive .story-copy { margin-top: 52%; }
  .hero-copy { padding-top: 20px; }
  .hero h1 { font-size: clamp(38px, 7.5vw, 58px); }
  .story-copy h2 { font-size: clamp(36px, 6vw, 48px); }
}
@media (max-width: 600px) {
  .hero { padding-block: 16px 40px; }
  .hero-grid { gap: 16px; }
  .hero-copy { width: calc(100% - 40px); padding-top: 16px; }
  .hero .lead { font-size: 15px; line-height: 1.8; }
  .story-row {
    --mobile-video-width: 190%;
    --mobile-video-left: -47.5%;
    --mobile-video-top: 0px;
    --mobile-copy-top: calc(85vw + 24px);
    padding-block: 24px;
  }
  .story-row-lightweight {
    --mobile-video-width: 220%;
    --mobile-video-left: -48%;
    --mobile-copy-top: calc(70vw + 24px);
  }
  .story-row-flexibility {
    --mobile-video-width: 145%;
    --mobile-video-left: -45%;
    --mobile-video-top: 32px;
    --mobile-copy-top: calc(65vw + 48px);
  }
  .story-row-intuitive {
    --mobile-video-top: -12vw;
  }
  .story-row .story-media,
  .story-row.story-row-flexibility .story-media {
    align-self: stretch;
    min-height: 0;
  }
  .story-row .media-frame,
  .story-row.story-row-flexibility .media-frame {
    height: 100%;
    aspect-ratio: auto;
    mask-image: linear-gradient(to bottom, transparent, #000 32px, #000 calc(var(--mobile-copy-top) - 100px), rgba(0, 0, 0, 0.12) calc(var(--mobile-copy-top) - 12px), transparent calc(var(--mobile-copy-top) + 120px));
    mask-composite: add;
  }
  .story-row-intuitive .media-frame {
    mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(var(--mobile-copy-top) - 56px), rgba(0, 0, 0, 0.12) calc(var(--mobile-copy-top) - 12px), transparent calc(var(--mobile-copy-top) + 120px));
  }
  .story-row .media-frame video {
    position: absolute;
    width: var(--mobile-video-width);
    height: auto;
    max-width: none;
    left: var(--mobile-video-left);
    top: var(--mobile-video-top);
    transform: none;
  }
  .story-row .story-copy,
  .story-row.story-row-flexibility .story-copy {
    margin-top: var(--mobile-copy-top);
    padding: 0 24px 36px;
    max-width: none;
  }
}
@media (max-width: 520px) {
  .site-nav { font-size: 11px; gap: 10px; }
}
