  :root {
    --paper: #fbf5e6;
    --card: #fffdf7;
    --band: #e4efd6;
    --leaf: #2f6f4e;
    --leaf-2: #4f9a62;
    --moss: #8fc274;
    --sun: #f7c82e;
    --sun-soft: #fde9a6;
    --sky: #9bd8cf;
    --clay: #d9734e;
    --ink: #1d2a21;
    --muted: #56665a;
    --line: #e2d8bf;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    color: var(--ink);
    font: 400 17px/1.65 Poppins, system-ui, sans-serif;
    background:
      radial-gradient(900px 520px at 88% -120px, rgba(247,200,46,.45), transparent 70%),
      radial-gradient(700px 480px at -10% 0, rgba(155,216,207,.45), transparent 70%),
      var(--paper);
    overflow-x: hidden;
  }
  a { color: var(--leaf); text-underline-offset: 3px; }
  .wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
  @media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }
  h1, h2, h3, h4 { font-family: Fraunces, Georgia, serif; font-weight: 800; letter-spacing: -.01em; }

  /* the series' tilted paper strip, in sun yellow */
  .strip {
    display: inline-block; font-family: Poppins, sans-serif; font-weight: 800;
    font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--ink); background: var(--sun); padding: 4px 12px 3px;
    transform: rotate(-1.2deg); box-shadow: 0 4px 0 rgba(47,111,78,.18);
  }
  .strip.g { background: var(--leaf); color: var(--paper); }

  /* top bar */
  header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
  .brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--leaf); image-rendering: pixelated; }
  .brand b { display: block; font-family: Fraunces, serif; font-weight: 800; font-size: 18px; line-height: 1.2; }
  .brand span { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
  .chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--leaf); }
  .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 3px rgba(143,194,116,.3); }

  /* featured film */
  .hero { position: relative; padding-top: 36px; overflow-x: clip; }
  html, body { overflow-x: clip; }
  @media (max-width: 640px) { .sun { width: 170px; height: 170px; right: -24px; top: 10px; } }
  .sun { position: absolute; right: -40px; top: -10px; width: 260px; height: 260px; z-index: 0; pointer-events: none; opacity: .9; }
  .sun .rays { transform-origin: 130px 130px; animation: spin 80s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .sun .rays { animation: none; } }
  .hero-head { position: relative; z-index: 1; max-width: 820px; }
  .hero h1 { margin: 14px 0 4px; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; color: var(--leaf); }
  .hero .sub { margin: 0; font-size: clamp(17px, 2.4vw, 22px); color: var(--ink); font-weight: 500; }

  .stage { position: relative; margin-top: 28px; z-index: 1; }
  .frame {
    position: relative; aspect-ratio: 16/9; width: 100%;
    border-radius: 28px; overflow: hidden; background: #0c1a12;
    border: 10px solid var(--card);
    box-shadow: 0 2px 0 var(--line), 0 30px 70px -20px rgba(47,111,78,.45), 0 10px 30px -10px rgba(217,115,78,.25);
  }
  .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .sprig { position: absolute; width: 120px; height: 120px; z-index: 2; pointer-events: none; }
  .sprig.tl { left: -34px; top: -40px; }
  .sprig.br { right: -30px; bottom: -36px; transform: rotate(180deg); }
  @media (max-width: 640px) { .sprig { width: 76px; height: 76px; } .sprig.tl { left: -14px; top: -26px; } .sprig.br { right: -12px; bottom: -24px; } }

  .film-meta { display: grid; gap: 22px; margin-top: 36px; }
  @media (min-width: 880px) { .film-meta { grid-template-columns: 1.45fr 1fr; gap: 44px; } }
  .film-meta p { margin: 0 0 12px; color: var(--muted); }
  .film-meta p b { color: var(--ink); font-weight: 600; }
  .credits { list-style: none; margin: 0; padding: 14px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; font-size: 15px; }
  .credits li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
  .credits li:last-child { border-bottom: 0; }
  .credits span:first-child { color: var(--muted); }
  .credits span:last-child { text-align: right; font-weight: 500; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--leaf); color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 600; }
  .btn.ghost { background: var(--card); color: var(--leaf); border: 1px solid var(--line); }
  .btn:hover { filter: brightness(1.08); }
  .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

  /* green band for how it was made */
  .band { position: relative; margin-top: 72px; background: var(--band); }
  .wave { display: block; width: 100%; height: 56px; }
  .wave.top { position: absolute; top: -55px; left: 0; }
  .wave.bottom { position: absolute; bottom: -55px; left: 0; transform: scaleY(-1); }
  .band .wrap { padding-top: 40px; padding-bottom: 48px; }
  section h2 { margin: 14px 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; color: var(--leaf); }
  .kicker { max-width: 760px; margin: 0 0 30px; color: var(--muted); }

  .how { display: grid; gap: 32px; }
  .how { max-width: 860px; }
  .split { display: grid; gap: 32px; }
  @media (min-width: 960px) { .split { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }
  .back { display: inline-block; margin-top: 28px; font-weight: 600; text-decoration: none; }

  /* the process log, as the mini-app posts it */
  .post { background: var(--card); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(47,111,78,.45); }
  .post .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 18px; background: var(--leaf); color: var(--paper); font-size: 13px; }
  .post .bar b { font-weight: 600; }
  .post .bar b em { font-style: normal; font-weight: 800; color: var(--sun); }
  .badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 500; white-space: nowrap; }
  .badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
  .post .body { padding: 22px 22px 8px; max-height: 640px; overflow: auto; }
  .post h4 { margin: 0 0 6px; font-size: 23px; line-height: 1.25; }
  .post .one { margin: 0 0 8px; color: var(--muted); }
  .post dl { margin: 0; }
  .post dt { margin-top: 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--leaf-2); }
  .post dd { margin: 4px 0 0; font-size: 15px; line-height: 1.65; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chips span { padding: 2px 10px; border-radius: 999px; background: var(--band); color: var(--leaf); font-size: 13px; font-weight: 500; }
  .post .foot { padding: 12px 22px 16px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); }

  .tool h3 { margin: 0 0 8px; font-size: 26px; color: var(--ink); }
  .tool > p { margin: 0 0 22px; color: var(--muted); }
  .steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
  .steps li { position: relative; padding: 0 0 20px 54px; counter-increment: s; }
  .steps li::before {
    content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; background: var(--sun); color: var(--ink); font-weight: 800;
    box-shadow: 0 0 0 5px rgba(247,200,46,.28);
  }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: 4px; width: 2px; background: repeating-linear-gradient(var(--leaf-2) 0 4px, transparent 4px 9px); }
  .steps b { display: block; font-weight: 600; }
  .steps span { color: var(--muted); font-size: 15px; }
  .ops { margin: 4px 0 18px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; font-size: 14px; color: var(--muted); }
  .ops code { color: var(--leaf); font-size: 13px; font-weight: 600; }

  .tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  @media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .tile { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
  .tile b { display: block; font-family: Fraunces, serif; font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: var(--clay); line-height: 1.05; }
  .tile em { display: block; margin-top: 4px; font-style: normal; font-weight: 600; font-size: 15px; }
  .tile span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

  /* more films */
  .more { padding-top: 104px; }
  .reels { display: grid; gap: 28px; grid-template-columns: 1fr; }
  @media (min-width: 760px) { .reels { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1080px) { .reels { grid-template-columns: repeat(3, 1fr); } }
  .reel { display: flex; flex-direction: column; min-width: 0; }
  .reel h3 { margin: 0 0 4px; font-size: 21px; line-height: 1.25; }
  .reel p { margin: 0 0 14px; color: var(--muted); font-size: 15px; min-height: 3.3em; }
  .reel .embed { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(47,111,78,.4); }
  .reel .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; border: 0 !important; box-shadow: none !important; }
  .reel .fallback { display: block; padding: 18px; font-weight: 600; text-decoration: none; }

  footer { padding: 72px 0 56px; }
  .note { padding: 22px 24px; border-radius: 22px; background: var(--card); border: 2px dashed var(--moss); color: var(--muted); }
  .note b { color: var(--ink); font-weight: 600; }
  .sign { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
  .sign img.pfp { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2px solid var(--leaf); image-rendering: pixelated; }
  .sign .yt { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
  .sign .yt img { height: 20px; width: auto; }
  footer .small { margin-top: 16px; color: var(--muted); font-size: 14px; }

  .sign .yt .ig { width: 20px; height: 20px; color: #c13584; }
