/* Panda UGC portfolio, in the Panda & Bamboo brand (pandaclub.io/bamboo):
   warm paper, ink, bamboo green, Newsreader over Inter, lines drawn by hand,
   and a lot of air. */
:root {
  --bg: #f6f3ec;
  --card: #fffdf7;
  --ink: #12130f;
  --accent: #14432f;
  --ink-85: rgba(18, 19, 15, 0.85);
  --ink-60: rgba(18, 19, 15, 0.6);
  --ink-45: rgba(18, 19, 15, 0.45);
  --line: rgba(18, 19, 15, 0.12);
  --line-strong: rgba(18, 19, 15, 0.22);
  --radius: 18px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1152px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Paper grain, as on the landing page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
::selection { background: var(--accent); color: var(--bg); }
h1, h2, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }

/* Type */
.eyebrow { font-size: 13px; color: var(--ink-45); letter-spacing: 0; }
.section-title, .hero__title, .cta__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Buttons: the landing page's rounded pills. */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pill:active { transform: translateY(1px); }
.pill--accent { background: var(--accent); color: var(--bg); }
.pill--accent:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.pill--ghost { border-color: rgba(18, 19, 15, 0.15); color: var(--ink-85); }
.pill--ghost:hover { border-color: rgba(18, 19, 15, 0.3); color: var(--ink); }
.pill--large { min-height: 50px; padding: 13px 28px; font-size: 15px; }

/* Draft banner */
.draft-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-60);
  font-size: 13.5px;
  text-align: center;
}
.draft-banner strong { color: var(--ink); font-weight: 500; }
.draft-banner__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #c2603c; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar__name { font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; line-height: 1; }
.topbar__nav { display: flex; align-items: center; gap: 24px; }
.topbar__link { font-size: 13.5px; color: var(--ink-60); transition: color 0.2s ease; }
.topbar__link:hover { color: var(--ink); }
.topbar .pill { min-height: 36px; padding: 8px 16px; font-size: 13.5px; }

/* Hero: centred, like the Bamboo page. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(48px, 6vw, 72px);
  text-align: center;
}
.hero__visual { position: relative; width: clamp(150px, 20vw, 210px); margin-bottom: 30px; }
/* Their real photo, set on the paper like a print. Many come from a frame of
   a vertical video, where the face sits high, so the crop keeps the top. */
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(18, 19, 15, 0.04), 0 18px 36px -24px rgba(18, 19, 15, 0.45);
}
.hero__monogram {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1.3px solid var(--ink);
  /* A circle nobody ruled. */
  border-radius: 52% 48% 50% 50% / 49% 52% 48% 51%;
  font-family: var(--serif);
  font-size: clamp(72px, 10vw, 104px);
  line-height: 1;
  color: var(--ink);
}
.hero__monogram::after {
  content: "";
  position: absolute;
  inset: 5px -4px -3px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 48% 52% 47% 53% / 52% 47% 53% 48%;
  pointer-events: none;
}
.hero__monogram span { transform: translateY(-3%); }
/* Notes pencilled beside the portrait, in the landing page's quiet voice. */
.note {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-60);
  white-space: nowrap;
}
.note::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: var(--ink-45);
}
.note--1 { top: 18%; right: calc(100% + 48px); }
.note--1::before { left: calc(100% + 8px); transform: rotate(4deg); }
.note--2 { bottom: 16%; left: calc(100% + 48px); }
.note--2::before { right: calc(100% + 8px); transform: rotate(-4deg); }

.hero__title {
  margin-top: 12px;
  font-size: clamp(44px, 6.6vw, 76px);
  line-height: 1.04;
}
.hero__pitch {
  margin-top: 18px;
  max-width: 50ch;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.6;
  color: var(--ink-60);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.hero__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 22px; }
.social {
  font-size: 13.5px;
  color: var(--ink-45);
  text-decoration: underline;
  text-decoration-color: rgba(18, 19, 15, 0.2);
  text-underline-offset: 5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.social:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Facts: one quiet ruled row. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.fact {
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-size: 12.5px; color: var(--ink-45); }
.fact dd { margin-top: 4px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.01em; line-height: 1.2; }

/* The hand-drawn stem between sections. */
.divider { display: flex; justify-content: center; padding: clamp(28px, 4vw, 44px) 0; color: var(--ink); }
.stem { width: 12px; height: clamp(72px, 9vw, 110px); }

/* Section heads */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.section-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }
.section-title--left { text-align: left; }

/* Work */
.work { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.work__progress {
  margin-top: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-60);
}
.work__progress strong { color: var(--ink); font-weight: 500; }

/* Wraps and centres, so a short last row sits in the middle, not hard left. */
.slots {
  --cols: 5;
  --gap: clamp(12px, 1.6vw, 20px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px var(--gap);
  margin-top: clamp(36px, 5vw, 56px);
}
.slot { min-width: 0; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.slot__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9e4d8;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(18, 19, 15, 0.04), 0 18px 36px -24px rgba(18, 19, 15, 0.45);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.slot__video, .slot__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18, 19, 15, 0.55));
}
.tone-1 { background: radial-gradient(90% 60% at 30% 30%, #ecd6c4, transparent 70%), linear-gradient(160deg, #c9a58c, #7a5a48); }
.tone-2 { background: radial-gradient(90% 60% at 70% 25%, #dfe6d2, transparent 70%), linear-gradient(160deg, #93a887, #3f5a46); }
.tone-3 { background: radial-gradient(90% 60% at 40% 30%, #e2dbee, transparent 70%), linear-gradient(160deg, #a497bd, #544a68); }
.tone-4 { background: radial-gradient(90% 60% at 60% 30%, #f1e0c7, transparent 70%), linear-gradient(160deg, #d3ae7c, #75573a); }
.tone-5 { background: radial-gradient(90% 60% at 35% 25%, #d6e6e7, transparent 70%), linear-gradient(160deg, #86aab0, #3a5a5f); }
.slot__chip {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.slot__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.15;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.slot__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(246, 243, 236, 0.92);
  transition: transform 0.25s var(--ease-out), opacity 0.25s ease;
}
.slot__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--ink);
  transform: translate(-50%, -50%);
}
.slot__frame:hover .slot__play { transform: scale(1.08); }
.slot__frame.is-playing .slot__play,
.slot__frame.is-playing .slot__caption,
.slot__frame.is-previewing .slot__play { opacity: 0; }
.slot__meta { margin-top: 10px; font-size: 13px; color: var(--ink-45); }
.slot__meta strong { color: var(--ink-85); font-weight: 500; }
@media (hover: hover) {
  .slot__frame:not(.slot__frame--empty):hover {
    transform: translateY(-6px);
    box-shadow: 0 1px 0 rgba(18, 19, 15, 0.04), 0 30px 50px -26px rgba(18, 19, 15, 0.55);
  }
}

/* Brief slots: an open page waiting for the next video. */
.slot__frame--empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  background: var(--card);
  color: var(--ink);
  box-shadow: none;
  cursor: default;
}
a.slot__frame--empty { cursor: pointer; }
a.slot__frame--empty:hover { border-color: var(--ink-45); }
.slot__number { font-family: var(--serif); font-size: 30px; line-height: 1; color: rgba(18, 19, 15, 0.2); }
.slot__brief-kicker { margin-top: auto; font-size: 12px; color: var(--accent); }
.slot__brief-title { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.15; letter-spacing: -0.01em; }
.slot__brief-brand { font-size: 13px; color: var(--ink-60); }
.slot__brief-summary { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-60); }
.slot__cta { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-60); }

.brands { margin-top: clamp(48px, 6vw, 72px); text-align: center; }
.brands__list {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brands__list span { color: var(--ink-45); }

/* Offer */
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.offer__intro .section-title { margin-top: 10px; max-width: 15ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li {
  padding: 6px 14px;
  border: 1px solid rgba(18, 19, 15, 0.15);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-85);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
@media (hover: hover) { .chips li:hover { border-color: var(--accent); background: var(--card); } }
.details { align-self: end; }
.detail {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.detail:first-child { border-top: 1px solid var(--line); }
.detail dt { font-size: 13px; color: var(--ink-45); padding-top: 2px; }
.detail dd { font-size: 15px; color: var(--ink-85); }

/* CTA: the panda on the paper, not a coloured block. */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(72px, 9vw, 120px);
  text-align: center;
}
.cta__panda { width: clamp(110px, 12vw, 150px); height: auto; margin-bottom: 18px; }
.cta__title { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; max-width: 14ch; }
.cta .pill { margin-top: 14px; }

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-45);
}
.footer a { display: inline-flex; align-items: center; gap: 10px; transition: color 0.2s ease; }
.footer a:hover { color: var(--ink); }
.footer img { width: 20px; height: auto; }
.footer strong { color: var(--ink-85); font-weight: 500; }

/* Responsive */
@media (max-width: 1100px) {
  .slots { --cols: 3; }
}
@media (max-width: 860px) {
  .note { position: static; display: block; margin-top: 4px; font-size: 14px; }
  .note::before { display: none; }
  .hero__visual { display: flex; flex-direction: column; align-items: center; }
  .hero__visual .note:first-of-type { margin-top: 18px; }
}
@media (max-width: 760px) {
  .topbar__link { display: none; }
  .topbar__name { font-size: 19px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-bottom: 0; }
  .fact + .fact { border-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .facts .fact:last-child { border-bottom: 1px solid var(--line); }
  .facts .fact:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .facts .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .slots { --cols: 2; }
  /* Brief cards hold text; let them grow instead of clipping at 9:16. */
  .slot__frame--empty { aspect-ratio: auto; min-height: 100%; padding: 14px; }
  .slot--brief { display: flex; }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ------------------------------------------------------------------
   Motion. Transform and opacity only; content stays visible without
   JavaScript (.no-js) and for reduced-motion users.
   ------------------------------------------------------------------ */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word > span { display: inline-block; }
.js .hero__title .word > span { transform: translateY(105%); animation: rise-in 0.9s var(--ease-out) forwards; }
.js .hero__title .word:nth-child(1) > span { animation-delay: 0.2s; }
.js .hero__title .word:nth-child(2) > span { animation-delay: 0.27s; }
.js .hero__title .word:nth-child(3) > span { animation-delay: 0.34s; }
.js .hero__title .word:nth-child(4) > span { animation-delay: 0.41s; }
.js .hero__title .word:nth-child(n+5) > span { animation-delay: 0.48s; }
.js .intro { opacity: 0; transform: translateY(12px); animation: fade-up 0.9s var(--ease-out) forwards; }
.js .intro--photo { animation-delay: 0s; }
.js .intro--1 { animation-delay: 0.12s; }
.js .intro--2 { animation-delay: 0.55s; }
.js .intro--3 { animation-delay: 0.65s; }
.js .intro--4 { animation-delay: 0.75s; }
.js .pop { opacity: 0; animation: fade-in 1s ease forwards; }
.js .pop--1 { animation-delay: 0.9s; }
.js .pop--2 { animation-delay: 1.1s; }
@keyframes rise-in { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* The stem draws itself in, top to bottom, when it scrolls into view. */
.js .divider .stem path { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.4s ease-in-out; }
.js .divider.is-in .stem path { stroke-dashoffset: 0; }

.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-words] .word > span { transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
.js [data-reveal-words].is-in .word > span { transform: none; }
.js [data-reveal-words].is-in .word:nth-child(2) > span { transition-delay: 0.04s; }
.js [data-reveal-words].is-in .word:nth-child(3) > span { transition-delay: 0.08s; }
.js [data-reveal-words].is-in .word:nth-child(4) > span { transition-delay: 0.12s; }
.js [data-reveal-words].is-in .word:nth-child(5) > span { transition-delay: 0.16s; }
.js [data-reveal-words].is-in .word:nth-child(6) > span { transition-delay: 0.2s; }
.js [data-reveal-words].is-in .word:nth-child(n+7) > span { transition-delay: 0.24s; }
.js .slot:nth-child(2)[data-reveal] { transition-delay: 0.07s; }
.js .slot:nth-child(3)[data-reveal] { transition-delay: 0.14s; }
.js .slot:nth-child(4)[data-reveal] { transition-delay: 0.21s; }
.js .slot:nth-child(5)[data-reveal] { transition-delay: 0.28s; }
.js .slot:nth-child(n+6)[data-reveal] { transition-delay: 0.35s; }
.js .fact[data-reveal]:nth-child(2) { transition-delay: 0.05s; }
.js .fact[data-reveal]:nth-child(3) { transition-delay: 0.1s; }
.js .fact[data-reveal]:nth-child(4) { transition-delay: 0.15s; }
.js .fact[data-reveal]:nth-child(5) { transition-delay: 0.2s; }

/* The panda breathes on the paper, like the figures on the landing page. */
.js .cta.is-in .cta__panda { animation: breathe 5s ease-in-out infinite alternate; transform-origin: 50% 92%; }
@keyframes breathe { from { transform: rotate(-0.8deg); } to { transform: rotate(0.8deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .intro, .js .pop, .js [data-reveal], .js .hero__title .word > span,
  .js [data-reveal-words] .word > span { opacity: 1 !important; transform: none !important; }
  .js .divider .stem path { stroke-dashoffset: 0; }
}
