/* R17 hero — variant 45 "dark-fan": a dark screening room inside the mint page.
   Two axes on one stage: the four source photos fan on the left of the phone, the five
   styles stand on the right, and the eight example people run underneath with faces.
   Ported from output/birthdayclip-hf-2026-09-12 (shared/r16/axes.css + 45-dark-fan/theme.css,
   with the bits of r12/base.css and r13/context.css the stage needs). Only the hero: the rest
   of the page keeps paper.css. Every rule is prefixed so it cannot reach past the hero. */

/* ---------- the grid: copy left, stage right ---------- */
.paper-page .integration-hero .hero-r17{grid-template-columns:minmax(0,.72fr) minmax(0,1.5fr);gap:34px;max-width:1420px;padding:36px 40px 36px;align-items:center}
.paper-page .integration-hero .hero-r17 .integration-hero-copy{max-width:440px;padding-bottom:0}

/* ---------- copy ---------- */
/* The eyebrow is the gift claim, so it reads at a glance: ~1.7x the old tracked label,
   heavier, in the site blue. Still an eyebrow — the headline is the headline. */
.paper-page .integration-hero .hero-r17 .hero-eyebrow{display:block;font:700 18px/1.3 var(--body);letter-spacing:.09em;text-transform:uppercase;color:#2a49c9;background:none;padding:0;margin:0 0 16px;transform:none}
.paper-page .integration-hero .hero-r17 h1{font:650 clamp(40px,4.05vw,60px)/1.06 var(--display);letter-spacing:-.045em;max-width:9.5em;margin:0 0 22px;color:#203d37;white-space:normal}
.paper-page .integration-hero .hero-r17 .lead{font-size:17px;line-height:1.65;max-width:400px;color:#596762;margin:0}
.paper-page .integration-hero .hero-r17 .hero-actions{gap:20px;margin-top:26px}
.paper-page .integration-hero .hero-r17 .integration-promise{font-size:12px;line-height:1.6;margin:18px 0 0;color:#596d64;max-width:430px}
.paper-page .integration-hero .hero-r17 .hero-note{font-size:11px;line-height:1.5;color:#637970;margin:6px 0 0;max-width:380px}

/* ---------- the stage ---------- */
.paper-page .hero-r17 .hero-stage{min-width:0;background:#102820;border:1px solid #1b382d;border-radius:26px;padding:26px 28px 16px;box-shadow:0 24px 60px -30px #164b2d99;color:#eef9f0}
.paper-page .hero-r17 .axes-grid{display:grid;grid-template-columns:minmax(150px,205px) minmax(0,250px) minmax(160px,215px);gap:24px;align-items:center;justify-content:center}
.paper-page .hero-r17 .axes-photos,.paper-page .hero-r17 .axes-video,.paper-page .hero-r17 .axes-styles{min-width:0}
.paper-page .hero-r17 .micro-label{text-align:left;margin:0 0 10px;font:650 11px/1.5 var(--body);color:#bed2c4;letter-spacing:.02em;text-transform:none}

/* the fan of four photographs */
.paper-page .hero-r17 .photo-cluster{position:relative;display:block;height:270px}
.paper-page .hero-r17 .source-photo{position:absolute;bottom:52px;left:50%;width:50%;margin-left:-25%;aspect-ratio:3/4;transform-origin:50% 135%;min-width:0;min-height:0;padding:0;border:3px solid #eef5e9;border-radius:8px;background:#fff;box-shadow:0 8px 18px #0006;overflow:hidden;transition:transform .3s,box-shadow .3s,border-color .3s}
.paper-page .hero-r17 .source-photo img{width:100%;height:100%;object-fit:cover}
.paper-page .hero-r17 .source-photo span{position:absolute;bottom:2px;left:2px;background:#fffce9e8;color:#203d37;font-size:8px;padding:1px 4px;border-radius:3px}
.paper-page .hero-r17 .source-photo:nth-child(1){transform:rotate(-27deg)}
.paper-page .hero-r17 .source-photo:nth-child(2){transform:rotate(-9deg)}
.paper-page .hero-r17 .source-photo:nth-child(3){transform:rotate(9deg)}
.paper-page .hero-r17 .source-photo:nth-child(4){transform:rotate(27deg)}
.paper-page .hero-r17 .source-photo:hover{z-index:5}
.paper-page .hero-r17 .source-photo[aria-pressed=true]{transform:rotate(0) translateY(-18px) scale(1.06);border-color:#c3f8a8;z-index:6;animation:r17-photo-blink 1.1s ease-in-out infinite alternate}
@keyframes r17-photo-blink{from{box-shadow:0 0 0 0 #c3f8a866,0 8px 18px #0006}to{box-shadow:0 0 0 7px #c3f8a800,0 8px 18px #0006}}
.paper-page .hero-r17 .scene-note{font-size:11px;color:#c3f8a8;font-weight:600;min-height:32px;margin:10px 0 0;line-height:1.4;text-align:left}

/* the phone */
.paper-page .hero-r17 .video-wrap{position:relative;aspect-ratio:9/16;background:#183b32;border:1px solid #6b8b664d;border-radius:20px;overflow:hidden;box-shadow:0 0 0 6px #ffffff0d,0 24px 50px #0008}
.paper-page .hero-r17 .video-wrap video{width:100%;height:100%;object-fit:contain;display:block}
.paper-page .hero-r17 .sound-toggle{position:absolute;top:14px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#0b1d18d9;color:#fff;border:1px solid #ffffff7a;border-radius:40px;backdrop-filter:blur(10px);min-height:44px;min-width:0;padding:8px 13px;font:600 11px/1.3 var(--body);box-shadow:0 2px 12px #0002}
.paper-page .hero-r17 .play-progress{position:absolute;bottom:0;left:0;height:3px;background:#f7d257;width:100%;transform:scaleX(0);transform-origin:left}

/* the five styles */
.paper-page .hero-r17 .style-rail{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.paper-page .hero-r17 .style-item{display:grid;grid-template-columns:auto 1fr;gap:0 9px;align-items:center;width:100%;min-width:0;min-height:44px;padding:6px 10px;border:1px solid #2c5245;border-radius:12px;background:#183b31;text-align:left;font:650 12px/1.25 var(--body);color:#dff0e3;transition:background .15s,border-color .15s}
.paper-page .hero-r17 .style-item em{font-style:normal;font-size:9px;font-weight:600;color:#8fb09e}
.paper-page .hero-r17 .style-item.is-quiet{background:#132f28;border-style:dashed;color:#9db8a9}
.paper-page .hero-r17 .style-item[aria-pressed=true]{background:#c3f8a8;border-color:#c3f8a8;color:#102820;box-shadow:none}
.paper-page .hero-r17 .style-item[aria-pressed=true] em{color:#3d5a49}

/* the people */
.paper-page .hero-r17 .people-rail{display:flex;align-items:center;justify-content:center;gap:10px;margin:18px 0 4px}
.paper-page .hero-r17 .people-rail>button{width:44px;height:44px;min-height:44px;min-width:44px;padding:0;border-radius:50%;border:1px solid #2c5245;background:#183b31;color:#eef9f0;font-size:18px;flex-shrink:0}
.paper-page .hero-r17 .people-rail>button.rotation{font-size:12px}
.paper-page .hero-r17 .people{list-style:none;margin:0;padding:0;display:flex;gap:4px}
.paper-page .hero-r17 .person{display:grid;justify-items:center;gap:3px;padding:3px 2px;border:0;background:none;min-height:0;min-width:0;border-radius:12px;width:56px}
.paper-page .hero-r17 .person img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 6px #0004;transition:transform .2s,border-color .2s;background:#183b31}
.paper-page .hero-r17 .person span{font-size:9px;color:#a9c4b4;font-weight:600;white-space:nowrap}
.paper-page .hero-r17 .person[aria-pressed=true] img{border-color:#c3f8a8;box-shadow:0 0 0 2px #c3f8a83a;transform:scale(1.08)}
.paper-page .hero-r17 .person[aria-pressed=true] span{color:#c3f8a8}
.paper-page .hero-r17 .person:hover img{transform:scale(1.08)}
.paper-page .hero-r17 .identity{text-align:center;margin:4px 0 0}
.paper-page .hero-r17 .identity strong{font-size:14px;color:#fff}
.paper-page .hero-r17 .identity span{display:block;font-size:11px;color:#a9c4b4;margin-top:2px}
.paper-page .hero-r17 .rail-note{text-align:center;font-size:11px;color:#c3f8a8;margin:6px 0 0;min-height:16px;line-height:1.4}
.paper-page .hero-r17 .sample-note{text-align:center;font-size:10px;line-height:1.6;color:#8fb09e;margin:6px 0 0}
.paper-page .hero-r17 .hero-stage button:focus-visible{outline:3px solid #c3f8a8;outline-offset:3px}
/* Before the runtime fills it there are no people and no photographs; the shell shows the
   poster, the labels and the five style names, and nothing that looks like a broken control. */
.paper-page .hero-r17 .hero-stage:not(.is-ready) .people-rail,.paper-page .hero-r17 .hero-stage:not(.is-ready) .identity,.paper-page .hero-r17 .hero-stage:not(.is-ready) .axes-photos{display:none}
.paper-page .hero-r17 .hero-stage:not(.is-ready) .axes-grid{grid-template-columns:minmax(0,250px) minmax(160px,215px)}

/* ---------- widths ---------- */
@media(max-width:1100px){
  .paper-page .integration-hero .hero-r17{gap:18px;grid-template-columns:minmax(0,.62fr) minmax(0,1.6fr);padding:34px 30px}
  .paper-page .integration-hero .hero-r17 h1{font-size:44px}
  .paper-page .integration-hero .hero-r17 .lead{font-size:15px}
  .paper-page .hero-r17 .axes-grid{grid-template-columns:minmax(120px,150px) minmax(0,190px) minmax(130px,165px);gap:12px}
  .paper-page .hero-r17 .style-item{font-size:11px;padding:5px 8px;min-height:40px}
  .paper-page .hero-r17 .photo-cluster{height:220px}
  .paper-page .hero-r17 .person{width:42px}
  .paper-page .hero-r17 .person img{width:32px;height:32px}
  .paper-page .hero-r17 .person span{display:none}
}
@media(max-width:900px){
  /* One column: the copy, then the stage, as the mockup stacks them on a phone. */
  .paper-page .integration-hero .hero-r17{grid-template-columns:1fr;max-width:750px;gap:22px;padding:30px 25px 32px}
  .paper-page .integration-hero .hero-r17 .integration-hero-copy{text-align:left;max-width:480px;width:100%;padding-bottom:0}
  .paper-page .integration-hero .hero-r17 .hero-eyebrow{font-size:15px;margin-bottom:12px}
  .paper-page .integration-hero .hero-r17 h1{font-size:42px;line-height:1.08;letter-spacing:-1.7px;max-width:11em;margin:0 0 17px}
  .paper-page .integration-hero .hero-r17 h1 br{display:none}
  .paper-page .integration-hero .hero-r17 .lead{font-size:14px;line-height:1.6;max-width:380px;margin:0}
  .paper-page .integration-hero .hero-r17 .hero-actions{justify-content:flex-start;flex-direction:row;gap:15px;margin-top:20px}
  .paper-page .integration-hero .hero-r17 .hero-actions .primary{min-height:46px;font-size:13px;padding:13px 18px}
  .paper-page .integration-hero .hero-r17 .integration-promise{font-size:11px;margin-top:16px}
  .paper-page .integration-hero .hero-r17 .hero-note{font-size:10px;max-width:none;text-align:left}
  .paper-page .hero-r17 .hero-stage{width:100%;max-width:500px;justify-self:start;margin:0}
}
@media(max-width:760px){
  .paper-page .hero-r17 .hero-stage{padding:18px 14px 12px;border-radius:22px}
  .paper-page .hero-r17 .axes-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px;align-items:start}
  .paper-page .hero-r17 .axes-video{grid-column:1}
  .paper-page .hero-r17 .axes-styles{grid-column:2}
  .paper-page .hero-r17 .axes-photos{grid-column:1/-1;order:3}
  .paper-page .hero-r17 .video-wrap{border-radius:18px}
  .paper-page .hero-r17 .sound-toggle{top:10px;font-size:10px;padding:8px 10px;min-height:40px}
  .paper-page .hero-r17 .style-rail{gap:5px}
  .paper-page .hero-r17 .style-item{font-size:11px;min-height:40px;padding:5px 8px;gap:0 7px}
  .paper-page .hero-r17 .style-item em{font-size:8px}
  /* the fan becomes a row of four */
  .paper-page .hero-r17 .photo-cluster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;height:auto}
  .paper-page .hero-r17 .source-photo{position:static;width:auto;margin:0;aspect-ratio:1;transform-origin:center}
  .paper-page .hero-r17 .source-photo:nth-child(odd){transform:rotate(-3deg)}
  .paper-page .hero-r17 .source-photo:nth-child(even){transform:rotate(3deg)}
  .paper-page .hero-r17 .source-photo[aria-pressed=true]{transform:rotate(0) translateY(-3px) scale(1.04)}
  .paper-page .hero-r17 .scene-note{min-height:18px;margin-top:8px;font-size:10.5px}
  .paper-page .hero-r17 .people-rail{gap:4px;margin-top:14px}
  .paper-page .hero-r17 .people{gap:1px}
  .paper-page .hero-r17 .person{width:33px;padding:2px 0}
  .paper-page .hero-r17 .person img{width:28px;height:28px}
  .paper-page .hero-r17 .people-rail>button{width:36px;height:36px;min-height:36px;min-width:36px;font-size:15px}
  .paper-page .hero-r17 .people-rail>button.rotation{display:none}
  .paper-page .hero-r17 .hero-stage:not(.is-ready) .axes-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
}
@media(max-width:600px){
  .paper-page .integration-hero .hero-r17{padding:26px 18px 30px;gap:20px}
}
@media(max-width:360px){
  .paper-page .integration-hero .hero-r17 h1{font-size:37px}
  .paper-page .hero-r17 .person{width:30px}
  .paper-page .hero-r17 .person img{width:26px;height:26px}
}
@media(prefers-reduced-motion:reduce){
  .paper-page .hero-r17 .source-photo,.paper-page .hero-r17 .person img,.paper-page .hero-r17 .style-item{transition:none;animation:none}
}
