:root {
  --bg: #111111;
  --fg: #eceae6;
  --fg-dim: rgba(236, 234, 230, 0.68);
  --fg-faint: rgba(236, 234, 230, 0.4);
  --line: rgba(255, 255, 255, 0.09);
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 38rem;
  --font: -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue",
    helvetica, Ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

a:hover {
  opacity: 0.75;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 var(--pad) 4rem;
  overflow: visible;
}

.hero-plane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}

.hero-image,
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  background: #1a1612;
}

.hero-image {
  animation: drift 22s ease-in-out infinite alternate;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: soft-light;
  background-color: rgba(16, 12, 10, 0.22);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 90px 90px;
  background-blend-mode: soft-light;
}

.hero-grain::before,
.hero-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: inherit;
}

.hero-grain::before {
  opacity: 0.9;
  mix-blend-mode: overlay;
  background-size: 140px 140px;
}

.hero-grain::after {
  opacity: 0.95;
  mix-blend-mode: multiply;
  background-color: rgba(18, 14, 12, 0.18);
  background-size: 200px 200px;
}

.hero-veil {
  display: none;
}

.os-menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 28px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  user-select: none;
  overflow: hidden;
}

/* Blur layer only — keeps the dropdown free to blur the photo behind it. */
.os-menubar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(28, 28, 30, 0.45);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  pointer-events: none;
}

.os-menubar-left,
.os-menubar-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.os-menubar-right {
  position: relative;
}

.os-app-name {
  font-weight: 700;
}

.os-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 16px;
  color: inherit;
  opacity: 0.95;
  flex-shrink: 0;
}

.os-apple svg {
  display: block;
  overflow: visible;
}

.os-engram-slot {
  position: static;
  display: flex;
  align-items: center;
  height: 28px;
}

.os-engram {
  appearance: none;
  border: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.os-engram svg {
  display: block;
  flex-shrink: 0;
}

.os-engram:hover {
  background: rgba(255, 255, 255, 0.2);
}

.os-engram-slot:not(.is-open) .os-engram {
  background: transparent;
}

.os-engram-slot:not(.is-open) .os-engram:hover {
  background: rgba(255, 255, 255, 0.1);
}

.os-clock {
  font-variant-numeric: tabular-nums;
}

.menu-panel {
  position: fixed;
  top: 34px;
  right: 14px;
  z-index: 40;
  width: 340px;
  max-width: min(340px, calc(100vw - 28px));
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(28, 28, 30, 0.42);
  color: #f5f5f7;
  backdrop-filter: saturate(180%) blur(48px);
  -webkit-backdrop-filter: saturate(180%) blur(48px);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 50px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  line-height: 1.35;
  animation: panel-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
  transform-origin: top right;
}

.menu-panel:not(.is-open) {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--measure);
  margin-right: auto;
  padding-bottom: 0.5rem;
  animation: rise 0.85s ease both;
}

.brand-word {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 14vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #f2f1ee;
}

.lede {
  margin: 0;
  max-width: 22rem;
  color: rgba(242, 241, 238, 0.78);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.hero-list {
  margin: 0.85rem 0 0;
  padding: 0;
  max-width: 28rem;
  list-style: none;
  counter-reset: hero;
  color: rgba(242, 241, 238, 0.95);
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  font-weight: 600;
  line-height: 1.45;
}

.hero-list li {
  position: relative;
  padding-left: 3rem;
  counter-increment: hero;
}

.hero-list li + li {
  margin-top: 0.7rem;
}

.hero-list li::before {
  content: counter(hero, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 2.35rem;
  color: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
}

.hero-explain {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  color: rgba(242, 241, 238, 0.58);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lede.narrow {
  max-width: 26rem;
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--fg);
  color: var(--bg);
}

.btn.primary:hover {
  opacity: 0.9;
}

.section {
  padding: clamp(3.5rem, 10vw, 6rem) var(--pad);
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin: 0;
}

.mp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mp-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mp-status {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.mp-pill {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.mp-last {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mp-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px;
}

.mp-last-meta {
  min-width: 0;
  flex: 1;
}

.mp-caption {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.mp-when {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: #f5f5f7;
}

.mp-sub {
  margin-top: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-box {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.mp-box-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.mp-box-title {
  font-size: 11px;
  font-weight: 600;
  color: #f5f5f7;
}

.mp-box-side {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.mp-box-copy {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}

.mp-finder {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
}

.mp-finder-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
}

.mp-folder {
  flex-shrink: 0;
}

.mp-finder-path {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-row {
  display: flex;
  gap: 8px;
}

.mp-btn {
  appearance: none;
  border: 0;
  margin: 0;
  width: 100%;
  padding: 9px 12px;
  border-radius: 16px;
  font: inherit;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
  cursor: pointer;
  pointer-events: auto;
}

.mp-btn:hover {
  filter: brightness(1.08);
}

.mp-btn:active {
  filter: brightness(0.95);
}

.mp-btn-primary {
  background: #0a84ff;
  color: #fff;
  font-weight: 600;
}

.mp-finder-btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.mp-text-btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
}

.mp-text-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.mp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.mp-footer-links {
  letter-spacing: 0.01em;
}

@keyframes panel-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.07) translate(-0.8%, 0.6%);
  }
}

.prose p {
  margin: 0 0 1.15em;
  color: var(--fg-dim);
  font-size: 1.05rem;
  max-width: var(--measure);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .note {
  margin-top: 2rem;
  padding-top: 0;
  font-size: 0.95rem;
  color: var(--fg-faint);
}

.studio-photos {
  margin: 1.75rem 0 0.85rem;
  padding: 0;
  display: block;
  max-width: 40rem;
}

.studio-photos img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  background: #1a1a1a;
}

.studio-place {
  margin: 0 0 1.35rem;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--fg-dim);
}

.prose a {
  color: var(--fg);
}

.prose abbr {
  text-decoration: underline dotted;
  text-decoration-color: color-mix(in srgb, var(--fg) 45%, transparent);
  text-underline-offset: 0.15em;
  cursor: help;
}

.download {
  max-width: calc(var(--measure) + 2 * var(--pad));
}

.download-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.download-redownload {
  margin: 1rem 0 0;
  max-width: 26rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--fg-faint);
}

.download-redownload a {
  color: var(--fg-dim);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.download-redownload a:hover {
  color: var(--fg);
}

.fineprint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--fg-faint);
}

.fineprint a {
  color: var(--fg-dim);
}

.site-footer {
  padding: 2rem var(--pad) 3rem;
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin: 0;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.footer-note {
  color: var(--fg-faint) !important;
  font-size: 0.78rem !important;
}

.doc-page {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(180, 160, 130, 0.08), transparent 55%),
    var(--bg);
}

.doc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--pad) 0;
  max-width: calc(var(--measure) + 2 * var(--pad));
}

.doc-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.doc-back {
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.doc {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.doc-updated {
  margin: -0.35rem 0 1.75rem !important;
  font-size: 0.9rem !important;
  color: var(--fg-faint) !important;
}

.prose h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.quotes {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  justify-content: stretch;
}

.quote-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 1.35rem;
  background: color-mix(in srgb, var(--fg) 7%, #0c0c0c);
  border: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  padding: clamp(1.75rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.quote-mark {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 14vw, 8.5rem);
  line-height: 0.65;
  color: color-mix(in srgb, var(--fg) 28%, transparent);
  pointer-events: none;
  user-select: none;
  margin-bottom: -0.15rem;
}

.quote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  flex: 1;
  min-height: 0;
  width: 100%;
  align-content: start;
}

.quote-list > li {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem);
  filter: blur(4px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1s;
  pointer-events: none;
}

.quote-list > li.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.quote-list > li.is-leaving {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.85rem);
  filter: blur(3px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .quote-list > li {
    transition: none;
    filter: none;
    transform: none;
  }
}

.quote-list blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.quote-list blockquote::before,
.quote-list blockquote::after {
  content: none;
}

.quote-list p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--fg-dim);
  max-width: 28ch;
}

.quote-progress {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0;
  width: 100%;
  padding: 0;
  flex-shrink: 0;
}

.quote-progress-btn {
  appearance: none;
  margin: 0;
  padding: 0.65rem 0.2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  min-height: auto;
  display: inline-flex;
  align-items: center;
}

.quote-progress-track {
  display: block;
  width: 1.15rem;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 16%, transparent);
  overflow: hidden;
  transition: width 0.25s ease, background 0.2s ease;
}

.quote-progress-btn:hover .quote-progress-track,
.quote-progress-btn:focus-visible .quote-progress-track {
  width: 1.35rem;
  background: color-mix(in srgb, var(--fg) 28%, transparent);
}

.quote-progress-btn.is-active .quote-progress-track {
  width: 1.35rem;
  background: color-mix(in srgb, var(--fg) 20%, transparent);
}

.quote-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--fg);
  border-radius: inherit;
}

.quote-progress-btn.is-active .quote-progress-fill {
  animation: quote-progress-fill var(--quote-hold, 4.8s) linear forwards;
}

.quote-progress-btn.is-active.is-paused .quote-progress-fill {
  animation-play-state: paused;
}

@keyframes quote-progress-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .quote-progress-btn.is-active .quote-progress-fill {
    animation: none;
    transform: scaleX(1);
  }
}

.buy-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.buy-overlay[hidden] {
  display: none;
}

.buy-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.buy-card {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 18px;
  background: rgba(36, 36, 38, 0.82);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.4),
    0 28px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  color: var(--fg);
  outline: none;
  animation: tl-rise-placed 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.buy-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.buy-close:hover {
  color: #fff;
}

.buy-icon,
.download-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 1rem;
  border-radius: 18px;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.4);
}

.buy-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

.buy-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.buy-copy {
  margin: 0 0 1rem;
  color: var(--fg-dim);
  font-size: 0.98rem;
  line-height: 1.5;
}

.buy-ways {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.25rem;
}

.buy-way {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.buy-way-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.buy-way-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.buy-way-copy span {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--fg-faint);
}

.buy-way .btn {
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.buy-redownload {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.buy-redownload-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.buy-redownload-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.buy-redownload-copy span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--fg-faint);
}

.buy-redownload .btn {
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.buy-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--fg-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.buy-steps li + li {
  margin-top: 0.35rem;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.ghost:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.buy-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--fg-faint);
}

.buy-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.buy-note a:hover {
  color: var(--fg-dim);
}

body.buy-open {
  overflow: hidden;
}

body.tl-open {
  /* keep page scrollable behind the floating window */
}

.tl-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.tl-layer[hidden] {
  display: none;
}

.tl-window {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  z-index: 41;
  width: min(920px, calc(100vw - 48px));
  height: min(620px, calc(100svh - 64px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #1e1e1e;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 80px rgba(0, 0, 0, 0.55);
  outline: none;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.tl-window.is-placed {
  transform: none;
  animation: none;
}

.tl-window.is-opening {
  animation: tl-rise-placed 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tl-window.is-dragging {
  animation: none !important;
  user-select: none;
  cursor: grabbing;
}

.tl-titlebar {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 16px 0 18px;
  background: #1c1c1e;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.tl-window.is-dragging .tl-titlebar {
  cursor: grabbing;
}

.tl-traffic {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 54px;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 0;
  padding: 0;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.tl-dot-close {
  background: #ff5f57;
  cursor: pointer;
}

.tl-dot-min {
  background: #febc2e;
}

.tl-dot-zoom {
  background: #28c840;
}

.tl-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.tl-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.tl-seg-btn {
  appearance: none;
  border: 0;
  margin: 0;
  width: 32px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.tl-seg-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.tl-seg-btn.is-active {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0.5px 1.5px rgba(0, 0, 0, 0.28),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
}

.tl-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  max-width: 440px;
  margin: 0 auto;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.tl-search-placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.32);
}

.tl-actions {
  margin-left: auto;
}

.tl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tl-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #0b0b0c;
  overflow: hidden;
}

.tl-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.tl-edge {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 14%),
    linear-gradient(90deg, transparent 62%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0%, transparent 20%);
  pointer-events: none;
}

.tl-chrome {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 200px;
  pointer-events: none;
}

.tl-meta {
  color: #fff;
  max-width: 28rem;
}

.tl-when {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  line-height: 1.2;
}

.tl-rel {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.tl-ribbon {
  margin-top: 12px;
  width: min(220px, 100%);
  height: 10px;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 1px;
  align-items: center;
}

.tl-ribbon span {
  display: block;
  height: 8px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.1);
}

.tl-ribbon span.has-snaps {
  background: rgba(255, 255, 255, calc(0.25 + 0.65 * var(--t, 0.3)));
}

.tl-ribbon span.is-now {
  height: 10px;
  background: rgba(255, 255, 255, 0.95);
}

.tl-ribbon span.is-now:not(.has-snaps) {
  background: rgba(255, 255, 255, 0.55);
}

.tl-beads {
  position: relative;
  margin-top: 8px;
  width: min(220px, 100%);
  height: 12px;
}

.tl-beads-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.tl-beads-sessions {
  position: absolute;
  inset: 0;
}

.tl-bead {
  position: absolute;
  top: 50%;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  min-width: 6px;
}

.tl-beads-playhead {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 12px;
  margin-top: -6px;
  border-radius: 999px;
  background: #fff;
  left: 0;
  transform: translateX(-50%);
}

.tl-rail {
  position: absolute;
  top: 10px;
  right: 8px;
  bottom: 10px;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.tl-rail-now {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  padding: 6px 14px 8px 0;
}

.tl-rail-pills {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding: 2px 10px 8px 0;
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  cursor: ns-resize;
}

.tl-rail-pills::-webkit-scrollbar {
  display: none;
}

.tl-pill {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
  width: 28px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
  cursor: pointer;
  opacity: 1;
}

.tl-pill-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 18px;
  height: 18px;
}

.tl-pill.is-active {
  width: 36px;
  height: 7px;
  background: #fff;
  opacity: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tl-pill-label {
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.tl-pill.is-gap {
  width: 16px;
  background: rgba(255, 255, 255, 0.28);
}

.tl-day {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  padding: 2px 2px 0 0;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.tl-rail-jump {
  appearance: none;
  width: 28px;
  height: 28px;
  margin: 8px 12px 10px 0;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.tl-rail-jump.is-at-now,
.tl-rail-jump:disabled {
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
  opacity: 0.7;
}

@keyframes tl-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tl-rise {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes tl-rise-placed {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-image,
  .hero-media,
  .hero-copy,
  .menu-panel,
  .tl-window {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .hero-copy {
    max-width: var(--measure);
  }

  .menu-panel {
    width: min(320px, calc(100vw - 24px));
    right: 14px;
    transform-origin: top right;
  }

  .tl-actions {
    display: none;
  }

  .tl-search {
    max-width: none;
  }

  .tl-rail {
    width: 72px;
  }

  .tl-pill-label {
    display: none;
  }

  .tl-chrome {
    right: 90px;
  }

  .tl-when {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .os-hide-sm {
    display: none;
  }

  .hero {
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .os-engram-slot {
    position: static;
  }

  .menu-panel {
    top: 34px;
    right: 12px;
    left: auto;
    width: min(340px, calc(100vw - 24px));
    max-width: none;
    margin: 0;
    transform: none;
    transform-origin: top right;
    animation: panel-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero-copy {
    max-width: var(--measure);
    margin-top: min(520px, 78vh);
  }

  .studio-photos {
    max-width: 28rem;
  }

  .studio-photos img {
    max-height: 18rem;
  }

  .mp-thumb {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .tl-window {
    width: min(100vw - 24px, 920px);
    height: min(720px, calc(100svh - 48px));
  }

  .tl-seg:not(.tl-actions) {
    display: none;
  }

  .tl-rail {
    width: 64px;
  }

  .tl-chrome {
    right: 76px;
  }

  .tl-rel,
  .tl-ribbon,
  .tl-beads {
    margin-left: 0;
  }
}
