:root {
  --bone: #f2efe8;
  --paper: #faf8f3;
  --ink: #151419;
  --muted: #777179;
  --line: rgba(21, 20, 25, 0.13);
  --plum: #654a63;
  --rose: #c9a6b4;
  --signal: #e46a4c;
  --soft-plum: #e3d9e1;
  --radius: 28px;
  --shadow: 0 30px 80px rgba(45, 31, 42, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bone);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
.app { min-height: 100vh; }
.header, main, footer { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.header {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand__mark, .monogram {
  display: grid;
  place-items: center;
  font-family: "Bodoni 72", Didot, Georgia, serif;
  font-style: italic;
}
.brand__mark { width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; font-size: 21px; }
.brand b { display: block; font-size: 14px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.header__right { display: flex; gap: 24px; align-items: center; }
.privacy { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.privacy i, .live-chip i { width: 6px; height: 6px; border-radius: 50%; background: #5c9c78; box-shadow: 0 0 0 5px rgba(92,156,120,.12); }
.text-button { padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer; font-size: 13px; }

.hero {
  min-height: 660px;
  padding: 80px 0 86px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(48px, 8vw, 118px);
  align-items: center;
}
.eyebrow { margin: 0 0 22px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--plum); }
.hero h1, .section-heading h2, .login h1 {
  margin: 0;
  font-family: "Bodoni 72", Didot, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
.hero h1 { font-size: clamp(58px, 6.5vw, 94px); line-height: .9; }
.hero h1 em { color: var(--plum); font-weight: 400; }
.hero__lead { max-width: 510px; margin: 32px 0 30px; color: #5f5a61; font-size: 17px; line-height: 1.65; }
.button {
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button--dark { min-width: 210px; color: var(--bone); background: var(--ink); }
.button--dark:hover { box-shadow: 0 12px 30px rgba(21,20,25,.24); }
.button--accent { color: white; background: var(--plum); }
.button--light { width: 100%; color: var(--ink); background: var(--paper); }
.upload-note { margin: 14px 0 0 17px; color: var(--muted); font-size: 11px; }

.moment-map {
  min-width: 0;
  padding: 20px;
  border-radius: 36px;
  color: var(--bone);
  background: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.moment-map::after {
  content: "";
  position: absolute;
  width: 270px; height: 270px;
  right: -130px; top: -120px;
  border-radius: 50%;
  background: var(--plum);
  filter: blur(65px);
  opacity: .48;
}
.moment-map__top, .moment-map__result { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.moment-map__top { padding: 4px 5px 18px; font-size: 12px; }
.live-chip { display: flex; align-items: center; gap: 8px; color: #aaa4ab; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.filmstrip { height: 245px; display: grid; grid-template-columns: .7fr 1.35fr .82fr 1.2fr .68fr; gap: 8px; position: relative; z-index: 2; }
.frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background-color: #403b42;
  background-image: linear-gradient(150deg, transparent 30%, rgba(255,255,255,.08));
  opacity: .55;
  transform: scale(.92);
  transition: transform .5s ease, opacity .5s ease;
}
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,7,9,.7), transparent 65%); }
.frame--one { background: linear-gradient(145deg, #5d4d55, #252328); }
.frame--two { background: linear-gradient(145deg, #b58e9d, #3e2c3e 75%); }
.frame--three { background: linear-gradient(155deg, #596064, #262327); }
.frame--four { background: linear-gradient(145deg, #b48070, #4d3642 75%); }
.frame--five { background: linear-gradient(150deg, #6b6468, #262327); }
.frame.is-best { opacity: 1; transform: scale(1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.frame span, .frame b { position: absolute; z-index: 2; left: 12px; }
.frame span { top: 12px; font-family: ui-monospace, monospace; font-size: 9px; opacity: .7; }
.frame b { bottom: 13px; font-size: 10px; font-weight: 600; }
.wave { height: 70px; display: flex; align-items: center; gap: 5px; padding: 0 5px; position: relative; z-index: 2; }
.wave span { flex: 1; min-width: 2px; height: var(--h, 20%); border-radius: 99px; background: #777078; animation: breathe 2.4s ease-in-out infinite alternate; }
.wave span:nth-child(3n) { --h: 54%; }
.wave span:nth-child(4n) { --h: 82%; background: var(--rose); }
.wave span:nth-child(5n) { --h: 34%; }
.wave span:nth-child(7n) { --h: 67%; background: var(--signal); }
.wave span:nth-child(2n) { animation-delay: -.8s; }
.moment-map__result { margin-top: 4px; padding: 18px 5px 6px; border-top: 1px solid rgba(255,255,255,.12); }
.moment-map__result small { display: block; color: #979198; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.moment-map__result strong { display: block; margin-top: 6px; font-family: "Bodoni 72", Didot, serif; font-size: 22px; font-weight: 400; }
.reel-stack { width: 75px; height: 54px; position: relative; }
.reel-stack i { position: absolute; width: 31px; height: 50px; right: 0; bottom: 0; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); background: #372e38; transform: rotate(8deg); }
.reel-stack i:nth-child(2) { right: 19px; transform: rotate(0); background: #694e66; }
.reel-stack i:nth-child(3) { right: 38px; transform: rotate(-8deg); background: #b58998; }

.upload-drawer {
  margin: -38px 0 82px;
  padding: 20px 66px 20px 22px;
  min-height: 98px;
  display: grid;
  grid-template-columns: 1fr minmax(250px, 430px);
  align-items: center;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 22px 55px rgba(44,33,43,.09);
  position: relative;
  animation: drawerIn .45s cubic-bezier(.2,.75,.25,1) both;
}
.upload-drawer__file { min-width: 0; display: flex; align-items: center; gap: 15px; }
.upload-drawer__file strong, .upload-drawer__file span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-drawer__file strong { font-size: 14px; }
.upload-drawer__file span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.file-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--soft-plum); }
.file-icon svg { width: 27px; fill: none; stroke: var(--plum); stroke-width: 1.5; }
.upload-drawer__action .button { width: 100%; }
.upload-drawer__close { position: absolute; right: 20px; top: 19px; }
.icon-button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.progress__labels { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 10px; }
.progress__track { height: 6px; overflow: hidden; border-radius: 99px; background: var(--soft-plum); }
.progress__track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--plum); transition: width .3s ease; }

.process, .library { padding: 100px 0; border-top: 1px solid var(--line); }
.section-heading h2 { font-size: clamp(42px, 5vw, 68px); line-height: .95; }
.section-heading--row { display: flex; justify-content: space-between; align-items: end; }
.process__line { list-style: none; margin: 66px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.process__line li { min-height: 150px; padding: 0 30px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.process__line li:first-child { padding-left: 0; border-left: 0; }
.process__line span { font-family: ui-monospace, "SFMono-Regular", monospace; color: var(--plum); font-size: 11px; }
.process__line b, .process__line small { display: block; }
.process__line b { font-size: 16px; }
.process__line small { margin-top: 8px; max-width: 190px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty { margin-top: 55px; min-height: 300px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(250,248,243,.48); }
.empty__orbit { width: 68px; height: 68px; margin-bottom: 22px; display: grid; place-items: center; border: 1px solid var(--rose); border-radius: 50%; animation: orbit 8s linear infinite; }
.empty__orbit::after { content: ""; width: 25px; height: 35px; border: 1px solid var(--plum); border-radius: 7px; transform: rotate(8deg); }
.empty__orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); transform: translate(33px); }
.empty h3 { margin: 0; font-family: "Bodoni 72", Didot, serif; font-size: 26px; font-weight: 400; }
.empty p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.jobs { margin-top: 42px; display: grid; gap: 12px; }
.job { min-height: 96px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.job__title { min-width: 0; }
.job__title b, .job__title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job__title b { font-size: 14px; }
.job__title small { margin-top: 7px; color: var(--muted); font-size: 11px; }
.job__status { padding: 8px 12px; border-radius: 99px; background: var(--soft-plum); color: var(--plum); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.job__status--failed { color: #91432f; background: #f3d9d2; }
.job__status--ready { color: #3e7454; background: #dceadf; }
footer { height: 100px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; display: flex; align-items: center; justify-content: space-between; }

.login { min-height: 100vh; padding: 32px; display: grid; place-items: center; overflow: hidden; color: var(--bone); background: var(--ink); position: relative; }
.login::before { content: ""; position: absolute; width: min(70vw, 900px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(101,74,99,.55), transparent 66%); filter: blur(10px); }
.login__film { position: absolute; inset: 0; display: flex; gap: 10px; transform: rotate(-9deg) scale(1.15); opacity: .28; }
.login__film span { flex: 1; border-left: 1px solid #827680; border-right: 1px solid #827680; background: linear-gradient(120deg, transparent, rgba(201,166,180,.12), transparent); }
.login__card { width: min(430px, 100%); padding: 42px; border: 1px solid rgba(255,255,255,.15); border-radius: 32px; background: rgba(24,22,27,.78); backdrop-filter: blur(20px); box-shadow: 0 40px 100px rgba(0,0,0,.35); position: relative; z-index: 2; animation: loginIn .8s cubic-bezier(.2,.75,.25,1) both; }
.monogram { width: 48px; height: 48px; margin-bottom: 42px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; font-size: 27px; }
.login h1 { font-size: 48px; line-height: .95; }
.login__copy { margin: 19px 0 35px; color: #aaa4aa; font-size: 13px; line-height: 1.6; }
.login label:not(.button) { display: block; margin: 0 0 9px 3px; color: #aaa4aa; font-size: 11px; }
.password-field { height: 55px; margin-bottom: 8px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; }
.password-field:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201,166,180,.12); }
.password-field input { width: 100%; height: 100%; padding: 0 18px; border: 0; outline: 0; color: white; background: transparent; }
.password-field svg { width: 20px; fill: none; stroke: #aaa4aa; stroke-width: 1.4; }
.form-error { min-height: 20px; margin: 4px 2px 9px; color: #e5a190; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; padding: 13px 18px; border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; transform: translate(-50%, 120px); opacity: 0; transition: .35s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.reveal { animation: reveal .8s cubic-bezier(.2,.75,.25,1) both; }
.moment-map.reveal { animation-delay: .14s; }
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } }
@keyframes loginIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-14px); } }
@keyframes breathe { to { height: calc(var(--h, 20%) * .65); opacity: .72; } }
@keyframes orbit { to { transform: rotate(360deg); } }

:focus-visible { outline: 3px solid rgba(228,106,76,.55); outline-offset: 3px; }

@media (max-width: 850px) {
  .header, main, footer { width: min(100% - 36px, 680px); }
  .header { height: 82px; }
  .privacy { display: none; }
  .hero { min-height: 0; padding: 62px 0 70px; grid-template-columns: 1fr; gap: 58px; }
  .hero h1 { font-size: clamp(54px, 14.5vw, 78px); }
  .hero__lead { font-size: 15px; }
  .moment-map { padding: 15px; border-radius: 27px; }
  .filmstrip { height: 200px; }
  .frame { border-radius: 13px; }
  .frame--one, .frame--five { display: none; }
  .filmstrip { grid-template-columns: 1.1fr .7fr 1fr; }
  .upload-drawer { margin: -25px 0 70px; padding: 18px; grid-template-columns: 1fr; gap: 18px; }
  .upload-drawer__close { right: 10px; top: 9px; }
  .upload-drawer__file { padding-right: 28px; }
  .process, .library { padding: 74px 0; }
  .process__line { margin-top: 44px; grid-template-columns: 1fr 1fr; gap: 38px 0; }
  .process__line li:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 520px) {
  .header__right { gap: 14px; }
  .brand small { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 53px; }
  .hero__lead { margin-top: 24px; }
  .button--dark { width: 100%; }
  .upload-note { text-align: center; margin-left: 0; }
  .wave { height: 54px; }
  .moment-map__result strong { font-size: 19px; }
  .process__line { grid-template-columns: 1fr; gap: 0; }
  .process__line li, .process__line li:nth-child(3) { min-height: 110px; padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; justify-content: flex-start; gap: 25px; }
  .process__line li:first-child { border-top: 0; }
  .section-heading h2 { font-size: 43px; }
  .login { padding: 18px; }
  .login__card { padding: 30px 24px; border-radius: 25px; }
  .login h1 { font-size: 42px; }
  .monogram { margin-bottom: 32px; }
  .empty { min-height: 250px; padding: 25px; }
  footer { height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

