/* ==========================================================================
   Durva — video editor
   One screen. Intro, contact, reels. Nothing else.
   ========================================================================== */

:root {
  --paper: #fbf7ef;
  --paper-2: #fffdf8;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --line: rgba(28, 26, 23, 0.18);
  --accent: #c8431f;
  --accent-bright: #e2603c;
  --butter: #fbeaa5;
  --mint: #cfe8da;
  --lilac: #e6dcf6;

  --font-body: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
  --font-hand: var(--font-body);
  --font-hindi: "Noto Sans Devanagari", "DM Sans", sans-serif;
  --font-mono: var(--font-body);

  --gutter: clamp(22px, 5vw, 64px);
  --gap: clamp(12px, 1.4vw, 18px);
  --card-h: 380px;
  --card-w: calc(var(--card-h) * 0.5625);
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 26, 23, 0.13) 1px, transparent 0);
  background-size: 22px 22px;
}

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

p,
h1,
h2,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--paper-2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
}

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

/* Mint light drifting on the desk. */
.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.blob-1 {
  width: 68vmax;
  height: 68vmax;
  top: -32vmax;
  left: -22vmax;
  background: radial-gradient(circle at 46% 46%, rgba(176, 224, 201, 0.62), rgba(176, 224, 201, 0) 68%);
  animation: drift-a 44s ease-in-out infinite alternate;
}

.blob-2 {
  width: 62vmax;
  height: 62vmax;
  right: -26vmax;
  bottom: -32vmax;
  background: radial-gradient(circle at 50% 50%, rgba(148, 208, 181, 0.5), rgba(148, 208, 181, 0) 70%);
  animation: drift-b 58s ease-in-out infinite alternate;
}

.blob-3 {
  width: 48vmax;
  height: 48vmax;
  top: 40%;
  left: 48%;
  background: radial-gradient(circle at 50% 50%, rgba(206, 238, 222, 0.55), rgba(206, 238, 222, 0) 70%);
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(9%, 7%, 0) scale(1.14);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(2%, 3%, 0) scale(1.06);
  }
  to {
    transform: translate3d(-8%, -8%, 0) scale(1);
  }
}

@keyframes drift-c {
  from {
    transform: translate3d(-5%, 4%, 0) scale(1);
  }
  to {
    transform: translate3d(6%, -6%, 0) scale(1.1);
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* The desk --------------------------------------------------------------- */

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: stretch;
  gap: clamp(26px, 4vw, 64px);
  width: 100%;
  max-width: 1240px;
  height: 100vh;
  height: 100dvh;
  margin-inline: auto;
  padding: clamp(24px, 5vh, 56px) var(--gutter);
  overflow: hidden;
}

/* Intro ------------------------------------------------------------------ */

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding-bottom: clamp(0px, 4vh, 40px);
}

.intro-head {
  display: block;
  margin-bottom: clamp(16px, 3vh, 28px);
}

h1 {
  font-family: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 5.1vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.name-box {
  display: inline-grid;
  grid-template-areas: "name";
  align-items: baseline;
}

.name-box > * {
  grid-area: name;
  white-space: nowrap;
}

.name-sizer {
  visibility: hidden;
  padding-right: 0.12em;
  pointer-events: none;
}

.name-hindi,
.name-typer.is-hindi {
  font-family: var(--font-hindi);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.name-typer {
  display: inline-flex;
  align-items: baseline;
  min-height: 1em;
}

.caret {
  display: inline-block;
  flex: none;
  width: 0.055em;
  height: 0.72em;
  margin-left: 0.05em;
  transform: translateY(0.03em);
  background: var(--accent);
  animation: caret-blink 1.05s step-end infinite;
}

.name-typer.is-typing .caret {
  animation: none;
  opacity: 1;
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.role {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.66rem, 1.3vh, 0.78rem);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.intro-body {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 20px);
}

.note {
  position: relative;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 470px;
  padding: clamp(20px, 3.2vh, 32px) clamp(20px, 2.6vw, 30px) clamp(18px, 2.8vh, 28px);
  --note-rest: -1.1deg;
  --swing: 0deg;
  background: var(--butter);
  border-radius: 2px;
  rotate: calc(var(--note-rest) + var(--swing));
  transform-origin: 50% 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 12px 20px -16px rgba(28, 26, 23, 0.55),
    0 28px 46px -38px rgba(28, 26, 23, 0.6);
  font-size: clamp(0.88rem, 1.55vh, 0.98rem);
  line-height: 1.62;
  transition: rotate 0.6s cubic-bezier(0.18, 1.25, 0.4, 1), box-shadow 0.3s ease;
}

.note:hover {
  --note-rest: -0.2deg;
}

.note,
.snapshot {
  touch-action: none;
  cursor: grab;
}

.note.is-dragging,
.snapshot.is-dragging {
  z-index: 40;
  cursor: grabbing;
  will-change: translate, rotate;
  transition: box-shadow 0.3s ease;
}

.note.is-dragging {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 20px 30px -20px rgba(28, 26, 23, 0.5),
    0 40px 60px -46px rgba(28, 26, 23, 0.7);
}

.note p {
  position: relative;
  z-index: 1;
}

.note p + p {
  margin-top: 10px;
}

.snapshot {
  position: relative;
  flex: none;
  width: clamp(112px, 11.5vw, 148px);
  margin: clamp(4px, 1vh, 10px) 0 0;
  padding: 7px 7px 22px;
  --snapshot-rest: 2.6deg;
  --swing: 0deg;
  background: var(--paper-2);
  border: 1px solid rgba(28, 26, 23, 0.16);
  box-shadow: 0 14px 22px -18px rgba(28, 26, 23, 0.6), 0 2px 6px -4px rgba(28, 26, 23, 0.3);
  rotate: calc(var(--snapshot-rest) + var(--swing));
  transform-origin: 50% 0;
  transition: rotate 0.6s cubic-bezier(0.18, 1.25, 0.4, 1), box-shadow 0.3s ease;
}

.snapshot picture {
  display: block;
}

.snapshot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.snapshot-tape {
  position: absolute;
  z-index: 2;
  top: -9px;
  left: 50%;
  width: 48px;
  height: 17px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, 0.62);
  border-left: 1px dashed rgba(28, 26, 23, 0.12);
  border-right: 1px dashed rgba(28, 26, 23, 0.12);
  box-shadow: 0 2px 3px rgba(28, 26, 23, 0.08);
}

.note-pin {
  position: absolute;
  z-index: 3;
  top: -8px;
  left: 50%;
  width: 18px;
  height: 22px;
  transform: translateX(-50%);
  pointer-events: none;
}

.note-pin::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.8) 0 8%, transparent 9%),
    radial-gradient(circle at 38% 32%, var(--accent-bright) 0, #d14f2b 52%, #993215 100%);
  box-shadow: 0 2px 4px rgba(28, 26, 23, 0.32), 0 7px 10px -6px rgba(28, 26, 23, 0.45),
    inset 0 -2px 3px rgba(70, 18, 6, 0.35);
}

.note-pin::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 2px;
  height: 9px;
  border-radius: 0 0 2px 2px;
  transform: translateX(-50%) rotate(6deg);
  transform-origin: top center;
  background: linear-gradient(180deg, #d8d0c3, #8d8578 70%, #5b554c);
  box-shadow: 1px 1px 1px rgba(28, 26, 23, 0.28);
}

.mail {
  font-weight: 600;
  color: var(--ink);
  text-decoration-color: rgba(28, 26, 23, 0.4);
  background-image: linear-gradient(transparent 62%, rgba(226, 96, 60, 0.28) 62%);
  background-repeat: no-repeat;
  padding-inline: 1px;
}

.mail:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.socials {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  vertical-align: baseline;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid rgba(28, 26, 23, 0.2);
  border-radius: 5px;
  font-size: 0.94em;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.chip svg {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  opacity: 0.85;
}

.chip--lilac {
  background: var(--lilac);
}

.chip--mint {
  background: var(--mint);
}

.chip--cream {
  background: #f1eadb;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(28, 26, 23, 0.4);
  box-shadow: 1.5px 1.5px 0 rgba(28, 26, 23, 0.16);
}

.chip-join {
  font-size: 0.94em;
  color: var(--ink-soft);
}

.sign {
  margin-top: clamp(10px, 1.6vh, 16px);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.6vh, 1.05rem);
  line-height: 1;
  color: var(--ink-soft);
}

.intro-actions {
  display: contents;
}

.edits-cta {
  display: none;
}

.work-cue {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: clamp(12px, 1.6vh, 16px);
}

.nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.72rem, 1.3vh, 0.82rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nudge svg {
  width: clamp(60px, 6vw, 92px);
  height: auto;
  color: var(--accent);
  opacity: 0.85;
}

.info-open {
  display: none;
  flex: none;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.info-open:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* Rates ------------------------------------------------------------------ */

.rates {
  margin-top: 10px;
  padding: 11px 14px 12px;
  border: 1px solid var(--line);
  border-top: 2px dashed rgba(28, 26, 23, 0.24);
  border-radius: 2px;
  background: #f5f8f0;
  box-shadow: 0 12px 20px -22px rgba(28, 26, 23, 0.5);
}

.rates-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rates-title {
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.rates-title span {
  margin-left: 6px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(85, 80, 74, 0.72);
}

.rates-faq {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.rates-faq:hover {
  color: var(--accent-bright);
}

.rates-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  margin-top: 7px;
}

.rates-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(28, 26, 23, 0.16);
  font-size: 0.78rem;
  line-height: 1.3;
}

.rates-list li > span:first-child {
  min-width: 0;
}

.rates-list .price {
  flex: none;
  font-weight: 600;
  white-space: nowrap;
}

.site-footer {
  position: fixed;
  z-index: 20;
  left: clamp(16px, 4vw, 64px);
  bottom: max(12px, env(safe-area-inset-bottom));
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  opacity: 0.62;
  pointer-events: none;
  user-select: none;
}

/* Reel wall -------------------------------------------------------------- */

.reels {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-block: clamp(10px, 3vh, 30px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 11%, #000 89%, transparent 100%);
}

.wall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.col {
  flex: none;
  width: var(--card-w);
  height: calc(var(--card-h) * 2 + var(--gap));
  max-height: 100%;
  overflow: hidden;
}

.col-track {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  will-change: transform;
}

.col[data-dir="up"] .col-track {
  --shift: calc((var(--card-h) + var(--gap)) * var(--rail-count, 4) * -1);
  animation: col-up calc(var(--rail-count, 4) * 14s) linear infinite;
}

.col[data-dir="down"] .col-track {
  --shift: calc((var(--card-h) + var(--gap)) * var(--rail-count, 4) * -1);
  animation: col-down calc(var(--rail-count, 4) * 17s) linear infinite;
}

.col:hover .col-track,
.col:focus-within .col-track {
  animation-play-state: paused;
}

@keyframes col-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(var(--shift));
  }
}

@keyframes col-down {
  from {
    transform: translateY(var(--shift));
  }
  to {
    transform: translateY(0);
  }
}

.clip-item {
  position: relative;
  flex: none;
  width: var(--card-w);
  height: var(--card-h);
}

.clip-item .clip-card {
  width: 100%;
  height: 100%;
}

.clip-card {
  position: relative;
  display: block;
  flex: none;
  width: var(--card-w);
  height: var(--card-h);
  padding: 0;
  border: 1px solid rgba(28, 26, 23, 0.28);
  border-radius: 8px;
  background: #191919;
  color: #fff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 24px -18px rgba(28, 26, 23, 0.7);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease;
}

.clip-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 34px -20px rgba(28, 26, 23, 0.75);
  z-index: 2;
}

.clip-card.is-pending {
  cursor: default;
}

.clip-card.is-pending:hover {
  transform: none;
}

.clip-card:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5.5px var(--accent);
}

.clip-card img,
.clip-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.1) 0%, rgba(10, 9, 8, 0) 45%, rgba(10, 9, 8, 0.72) 100%);
  pointer-events: none;
}

.clip-meta {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(8px, 1.4vh, 13px);
  pointer-events: none;
}

.clip-dur {
  flex: none;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(10, 10, 10, 0.4);
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 1vh, 0.64rem);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(2px);
}

.play-badge {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(34px, 4.6vh, 44px);
  height: clamp(34px, 4.6vh, 44px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(251, 247, 239, 0.9);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.play-badge svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
  fill: currentColor;
}

.clip-card:hover .play-badge,
.clip-card:focus-visible .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.clip-ig {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(251, 247, 239, 0.94);
  color: var(--ink);
  font-size: 0.57rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 5px 12px -7px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.clip-ig:hover {
  background: #fff;
  transform: scale(1.04);
}

.clip-ig:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.clip-ig svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.no-js {
  max-width: 30ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}

.no-js a {
  color: var(--ink);
}

/* Player ----------------------------------------------------------------- */

.player {
  width: min(920px, calc(100vw - 32px));
  max-width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.player::backdrop {
  background: rgba(20, 18, 15, 0.66);
  backdrop-filter: blur(3px);
}

.player-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  padding: 16px;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 26, 23, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
  border: 1px solid rgba(28, 26, 23, 0.3);
  border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.player-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(66dvh, 640px);
  border-radius: 6px;
  overflow: hidden;
  background: #131313;
}

.player-media video {
  width: 100%;
  max-height: min(66dvh, 640px);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

.player-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 20px 14px 12px;
}

.player-cat {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.player-title {
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.player-desc {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.player-tags li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
}

.player-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.player-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.player-step svg {
  width: 16px;
  height: 16px;
}

.player-step:hover {
  background: var(--ink);
  color: var(--paper);
}

.player-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.player-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.player-close svg {
  width: 15px;
  height: 15px;
}

.player-close:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Rates + FAQs dialog ----------------------------------------------------- */

.info {
  width: min(92vw, 580px);
  max-width: min(92vw, 580px);
  max-height: min(88dvh, 660px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

.info::backdrop {
  background: rgba(20, 18, 15, 0.5);
  backdrop-filter: blur(3px);
}

.info-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.info-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.info-title {
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.info-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.info-close svg {
  width: 15px;
  height: 15px;
}

.info-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.info-body {
  min-height: 0;
  padding: 0 22px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.info-rates {
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--line);
}

.info-rates .rates-list {
  grid-template-columns: 1fr;
  margin-top: 7px;
}

.info-rates .rates-list li {
  padding: 2px 0;
}

.info-faqs {
  padding-top: 4px;
}

.info-list {
  margin: 0;
}

.info-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 26, 23, 0.12);
}

.info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-item dt {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.info-item dd {
  margin: 5px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Edits page ------------------------------------------------------------- */

body.page-edits {
  overflow: hidden;
  height: 100dvh;
}

.edits-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  min-height: 0;
  padding: max(1rem, env(safe-area-inset-top)) max(1.1rem, env(safe-area-inset-right))
    max(1.1rem, env(safe-area-inset-bottom)) max(1.1rem, env(safe-area-inset-left));
}

.edits-top {
  display: flex;
  flex: none;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-bottom: 12px;
}

.edits-back {
  flex: none;
  padding: 0.3em 0.72em 0.36em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 10px -9px rgba(28, 26, 23, 0.5);
}

.edits-back:hover {
  background: var(--ink);
  color: var(--paper);
}

.edits-kicker {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: right;
}

.edits-frame {
  --frame-w: min(calc(100vw - 2.2rem), calc((100dvh - 11rem) * 9 / 16), 400px);
  position: relative;
  flex: none;
  width: var(--frame-w);
  max-width: 100%;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
  box-shadow: 0 24px 40px -32px rgba(28, 26, 23, 0.6), 0 50px 80px -70px rgba(28, 26, 23, 0.7);
}

.edits-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 13px;
  background: #111;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.edits-scroll::-webkit-scrollbar {
  display: none;
}

.edits-track {
  display: flex;
  width: max-content;
  height: 100%;
}

.edit-card {
  position: relative;
  display: block;
  flex: 0 0 calc(var(--frame-w) - 16px);
  width: calc(var(--frame-w) - 16px);
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.edit-card.is-pending {
  cursor: default;
}

.edit-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.edit-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.edit-media {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 13px;
  background: #111;
}

.edit-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.edit-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 6px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.edit-badge svg {
  width: 9px;
  height: 9px;
}

.edit-ig {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 5px 12px -7px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.edit-ig:hover {
  background: #fff;
  transform: scale(1.04);
}

.edit-ig:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.edit-ig svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.edit-caption {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 5px 5px;
  background: var(--paper-2);
}

.edit-meta {
  flex: none;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: right;
}

.edits-nav {
  position: absolute;
  top: 37%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 4px 12px -8px rgba(28, 26, 23, 0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.edits-nav svg {
  width: 14px;
  height: 14px;
}

.edits-nav:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.edits-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.edits-nav-prev {
  left: 15px;
}

.edits-nav-next {
  right: 15px;
}

.edits-count {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.edits-noscript {
  max-width: 32ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

/* Entrance --------------------------------------------------------------- */

.intro-head,
.note,
.snapshot,
.nudge,
.rates {
  animation: enter 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.note {
  animation-delay: 0.08s;
}

.snapshot {
  animation-delay: 0.14s;
}

.nudge {
  animation-delay: 0.18s;
}

.rates {
  animation-delay: 0.22s;
}

.reels {
  animation: fade 0.9s ease 0.12s both;
}

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

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

/* Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
  .snapshot {
    width: clamp(165px, 22vw, 210px);
  }

  .snapshot img {
    aspect-ratio: 1139 / 640;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(14px, 2.6vh, 26px);
    padding-block: clamp(18px, 3.4vh, 34px);
  }

  .intro {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .intro-head {
    margin-bottom: clamp(12px, 2vh, 20px);
  }

  h1 {
    font-size: clamp(2.1rem, 8.6vw, 4.4rem);
  }

  .note {
    width: auto;
    max-width: 560px;
    --note-rest: -0.6deg;
  }

  .work-cue {
    justify-content: space-between;
  }

  .nudge {
    display: flex;
    margin: 0;
    font-size: 1rem;
    gap: 0;
  }

  .nudge svg {
    display: none;
  }

  .info-open {
    display: inline-flex;
  }

  .rates {
    display: none;
  }

  .reels {
    padding-block: 0;
  }

  .edit-caption {
    display: none;
  }
}

@media (max-width: 620px) {
  .blob {
    opacity: 0.7;
  }

  .stage {
    gap: 12px;
    padding-block: 16px;
  }

  h1 {
    font-size: clamp(1.8rem, 9.6vw, 2.55rem);
  }

  .role {
    margin: 6px 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .intro-head {
    display: block;
  }

  .intro-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vh, 14px);
  }

  .note {
    width: 100%;
    max-width: none;
    padding: 15px 18px 14px;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .snapshot {
    position: static;
    width: clamp(175px, 52vw, 235px);
    margin: 0;
    padding: 5px 5px 15px;
    --snapshot-rest: 2deg;
  }

  .snapshot-tape {
    top: -6px;
    width: 32px;
    height: 12px;
  }

  .note p + p {
    margin-top: 8px;
  }

  .sign {
    margin-top: 8px;
    font-size: 0.9rem;
  }

  .player-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .player-media,
  .player-media video {
    max-height: 48dvh;
  }

  .player-close {
    top: 18px;
    right: 18px;
  }

  .info-rates .rates-list {
    grid-template-columns: 1fr;
  }

  .player-meta {
    padding: 0 2px;
  }

  .player-nav {
    padding-top: 14px;
  }
}

@media (max-height: 700px) and (min-width: 861px) {
  h1 {
    font-size: clamp(1.9rem, 4.4vw, 4.2rem);
  }

  .intro-head {
    margin-bottom: 14px;
  }

  .note {
    font-size: 0.88rem;
    line-height: 1.55;
    padding: 18px 22px 16px;
  }

  .note p:nth-of-type(2) {
    display: none;
  }

  .nudge,
  .work-cue {
    display: none;
  }
}

@media (max-height: 560px) and (min-width: 640px) {
  .stage {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
    padding-block: 12px;
  }

  .intro {
    justify-content: center;
    padding-bottom: 0;
  }

  .reels {
    height: 100%;
    padding-block: 0;
  }

  .nudge {
    display: none;
  }

  .work-cue {
    display: flex;
    justify-content: flex-end;
  }

  .rates {
    display: none;
  }

  .info-open {
    display: inline-flex;
  }

  h1 {
    font-size: clamp(2.2rem, 10.5vh, 3.6rem);
  }

  .role {
    margin: 5px 0 0;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .intro-head {
    display: block;
    margin-bottom: 8px;
  }

  .note {
    padding: 12px 16px;
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .sign {
    margin-top: 6px;
    font-size: 1.3rem;
  }

  .nudge {
    display: none;
  }
}

/* Short portrait: keep the full note readable and on one screen. */
@media (max-width: 620px) and (max-height: 720px) {
  .stage {
    padding-block: 12px;
  }

  h1 {
    font-size: clamp(1.9rem, 9.6vw, 2.6rem);
  }

  .intro-head {
    margin-bottom: 10px;
  }

  .intro-body {
    gap: 9px;
  }

  .note {
    padding: 12px 14px;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .note p + p {
    margin-top: 6px;
  }

  .snapshot {
    width: clamp(155px, 46vw, 190px);
    padding: 4px 4px 12px;
  }

  .sign {
    margin-top: 6px;
  }

  .edits-cta {
    padding: 0.72em 1em 0.76em;
    font-size: 0.9rem;
  }
}

/* Mobile: one screen of intro, then a separate edits page. */
@media (max-width: 860px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .reels {
    display: none;
  }

  .intro {
    height: 100%;
    justify-content: space-evenly;
    padding-bottom: 0;
  }

  .intro-head {
    display: block;
  }

  .role {
    margin: 7px 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .intro-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.8vh, 26px);
    width: 100%;
  }

  .edits-cta {
    order: 1;
  }

  .work-cue {
    order: 2;
  }

  .nudge {
    display: none;
  }

  .work-cue {
    justify-content: center;
    margin-top: 0;
  }

  .info-open {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .info-open:hover {
    border: 0;
    background: none;
    color: var(--accent);
  }

  .rates {
    display: none;
  }

  .edits-cta {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 9px;
    padding: 0.8em 1.15em 0.84em;
    border-radius: 999px;
    background: var(--accent);
    color: var(--paper-2);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 12px 20px -16px rgba(200, 67, 31, 0.7);
    transition: background-color 0.18s ease, transform 0.18s ease;
  }

  .edits-cta svg {
    width: 15px;
    height: 15px;
  }

  .edits-cta:hover {
    background: #b23a19;
    transform: translateY(-1px);
  }
}

/* Reduced motion: static wall, every cut still in the player. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .col-track {
    animation: none !important;
    transform: none !important;
  }

  .blob {
    animation: none !important;
  }

  .caret {
    display: none;
  }
}
