/* ==========================================================================
   PAPER — nav + hero (the 2027 tour poster)
   ========================================================================== */

/* ---------- nav ---------- */
.pp-skip:focus { position: fixed; left: 12px; top: 12px; z-index: 300; width: auto; height: auto; margin: 0; clip: auto; padding: 12px 16px; background: var(--pp-ink); color: #fff; font-weight: 800; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: 72px; padding-inline: var(--pp-gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  transition: transform .5s var(--pp-ease), background .3s, box-shadow .3s, height .3s;
}
.nav.is-stuck { height: 60px; background: rgba(243,242,238,.9); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 1px 0 var(--pp-line), 0 8px 24px -18px rgba(40,30,20,.5); }
/* phones: a solid paper bar instead of a live blur over the whole scrolling page */
@media (hover: none) { .nav.is-stuck { background: rgba(243,242,238,.97); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo { justify-self: start; display: block; width: 104px; transition: width .3s, transform .4s var(--pp-ease); }
.nav-logo:hover { transform: rotate(-3deg) scale(1.04); }
.nav.is-stuck .nav-logo { width: 84px; }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav-links a { position: relative; font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--pp-ink); padding: 10px 0; }
.nav-links a::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: 5px; height: 7px; background: var(--pp-red); opacity: .9; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--pp-ease); z-index: -1; clip-path: var(--pp-brush-b); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-cart { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--pp-ink); border-radius: 50%; transition: background .2s; }
.nav-cart:hover { background: rgba(20,20,20,.07); }
.nav-cart svg { width: 22px; height: 22px; }
.nav-cart .cart-badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pp-red); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.nav-cart .cart-badge:empty, .nav-cart .cart-badge[data-zero] { display: none; }
.nav-burger { display: none; width: 44px; height: 44px; position: relative; }
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--pp-ink); border-radius: 2px; transition: transform .4s var(--pp-ease), top .4s var(--pp-ease); }
.nav-burger span:nth-child(1) { top: 16px; } .nav-burger span:nth-child(2) { top: 26px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* full-screen menu (phones / tablets) */
.menu { position: fixed; inset: 0; z-index: 110; background: var(--pp-red); color: #fff; clip-path: circle(0% at calc(100% - 44px) 36px); transition: clip-path .7s var(--pp-ease); overflow-y: auto; overscroll-behavior: contain; }
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); }
.menu-in { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 96px var(--pp-gutter) calc(32px + env(safe-area-inset-bottom, 0px)); }
.menu-links { display: grid; gap: 2px; }
.menu-links a { display: flex; align-items: baseline; gap: 14px; font-family: var(--pp-f-display); text-transform: uppercase; font-size: clamp(46px, 13vw, 84px); line-height: 1; color: #fff; text-decoration: none; padding: 4px 0; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--pp-ease), transform .6s var(--pp-ease); }
.menu.is-open .menu-links a { opacity: 1; transform: none; }
.menu.is-open .menu-links a:nth-child(1) { transition-delay: .12s; } .menu.is-open .menu-links a:nth-child(2) { transition-delay: .17s; }
.menu.is-open .menu-links a:nth-child(3) { transition-delay: .22s; } .menu.is-open .menu-links a:nth-child(4) { transition-delay: .27s; }
.menu.is-open .menu-links a:nth-child(5) { transition-delay: .32s; } .menu.is-open .menu-links a:nth-child(6) { transition-delay: .37s; }
.menu-links i { font-family: var(--pp-f-body); font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .2em; opacity: .7; }
.menu-foot { display: grid; gap: 18px; justify-items: start; }
.menu-foot .pp-pill { border-color: #fff; }
.menu-social { display: flex; flex-wrap: wrap; gap: 0 22px; }
.menu-social a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; }
.menu-foot .pp-note { color: #fff; font-size: 22px; transform: rotate(-3deg); }
html.menu-open { overflow: hidden; }
html.menu-open .nav { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.menu-open .nav-logo img { filter: brightness(0) invert(1); }
html.menu-open .nav-burger span, html.menu-open .nav-cart { background-color: #fff; color: var(--pp-red); }
html.menu-open .nav-cart { background: none; color: #fff; }
html.menu-open .nav-cta { visibility: hidden; }

@media (max-width: 940px) {
  .nav { grid-template-columns: 1fr auto; height: 64px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-logo { width: 88px; }
}
@media (max-width: 420px) { .nav-cta { display: none; } }
/* landscape phone: the six links fit the short screen as 3 x 2, footer in one row underneath */
@media (max-height: 520px) and (orientation: landscape) {
  .menu-in { justify-content: flex-start; gap: 18px; padding-top: 76px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .menu-links { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(20px, 4vw, 44px); }
  .menu-links a { font-size: clamp(26px, 4.6vw, 44px); padding: 8px 0; white-space: nowrap; gap: 8px; }
  .menu-links i { font-size: 11px; }
  .menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
  .menu-foot .pp-note { font-size: 18px; }
}

/* ---------- hero ---------- */
.hero {
  --hw: 9.3vw;                          /* font-size of the red rows */
  --row: calc(var(--hw) * .93);         /* row pitch */
  position: relative; padding: 84px 0 clamp(56px, 8vw, 110px); overflow-x: clip; isolation: isolate;
}
.hero-words { position: absolute; inset: 84px 0 auto 0; z-index: -1; }
.hero-row { height: var(--row); display: flex; justify-content: center; overflow: hidden; }
.hero-row-in { flex: none; display: flex; gap: .28em; font-family: var(--pp-f-display); font-size: var(--hw); line-height: var(--row); text-transform: uppercase; color: var(--pp-red); white-space: nowrap; will-change: transform; }
.hero-row-in span { flex: none; }
/* even rows sit half a phrase over, like bricks */
.hero-row:nth-child(even) .hero-row-in { margin-left: 5.36em; }

.hero-scribble { z-index: -1; width: clamp(120px, 20vw, 300px); opacity: .85; }
.hero-scribble--r { right: -2vw; top: calc(84px + var(--row) * 5 + 2vw); }
.hero-scribble--l { left: -3vw; bottom: 4vw; }

.hero-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: calc(var(--row) * 1.3) var(--pp-gutter) 0; }
.hero-photo { --r: -2.2deg; width: min(40vw, 540px, 62vh); width: min(40vw, 540px, 62svh); padding: clamp(8px, 1vw, 14px); box-shadow: var(--pp-shadow-3); }
.hero-photo img { aspect-ratio: 1372 / 1092; }
.hero-tape { width: clamp(120px, 15vw, 210px); height: clamp(30px, 3.6vw, 50px); top: calc(clamp(30px, 3.6vw, 50px) * -.5); rotate: -1.5deg; }
.hero-year { position: absolute; left: 50%; bottom: .12em; translate: -46% 0; rotate: -3.5deg; font-size: clamp(30px, 4.3vw, 62px); letter-spacing: -.01em; z-index: 4; }

.hero-title { position: relative; z-index: 5; display: grid; justify-items: center; margin-top: clamp(-10px, -1vw, -4px); font-weight: 400; }
.hero-aao-wrap { position: relative; display: block; rotate: -4deg; }
.hero-aao { display: block; padding: .1em .42em .06em; }
.hero-aao .pp-marker { display: block; font-size: clamp(40px, 6.3vw, 100px); white-space: nowrap; letter-spacing: -.01em; }
.hero-aao-line { position: absolute; left: 64%; right: 6%; bottom: .2em; height: clamp(3px, .45vw, 6px); background: var(--pp-red); border-radius: 3px; rotate: -1.2deg; transform-origin: left; clip-path: var(--pp-brush-c); }
.hero-sparks { width: clamp(30px, 4.4vw, 60px); height: clamp(30px, 4.4vw, 60px); }
.hero-sparks--l { left: -5%; top: -8%; }
.hero-sparks--r { right: -5%; bottom: -6%; }
.hero-ct { font-size: clamp(24px, 3.7vw, 58px); rotate: -4deg; margin-top: -.16em; z-index: 1; }
.hero-with { margin-top: .9em; font-weight: 800; font-size: clamp(12px, 1.3vw, 17px); letter-spacing: .34em; text-transform: uppercase; color: var(--pp-ink); rotate: -4deg; translate: -3.2em 0; }
.hero-cc { position: relative; font-size: clamp(56px, 7.6vw, 122px); rotate: -5deg; margin-top: -.2em; padding: 0 .15em .12em; white-space: nowrap; }
.hero-cc-swash { position: absolute; left: 6%; right: 4%; bottom: -.02em; width: 90%; height: .16em; overflow: visible; }

.hero-foot { display: grid; justify-items: center; gap: 22px; text-align: center; margin-top: clamp(30px, 4vw, 54px); max-width: 620px; }
.hero-lede { font-size: clamp(15px, 1.35vw, 18px); line-height: 1.6; color: var(--pp-ink); }
.hero-lede strong { font-weight: 800; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; }
.hero-proof { rotate: -2deg; }
.hero-proof b { color: var(--pp-red); font-weight: 400; }

/* phones: the poster, 1:1 — one phrase per row, edge to edge */
@media (max-width: 700px) {
  /* phones: a small, quiet signature in a slim bar so the poster starts higher */
  .nav { height: 54px; }
  .nav-logo, .nav.is-stuck .nav-logo { width: 62px; }
  .hero { --hw: 18.6vw; padding-top: 58px; }
  .hero-words { top: 58px; }
  .hero-row-in, .hero-row:nth-child(even) .hero-row-in { margin-left: 5.36em; }
  .hero-stage { padding-top: calc(var(--row) * 1.38); }
  .hero-photo { width: min(80vw, 56vh); width: min(80vw, 56svh); }
  .hero-scribble--r { top: auto; bottom: 34%; right: -8vw; width: 38vw; }
  .hero-scribble--l { width: 34vw; left: -9vw; bottom: 2vw; }
  .hero-aao .pp-marker { font-size: 9.4vw; }
  .hero-ct { font-size: 6.6vw; }
  .hero-cc { font-size: 15vw; }
  .hero-sparks--l { left: 1%; top: -30%; }
  .hero-sparks--r { right: 1.5%; bottom: -34%; }
}

/* small phone on its side (640x360, 667x375): the portrait poster's five giant rows would run
   far below the little photo and under the title. Use the wide layout's proportions instead.
   (aspect-ratio, not orientation, so an open keyboard in portrait never flips it) */
@media (max-width: 700px) and (min-aspect-ratio: 3/2) {
  .hero { --hw: 9.3vw; }
  .hero-row-in { margin-left: 0; }
  .hero-row:nth-child(even) .hero-row-in { margin-left: 5.36em; }
  .hero-stage { padding-top: calc(var(--row) * 1.3); }
  .hero-photo { width: min(40vw, 62vh); width: min(40vw, 62svh); }
  .hero-aao .pp-marker { font-size: 40px; }
  .hero-ct { font-size: 24px; }
  .hero-cc { font-size: 56px; }
  .hero-scribble--r { bottom: 20%; width: 24vw; right: -4vw; }
  .hero-scribble--l { width: 22vw; left: -5vw; }
  .hero-sparks--l { left: -5%; top: -8%; }
  .hero-sparks--r { right: -5%; bottom: -6%; }
}

/* hold the hero back until home.js plays the intro (class set in <head>, removed by home.js or a 3s failsafe) */
html.pp-boot .hero-row-in, html.pp-boot .hero-stage > *, html.pp-boot .hero-scribble { visibility: hidden; }
