/* Product page: the plate unrolls. Chrome and tokens live in site.css. */

/* Hero: one enormous oval, wider than the window and clipped at the top, the stamp set clear below it. */
.hero{position:relative;overflow:hidden;padding-bottom:1.4rem}
.hero--bare{padding-top:1.5rem}
.hero__stage{display:flex;justify-content:center;margin-top:-3rem}
.hero__plate{flex:none;width:min(106vw,175vh);animation:unroll 900ms var(--ease) both}
.hero__foot{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2.5rem;padding:0 var(--pad);margin-top:clamp(.9rem,2.2vh,1.7rem)}

/* The set piece: the mask opens from a flat line to full height; the stamp slides in and stops dead. */
@keyframes unroll{
  from{clip-path:inset(49% 0 49% 0 round 50%)}
  to{clip-path:inset(0 0 0 0 round 50%)}
}
@keyframes stamp{
  from{transform:translateX(-130%)}
  to{transform:none}
}

/* Stamp: name and listed price on a masa strip, level Alegreya Sans. It sits below the oval, never over it. */
.stamp{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.6rem;max-width:100%;padding:.9rem 1.5rem 1rem;background:var(--accent);color:var(--ground);animation:stamp 700ms cubic-bezier(.5,0,.15,1) 200ms both}
.stamp__name{margin:0;font-family:'Alegreya Sans','Segoe UI',system-ui,sans-serif;font-weight:500;font-size:clamp(2rem,3.6vw,3.2rem);line-height:1.05;letter-spacing:0}
.stamp__kind{margin:.2rem 0 0;font-size:1.0625rem;font-weight:500}
.stamp__price{margin:0;padding-left:1.5rem;border-left:2px solid var(--ground);font-weight:500;font-size:clamp(1.7rem,2.8vw,2.5rem);line-height:1;white-space:nowrap}
.hero__line{flex:1 1 18rem;max-width:36ch;margin:0;font-size:var(--fs-lead);line-height:1.35}

/* Picture buttons (added by the script): the whole oval opens the large view. */
.zoom{position:absolute;inset:0;z-index:3;width:100%;height:100%;padding:0;border:0;border-radius:50%;background:transparent;cursor:zoom-in}
.zoom:hover{box-shadow:inset 0 0 0 .25rem var(--accent)}
.zoom:focus-visible{outline-offset:-.5rem}

/* Lead: one statement, set large, run wide across the page. */
.intro{padding:clamp(1.8rem,5vh,3.2rem) var(--pad) 0}
.intro__lead{max-width:56ch;font-size:clamp(1.35rem,1.4vw + 1rem,1.9rem);line-height:1.34}

/* Chapters: room above for the angled heading to climb; the copy sits on its own panel, no rail. */
.chap{padding:clamp(3.5rem,9vh,5rem) var(--pad) 0}
.chap .panel{position:relative;z-index:1;margin-top:clamp(.4rem,1.2vh,.9rem)}
.body2{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1rem,3vw,2.5rem)}
.body2 p{margin:0;max-width:46ch;font-size:clamp(1.0625rem,.4vw + 1rem,1.25rem);line-height:1.6}

/* Facts: the spec ledger beside the action panel. */
.facts{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:start;padding:clamp(3.5rem,9vh,5rem) var(--pad) 0}
.ledger--specs{--label-col:36%}
.ledger--specs .row__label{font-size:1.0625rem}
.spec__val{margin:0;font-weight:500;font-size:clamp(1.125rem,.4vw + 1.05rem,1.3rem);line-height:1.35}
/* The panel and its controls lie above the angled heading of the section that follows. */
.facts__go{position:relative;z-index:1;padding:clamp(1.4rem,3vw,2.2rem);padding-top:clamp(2rem,4vw,3rem)}
.facts__go p{font-size:1.125rem;max-width:40ch}
.facts__go .btn-row{margin:1.2rem 0}
.facts__visit{margin:0}
.facts__visit a{position:relative;z-index:2;display:inline-flex;align-items:center;min-height:44px}

/* Next: three ovals of one width on one grid, each caption on the same line under its picture. */
.next{padding:clamp(3.5rem,9vh,5rem) var(--pad) 0}
/* The angled heading is only as wide as its words, so its far end does not swing up into the panel above. */
.next > h2{width:fit-content;max-width:100%}
.next__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.1rem,2.6vw,2.4rem);align-items:start}
.next__item{min-width:0}
.next__item a{display:grid;gap:.7rem;height:100%;align-content:start;text-decoration:none}
.next__item .plate{width:100%}
.next__item .entry{display:flex;flex-wrap:nowrap;align-items:baseline;justify-content:space-between;gap:.5rem;font-size:1.125rem;line-height:1.3}
.next__name{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:.18em}
.next__item a:hover .next__name{color:var(--accent)}

/* Enlarged view: a plain dialog on the ground colour. */
.lightbox{width:min(94vw,66rem);max-width:none;padding:0;border:0;background:var(--panel);color:var(--ink);overflow:visible}
.lightbox::backdrop{background:rgba(22,5,3,.86)}
.lightbox__in{display:grid;gap:.9rem;justify-items:start;padding:.8rem}
.lightbox__in img{width:100%;height:auto;max-height:76vh;object-fit:contain}

/* Phone: oval wider than the screen, headings upright, everything in one column. */
@media (max-width:720px){
  .hero__stage{margin-top:-.8rem}
  .hero__plate{width:132vw}
  .hero__foot{margin-top:.7rem}
  .stamp{padding:.8rem 1.1rem .9rem}
  .stamp__price{padding-left:0;border-left:0}
  .facts{grid-template-columns:minmax(0,1fr)}
  .chap,.facts,.next{padding-top:2.5rem}
  .intro__lead{max-width:100%;font-size:clamp(1.25rem,.6vw + 1.1rem,1.5rem)}
  .body2{grid-template-columns:minmax(0,1fr)}
  .facts__go .btn-row{display:grid}
  .next__list{grid-template-columns:minmax(0,1fr);gap:1.8rem}
}

@media (prefers-reduced-motion:reduce){
  .hero__plate,.stamp{animation:none}
}
