/* Focus — main stylesheet */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@property --tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #3f5cff;
}

:root {
  --bg: #07080d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.1);
  --text: #f4f2ee;
  --text-2: rgba(244, 242, 238, 0.68);
  --text-3: rgba(244, 242, 238, 0.42);
  --accent: #ff6b3d;
  --accent-ink: #1c0b04;
  --good: #7be0a8;
  --tint: #3f5cff;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1480px;
  --pad: clamp(20px, 4vw, 72px);
  --header-h: 76px;
  --card-h: clamp(320px, 44vh, 600px);
  --card-w: calc(var(--card-h) * 9 / 16);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: linear(0, 0.055, 0.186, 0.354, 0.527, 0.687, 0.821, 0.926, 1, 1.048, 1.074, 1.083, 1.081, 1.071, 1.057, 1.043, 1.029, 1.017, 1.008, 1.001, 0.997, 0.994, 0.993, 0.993, 0.994, 0.995, 0.996, 0.997, 1);
  --spring-bouncy: linear(0, 0.043, 0.154, 0.309, 0.485, 0.664, 0.83, 0.972, 1.084, 1.164, 1.212, 1.232, 1.229, 1.208, 1.174, 1.134, 1.092, 1.052, 1.017, 0.988, 0.967, 0.953, 0.947, 0.946, 0.949, 0.956, 0.965, 0.975, 0.985, 0.994, 1.001, 1.006, 1.01, 1.012, 1.013, 1.012, 1);
  --spring-snappy: linear(0, 0.09, 0.295, 0.535, 0.756, 0.929, 1.045, 1.107, 1.126, 1.117, 1.092, 1.062, 1.033, 1.011, 0.996, 0.987, 0.984, 0.985, 0.988, 0.992, 0.995, 0.998, 1, 1.002, 1.002, 1.002, 1.002, 1.001, 1);

  interpolate-size: allow-keywords;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

main { overflow-x: clip; } /* wide glows and the carousel must not make the page scroll sideways on phones */
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.i { width: 20px; height: 20px; flex: none; }
.muted { color: var(--text-3); }

/* ---------- ambient background ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.ambient i {
  position: absolute;
  width: 78vmax;
  height: 78vmax;
  border-radius: 50%;
  will-change: transform;
}
.ambient__a {
  left: -22vmax;
  top: -34vmax;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--tint) 46%, transparent), transparent);
  transition: --tint 1.6s ease;
  animation: drift-a 38s ease-in-out infinite alternate;
}
.ambient__b {
  right: -30vmax;
  top: 6vmax;
  background: radial-gradient(closest-side, rgba(52, 30, 170, 0.34), transparent);
  animation: drift-b 46s ease-in-out infinite alternate;
}
.ambient__c {
  left: 14vmax;
  bottom: -46vmax;
  background: radial-gradient(closest-side, rgba(8, 92, 104, 0.3), transparent);
  animation: drift-c 52s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-12vmax, 16vmax, 0) scale(0.92); } }
@keyframes drift-c { to { transform: translate3d(10vmax, -12vmax, 0) scale(1.1); } }

.grain {
  position: fixed;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.055;
  animation: grain 0.9s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-4%, 3%, 0); }
  40% { transform: translate3d(3%, -2%, 0); }
  60% { transform: translate3d(-2%, -4%, 0); }
  80% { transform: translate3d(4%, 2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- type ---------- */

.reel-card__meta,
.rslider__tick,
.duration__len,
.duration__per,
.player__time,
.player__count,
.step__num,
.ostep__num,
.tray__hint,
.mini-read,
.mini-platforms,
#sumLen,
#sumQty { font-family: var(--mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 107, 61, 0.6);
  animation: rec 2.2s ease-out infinite;
}
@keyframes rec {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 61, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(255, 107, 61, 0); }
}

h1 em, h2 em, .final__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(40px, 4.2vw, 84px);
  line-height: 1;
  font-weight: 540;
  letter-spacing: -0.042em;
  margin-top: 18px;
}
h2 em { color: var(--text-2); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 520;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.6s var(--spring), background-color 0.25s, color 0.25s, opacity 0.25s;
}
.btn:active { transform: scale(0.96); }
.btn .i { width: 18px; height: 18px; transition: transform 0.5s var(--spring); }
.btn:hover .i use[href="#i-arrow"] { }
.btn:hover > .i:last-child { transform: translateX(3px); }
.btn--primary { background: var(--text); color: #0b0b0d; }
.btn--primary:hover { background: #fff; }
.btn--ghost { background: var(--surface-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ff7d55; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.btn:focus-visible,
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background: rgba(6, 6, 8, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.site-header__row { display: flex; align-items: center; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.logo__mark { width: 30px; height: 30px; color: var(--text); }
.logo--sm { font-size: 17px; }
.logo--sm .logo__mark { width: 24px; height: 24px; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.order-cta { gap: 10px; }
.order-cta__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 22px;
  text-align: center;
}
.order-cta__badge.is-bump { animation: bump 0.7s var(--spring-bouncy); }
@keyframes bump { from { transform: scale(0.4); } to { transform: scale(1); } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + clamp(20px, 4.5vh, 72px));
  padding-bottom: clamp(24px, 4vh, 48px);
  display: flex;
  flex-direction: column;
}
.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero__title {
  font-size: clamp(52px, 5.4vw, 124px);
  line-height: 0.96;
  font-weight: 560;
  letter-spacing: -0.048em;
  margin-top: 4px;
}
/* "in focus." acts like a lens: brackets acquire, the text racks into focus, then locks */
.focus-word {
  position: relative;
  display: inline-block;
  margin-left: 0.2em;
  cursor: default;
}
.focus-word__text {
  display: inline-block;
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--text) 10%, color-mix(in oklab, var(--tint) 58%, white) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: --tint 1.6s ease;
  animation: rack-focus 1.6s ease-in-out 0.42s both;
}
@keyframes rack-focus {
  0% { opacity: 0; filter: blur(0.16em); }
  16% { opacity: 1; }
  50% { filter: blur(0); }
  66% { filter: blur(0.05em); }
  100% { opacity: 1; filter: blur(0); }
}
.focus-word > .af {
  inset: 0.06em -0.2em -0.04em -0.18em;
  --l: 0.26em;
  --t: 2px;
}
.focus-word.is-hunting > .af { --c: rgba(255, 255, 255, 0.92); transform: scale(1.06); }
.hero__title .w {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(0.22em);
  animation: word-in 1.2s var(--ease-out) forwards;
  animation-delay: calc(140ms + var(--i) * 85ms);
}
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }
.hero__lead { max-width: 620px; font-size: clamp(17px, 1.2vw, 21px); color: var(--text-2); }
.hero__ctas { display: flex; gap: 12px; margin-top: 6px; }
.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-3);
}
.hero__meta b { color: var(--text); font-weight: 560; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.hero__intro > * {
  animation: fade-up 1s var(--ease-out) both;
}
.hero__intro > :nth-child(1) { animation-delay: 0.05s; }
.hero__intro > :nth-child(2) { animation: none; }
.hero__intro > :nth-child(3) { animation-delay: 0.55s; }
.hero__intro > :nth-child(4) { animation-delay: 0.65s; }
.hero__intro > :nth-child(5) { animation-delay: 0.75s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

/* ---------- reel ribbon ---------- */

.ribbon {
  position: relative;
  height: calc(var(--card-h) + 70px);
  margin-top: clamp(12px, 3vh, 40px);
  perspective: 1700px;
  perspective-origin: 50% 35%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  animation: fade-up 1.2s var(--ease-out) 0.5s both;
}
.ribbon.is-dragging,
.ribbon.is-dragging .reel-card { cursor: grabbing; }
/* the stage sits in front of the cards in 3D space, so it must not catch their clicks */
.ribbon__stage { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.reel-card { pointer-events: auto; }

.reel-card {
  position: absolute;
  left: 50%;
  top: 24px;
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.reel-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.reel-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #0d0d10 center / cover no-repeat;
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.75);
}
.reel-card__media video { width: 100%; height: 100%; object-fit: cover; }
.reel-card__meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.55);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.5s var(--spring);
}
.reel-card__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.reel-card.is-focus .reel-card__meta { opacity: 1; transform: none; }

/* autofocus brackets — the brand motif */
.af {
  position: absolute;
  inset: -14px;
  pointer-events: none;
  --c: rgba(255, 255, 255, 0.92);
  --l: 30px;
  --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.3s, transform 0.7s var(--spring), --c 0.3s;
}
.is-focus > .af,
.style-card__media:hover > .af { opacity: 1; transform: scale(1); }
.is-locked > .af { --c: var(--accent); }
@property --c { syntax: "<color>"; inherits: true; initial-value: white; }

.ribbon-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 92px;
  text-align: center;
  transition: opacity 0.35s, filter 0.35s, transform 0.5s var(--spring);
  animation: fade-up 1.2s var(--ease-out) 0.8s both;
}
.ribbon-caption.is-swap { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.ribbon-caption__name { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 1.9vw, 36px); line-height: 1.1; }
.ribbon-caption__summary { max-width: 560px; font-size: 15px; color: var(--text-2); }
.ribbon-caption__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ribbon-caption__hint .i { width: 15px; height: 15px; }

/* ---------- sections ---------- */

.section { position: relative; padding: clamp(84px, 11vh, 150px) 0; }
.section__head { margin-bottom: clamp(44px, 6vh, 76px); }
.section__head--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 48px;
  max-width: none;
}
.section__lead { margin-top: 20px; max-width: 560px; font-size: clamp(17px, 1.1vw, 20px); color: var(--text-2); }
.section__head--split .section__lead { margin-top: 0; }
.section__lead a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- styles grid ---------- */

.style-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 36px);
}
.style-card { display: flex; flex-direction: column; gap: 18px; }
.style-card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 0;
  padding: 0;
  border-radius: 22px;
  background: #0d0d10 center / cover no-repeat;
  cursor: pointer;
  transition: transform 0.8s var(--spring), box-shadow 0.6s;
}
.style-card__media:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -30px color-mix(in oklab, var(--card-tint, #000) 55%, transparent); }
.style-card__clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.style-card__clip video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.style-card__media.is-playing video { opacity: 1; }
.style-card__play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 10, 0.55);
  color: #fff;
  transition: transform 0.6s var(--spring), background 0.3s;
}
.style-card__media:hover .style-card__play { transform: scale(1.12); background: var(--text); color: #0b0b0d; }
.style-card__play .i { width: 18px; height: 18px; margin-left: 2px; }
.style-card__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.6s var(--spring-bouncy);
}
.style-card__badge .i { width: 14px; height: 14px; }
.style-card.is-selected .style-card__badge { opacity: 1; transform: none; }
.style-card__name { font-size: 21px; font-weight: 560; letter-spacing: -0.02em; }
.style-card__summary { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.style-card .tags { margin-top: 14px; }
.style-card__actions { display: flex; gap: 8px; margin-top: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
}

.style-card--own .style-card__media {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  text-align: center;
}
.style-card--own .style-card__media:hover { background: var(--surface-2); box-shadow: none; }
.own-plus {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  transition: transform 0.7s var(--spring);
}
.style-card--own .style-card__media:hover .own-plus { transform: rotate(90deg) scale(1.08); }
.own-plus .i { width: 26px; height: 26px; }
.own-text { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.1; }
.own-sub { font-size: 14px; color: var(--text-2); max-width: 220px; }

/* ---------- process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step {
  position: relative;
  padding: 32px 30px 36px;
  border-radius: 26px;
  background: var(--surface);
}
.step:nth-child(2) { --d: 0.08s; }
.step:nth-child(3) { --d: 0.16s; }
.step:nth-child(4) { --d: 0.24s; }
.step__num { font-size: 14px; font-weight: 560; letter-spacing: 0.06em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.step h3 { margin: 0 0 12px; font-size: 23px; font-weight: 560; letter-spacing: -0.02em; }
.step p { color: var(--text-2); font-size: 15.5px; }

/* small looping UI scenes inside the steps; colour follows the page tint */
.mini {
  --mini: color-mix(in oklab, var(--tint) 58%, white);
  --mini-dim: rgba(255, 255, 255, 0.14);
  position: relative;
  height: 150px;
  margin: 18px 0 26px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  overflow: hidden;
}
.mini *,
.mini-file u::before,
.mini-platforms li::after { animation-play-state: paused; }
.step.is-live .mini *,
.step.is-live .mini-file u::before,
.step.is-live .mini-platforms li::after { animation-play-state: running; }

/* 01: length slider */
.mini--length { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.mini-read { display: flex; align-items: baseline; justify-content: space-between; }
.mini-roll { display: block; height: 1.2em; line-height: 1.2; overflow: hidden; }
.mini-roll > span {
  display: block;
  animation: mini-roll 6s infinite;
  animation-timing-function: var(--spring-snappy);
}
.mini-roll b { display: block; height: 1.2em; font-weight: 500; }
.mini-read__time { font-size: 28px; letter-spacing: -0.02em; }
.mini-read__price { font-size: 15px; color: var(--mini); }
@keyframes mini-roll {
  0%, 24% { transform: translateY(0); }
  32%, 56% { transform: translateY(-1.2em); }
  64%, 88% { transform: translateY(-2.4em); }
  96%, 100% { transform: translateY(0); }
}
.mini-slider { position: relative; height: 4px; margin: 0 9px; border-radius: 2px; background: var(--mini-dim); }
.mini-slider__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--mini);
  transform-origin: 0 50%;
  animation: mini-fill 6s infinite;
  animation-timing-function: var(--spring-snappy);
}
.mini-slider__travel {
  position: absolute;
  inset: 0;
  animation: mini-travel 6s infinite;
  animation-timing-function: var(--spring-snappy);
}
.mini-slider__knob {
  position: absolute;
  left: -9px;
  top: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  animation: mini-stretch 6s infinite;
}
@keyframes mini-fill {
  0%, 24% { transform: scaleX(0.02); }
  32%, 56% { transform: scaleX(0.5); }
  64%, 88% { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0.02); }
}
@keyframes mini-travel {
  0%, 24% { transform: translateX(0); }
  32%, 56% { transform: translateX(50%); }
  64%, 88% { transform: translateX(100%); }
  96%, 100% { transform: translateX(0); }
}
@keyframes mini-stretch {
  0%, 21%, 33%, 53%, 65%, 85%, 97%, 100% { transform: none; }
  26%, 58%, 90% { transform: scale(1.5, 0.84); }
}

/* 02: reference and uploading files */
.mini--upload { display: flex; align-items: center; gap: 16px; }
.mini-ref {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 112px;
  border-radius: 10px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--mini) 55%, transparent), rgba(255, 255, 255, 0.06));
  animation: mini-drop 6s infinite;
  animation-timing-function: var(--spring);
}
.mini-ref i {
  margin-left: 3px;
  border-left: 12px solid rgba(255, 255, 255, 0.92);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
@keyframes mini-drop {
  0% { opacity: 0; transform: translateY(-18px) rotate(-6deg) scale(0.9); }
  12%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(6px); }
}
.mini-files { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 13px; }
.mini-file {
  display: grid;
  grid-template-columns: 20px 1fr 16px;
  align-items: center;
  gap: 9px;
  animation: mini-row 6s calc(var(--n) * 0.4s) infinite backwards;
}
.mini-file > i { height: 20px; border-radius: 6px; background: var(--mini-dim); }
.mini-file span { display: flex; flex-direction: column; gap: 6px; }
.mini-file b { display: block; width: 72%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.mini-file:nth-child(2) b { width: 54%; }
.mini-file:nth-child(3) b { width: 84%; }
.mini-file u { position: relative; display: block; height: 3px; border-radius: 2px; background: var(--mini-dim); overflow: hidden; text-decoration: none; }
.mini-file u::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mini);
  transform-origin: 0 50%;
  animation: mini-progress 6s ease-out calc(var(--n) * 0.4s) infinite backwards;
}
.mini-file em {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mini) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' stroke='%2307080d' stroke-width='3.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
  animation: mini-pop 6s var(--spring-bouncy) calc(var(--n) * 0.4s) infinite backwards;
}
@keyframes mini-row {
  0% { opacity: 0; transform: translateY(8px); }
  8%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes mini-progress {
  0%, 8% { transform: scaleX(0); }
  46%, 100% { transform: scaleX(1); }
}
@keyframes mini-pop {
  0%, 46% { transform: scale(0); }
  54%, 90% { transform: none; }
  100% { transform: scale(0); }
}

/* 03: timeline with a playhead and a cut */
.mini--timeline { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 16px; }
.mini-track { display: flex; gap: 2px; height: 30px; }
.mini-track i { display: block; border-radius: 5px; background: rgba(255, 255, 255, 0.15); }
.mini-track__after {
  flex: 5;
  display: flex;
  gap: 2px;
  margin-left: 2px;
  animation: mini-nudge 6s infinite;
  animation-timing-function: var(--spring-snappy);
}
.mini-track > i:nth-child(2) { background: rgba(255, 255, 255, 0.26); }
@keyframes mini-nudge {
  0%, 38% { transform: none; }
  46%, 92% { transform: translateX(7px); }
  100% { transform: none; }
}
.mini-track--caps { height: 12px; gap: 5px; padding: 0 8% 0 4%; }
.mini-track--caps i { background: var(--mini); border-radius: 3px; opacity: 0.82; }
.mini-track--audio {
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20'%3E%3Cpath fill='%23fff' fill-opacity='.34' d='M0 7h2v6H0zM4 5h2v10H4zM8 3h2v14H8zM12 6h2v8H12zM16 4h2v12H16zM20 1h2v18H20zM24 5h2v10H24zM28 7h2v6H28zM32 6h2v8H32zM36 3h2v14H36zM40 2h2v16H40zM44 5h2v10H44zM48 7h2v6H48zM52 4h2v12H52zM56 1h2v18H56zM60 3h2v14H60zM64 6h2v8H64zM68 7h2v6H68zM72 5h2v10H72zM76 2h2v16H76zM80 4h2v12H80zM84 6h2v8H84zM88 3h2v14H88zM92 7h2v6H92z'/%3E%3C/svg%3E") left center repeat-x;
}
.mini-head {
  position: absolute;
  inset: 12px 16px;
  animation: mini-scan 6s linear infinite;
}
.mini-head i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 1px;
  background: var(--text);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
@keyframes mini-scan {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* 04: exported and ready for every platform */
.mini--post { display: flex; align-items: center; gap: 18px; }
.mini-phone {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 112px;
  border-radius: 12px;
  background: linear-gradient(200deg, color-mix(in oklab, var(--mini) 42%, transparent), rgba(255, 255, 255, 0.05));
  overflow: hidden;
}
.mini-phone__play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%2307080d'/%3E%3C/svg%3E") center / 18px no-repeat;
  animation: mini-beat 6s infinite;
}
@keyframes mini-beat {
  0%, 60%, 100% { transform: none; }
  66% { transform: scale(1.14); }
  72% { transform: none; }
}
.mini-phone__bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 9px;
  height: 3px;
  border-radius: 2px;
  background: var(--mini);
  transform-origin: 0 50%;
  animation: mini-export 6s infinite;
}
@keyframes mini-export {
  0% { transform: scaleX(0); }
  40%, 92% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
.mini-platforms { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; color: var(--text-2); }
.mini-platforms li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-platforms li::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mini) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' stroke='%2307080d' stroke-width='3.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  animation: mini-check 6s var(--spring-bouncy) calc(var(--n) * 0.32s) infinite backwards;
}
@keyframes mini-check {
  0%, 38% { transform: scale(0); }
  48%, 90% { transform: none; }
  100% { transform: scale(0); }
}

/* ---------- motion craft ---------- */

.craft::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto;
  height: 70%;
  z-index: -1;
  background: radial-gradient(50% 50% at 70% 40%, rgba(120, 60, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.motion-grid { columns: 3; column-gap: 20px; }
.motion-tile {
  position: relative;
  break-inside: avoid;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 20px;
  background: #0d0d10 center / cover no-repeat;
  transform: translateZ(0);
}
.motion-tile video { width: 100%; height: auto; transition: transform 1.2s var(--ease-out), opacity 0.4s; }
.motion-tile:hover video { transform: scale(1.035); }
.motion-tile__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.6);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(4px);
  opacity: 0.86;
  transition: transform 0.5s var(--spring), opacity 0.3s;
}
.motion-tile:hover .motion-tile__label { transform: none; opacity: 1; }

/* ---------- order builder ---------- */

.order::before {
  content: "";
  position: absolute;
  inset: 0 -20% auto;
  height: 90%;
  z-index: -1;
  background: radial-gradient(40% 45% at 30% 45%, rgba(255, 107, 61, 0.09), transparent 70%);
  pointer-events: none;
}
.order__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}
.ostep {
  border-radius: 26px;
  background: var(--surface);
  margin-bottom: 14px;
  transition: background-color 0.4s, opacity 0.4s;
}
.ostep.is-active { background: var(--surface-2); }
.ostep.is-locked { opacity: 0.38; }
.ostep__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.ostep.is-locked .ostep__head { cursor: default; }
.ostep.is-active .ostep__head { cursor: default; }
.ostep__num {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 620;
  background: var(--surface-3);
  transition: background-color 0.3s, color 0.3s;
}
.ostep.is-active .ostep__num { background: var(--text); color: #0b0b0d; }
.ostep.is-done:not(.is-active) .ostep__num {
  background: var(--accent);
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' stroke='%231c0b04' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
}
.ostep__title { flex: 1; font-size: 20px; font-weight: 540; letter-spacing: -0.015em; }
.ostep__value { display: none; font-size: 15px; color: var(--text-2); }
.ostep__edit { display: none; font-size: 13px; color: var(--text-3); transition: color 0.2s; }
.ostep.is-done:not(.is-active) .ostep__value,
.ostep.is-done:not(.is-active) .ostep__edit { display: inline; }
.ostep.is-done:not(.is-active) .ostep__head:hover .ostep__edit { color: var(--text); }
.is-sent .ostep__head { cursor: default; }
.is-sent .ostep.is-done .ostep__edit { display: none; }
.ostep__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--ease-out);
}
.ostep.is-active .ostep__body { grid-template-rows: 1fr; }
.ostep__inner { min-height: 0; overflow: hidden; }
.ostep__inner > * { margin-inline: 28px; }
.ostep__inner > :first-child { margin-top: 2px; }
.ostep__lead { color: var(--text-2); font-size: 15.5px; }
.ostep__actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; margin-bottom: 28px; }
.ostep__actions--send { flex-wrap: wrap; }
.fineprint { font-size: 13px; color: var(--text-3); }
.order-error { flex-basis: 100%; font-size: 14.5px; color: var(--accent); }
.order-error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.trap { position: absolute; left: -9999px; }

/* duration */
.duration__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 10px 0 30px; }
.price-roll {
  display: flex;
  height: 1em;
  font-size: clamp(64px, 5vw, 104px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.price-roll__cur { margin-right: 0.04em; color: var(--text-2); }
.price-roll__digit { position: relative; height: 1em; overflow-x: visible; overflow-y: clip; }
.price-roll__strip {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--d, 0) * -1em));
  transition: transform 0.9s var(--spring);
}
.price-roll__strip span { display: block; height: 1em; }
.duration__meta { text-align: right; padding-bottom: 8px; }
.duration__len { display: block; font-size: 30px; font-weight: 560; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.duration__per { font-size: 14px; color: var(--text-3); }
.duration__hint { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.duration__hint a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.slider-label { margin-bottom: 2px; font-size: 14px; color: var(--text-2); }
.rslider + .slider-label { margin-top: 24px; }
.rslider {
  position: relative;
  height: 96px;
  margin: 0 18px;
  outline: none;
  touch-action: pan-y;
  cursor: grab;
}
.rslider.is-dragging { cursor: grabbing; }
.rslider__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
}
.rslider__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 107, 61, 0.25), var(--accent));
}
.rslider__dot {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.rslider__thumb {
  position: absolute;
  left: 0;
  top: 27px;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 18px;
  background: var(--text);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 0 7px rgba(255, 255, 255, 0.07);
  will-change: transform;
}
.rslider__thumb span {
  position: absolute;
  inset: 12px 15px;
  border-left: 2px solid rgba(0, 0, 0, 0.22);
  border-right: 2px solid rgba(0, 0, 0, 0.22);
}
.rslider:not(.is-pointer):focus-visible .rslider__thumb { box-shadow: 0 0 0 3px var(--accent), 0 8px 26px rgba(0, 0, 0, 0.5); }
.rslider__ticks { position: absolute; left: 0; right: 0; top: 54px; height: 40px; }
.rslider__tick {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 8px;
  border: 0;
  background: none;
  transform: translateX(-50%);
  cursor: pointer;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s, transform 0.5s var(--spring);
}
.rslider__tick b { font-size: 15px; font-weight: 560; }
.rslider__tick small { font-size: 12px; }
.rslider__tick:hover { color: var(--text-2); }
.rslider__tick.is-on { color: var(--text); transform: translateX(-50%) translateY(2px) scale(1.08); }

/* reference picker */
.picker { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; margin-bottom: 8px; }
.pick {
  position: relative;
  width: 118px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  transform: translate3d(var(--shift, 0px), var(--lift, 0px), 0) scale(var(--s, 1));
  transition: transform 0.6s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.pick__in { display: block; opacity: 0; }
.picker.is-in .pick__in { animation: pop-in 0.95s var(--spring-bouncy) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(30px) scale(0.78) rotate(-4deg); }
  to { opacity: 1; transform: none; }
}
.pick__img {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #111 center / cover no-repeat;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.4s, filter 0.4s;
}
.pick__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.pick.is-hover .pick__img video.is-on { opacity: 1; }
.pick.is-hover .pick__img { box-shadow: 0 26px 44px -18px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.85); }
.pick__name { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: color 0.2s; }
.pick.is-hover .pick__name { color: var(--text); }
.pick__check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 6, 8, 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}
.pick__check i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  transform: scale(0.4);
  transition: transform 0.6s var(--spring-bouncy);
}
.pick__check .i { width: 20px; height: 20px; }
.pick.is-selected .pick__check { opacity: 1; }
.pick.is-selected .pick__check i { transform: none; }

.tray {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
}
.tray__label { flex-basis: 100%; font-size: 13px; color: var(--text-3); }
.tray__slot {
  position: relative;
  width: 84px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2) center / cover no-repeat;
  color: var(--text-3);
}
.tray__slot--empty .i { width: 18px; height: 18px; opacity: 0.6; }
.tray__slot--ref { color: var(--text); }
.tray__slot--ref::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.75));
}
.tray__slot--link {
  background: var(--surface-3);
  align-content: center;
  gap: 8px;
  padding: 10px 8px;
  text-align: center;
}
.tray__slot--link .i { width: 22px; height: 22px; margin: 0 auto; }
.tray__slot-name {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  padding: 0 7px 8px;
  font-size: 10.5px;
  font-weight: 560;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.tray__slot--link .tray__slot-name { align-self: auto; padding: 0; color: var(--text-2); }
.tray__remove {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.4s var(--spring);
}
.tray__remove .i { width: 13px; height: 13px; }
.tray__slot:hover .tray__remove, .tray__remove:focus-visible { opacity: 1; }
.tray__remove:hover { transform: scale(1.15); }
.tray__slot.is-landing { animation: land 0.75s var(--spring-bouncy); }
@keyframes land { from { transform: scale(0.72); } to { transform: none; } }
.tray__slot.is-leaving { animation: leave 0.3s ease-in forwards; }
@keyframes leave { to { transform: scale(0.6); opacity: 0; } }
.tray__own {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 132px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.tray__own:hover, .tray__own.is-open { background: var(--surface-2); color: var(--text); }
.tray__own span:first-child {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  transition: transform 0.6s var(--spring);
}
.tray__own.is-open span:first-child { transform: rotate(45deg); }
.tray__hint { align-self: center; margin-left: auto; font-size: 13px; color: var(--text-3); }

.own {
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  animation: own-in 0.6s var(--spring);
}
@keyframes own-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* fields */
.field { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.field label { font-size: 14px; color: var(--text-2); }
.field label span { margin-left: 6px; font-size: 12px; color: var(--text-3); }
.field__row { display: flex; gap: 10px; }
.field__row input { flex: 1; min-width: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, textarea:focus { border-color: rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.4); }
input.is-invalid { border-color: rgba(255, 107, 61, 0.7); }
input.is-shake { animation: shake 0.45s; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.filelist li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 11px 12px 11px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 14px;
  animation: pop-in 0.7s var(--spring) both;
}
.filelist li .i { width: 18px; height: 18px; color: var(--text-3); }
.filelist__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist__remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
.filelist__remove:hover { background: var(--surface-3); color: var(--text); }
.filelist__remove .i { width: 14px; height: 14px; }
.filelist li.is-leaving { animation: leave 0.25s ease-in forwards; }

/* review */
.review { display: grid; grid-template-columns: 160px 1fr; gap: 14px 24px; margin-top: 6px; font-size: 15px; }
.review dt { color: var(--text-3); }
.review dd { color: var(--text); overflow-wrap: anywhere; }
.review__refs { display: flex; flex-wrap: wrap; gap: 8px; }
.review__ref { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.review__ref i { width: 18px; height: 32px; border-radius: 5px; background: var(--surface-3) center / cover no-repeat; display: grid; place-items: center; }
.review__ref i .i { width: 12px; height: 12px; }
.done {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 26px;
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(123, 224, 168, 0.08);
  animation: own-in 0.7s var(--spring);
}
.done__icon { width: 26px; height: 26px; color: var(--good); }
.done__title { font-weight: 560; font-size: 17px; }
.done__text { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }

/* summary */
.summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 28px 28px 26px;
  border-radius: 26px;
  background: var(--surface);
}
.summary__title { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.summary__list { margin-top: 14px; }
.summary__list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; font-size: 15px; }
.summary__list dt { color: var(--text-3); }
.summary__list dd { text-align: right; font-variant-numeric: tabular-nums; }
.sum-thumbs { display: inline-flex; align-items: center; }
.sum-thumbs i {
  width: 20px;
  height: 34px;
  margin-left: -6px;
  border-radius: 6px;
  background: var(--surface-3) center / cover no-repeat;
  box-shadow: 0 0 0 2px #121215;
  display: grid;
  place-items: center;
  animation: pop-in 0.6s var(--spring-bouncy) both;
}
.sum-thumbs i .i { width: 12px; height: 12px; }
.sum-thumbs i:first-child { margin-left: 0; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 18px; }
.summary__total span { color: var(--text-2); }
.summary__total b { font-size: 46px; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.summary__incl { margin-top: 20px; }
.summary__incl li { position: relative; padding: 6px 0 6px 28px; font-size: 14px; color: var(--text-2); }
.summary__incl li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' stroke='%23ff6b3d' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.summary.is-pulse { animation: pulse 0.8s var(--spring); }
@keyframes pulse { 40% { transform: scale(1.015); background: var(--surface-2); } }

/* ---------- FAQ ---------- */

.faq__layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.faq__list { --d: 0.1s; }
.faq details { margin-bottom: 10px; border-radius: 20px; background: var(--surface); transition: background-color 0.3s; }
.faq details[open] { background: var(--surface-2); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  list-style: none;
  font-size: 18px;
  font-weight: 520;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.8px 14px no-repeat;
  color: var(--text-2);
  transition: transform 0.6s var(--spring);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.55s var(--ease-out), content-visibility 0.55s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq__a { padding: 0 26px 24px; max-width: 700px; color: var(--text-2); }

/* ---------- final ---------- */

.final::before {
  content: "";
  position: absolute;
  inset: -35% -10% 0;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--tint) 22%, transparent), transparent);
  pointer-events: none;
}
.final__inner { display: flex; flex-direction: column; align-items: center; gap: 34px; text-align: center; }
.final__title { font-size: clamp(56px, 6.6vw, 148px); font-weight: 560; line-height: 0.95; letter-spacing: -0.05em; max-width: 12ch; }
.final__ctas { display: flex; gap: 12px; }
.final__contacts { display: flex; gap: 22px; font-size: 15px; color: var(--text-2); }
.final__contacts a:hover { color: var(--text); }

.site-footer { padding: 34px 0 44px; color: var(--text-3); font-size: 14px; }
.site-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* ---------- player ---------- */

.player { position: fixed; inset: 0; z-index: 100; --fh: min(88vh, 980px); --fw: calc(var(--fh) * 9 / 16); }
.player__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.player.is-open .player__backdrop { opacity: 1; }
.player__frame {
  position: fixed;
  overflow: hidden;
  border-radius: 24px;
  background: #000 center / cover no-repeat;
  box-shadow: 0 50px 140px -30px rgba(0, 0, 0, 0.85);
  transform-origin: 0 0;
  touch-action: none;
}
.player__frame video, .player__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__frame canvas { transition: opacity 0.35s ease; }
.player__frame.is-hd canvas { opacity: 0; }
.player__tap {
  position: absolute;
  inset: 0 0 64px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.player__tap .i {
  width: 84px;
  height: 84px;
  padding: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.5s var(--spring);
}
.player.is-paused .player__tap .i { opacity: 1; transform: none; }
.player__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 48px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.3s;
}
.player__frame:hover .player__bar,
.player.is-paused .player__bar,
.player.show-ui .player__bar { opacity: 1; }
.player__btn {
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.5s var(--spring);
}
.player__btn:hover { background: rgba(255, 255, 255, 0.24); transform: scale(1.08); }
.player__btn .i { width: 18px; height: 18px; }
.player__progress { position: relative; flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.player__rail { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); overflow: hidden; transition: height 0.2s; }
.player__progress:hover .player__rail { height: 6px; }
.player__buffered, .player__played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.player__buffered { background: rgba(255, 255, 255, 0.25); }
.player__played { background: #fff; }
.player__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.4s var(--spring);
}
.player__progress:hover .player__knob, .player__progress.is-scrub .player__knob { transform: scale(1); }
.player__time { min-width: 72px; font-size: 12px; color: rgba(255, 255, 255, 0.86); font-variant-numeric: tabular-nums; text-align: center; }
.player__info {
  position: absolute;
  top: 50%;
  right: calc(50% + var(--fw) / 2 + 64px);
  width: 340px;
  transform: translate(-16px, -50%);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.8s var(--spring);
}
.player.is-open .player__info { opacity: 1; transform: translate(0, -50%); transition-delay: 0.18s; }
.player__name { margin: 12px 0 14px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 60px; line-height: 1; letter-spacing: -0.01em; }
.player__summary { color: var(--text-2); font-size: 16px; }
.player .tags { margin-top: 18px; }
.player__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 30px; }
.player__nav {
  position: absolute;
  top: 50%;
  left: calc(50% + var(--fw) / 2 + 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translate(16px, -50%);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.8s var(--spring);
}
.player.is-open .player__nav { opacity: 1; transform: translate(0, -50%); transition-delay: 0.22s; }
.player__round {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.6s var(--spring);
}
.player__round:hover { background: rgba(255, 255, 255, 0.16); transform: scale(1.08); }
.player__round:active { transform: scale(0.94); }
.player__count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.player__close { position: absolute; top: 28px; right: 32px; opacity: 0; transition: opacity 0.3s, background 0.2s, transform 0.6s var(--spring); }
.player.is-open .player__close { opacity: 1; }

/* ---------- toasts & flying cards ---------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 8px;
  border-radius: 18px;
  background: rgba(22, 22, 26, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  pointer-events: auto;
  animation: toast-in 0.7s var(--spring-bouncy) both;
}
.toast.is-out { animation: toast-out 0.3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(0.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(0.96); } }
.toast__thumb { width: 26px; height: 46px; border-radius: 7px; background: var(--surface-3) center / cover no-repeat; flex: none; }
.toast__text { padding-right: 6px; }
.toast__text:only-child { padding: 6px 12px; }
.toast .btn { height: 36px; padding: 0 14px; font-size: 13px; }

.flyer {
  position: fixed;
  z-index: 160;
  border-radius: 14px;
  background: #111 center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  will-change: transform;
}

/* ---------- touch screens ---------- */

.order-bar { display: none; }
.reel-card video, .style-card video, .pick__img video { pointer-events: none; }
.reel-card { -webkit-touch-callout: none; }

@media (hover: none) {
  .tray__remove, .player__bar { opacity: 1; }
  .style-card__media:hover { transform: none; box-shadow: none; }
  .style-card__media.is-playing > .af { opacity: 1; transform: none; }
}

/* ---------- tablet ---------- */

@media (max-width: 1180px) {
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order__layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .faq__layout { grid-template-columns: 1fr; }

  /* the price stays in sight while the order steps scroll */
  .order-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(20, 20, 25, 0.95);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(calc(100% + 24px));
    transition: transform 0.55s var(--spring);
  }
  .order-bar.is-visible { transform: none; }
  .order-bar__what { font-size: 14px; color: var(--text-2); font-family: var(--mono); }
  .order-bar__total { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

  /* no room beside the video: style info moves under it (targetRect in app.js leaves the space) */
  .player { touch-action: none; }
  .player__info {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(100% - 16px, 520px);
    transform: translate(-50%, 12px);
  }
  .player.is-open .player__info { transform: translate(-50%, 0); }
  .player__info .eyebrow, .player__summary, .player .tags { display: none; }
  .player__name { margin: 0; font-size: 26px; text-align: center; }
  .player__actions { flex-direction: row; margin: 0; }
  .player__actions #pOrder { flex: 1; }
}

/* ---------- phone ---------- */

@media (max-width: 760px) {
  :root {
    --header-h: 62px;
    --card-w: min(58vw, 46vh);
    --card-h: calc(var(--card-w) * 16 / 9);
  }
  .grain { animation: none; }
  .nav { display: none; }
  .site-header__row { gap: 12px; }
  .order-cta { margin-left: auto; }
  .logo { font-size: 19px; }
  .logo__mark { width: 26px; height: 26px; }

  /* first screen: headline, then straight to the reels; buttons follow the carousel */
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 12px); padding-bottom: 0; }
  .hero__intro { display: contents; }
  .hero__intro > .eyebrow { order: 1; align-self: center; font-size: 11.5px; }
  .hero__title { order: 2; margin: 10px var(--pad) 0; text-align: center; font-size: min(14vw, 64px); }
  .focus-word { margin-left: 0; }
  .hero__lead { order: 3; align-self: center; max-width: 36ch; margin: 12px var(--pad) 0; text-align: center; font-size: 15.5px; line-height: 1.45; }
  .ribbon { order: 4; height: calc(var(--card-h) + 52px); margin-top: 6px; }
  .reel-card { top: 18px; }
  .ribbon-caption { order: 5; min-height: 0; padding-inline: var(--pad); }
  .ribbon-caption__summary { font-size: 14.5px; }
  .hero__ctas { order: 6; justify-content: center; margin: 20px var(--pad) 0; }
  .hero__ctas .btn { height: 52px; padding: 0 22px; font-size: 15px; }
  .hero__meta { order: 7; display: block; margin: 14px var(--pad) 0; text-align: center; font-size: 13px; line-height: 1.7; }
  .dot-sep { display: inline-block; margin: 0 5px; vertical-align: middle; }

  .section { padding: 62px 0; }
  .section__head { margin-bottom: 26px; }
  .section__head--split { grid-template-columns: 1fr; gap: 0; }
  .section__head--split .section__lead { margin-top: 14px; }
  .section__lead { margin-top: 12px; font-size: 16px; }
  h2 { margin-top: 12px; font-size: min(10.6vw, 46px); }

  /* styles and motion: swipeable rows instead of very long grids */
  .style-grid, .motion-grid {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--pad) * -1);
    padding: 16px var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
    columns: auto;
  }
  .style-grid::-webkit-scrollbar, .motion-grid::-webkit-scrollbar, .picker::-webkit-scrollbar { display: none; }
  .style-card { flex: 0 0 min(70vw, 300px); scroll-snap-align: center; }
  .style-card[data-reveal], .motion-tile[data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .style-card__media .af { inset: -8px; --l: 22px; }
  .style-card__media:hover > .af { opacity: 0; }
  .style-card__media.is-playing > .af { opacity: 1; transform: none; }
  .style-card__actions .btn { width: 100%; }
  .motion-grid { align-items: center; }
  .motion-tile { flex: 0 0 min(80vw, 340px); margin: 0; scroll-snap-align: center; }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 22px 20px 24px; border-radius: 22px; }
  .step h3 { font-size: 21px; }
  .mini { height: 138px; margin: 14px 0 20px; }

  /* order */
  .ostep { margin-bottom: 10px; border-radius: 20px; }
  .ostep__head { flex-wrap: wrap; gap: 6px 12px; padding: 16px 18px; }
  .ostep__title { flex: 1 1 0; min-width: 0; font-size: 18px; }
  .ostep__value { order: 3; flex: 0 0 100%; padding-left: 44px; font-size: 14px; }
  .ostep__inner > * { margin-inline: 18px; }
  .duration__top { flex-direction: column; align-items: flex-start; gap: 6px; margin: 6px 0 22px; }
  .duration__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 0; text-align: left; }
  .duration__len { font-size: 20px; }
  .duration__per { font-size: 13px; }
  .rslider { margin: 0 14px; }
  .rslider__tick { padding: 2px 3px; }
  .rslider__tick b { font-size: 13px; }
  .rslider__tick small { font-size: 11px; }

  .picker {
    flex-wrap: nowrap;
    gap: 10px;
    margin: 12px 0 4px;
    padding: 14px 18px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .pick { flex: none; width: 104px; scroll-snap-align: center; }
  .tray { gap: 8px; padding: 12px; }
  .tray__slot { width: calc((100% - 16px) / 3); }
  .tray__own { flex-direction: row; width: 100%; padding: 8px; }
  .tray__own span:first-child { width: 32px; height: 32px; }
  .tray__hint { display: none; }
  .own { padding: 14px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .ostep__actions { margin-top: 20px; margin-bottom: 20px; }
  .ostep__actions .btn { width: 100%; }
  .review { grid-template-columns: 1fr; gap: 0; }
  .review dt { margin-top: 12px; font-size: 13px; }
  .review dt:first-child { margin-top: 0; }
  .order { padding-bottom: 96px; }
  .summary { padding: 22px 20px; border-radius: 22px; }

  /* FAQ, final block */
  .faq summary { padding: 18px; font-size: 16px; }
  .faq__a { padding: 0 18px 18px; font-size: 15px; }
  .final__title { font-size: min(14vw, 64px); }
  .final__ctas { flex-direction: column; width: 100%; }
  .final__ctas .btn { width: 100%; }
  .final__contacts { flex-wrap: wrap; justify-content: center; }

  /* player */
  .player__nav { display: none; } /* swipe up or down instead */
  .player__close { top: 12px; right: 12px; width: 44px; height: 44px; background: rgba(0, 0, 0, 0.55); }
  .player__name { font-size: 24px; }
  .player__actions #pRef { width: 48px; flex: none; padding: 0; }
  .player__actions #pRef span { display: none; }

  .toasts { top: calc(var(--header-h) + 8px); bottom: auto; width: calc(100% - 16px); }
  .toast { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .ambient i { animation: none; }
}
