/* Highlights row: flat rounded cards, scroll-snap, peeking neighbours. Copy is draft. */
#hx { --cw: 520px; --gap: 20px; --r: 28px; --hx-run: 0px; }
.hx-pin { padding: 56px 0 72px; }
#hx::after { content: ""; display: block; height: var(--hx-run); }
#hx h2 { padding-left: var(--x0); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; color: var(--ink); text-align: left; }
.hx-track { display: flex; gap: var(--gap); overflow-x: auto; padding: 28px var(--x0) 4px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--x0); scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline: none; }
.hx-track::-webkit-scrollbar { display: none; }
.hx-card { flex: none; width: var(--cw); height: 560px; scroll-snap-align: start; border-radius: var(--r); background: var(--pill); padding: 28px 28px 28px; display: flex; flex-direction: column; overflow: hidden; }
.hx-card h3 { font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: -.02em; color: var(--mute); min-height: 58px; }
.hx-card h3 b { color: var(--ink); font-weight: 700; }
.hx-area { position: relative; flex: 1; margin-top: 18px; display: flex; align-items: center; justify-content: center; min-height: 0; }
.hx-soft { border-radius: 20px; background: #f1ece2; animation: hxsoft 5s ease-in-out infinite; }
@keyframes hxsoft { 50% { background: #f4f0e7; } }
.hx-tag { position: absolute; left: 16px; bottom: 14px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.hx-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.hx-dots { display: flex; gap: 10px; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--pill); }
.hx-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9c3b8; transition: background .25s, transform .25s; position: relative; }
.hx-dots button::after { content: ""; position: absolute; inset: -9px; }
.hx-dots button[aria-current="true"] { background: var(--ink); transform: scale(1.2); }
.hx-arrows { display: flex; gap: 10px; }
.hx-arrows button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--pill); color: var(--ink); display: grid; place-items: center; transition: opacity .25s, background .2s; }
.hx-arrows button:hover:not(:disabled) { background: #e3dccd; }
.hx-arrows button:disabled { opacity: .4; cursor: default; }
.hx-arrows svg { width: 20px; height: 20px; }
.hx-nav button:focus-visible, .hx-track:focus-visible .hx-card:first-child { outline: 2px solid var(--ink); outline-offset: 3px; }

/* shared bits */
.hx-car { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.16em; background: var(--ink); opacity: 0; }
.hx-car.on { opacity: 1; animation: hxb 1s steps(1) infinite; }
@keyframes hxb { 50% { opacity: 0; } }
.hx-cur { position: absolute; left: 0; top: 0; z-index: 5; margin: -2px 0 0 -3px; width: 20px; height: 27px; opacity: 0; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 1.5px 2px rgba(0,0,0,.28)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='27' viewBox='0 0 20 27'%3E%3Cpath d='M3 2.2v18.4l4.5-4.1 3.2 7.5 3.1-1.3-3.2-7.4 6.1-.1z' fill='%23111' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; transform-origin: 3px 2px; }

/* idea card */
.hx-idea { position: relative; width: 100%; height: 210px; border-radius: 22px; background: #fbf8f2; box-shadow: 0 10px 30px rgba(60,50,35,.08); }
.hx-bt { position: absolute; left: 24px; right: 70px; top: 22px; font-size: 23px; line-height: 1.28; letter-spacing: -.01em; color: var(--ink); }
.hx-ph { position: absolute; left: 0; top: 0; font-style: normal; color: #a39d92; }
.hx-tx { white-space: pre-wrap; }
.hx-ft { position: absolute; left: 24px; bottom: 18px; font-size: 13px; color: var(--mute); }
.hx-go { position: absolute; right: 18px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; opacity: 0; }
.hx-go svg { position: absolute; width: 20px; height: 20px; }
.hx-go .ck { opacity: 0; }

/* script card */
.hx-sc { width: 100%; display: flex; flex-direction: column; gap: 22px; align-self: flex-start; padding-top: 6px; }
.hx-lb { display: block; margin-bottom: 8px; font-size: 11px; line-height: 16px; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.hx-field { position: relative; padding: 12px 16px; min-height: 52px; border-radius: 16px; background: #f7f3ec; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.hx-ph2 { position: absolute; left: 16px; top: 12px; color: #c9c3b8; white-space: nowrap; }
.hx-s2 { display: grid; }
.hx-s2 > * { grid-area: 1 / 1; }
.hx-opt { justify-self: start; align-self: start; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #f7f3ec; font-size: 15px; white-space: nowrap; }
.hx-opt svg { width: 16px; height: 16px; color: #6f695f; }
.hx-lab { position: relative; display: inline-block; align-self: start; justify-self: start; font-size: 15px; line-height: 20px; color: var(--ink); height: 20px; margin-bottom: 8px; }
.hx-lab > span { position: relative; }
.hx-hi { position: absolute; left: -6px; right: -6px; top: 1px; bottom: -1px; border-radius: 4px 9px 5px 10px; transform: rotate(-.7deg); background: rgba(70,135,255,.4); clip-path: inset(0 100% 0 0); }
.hx-hook { display: flex; flex-direction: column; align-items: flex-start; }
.hx-ln { font-size: 18px; line-height: 1.42; letter-spacing: -.005em; color: var(--ink); min-height: 1.42em; }

/* 9:16 phone-video frames (Record, Review). Filled with the hero "creative" cover-art colours (#fe5484 #01bdfb #5fe68f #cc241b #0087ca). No borders, no nested panels. */
#hx { --fh: 300px; --cov: radial-gradient(75% 60% at 12% 18%, #fe5484 0%, rgba(254,84,132,.55) 45%, rgba(254,84,132,0) 80%), radial-gradient(70% 60% at 90% 28%, #01bdfb 0%, rgba(1,189,251,.55) 45%, rgba(1,189,251,0) 80%), radial-gradient(70% 55% at 28% 92%, #5fe68f 0%, rgba(95,230,143,.55) 45%, rgba(95,230,143,0) 80%), radial-gradient(60% 50% at 92% 88%, rgba(204,36,27,.75) 0%, rgba(204,36,27,0) 75%), linear-gradient(160deg, #9fdcf3, #f4c3cf); }
/* record card */
.hx-rc { display: flex; justify-content: center; }
.hx-vf { position: relative; height: var(--fh); aspect-ratio: 9 / 16; border-radius: 22px; background: var(--cov); overflow: hidden; }
.hx-rec { position: absolute; right: 14px; top: 14px; z-index: 2; display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .09em; color: var(--ink); opacity: 0; }
.hx-rec i { width: 8px; height: 8px; border-radius: 50%; background: #e5483d; }
.hx-tp { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#0000, #000 32%, #000 78%, #0000); mask-image: linear-gradient(#0000, #000 32%, #000 78%, #0000); }
.hx-tl { position: absolute; left: 12px; right: 12px; top: 50%; will-change: transform; }
.hx-tl p { font-size: 14px; line-height: 24px; height: 24px; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; text-align: center; }
.hx-rb { position: absolute; left: 50%; bottom: 14px; margin-left: -22px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: #fbf8f2; display: grid; place-items: center; }
.hx-rb i { width: 30px; height: 30px; border-radius: 50%; background: #e5483d; }

/* review card */
.hx-rv { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hx-mv { position: relative; height: calc(var(--fh) - 52px); aspect-ratio: 9 / 16; border-radius: 22px; background: var(--cov); background-size: 240% 240%; background-position: 0% 0%; display: grid; place-items: center; color: var(--ink); }
.hx-pg { width: 52px; height: 52px; opacity: .55; }
.hx-sb { position: relative; width: calc((var(--fh) - 52px) * 9 / 16); height: 4px; border-radius: 2px; background: #e4ded2; margin: 2px 0; }
.hx-sf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--ink); }
.hx-sd { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); }
.hx-ap { position: relative; align-self: center; display: grid; border-radius: 999px; font-size: 16px; line-height: 20px; white-space: nowrap; }
.hx-ap > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; }
.hx-a2 svg { width: 18px; height: 18px; }

/* post card */
.hx-pt { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hx-pm { position: relative; width: 100%; display: flex; align-items: center; gap: 26px; }
.hx-th { flex: none; width: 112px; height: 198px; border-radius: 18px; background: #d8cdee; display: grid; place-items: center; color: var(--ink); }
.hx-th .hx-pg { width: 40px; height: 40px; }
.hx-pc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hx-pf { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 12px 0 18px; border-radius: 16px; background: #f7f3ec; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.hx-pk { width: 26px; height: 26px; border-radius: 50%; background: #e4ded2; display: grid; place-items: center; color: #f7f3ec; }
.hx-pk svg { width: 16px; height: 16px; opacity: 0; }
.hx-fly { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); opacity: 0; pointer-events: none; will-change: transform, opacity; }
.hx-pb { padding: 10px 28px; border-radius: 999px; background: var(--ink); color: #f7f3ec; font-size: 16px; line-height: 20px; }

/* edit card: four cover-art clips on one lane. Gaps close, the rough gap trims away, a playhead sweeps the tight cut. */
.hx-ed { position: relative; width: 100%; height: 150px; }
.hx-cl { position: absolute; top: 44px; height: 70px; border-radius: 10px; overflow: hidden; opacity: 0; will-change: transform, left, width; }
.hx-cl.c1 { background: radial-gradient(90% 140% at 15% 20%, #fe5484 0%, rgba(254,84,132,0) 70%), linear-gradient(135deg, #cc241b, #fe5484); }
.hx-cl.c2 { background: radial-gradient(90% 140% at 80% 10%, #01bdfb 0%, rgba(1,189,251,0) 70%), linear-gradient(135deg, #0087ca, #01bdfb); }
.hx-cl.c3 { background: radial-gradient(90% 140% at 20% 90%, #5fe68f 0%, rgba(95,230,143,0) 70%), linear-gradient(135deg, #01bdfb, #5fe68f); }
.hx-cl.c4 { background: radial-gradient(90% 140% at 85% 80%, #fe5484 0%, rgba(254,84,132,0) 65%), linear-gradient(135deg, #0087ca, #9e696f 60%, #cc241b); }
.hx-ov { position: absolute; top: 0; bottom: 0; right: 0; left: 0; background: rgba(236,230,218,.62); opacity: 0; }
.hx-gp { position: absolute; top: 44px; height: 70px; border-radius: 10px; background: #e4ded2; opacity: 0; }
.hx-ph3 { position: absolute; left: 0; top: 24px; width: 2px; height: 110px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: 0; will-change: transform; }
.hx-ph3::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

@media (max-width: 699px) {
  #hx { --cw: min(300px, 78vw); --gap: 12px; --r: 24px; }
  .hx-pin { padding: 40px 0 56px; }
  .hx-track { padding-top: 20px; }
  .hx-card { height: 500px; padding: 22px; }
  .hx-card h3 { font-size: 20px; min-height: 48px; }
  .hx-area { margin-top: 14px; }
  .hx-idea { height: 190px; }
  .hx-bt { font-size: 19px; left: 20px; right: 60px; top: 20px; }
  .hx-ft { left: 20px; }
  .hx-field { font-size: 18px; padding: 10px 14px; min-height: 66px; }
  .hx-ph2 { left: 14px; top: 10px; }
  .hx-opt { font-size: 14px; }
  .hx-ln { font-size: 15px; }
  .hx-sc { gap: 18px; }
  #hx { --fh: 290px; }
  .hx-pm { gap: 16px; }
  .hx-th { width: 78px; height: 138px; border-radius: 14px; }
  .hx-th .hx-pg { width: 30px; height: 30px; }
  .hx-pf { height: 44px; font-size: 15px; padding: 0 10px 0 14px; border-radius: 14px; }
  .hx-ed { height: 130px; }
  .hx-cl, .hx-gp { top: 38px; height: 58px; border-radius: 8px; }
  .hx-ph3 { top: 20px; height: 94px; }
  .hx-pc { gap: 10px; }
  .hx-pt { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hx-soft { animation: none; } .hx-track { scroll-behavior: auto; } }

/* Scroll-driven mode (JS adds .hx-pinned, never under reduced motion). The pin holds the row while vertical scroll
   moves it one card per step. #hx::after is the scroll runway; the pin ends with the section, so nothing spills below. */
#hx.hx-pinned .hx-pin { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
#hx.hx-pinned .hx-track { overflow-x: hidden; scroll-snap-type: none; touch-action: pan-y; }
/* Build: each card starts as a compact pill shape and grows into the card. Opacity is never touched. */
#hx.hx-build .hx-card { transition: clip-path .9s cubic-bezier(.22,1,.36,1) var(--d,0s), transform .9s cubic-bezier(.22,1,.36,1) var(--d,0s); transform-origin: 0 50%; }
#hx.hx-build .hx-card:not(.hx-in) { clip-path: inset(44% 36% 44% 0 round 999px); transform: translate3d(-18px,26px,0) scale(.9); }
#hx.hx-build .hx-card.hx-in { clip-path: inset(0 round var(--r)); transform: none; }
