/* Rhod Diola portfolio. Brand = the "Promotion Video - benchmark" film:
   light-grey canvas, white floating window, Inter Tight + Instrument Serif italic, one blue accent. */
:root {
  --canvas: #efefef;
  --grid: #e3e3e3;
  --card: #ffffff;
  --ink: #111114;
  --ink-2: #4a4a52;
  --blue: #2b59ff;
  --blue-press: #1f44d6;
  --yellow: #ffc93c;
  --pink: #ff8fc8;
  --teal: #19b5a5;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --m: clamp(16px, 2.2vw, 32px);       /* the one pair of outer margins */
  --r: 18px;                           /* the one card radius */
  --gap: clamp(120px, 14vw, 220px);    /* between sections */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --step-head: clamp(2.5rem, 1.4rem + 4.2vw, 5.4rem);
  --step-hero: clamp(3.2rem, 1.6rem + 6.4vw, 7.6rem);
  --lift: 0 1px 2px rgba(17, 17, 20, 0.06), 0 12px 32px rgba(17, 17, 20, 0.08), 0 40px 90px rgba(17, 17, 20, 0.1); /* only on the floating window */ /* taste-skill-ignore: brand pattern / mask / the one floating window */
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font: 500 var(--step-body) / 1.55 var(--sans);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- buttons: one shape (pill), press feedback on every one ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--blue-press); }
  .btn-ghost:hover { background: var(--ink); color: #fff; }
  .btn-ink:hover { background: #2a2a31; }
}

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--m);
  background: var(--canvas);
}
.wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 22px; }
.bar nav a { text-decoration: none; font-weight: 600; color: var(--ink-2); transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .bar nav a:hover { color: var(--ink); } }

/* ---------- hero: the editor window ---------- */
.hero { min-height: calc(100svh - 68px); display: grid; place-items: center; padding: clamp(16px, 3vw, 48px) var(--m) clamp(40px, 6vw, 80px); }
.window { width: min(1240px, 100%); background: var(--card); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; } /* taste-skill-ignore: brand pattern / mask / the one floating window */
.window-chrome { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; background: #f4f4f2; font-size: 0.9rem; color: var(--ink-2); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.file { margin-left: 14px; font-weight: 600; }
.tc { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.window-body { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(20px, 3vw, 48px); padding: clamp(16px, 2.4vw, 32px); align-items: center; }
.monitor { display: grid; gap: 12px; min-width: 0; }
.viewer { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #17171c; padding: 8px; }
.viewer video { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: #000; }
.viewer-bar { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.viewer-bar span { display: block; height: 100%; width: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
.bin { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px; }
.bin::-webkit-scrollbar { display: none; }
.bin button { flex: none; display: grid; grid-template-columns: 64px auto; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 0; border-radius: 12px; background: #f4f4f2; color: var(--ink); font: 700 0.9rem var(--sans); text-align: left; cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.bin button img { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; }
.bin button small { display: block; font-weight: 500; color: var(--ink-2); font-size: 0.8rem; }
.bin button[aria-current="true"] { background: var(--ink); color: #fff; }
.bin button[aria-current="true"] small { color: #c9c9d1; }
.bin button:active { transform: scale(0.97); }
.viewer figcaption {
  position: absolute; left: 14px; top: 12px; display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(17, 17, 20, 0.55); color: #fff; font-size: 0.85rem; font-weight: 700;
}
.rec { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: rec 1.6s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
.inspector h1 { font-size: var(--step-hero); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; }
.inspector h1 em { color: var(--blue); padding-right: 0.06em; }
.inspector h1 .w { display: inline-block; }
.lead { margin-top: 22px; font-size: var(--step-lead); line-height: 1.4; color: var(--ink); max-width: 30ch; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 700; line-height: 1.2; }
.byline img { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); object-fit: cover; object-position: 50% 12%; }
.byline small { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.timeline { position: relative; margin: 0 clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px); padding: 26px 14px 14px; background: #17171c; border-radius: 12px; }
/* taste-skill-ignore: tick marks drawn with a repeating pattern */
.ruler { position: absolute; left: 14px; right: 14px; top: 8px; height: 10px; background: repeating-linear-gradient(90deg, #4a4a55 0 2px, transparent 2px 40px); } /* taste-skill-ignore: brand pattern / mask / the one floating window */
.track { position: relative; height: 46px; margin-top: 8px; }
.clip {
  position: absolute; left: var(--x); width: var(--w); top: 0; bottom: 0; display: flex; align-items: center; padding: 0 14px;
  border-radius: 8px; font-weight: 700; font-size: 0.95rem; text-decoration: none; color: var(--ink);
  transition: transform 160ms var(--ease-out), filter 160ms ease;
}
.clip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .clip:hover { filter: brightness(1.08); } }
.c-blue { background: var(--blue); color: #fff; } .c-yellow { background: var(--yellow); } .c-pink { background: var(--pink); } .c-teal { background: var(--teal); color: var(--ink); }
.track-audio { height: 30px; }
.wave { position: absolute; inset: 0; border-radius: 8px; background: rgba(25, 181, 165, 0.16); }
/* taste-skill-ignore: waveform bars drawn with a repeating pattern */
.wave::after { content: ""; position: absolute; inset: 7px 10px; background: repeating-linear-gradient(90deg, var(--teal) 0 3px, transparent 3px 7px); -webkit-mask: linear-gradient(90deg, #000 0 100%); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5 T30 5 T40 5 T50 5 T60 5 T70 5 T80 5 T90 5 T100 5 V10 H0Z' fill='%23000'/%3E%3C/svg%3E"); } /* taste-skill-ignore: brand pattern / mask / the one floating window */
.playhead { position: absolute; top: 4px; bottom: 6px; left: 14px; width: 3px; background: var(--yellow); border-radius: 2px; will-change: transform; pointer-events: none; }
.playhead::before { content: ""; position: absolute; left: -6px; top: -2px; width: 15px; height: 12px; border-radius: 3px 3px 8px 8px; background: var(--yellow); }

/* ---------- section titles ---------- */
.section-title { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }

/* ---------- work: stacked folders ---------- */
.work { padding: var(--gap) var(--m) 0; }
.work .section-title { margin-bottom: 40px; }
.folder { position: relative; border-radius: 0 var(--r) var(--r) var(--r); margin-top: 64px; }
.tab {
  position: absolute; left: 0; top: -44px; height: 44px; min-width: clamp(200px, 22vw, 320px); padding: 0 28px 0 22px;
  display: flex; align-items: center; background: inherit; color: inherit;
  clip-path: polygon(0 100%, 0 14px, 14px 0, calc(100% - 30px) 0, 100% 100%);
  border-top-left-radius: var(--r);
}
.tab h3 { font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.6rem); letter-spacing: -0.03em; font-weight: 800; }
.folder-body { padding: clamp(20px, 3vw, 44px); display: grid; gap: clamp(20px, 3vw, 44px); grid-template-columns: 1.6fr 1fr; align-items: end; }
.f-blue { background: var(--blue); color: #fff; }
.f-paper { background: var(--card); }
.f-yellow { background: var(--yellow); }
.f-ink { background: var(--ink); color: #fff; }
.media { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.media-wide { aspect-ratio: 16 / 9; }
.media-wide > video, .media-wide > img { width: 100%; height: 100%; object-fit: cover; }
.media-tall { aspect-ratio: 9 / 16; max-height: 64vh; justify-self: center; }
.media-tall video { width: 100%; height: 100%; object-fit: cover; }
.folder-split { grid-template-columns: 1fr 1fr; align-items: center; }
.folder-text { display: grid; gap: 12px; max-width: 46ch; }
.folder-text p { font-size: var(--step-lead); line-height: 1.35; }
.folder-text .kind { font-size: var(--step-body); font-weight: 700; opacity: 0.8; }
.folder-pair { grid-template-columns: 1fr 1fr; align-items: start; }
.folder-pair img { border-radius: 12px; }
.folder-note { grid-column: 1 / -1; font-size: var(--step-lead); max-width: 52ch; }
.sound {
  position: absolute; right: 14px; bottom: 14px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgba(17, 17, 20, 0.7); color: #fff; font: 700 0.9rem var(--sans); cursor: pointer; transition: transform 160ms var(--ease-out);
}
.sound:active { transform: scale(0.96); }

/* ---------- styles: pinned story with the live switcher ---------- */
.styles { padding: var(--gap) var(--m) 0; position: relative; }
.styles-stage { display: grid; grid-template-columns: 1fr 0.62fr; gap: clamp(24px, 4vw, 64px); }
.stage-sticky { position: sticky; top: 84px; align-self: start; display: grid; gap: 22px; }
.tabs { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; justify-self: start; padding: 6px; border-radius: 999px; background: var(--card); }
.tabs button { position: relative; z-index: 1; min-height: 44px; padding: 0 22px; border: 0; background: none; border-radius: 999px; font: 700 1rem var(--sans); color: var(--ink-2); cursor: pointer; transition: color 200ms ease, background-color 240ms var(--ease-out), transform 160ms var(--ease-out); }
.tabs button:active { transform: scale(0.97); }
.tabs button[aria-selected="true"] { color: #fff; background: var(--ink); }
.frame { position: relative; aspect-ratio: 1000 / 560; border-radius: var(--r); overflow: hidden; background: var(--card); }
.frame .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(8px); scale: 1.03; transition: opacity 360ms var(--ease-out), filter 360ms var(--ease-out), scale 520ms var(--ease-out); }
.frame .scene.on { opacity: 1; filter: blur(0); scale: 1; }
/* the real Rhod in the matching look, pinned to the frame corner */
.look { position: absolute; left: 14px; bottom: 14px; width: 24%; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 4px solid #fff; background: #fff; }
.look img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.06; transition: opacity 360ms var(--ease-out), scale 520ms var(--ease-out); }
.look img.on { opacity: 1; scale: 1; }
.steps { list-style: none; padding: 0; display: grid; }
.steps li { min-height: 92vh; display: grid; align-content: center; gap: 12px; opacity: 0.35; transition: opacity 300ms ease; }
.steps li.on { opacity: 1; }
.steps h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); letter-spacing: -0.04em; font-weight: 800; line-height: 1; }
.steps p { font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; }
.styles-more { margin: 40px auto 0; max-width: 40ch; text-align: center; font-size: var(--step-lead); line-height: 1.35; }

/* ---------- about: the letter ---------- */
.about { padding: var(--gap) var(--m) 0; display: grid; place-items: center; }
.letter { position: relative; overflow: visible; width: min(640px, 100%); margin-top: clamp(150px, 15vw, 210px); background: var(--card); padding: clamp(28px, 5vw, 56px); border-radius: var(--r) var(--r) 0 0; clip-path: polygon(0 -400px, 100% -400px, 100% calc(100% - 14px), 95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px)); display: grid; gap: 1.1em; }
.letter-photo { position: absolute; right: clamp(8px, 3vw, 40px); bottom: 100%; width: clamp(150px, 15vw, 210px); height: auto; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); object-fit: cover; object-position: 50% 12%; }
.letter p { line-height: 1.6; }
.letter mark { background: var(--yellow); color: var(--ink); padding: 0 0.15em; }
.sign { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.1; margin-top: 0.4em; display: grid; gap: 6px; }
.sign span { font: 600 0.9rem var(--sans); color: var(--ink-2); font-style: normal; }

/* ---------- process: the slip ---------- */
.process { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); max-width: 1240px; margin: 0 auto; align-items: start; }
.process-photo { margin-top: 32px; width: min(360px, 100%); border-radius: var(--r); }
.process-head p { margin-top: 18px; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.slip { background: var(--card); padding: 32px 32px 48px; font-variant-numeric: tabular-nums; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 96% 100%, 92% calc(100% - 12px), 88% 100%, 84% calc(100% - 12px), 80% 100%, 76% calc(100% - 12px), 72% 100%, 68% calc(100% - 12px), 64% 100%, 60% calc(100% - 12px), 56% 100%, 52% calc(100% - 12px), 48% 100%, 44% calc(100% - 12px), 40% 100%, 36% calc(100% - 12px), 32% 100%, 28% calc(100% - 12px), 24% 100%, 20% calc(100% - 12px), 16% 100%, 12% calc(100% - 12px), 8% 100%, 4% calc(100% - 12px), 0 100%); }
.slip h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; margin: 26px 0 8px; }
.slip h3:first-child { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.row span:first-child { flex: none; }
.row::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted #b9b9bf; translate: 0 -4px; }
.row span:last-child { order: 2; font-weight: 700; }
.row.total { margin-top: 18px; padding: 12px 14px; background: var(--ink); color: #fff; border-radius: 10px; }
.row.total::after { border-color: #55555e; }

/* ---------- contact: the coupon ---------- */
.contact { padding: var(--gap) var(--m); }
.coupon {
  --notch: 16px;
  max-width: 1180px; margin: 0 auto; background: var(--blue); color: #fff; border-radius: var(--r);
  display: grid; grid-template-columns: 0.9fr 1.1fr; position: relative;
  /* taste-skill-ignore: the coupon notches are a mask, not a fill */
  -webkit-mask: radial-gradient(circle var(--notch) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: brand pattern / mask / the one floating window */
  mask: radial-gradient(circle var(--notch) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: brand pattern / mask / the one floating window */
}
.coupon-left { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: flex-start; gap: 24px; border-right: 5px dotted rgba(239, 239, 239, 0.6); }
.coupon-photo { width: min(300px, 62%); height: auto; align-self: flex-start; margin-top: auto; margin-left: calc(-1 * clamp(28px, 4vw, 52px)); margin-bottom: calc(-1 * clamp(28px, 4vw, 52px)); } /* flush to the coupon's left and bottom edges so the photo crop lines up with the card edge */
.coupon h2 { font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }
.coupon h2 em { color: var(--yellow); }
.coupon-left p { font-size: var(--step-body); max-width: 34ch; }
.coupon-left a { font-weight: 700; color: #fff; }
.coupon-right { padding: clamp(28px, 4vw, 52px); display: grid; gap: 14px; }
.coupon label { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.coupon input, .coupon select, .coupon textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid transparent; border-radius: 12px; background: #fff; color: var(--ink);
  font: 500 1rem var(--sans); transition: border-color 160ms ease;
}
.coupon textarea { resize: vertical; min-height: 96px; }
.coupon input:focus-visible, .coupon select:focus-visible, .coupon textarea:focus-visible { outline: none; border-color: var(--yellow); }
.coupon .btn { justify-self: start; margin-top: 6px; }

/* ---------- footer: the name returns at full width ---------- */
.foot { background: var(--ink); color: #fff; padding: 40px var(--m) 28px; overflow: hidden; }
.foot-name { font-size: clamp(3.4rem, 20vw, 28rem); line-height: 0.85; letter-spacing: -0.06em; font-weight: 800; white-space: nowrap; }
.foot-line { margin-top: 18px; color: #b9b9c2; font-size: 0.95rem; }
.foot-line a { color: #fff; }

/* ---------- entrances (only when JS is on, so nothing hides if it fails) ---------- */
.js [data-reveal] > *, .js [data-reveal].solo { opacity: 0; translate: 0 24px; filter: blur(6px); }
.js [data-reveal].in > * { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity 600ms var(--ease-out), translate 700ms var(--ease-out), filter 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .section-title[data-reveal] { opacity: 0; translate: 0 24px; filter: blur(6px); }
.js .section-title[data-reveal].in { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity 600ms var(--ease-out), translate 700ms var(--ease-out), filter 600ms var(--ease-out); }
.js [data-hero] { opacity: 0; translate: 0 28px; scale: 0.97; filter: blur(8px); }
.js [data-hero].in { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out), scale 900ms var(--ease-out), filter 700ms var(--ease-out); }
.js .inspector h1 .w { opacity: 0; translate: 0 0.4em; filter: blur(8px); }
.js [data-hero].in .inspector h1 .w { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity 500ms var(--ease-out), translate 700ms var(--ease-out), filter 500ms var(--ease-out); transition-delay: calc(250ms + var(--i, 0) * 90ms); }
.js .folder { opacity: 0; translate: 0 40px; }
.js .folder.in { opacity: 1; translate: 0 0; transition: opacity 600ms var(--ease-out), translate 800ms var(--ease-out); }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .bar nav { display: none; }
  .window-body { grid-template-columns: 1fr; }
  .clip { font-size: 0.8rem; padding: 0 8px; }
  .folder { position: relative; top: auto !important; margin-top: 56px; }
  .folder-body, .folder-split, .folder-pair { grid-template-columns: 1fr; min-height: 0; }
  .media-tall { max-height: 70vh; }
  .styles-stage { grid-template-columns: 1fr; }
  .stage-sticky { position: relative; top: 0; }
  .steps li { min-height: 0; padding: 20px 0; opacity: 1; }
  .process { grid-template-columns: 1fr; }
  .letter-photo { width: 140px; }
  /* taste-skill-ignore: notch mask */
  .coupon { grid-template-columns: 1fr; -webkit-mask: radial-gradient(circle var(--notch) at 0 42%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 42%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle var(--notch) at 0 42%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 42%, #0000 98%, #000) right / 51% 100% no-repeat; } /* taste-skill-ignore: brand pattern / mask / the one floating window */
  .coupon-left { border-right: 0; border-bottom: 5px dotted rgba(239, 239, 239, 0.6); }
}

/* ---------- reduced motion: fewer, gentler; keep fades, drop travel ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] > *, .js .section-title[data-reveal], .js [data-hero], .js .inspector h1 .w, .js .folder { translate: none !important; scale: none !important; filter: none !important; }
  .frame .scene, .look img { transition: opacity 200ms ease; scale: 1; filter: none; }
  .rec { animation: none; }
}

/* ---------- motion pass ---------- */
.folder-lib { display: block; }
.library { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.library button { position: relative; display: grid; gap: 10px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.library .thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--ink); }
.library .thumb img, .library .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 600ms var(--ease-out); }
.library .thumb video { opacity: 0; transition: opacity 240ms ease; }
.library .play { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform 200ms var(--ease-out); }
.library .play::before { content: ""; margin-left: 3px; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.library strong { font-size: 1.1rem; letter-spacing: -0.02em; }
.library small { display: block; font-weight: 500; opacity: 0.8; }
.library button:active .thumb { scale: 0.98; }
@media (hover: hover) and (pointer: fine) {
  .library button:hover .thumb img { scale: 1.05; }
  .library button:hover .thumb video { opacity: 1; }
  .library button:hover .play { transform: scale(1.08); }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(0.97); }
  .bin button:hover { background: #e9e9e6; }
  .bin button[aria-current="true"]:hover { background: var(--ink); }
}
.f-pink { background: var(--pink); }

.ticker { margin-top: var(--gap); overflow: hidden; background: var(--ink); color: #fff; padding: 22px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.ticker i { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); flex: none; }
.ticker i:nth-of-type(3n+2) { background: var(--yellow); }
.ticker i:nth-of-type(3n) { background: var(--pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Section titles: each word rises out of its own mask */
.js .section-title .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .section-title .sw > span { display: inline-block; translate: 0 105%; transition: translate 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .section-title.split-in .sw > span { translate: 0 0; }
.js .section-title[data-reveal] { opacity: 1; translate: none; filter: none; }

/* Photos rise out from behind an edge (the letter's top, the coupon's bottom) */
.js [data-emerge] { translate: 0 100%; clip-path: inset(0 0 100% 0); transition: translate 1000ms var(--ease-out), clip-path 1000ms var(--ease-out); }
.js [data-emerge].in { translate: 0 0; clip-path: inset(0 0 0 0); }

/* Hero timeline clips snap in one by one; the active style scene drifts slowly (Ken Burns) */
.js .timeline .clip { scale: 0.6 1; opacity: 0; transform-origin: 0 50%; }
.js [data-hero].in .timeline .clip { scale: 1 1; opacity: 1; transition: scale 600ms var(--ease-out), opacity 300ms ease, filter 160ms ease; transition-delay: calc(600ms + var(--i, 0) * 90ms); }
.frame .scene.on { animation: kenburns 9s ease-in-out infinite alternate; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.06; } }
.js .folder .tab { translate: -24px 0; opacity: 0; }
.js .folder.in .tab { translate: 0 0; opacity: 1; transition: translate 600ms var(--ease-out) 150ms, opacity 400ms ease 150ms; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .frame .scene.on { animation: none; }
  .js [data-emerge], .js .section-title .sw > span, .js .timeline .clip, .js .folder .tab { translate: none !important; scale: none !important; clip-path: none !important; opacity: 1 !important; }
  .btn:hover { transform: none; }
}

/* ================= GO ALL OUT: living background + new sections ================= */
/* The canvas moves: the grid drifts and three soft colour fields float, reacting to the scroll */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid { position: absolute; inset: -80px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 80px 80px; animation: grid-drift 24s linear infinite; } /* taste-skill-ignore: brand grid pattern */
@keyframes grid-drift { to { transform: translate(80px, 80px); } }
.blob { position: absolute; width: 46vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: 0.32; will-change: transform; }
.b1 { background: var(--blue); left: -12vmax; top: -10vmax; animation: float1 22s ease-in-out infinite alternate; }
.b2 { background: var(--yellow); right: -14vmax; top: 30vh; animation: float2 26s ease-in-out infinite alternate; opacity: 0.38; }
.b3 { background: var(--pink); left: 20vw; bottom: -20vmax; animation: float3 30s ease-in-out infinite alternate; }
@keyframes float1 { to { translate: 18vw 22vh; scale: 1.15; } }
@keyframes float2 { to { translate: -22vw 18vh; scale: 0.9; } }
@keyframes float3 { to { translate: 16vw -26vh; scale: 1.1; } }
.glow-cursor { position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: rgba(43, 89, 255, 0.24); filter: blur(70px); pointer-events: none; z-index: 0; opacity: 0; transition: opacity 400ms ease; will-change: transform; } /* taste-skill-ignore: cursor light */
.glow-cursor.on { opacity: 1; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 20; }
.progress span { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }

/* Hero: the accent word rolls through what motion does */
.rotator { display: inline-block; overflow: hidden; vertical-align: bottom; padding-right: 0.08em; }
.rot-word { display: inline-block; }

/* Motion graphics folder: playing clips in a bento grid */
.folder-mg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.mg { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.mg-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mg video { width: 100%; height: 100%; object-fit: cover; transition: scale 600ms var(--ease-out); }
.mg figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(17, 17, 20, 0.75); color: #fff; font-size: 0.85rem; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .mg:hover video { scale: 1.04; } }
.folder-mg .folder-note { grid-column: 1 / -1; }

/* Clip library: every clip keeps its real shape (9:16 stays tall) */
.library { display: flex !important; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.library button { width: auto; flex: 0 0 auto; }
.library .thumb { height: clamp(220px, 30vw, 420px); aspect-ratio: var(--ar, 16 / 9); }

/* Websites folder: live template switcher */
.folder-web { display: grid; gap: 22px; grid-template-columns: 1fr; }
.web-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.web-lead { font-size: var(--step-lead); max-width: 34ch; line-height: 1.35; }
.web-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.web-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; font: 700 0.95rem var(--sans); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.web-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.web-tabs button:active { transform: scale(0.97); }
.browser { border-radius: 14px; overflow: hidden; background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: #f1f1ef; color: var(--ink-2); font-size: 0.9rem; }
.url { margin-left: 12px; flex: 1; max-width: 360px; padding: 4px 14px; border-radius: 999px; background: #fff; font-weight: 600; }
.open { margin-left: auto; font-weight: 700; color: var(--blue); text-decoration: none; }
.browser-view { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; background: #0b0b0c; }
.browser-view iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 760px; border: 0; transform-origin: 0 0; transform: scale(var(--s, 0.6)); transition: opacity 300ms ease, filter 300ms ease; }
.browser-view.swap iframe { opacity: 0; filter: blur(8px); }
.web-note { opacity: 0.85; }

/* Business styles: each scene is a live, looping animation */
.frame .scene { position: absolute; inset: 0; }
.frame img.scene:not(.on) { visibility: hidden; transition: opacity 360ms var(--ease-out), filter 360ms var(--ease-out), scale 520ms var(--ease-out), visibility 0s linear 360ms; }
.frame div.scene { opacity: 0; visibility: hidden; transition: opacity 360ms var(--ease-out), visibility 0s linear 360ms; }
.frame div.scene.on { opacity: 1; visibility: visible; transition: opacity 360ms var(--ease-out); }
.frame div.scene * { animation-play-state: paused; }
.frame div.scene.on * { animation-play-state: running; }
.frame div.scene.on { animation: none; }
.sc-title { position: absolute; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.sc-product { background: var(--yellow); }
.sc-product .sc-title { left: 6%; top: 10%; font-size: clamp(1.8rem, 4vw, 4rem); animation: pop-in 4s var(--ease-out) infinite; }
.can { position: absolute; left: 66%; top: 20%; width: 21%; height: 64%; margin-left: -10.5%; border-radius: 18% / 8%; background: var(--blue); display: grid; place-content: center; text-align: center; color: #fff; box-shadow: inset -14px 0 0 rgba(0,0,0,0.12), inset 10px 0 0 rgba(255,255,255,0.18); animation: can 4s var(--ease-out) infinite; }
.can span { font-weight: 800; font-size: clamp(0.9rem, 1.8vw, 1.7rem); letter-spacing: -0.03em; rotate: -8deg; }
.can small { font-family: var(--serif); font-style: italic; font-size: clamp(0.8rem, 1.4vw, 1.3rem); }
.burst { position: absolute; right: 8%; top: 12%; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: clamp(0.8rem, 1.4vw, 1.2rem); rotate: 12deg; animation: stamp 4s var(--ease-out) infinite; }
.sc-product i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); animation: rise-dot 4s ease-out infinite; }
.dot1 { left: 30%; bottom: 10%; } .dot2 { left: 70%; bottom: 14%; animation-delay: .6s !important; background: var(--blue) !important; } .dot3 { left: 60%; bottom: 6%; animation-delay: 1.2s !important; }
@keyframes can { 0% { translate: 0 30%; rotate: -14deg; opacity: 0; } 18% { translate: 0 0; rotate: 4deg; opacity: 1; } 26%, 90% { rotate: 0deg; } 100% { opacity: 1; } }
@keyframes stamp { 0%, 20% { scale: 2; opacity: 0; } 30% { scale: 1; opacity: 1; } 100% { opacity: 1; } }
@keyframes pop-in { 0%, 8% { opacity: 0; translate: -20px 0; } 22%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rise-dot { from { translate: 0 0; opacity: 1; } to { translate: 0 -220px; opacity: 0; } }
.sc-data { background: #fff; }
.sc-data .sc-title { left: 6%; top: 9%; font-size: clamp(1.2rem, 2.6vw, 2.4rem); }
.chart { position: absolute; left: 8%; right: 34%; bottom: 12%; height: 56%; display: flex; align-items: flex-end; gap: 6%; border-bottom: 3px solid var(--ink); }
.chart span { flex: 1; height: var(--h); border-radius: 8px 8px 0 0; background: var(--ink); transform-origin: bottom; animation: bar 4s var(--ease-out) infinite; }
.chart span:nth-child(5) { background: var(--blue); }
.chart span:nth-child(2) { animation-delay: .12s; } .chart span:nth-child(3) { animation-delay: .24s; } .chart span:nth-child(4) { animation-delay: .36s; } .chart span:nth-child(5) { animation-delay: .48s; }
@keyframes bar { 0% { transform: scaleY(0.05); } 30%, 100% { transform: scaleY(1); } }
.trend { position: absolute; left: 8%; right: 34%; top: 30%; height: 40%; width: 58%; overflow: visible; }
.trend path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 4s var(--ease-out) infinite; }
@keyframes draw { 0%, 20% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
.sc-social { background: #111114; display: grid; place-items: center; }
.phone { position: relative; height: 84%; aspect-ratio: 9 / 16; border-radius: 22px; background: var(--blue); border: 6px solid #000; overflow: hidden; display: grid; place-items: center; } /* taste-skill-ignore: a drawn phone screen */
.cap { text-align: center; font-weight: 800; color: #fff; font-size: clamp(0.9rem, 1.8vw, 1.6rem); line-height: 1.1; padding: 0 10%; }
.cap b { display: inline-block; animation: word 3s var(--ease-out) infinite; }
.cap b:nth-child(2) { animation-delay: .35s; background: var(--yellow); color: var(--ink); padding: 0 6px; border-radius: 6px; } .cap b:nth-child(3) { animation-delay: .7s; }
@keyframes word { 0% { opacity: 0; scale: 0.6; } 12% { opacity: 1; scale: 1.08; } 18%, 85% { scale: 1; opacity: 1; } 100% { opacity: 0; } }
.heart { position: absolute; right: 12%; bottom: 14%; width: 26px; height: 26px; animation: heart 3s ease-out infinite; }
.heart.h2 { right: 22%; animation-delay: 1.2s; }
@keyframes heart { from { translate: 0 0; opacity: 1; } to { translate: -10px -160px; opacity: 0; } }
.phone .bar { position: absolute; left: 10%; right: 10%; bottom: 6%; height: 4px; border-radius: 9px; background: rgba(255,255,255,0.3); overflow: hidden; }
.phone .bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; animation: fill 3s linear infinite; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.look img[src*="rhod-wave"] { object-fit: contain; object-position: bottom; background: #eef2ff; }
.tabs { grid-auto-columns: auto; }

/* Floating shapes drift with the scroll */
section { position: relative; }
.shape { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }
.s-ring { width: 120px; height: 120px; border-radius: 50%; border: 14px solid var(--yellow); right: 6%; top: 8%; }
.s-ring2 { left: 4%; right: auto; top: 30%; border-color: var(--pink); width: 90px; height: 90px; }
.s-pill { width: 160px; height: 56px; border-radius: 99px; background: var(--blue); left: 48%; top: 2%; rotate: -18deg; opacity: 0.85; }
.s-plus { width: 60px; height: 60px; right: 8%; top: 4%; background: linear-gradient(var(--pink), var(--pink)) center / 100% 30% no-repeat, linear-gradient(var(--pink), var(--pink)) center / 30% 100% no-repeat; } /* taste-skill-ignore: drawn plus sign */
.s-squiggle { width: 160px; left: 2%; bottom: 10%; }
.s-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); right: 10%; top: 12%; }
.process > *, .contact > *, .styles > * { position: relative; z-index: 1; }
.process > .shape, .contact > .shape, .styles > .shape { position: absolute; z-index: 0; }

/* Footer name: letters rise in, and ripple under the pointer */
.foot-name .ch { display: inline-block; translate: 0 100%; transition: translate 900ms var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.foot-name.in .ch { translate: 0 0; }
@media (hover: hover) and (pointer: fine) { .foot-name .ch:hover { color: var(--yellow); translate: 0 -6%; transition: translate 200ms var(--ease-out), color 200ms ease; } }
.foot { overflow: hidden; }

@media (max-width: 860px) {
  .folder-mg { grid-template-columns: 1fr 1fr; }
  .mg-big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .tabs { display: flex; flex-wrap: wrap; border-radius: 22px; justify-self: stretch; }
  .tabs button { flex: 1 1 40%; padding: 0 12px; }
  .library button { flex: 1 1 100%; }
  .library .thumb { height: auto; width: 100%; }
  .library button.tall .thumb { width: 62%; }
  .shape { display: none; }
  .glow-cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-grid, .blob, .frame div.scene *, .heart, .phone .bar::after { animation: none !important; }
  .foot-name .ch { translate: none; }
  .glow-cursor { display: none; }
}

/* ================= TUNING: zoomed out, airy, glassy, playful ================= */
:root {
  --m: clamp(20px, 6vw, 120px);
  --step-body: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  --step-lead: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  --step-head: clamp(2.1rem, 1.3rem + 2.6vw, 3.8rem);
  --step-hero: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
}
/* one calm column with headroom on both sides */
main > section:not(.hero), .ticker { max-width: 1280px; margin-inline: auto; }
.ticker { border-radius: 22px; max-width: calc(1280px - 2 * var(--m)); width: calc(100% - 2 * var(--m)); }
.hero { min-height: auto; padding-top: clamp(28px, 5vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.window { width: min(1040px, 100%); }
.window-body { gap: clamp(18px, 2.4vw, 36px); padding: clamp(14px, 2vw, 26px); }
.lead { font-size: var(--step-lead); }
.folder-body { padding: clamp(18px, 2.4vw, 34px); gap: clamp(18px, 2.4vw, 34px); }
.folder { margin-top: 56px; }
.work .section-title { margin-bottom: 28px; }
.folder-text p { font-size: var(--step-lead); }
.media-tall { max-height: 56vh; }
.styles-stage { grid-template-columns: 1fr 0.55fr; }
.steps h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); }
.coupon { max-width: 1080px; }
.foot-name { font-size: clamp(3rem, 17vw, 22rem); }
.letter { width: min(580px, 100%); }

/* frosted, see-through widgets over the moving background */
.window, .letter, .slip, .tabs, .browser-bar, .bin button, .look { backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.window { background: var(--glass); box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 30px 80px rgba(17, 17, 20, 0.12); }
.window-chrome { background: rgba(255, 255, 255, 0.45); }
.letter, .slip { background: var(--glass-strong); }
.tabs { background: var(--glass); }
.bin button { background: rgba(255, 255, 255, 0.55); }
.f-paper { background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.f-blue { background: rgba(43, 89, 255, 0.92); }
.f-yellow { background: rgba(255, 201, 60, 0.92); }
.f-pink { background: rgba(255, 143, 200, 0.92); }
.f-ink { background: rgba(17, 17, 20, 0.9); }
.bar { background: rgba(239, 239, 239, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* 3D tilt on hover (set by JS), lifts toward the pointer */
[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  [data-tilt].tilting { transition: transform 120ms linear, box-shadow 300ms ease; box-shadow: 0 30px 60px rgba(17, 17, 20, 0.18); }
  .folder:hover .tab { translate: 0 -4px; }
  .clip:hover { transform: translateY(-3px); }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .row:hover span:last-child { color: var(--blue); }
  .web-tabs button:hover { transform: translateY(-2px); }
}

/* every heading: letters lift and light up under the pointer */
.ch { display: inline-block; transition: translate 260ms cubic-bezier(0.23, 1, 0.32, 1), color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .ch:hover { translate: 0 -10%; color: var(--blue); }
  .f-blue .ch:hover, .f-ink .ch:hover, .coupon .ch:hover, .foot .ch:hover { color: var(--yellow); }
}

/* sound buttons say what they do */
.sound { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; font-size: 0.95rem; }
.sound svg { width: 20px; height: 20px; }
.sound .waves { display: none; }
.sound[aria-pressed="true"] .waves { display: inline; }
.sound[aria-pressed="true"] .mute { display: none; }
.sound[aria-pressed="false"] { background: var(--blue); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 80%, 100% { scale: 1; } 88% { scale: 1.06; } }
.sound-viewer { right: 18px; bottom: 26px; top: auto; z-index: 2; min-height: 36px; font-size: 0.85rem; }

/* website templates: the whole first screen fits, no inner scrolling; tabs are big and obvious */
.web-head { align-items: flex-end; }
.web-pick { width: 100%; font-weight: 800; font-size: 1.1rem; margin-bottom: -6px; color: #fff; }
.web-tabs { width: 100%; gap: 10px; }
.web-tabs button { min-height: 52px; padding: 0 22px; font-size: 1rem; border: 0; background: rgba(255, 255, 255, 0.12); }
.web-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(17, 17, 20, 0.18); }
.browser-view { aspect-ratio: 16 / 10; }
.browser-view iframe { width: 1440px; height: 900px; pointer-events: none; }
.open { padding: 6px 14px; border-radius: 999px; background: var(--blue); color: #fff; }

@media (max-width: 860px) {
  .styles-stage { grid-template-columns: 1fr; }
  .ticker { width: calc(100% - 32px); }
  .web-tabs button { flex: 1 1 45%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-tilt] { transform: none !important; }
  .sound { animation: none !important; }
}

/* ===== STYLE SHOTS + HOVER ===== */
.frame .scene .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .scene.has-shot > :not(.shot) { display: none; }
.frame .scene.on .shot { animation: kenburns 9s ease-in-out infinite alternate; }
.can, .phone, .chart span, .look, .burst { transition: transform 500ms var(--ease-out), rotate 500ms var(--ease-out), scale 500ms var(--ease-out); }
.steps li { transition: translate 300ms var(--ease-out), opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .frame:hover .can { rotate: -8deg; scale: 1.06; }
  .frame:hover .burst { scale: 1.12; rotate: 12deg; }
  .frame:hover .chart span { transform: scaleY(1.08); }
  .frame:hover .phone { transform: translateY(-8px) rotate(-2deg); }
  .frame:hover .look { transform: translate(6px, -8px) rotate(-3deg); }
  .steps li:hover { translate: 8px 0; }
}
@media (prefers-reduced-motion: reduce) { .frame .scene.on .shot { animation: none; } }
/* motion clips: 6-col grid so the bottom pair fills the row */
.folder-mg { grid-template-columns: repeat(6, 1fr); }
.folder-mg .mg { grid-column: span 2; }
.folder-mg .mg-big { grid-column: span 4; }
.folder-mg .mg:nth-last-of-type(-n+2) { grid-column: span 3; }
@media (max-width: 860px) {
  .folder-mg { grid-template-columns: 1fr 1fr; }
  .folder-mg .mg, .folder-mg .mg:nth-last-of-type(-n+2) { grid-column: span 1; }
  .folder-mg .mg-big { grid-column: 1 / -1; }
}

/* ===== ROUND 6: edge-to-edge ticker, see-through widgets ===== */
.ticker, main > .ticker { max-width: none; width: 100%; margin-inline: 0; border-radius: 0; }
:root { --glass: rgba(255, 255, 255, 0.4); --glass-strong: rgba(255, 255, 255, 0.55); }
.window, .letter, .slip, .tabs, .browser-bar, .bin button, .look, .f-paper { backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
.f-yellow { background: rgba(255, 201, 60, 0.72); }
.f-pink { background: rgba(255, 143, 200, 0.72); }
.f-ink { background: rgba(17, 17, 20, 0.8); }
.f-yellow, .f-pink, .f-ink { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #fff; --glass-strong: #fff; }
  .f-yellow { background: var(--yellow); } .f-pink { background: var(--pink); } .f-ink { background: var(--ink); }
}
@media (max-width: 860px) { .folder-mg .mg:not(.mg-big) figcaption { left: 6px; bottom: 6px; padding: 4px 8px; font-size: 0.7rem; } }

/* ===== ROUND 7 ===== */
/* hero accent word always owns line two, so swapping words never reflows the layout */
.inspector h1 .rotator { display: block; width: max-content; }
/* style photos are 3:2 — show them whole, no zoom crop */
#style-frame { aspect-ratio: 3 / 2; }
#style-frame .scene.on, #style-frame .scene.on .shot { animation: none; }
#style-frame .scene .shot { object-fit: cover; }
#style-frame .look { width: 20%; }
/* no photo for this style yet: hide the empty card instead of repeating one */
#style-frame .look:not(:has(img.on)) { opacity: 0; transform: translateY(8px); }
#style-frame .look { transition: opacity 300ms ease, transform 500ms var(--ease-out); }
/* clip bin: one swipeable row however many clips there are */
.bin { flex-wrap: nowrap; overflow-x: auto; mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }

/* ===== background shapes: drifting, spinning, leaning toward the cursor ===== */
.fx { position: absolute; display: block; opacity: 0.6; will-change: transform; animation: fx-float 14s ease-in-out infinite alternate; }
.fx svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx-ring { left: 8%; top: 14%; width: 86px; height: 86px; border-radius: 50%; border: 12px solid var(--yellow); }
.fx-plus, .fx-plus2 { left: 86%; top: 20%; width: 54px; height: 54px; background: linear-gradient(var(--blue) 0 0) center / 100% 14px no-repeat, linear-gradient(var(--blue) 0 0) center / 14px 100% no-repeat; animation-name: fx-spin; animation-duration: 18s; animation-timing-function: linear; } /* taste-skill-ignore: plus glyph, not a gradient fill */
.fx-plus2 { left: 30%; top: 82%; width: 38px; height: 38px; animation-duration: 24s; }
.fx-tri { left: 72%; top: 64%; width: 90px; height: 80px; animation-duration: 17s; }
.fx-star { left: 46%; top: 8%; width: 46px; height: 46px; animation-name: fx-twinkle; animation-duration: 6s; }
.fx-star2 { left: 14%; top: 70%; width: 34px; height: 34px; animation-name: fx-twinkle; animation-duration: 8s; animation-delay: -3s; }
.fx-squig { left: 4%; top: 46%; width: 150px; height: 38px; animation-duration: 11s; }
.fx-half { left: 92%; top: 48%; width: 120px; height: 60px; border-radius: 120px 120px 0 0; background: #1fb5a1; animation-duration: 19s; }
.fx-dots { left: 58%; top: 34%; width: 110px; height: 110px; background-image: radial-gradient(var(--ink) 3px, transparent 3.5px); background-size: 22px 22px; opacity: 0.18; animation-duration: 22s; } /* taste-skill-ignore: dot-grid shape */
.fx-pill { left: 24%; top: 26%; width: 120px; height: 40px; border-radius: 999px; background: var(--pink); animation-duration: 13s; animation-delay: -4s; }
.fx-zig { left: 64%; top: 88%; width: 130px; height: 38px; animation-duration: 15s; }
.fx-dot { left: 38%; top: 56%; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); animation-name: fx-bob; animation-duration: 5s; }
.fx-donut { left: 80%; top: 80%; width: 70px; height: 70px; border-radius: 50%; border: 18px solid var(--pink); animation-duration: 16s; }
.fx-sq { left: 18%; top: 90%; width: 56px; height: 56px; border: 8px solid var(--ink); border-radius: 10px; opacity: 0.3; animation-name: fx-spin; animation-duration: 26s; animation-timing-function: linear; }
@keyframes fx-float { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(18px, -26px) rotate(14deg); } 100% { transform: translate(-14px, 12px) rotate(-10deg); } }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-twinkle { 0%, 100% { transform: scale(0.7) rotate(0deg); } 50% { transform: scale(1.15) rotate(45deg); } }
@keyframes fx-bob { 50% { transform: translateY(-30px); } }
@media (max-width: 860px) { .fx { scale: 0.6; } .fx-dots, .fx-squig, .fx-zig { display: none; } }
@media (prefers-reduced-motion: reduce) { .fx { animation: none; } }

/* ===== "Any style" statement ===== */
.anystyle { position: relative; margin: clamp(48px, 8vw, 110px) 0 0; padding: clamp(28px, 5vw, 64px) 0; border-radius: 28px; background: rgba(17, 17, 20, 0.86); color: #fff; overflow: hidden; text-align: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.any-kicker { color: var(--yellow); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; }
.any-title { margin: 10px 16px 26px; font-size: clamp(2.6rem, 1rem + 6vw, 6.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.any-title em { font-family: var(--serif, "Instrument Serif", serif); font-weight: 400; font-style: italic; color: var(--pink); letter-spacing: -0.02em; }
.any-rows { display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.any-row { display: flex; gap: 14px; width: max-content; animation: any-scroll 36s linear infinite; }
.any-row.rev { animation-direction: reverse; animation-duration: 42s; }
@keyframes any-scroll { to { transform: translateX(-50%); } }
.any-foot { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; padding: 0 16px; font-size: 1.15rem; color: #d9d9de; }
@media (hover: hover) and (pointer: fine) {
  .any-rows:hover .any-row { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .any-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .any-row span:nth-child(n+7) { display: none; } }

/* ===== ROUND 8 ===== */
/* clip library: one sideways reel, cards share a height so 16:9 and 9:16 sit together */
.library { display: flex; flex-wrap: nowrap !important; gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scrollbar-width: thin; cursor: grab; }
.library button { flex: none; width: auto; }
.library .thumb { height: clamp(170px, 22vw, 240px); width: auto; aspect-ratio: var(--ar, 16 / 9); }
.library.dragging, .bin.dragging { cursor: grabbing; }
.library.dragging button, .bin.dragging button { pointer-events: none; }
.bin { cursor: grab; }
.library button.tall .thumb { width: auto; }

/* ===== "Any style" card: light glass; every pill wears the style it names ===== */
.anystyle { background: rgba(255, 255, 255, 0.5); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 24px 60px rgba(17, 17, 20, 0.1); }
.any-kicker { color: var(--blue); }
.any-title em { color: var(--blue); }
.any-foot { color: var(--ink-2); }
.any-rows { padding-block: 14px; gap: 22px; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.any-row { align-items: center; gap: 22px; }
:where(.any-row > span) { position: relative; padding: 14px 26px; border-radius: 999px; font-size: clamp(1rem, 0.8rem + 0.8vw, 1.45rem); font-weight: 800; line-height: 1.2; white-space: nowrap; background: #fff; color: var(--ink); transition: scale 300ms var(--ease-out); }
.s-cartoon { font-family: "Bangers", system-ui; font-weight: 400; letter-spacing: 0.06em; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem) !important; background: var(--yellow) !important; border: 3px solid #111; box-shadow: 5px 5px 0 #111; rotate: -3deg !important; }
.s-sketch { font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem) !important; background: #fffdf4 !important; border: 2px solid #333; border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px !important; rotate: 1.5deg !important; }
.s-vox { display: inline-flex; gap: 6px; padding: 0 !important; background: transparent !important; }
.s-vox b { padding: 10px 14px; font-family: var(--serif); font-style: italic; font-weight: 400; background: #f3ead6; box-shadow: 0 2px 6px rgba(17, 17, 20, 0.18); clip-path: polygon(2% 6%, 98% 0, 100% 92%, 4% 100%); }
.s-vox b:first-child { rotate: -4deg; background: #ffe066; font-family: "Inter Tight", sans-serif; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.s-vox b:last-child { rotate: 3deg; translate: 0 4px; }
.s-3d { font-weight: 800 !important; background: var(--blue) !important; color: #fff !important; text-shadow: 1px 1px 0 #1c3bb3, 2px 2px 0 #1c3bb3, 3px 3px 0 #1c3bb3, 4px 4px 0 #142a80; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), inset 0 -5px 0 rgba(0, 0, 0, 0.25), 0 8px 0 #142a80; }
.s-anime { font-weight: 800 !important; font-style: italic; background: #ff8fc8 !important; color: #fff !important; text-shadow: 2px 2px 0 #c2185b; border: 3px solid #fff; box-shadow: 0 0 0 3px #c2185b; }
.s-pixel { font-family: "Press Start 2P", monospace; font-size: clamp(0.7rem, 0.6rem + 0.4vw, 0.95rem) !important; border-radius: 0 !important; background: #1fb5a1 !important; color: #0d2b27 !important; box-shadow: 0 -4px 0 #0d2b27, 0 4px 0 #0d2b27, -4px 0 0 #0d2b27, 4px 0 0 #0d2b27; }
.s-clay { font-family: "Fredoka", system-ui; font-weight: 600; font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.6rem) !important; background: #ffb4a2 !important; color: #7a2e1d !important; border-radius: 28px !important; box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.55), inset -5px -7px 0 rgba(122, 46, 29, 0.18), 0 10px 18px rgba(122, 46, 29, 0.25); }
.s-vhs { font-weight: 800 !important; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px !important; background: #1a1a1f !important; color: #fff !important; text-shadow: 2px 0 #ff2a6d, -2px 0 #05d9e8; }
.s-paper { font-weight: 800 !important; background: #f7e9d0 !important; color: #3d5a80 !important; border-radius: 6px !important; box-shadow: 4px 4px 0 #e58f65, 8px 8px 0 #3d5a80; rotate: -1.5deg !important; }
.s-board { font-family: "Permanent Marker", cursive; font-weight: 400; background: #fff !important; color: #1f4bd8 !important; border: 2px solid #c9ced8; border-radius: 6px !important; }
.s-board::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 9px; height: 3px; border-radius: 3px; background: #e3321b; rotate: -1deg; }
.s-neon { font-weight: 500 !important; letter-spacing: 0.12em; text-transform: uppercase; background: #160f2e !important; color: #ffd6f5 !important; border: 2px solid #ff6ad5; text-shadow: 0 0 6px #ff6ad5, 0 0 16px #ff6ad5; box-shadow: 0 0 12px rgba(255, 106, 213, 0.6), inset 0 0 10px rgba(255, 106, 213, 0.35); } /* taste-skill-ignore: literal neon sample */
.s-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 800 !important; border: 2px dashed var(--ink); }
.s-brand i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); }
.s-brand i:last-of-type { margin-right: 6px; }
@media (hover: hover) and (pointer: fine) { .any-row > span:hover { scale: 1.1; } }

/* ===== custom sideways scrollbar + arrows ===== */
.bin, .library { scrollbar-width: none; }
.bin::-webkit-scrollbar, .library::-webkit-scrollbar { display: none; }
.rail { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.rail[hidden] { display: none; }
.rail-track { position: relative; flex: 1; height: 6px; border-radius: 999px; background: rgba(17, 17, 20, 0.1); cursor: pointer; touch-action: none; transition: height 200ms var(--ease-out); }
.rail-thumb { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--ink); }
.rail-btn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.6); color: var(--ink); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(17, 17, 20, 0.1); transition: transform 160ms var(--ease-out), opacity 200ms ease, background-color 200ms ease; }
.rail-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:active { transform: scale(0.92); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.f-pink .rail-track { background: rgba(17, 17, 20, 0.14); }
@media (hover: hover) and (pointer: fine) {
  .rail-track:hover { height: 10px; }
  .rail-btn:not(:disabled):hover { background: var(--ink); color: #fff; }
}
