/* ─────────────────────────────────────────────────────────────
   Tammuz — Internal Content Page Template
   Derived 1:1 from the homepage system (styles.css tokens, Rubik,
   --edge rhythm, yellow accents, pill buttons, hero-cta, section fades).
   Load AFTER tammuz/styles.css.

   FIXED (every inner page):   .page-hero (eyebrow optional, h1, intro optional)
                               .page-body (prose column, max 68ch)
                               header / footer (shared, untouched)
   OPTIONAL blocks:            .page-crumbs, .prose-quote, .prose-list,
                               .prose-figure, .page-gallery, .page-cta,
                               .page-related, .page-aside (sidebar, IA-only)
   RULE: every H2 inside content is followed by
         <svg class="wave-line prose-wave"></svg> (sound-wave divider) —
         never a plain rule/underline.
   ───────────────────────────────────────────────────────────── */
/* Page intro / inner hero: same padding rhythm as the homepage hero, no video */
.page-hero{position:relative;isolation:isolate;overflow:hidden;padding:calc(116px + clamp(56px,8vw,120px)) var(--edge) clamp(56px,7vw,96px);background:var(--black)}
.page-hero::after{content:"";position:absolute;inset:auto 0 0;height:clamp(60px,8vw,120px);z-index:0;pointer-events:none;background:linear-gradient(to bottom,transparent,#070707)}
.page-hero-inner{position:relative;z-index:1;max-width:1500px;margin:0 auto}
.page-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 26px;padding:0;list-style:none;font-size:16px;color:#a8a69e;letter-spacing:.02em}
.page-crumbs a{color:#c8c7c1}
.page-crumbs li+li::before{content:"←";color:var(--yellow);margin-inline-end:10px}
.page-crumbs [aria-current]{color:var(--white)}
.page-eyebrow{display:block;color:#a8a69e;font-size:13px;letter-spacing:.12em;margin-bottom:18px}
.page-hero h1{margin:0;font-size:clamp(64px,9vw,150px);line-height:.98;letter-spacing:-.05em;font-weight:800;text-wrap:balance;max-width:14ch}
.page-hero h1 em{font-style:normal;color:var(--yellow)}
.page-intro{max-width:34em;margin:28px 0 0;font-size:clamp(18px,1.55vw,24px);line-height:1.6;color:#d2d1cb;text-wrap:pretty}
.page-hero .hero-wave{display:block;width:min(560px,60vw);height:92px;margin:22px 0 0;overflow:visible;opacity:.9;filter:drop-shadow(0 0 3px #ffc84d77) drop-shadow(0 0 10px #ffb5343d);-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 78%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 78%,transparent)}
/* Main content area: single comfortable reading column; optional sidebar via .has-aside */
.page-body{position:relative;background:#070707;padding:clamp(48px,6vw,90px) var(--edge) clamp(72px,8vw,120px)}
.page-body-inner{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(40px,5vw,80px)}
.page-body-inner.has-aside{grid-template-columns:minmax(0,1fr) minmax(0,.42fr);align-items:start}
.page-prose{max-width:68ch}
/* Prose blocks */
.prose-section{padding:clamp(64px,8vw,120px) 0;border-top:1px solid var(--line)}
.prose-section:first-child{padding-top:0;border-top:0}
.prose-section h2 em{font-style:normal;color:var(--yellow)}
/* Section heading divider: the site's sound-wave ribbon (drawn by app.js .wave-line) instead of a rule */
.prose-wave{display:block;width:min(180px,60%);height:44px;margin:4px 0 22px;overflow:visible;opacity:.9;filter:drop-shadow(0 0 3px #ffc84d77) drop-shadow(0 0 10px #ffb5343d);-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 80%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 80%,transparent)}
.prose-section h2{margin:0 0 22px;font-size:clamp(56px,7vw,118px);line-height:.95;letter-spacing:-.05em;font-weight:800;text-wrap:balance;margin-bottom:0}
.prose-section h3{margin:32px 0 12px;font-size:clamp(22px,2vw,30px);line-height:1.15;font-weight:800}
.prose-section p{margin:0 0 20px;font-size:18px;line-height:1.8;color:#c8c7c1;text-wrap:pretty}
.prose-section p:last-child{margin-bottom:0}
.prose-section a{color:var(--white);text-decoration:underline;text-decoration-color:#ffea5799;text-underline-offset:4px;transition:text-decoration-color var(--micro)}
.prose-section a:hover{text-decoration-color:var(--yellow)}
.prose-lead{font-size:clamp(20px,1.7vw,26px);line-height:1.6;color:var(--white)}
.prose-list{margin:0 0 24px;padding:0;list-style:none;display:grid;gap:12px}
.prose-list li{position:relative;padding-inline-start:30px;font-size:18px;line-height:1.7;color:#c8c7c1}
.prose-list li::before{content:"";position:absolute;inset-inline-start:0;top:.75em;width:12px;height:12px;border-radius:50%;background:#080808;box-shadow:0 0 0 1px #9a999266,inset 0 0 0 3px #080808,inset 0 0 0 4px var(--yellow)}
.prose-quote{margin:32px 0;padding:28px 32px;border-inline-start:2px solid var(--yellow);background:#0f0f0e;border-radius:0 22px 22px 0}
[dir=rtl] .prose-quote{border-radius:22px 0 0 22px}
.prose-quote p{margin:0;font-size:clamp(20px,1.7vw,26px);line-height:1.5;color:var(--white);font-weight:400}
.prose-quote cite{display:block;margin-top:14px;font-style:normal;font-size:14px;color:#a8a69e}
.prose-figure{margin:36px 0;position:relative;border-radius:22px;overflow:hidden;background:#111110;box-shadow:0 24px 50px #000c}
.prose-figure img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.prose-figure figcaption{padding:14px 18px;font-size:13px;color:#a8a69e}
.prose-cta{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-top:32px}
/* Key facts strip (address / partners / hours…): the events-card language in a compact row */
.page-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:8px 0 0}
.page-fact{padding:22px 24px;border-radius:22px;background:#111110;box-shadow:0 18px 40px #0009}
.page-fact strong{display:block;font-size:13px;letter-spacing:.12em;color:#a8a69e;font-weight:400;margin-bottom:10px}
.page-fact span{display:block;font-size:18px;line-height:1.5;color:var(--white)}
/* Sidebar (optional, IA-driven): sticky, same card language */
.page-aside{position:sticky;top:calc(116px + 24px);display:grid;gap:18px}
.page-aside .page-fact{background:#0f0f0e}
/* Gallery: masonry-like grid, homepage card radius + shadow, B/W at rest → colour on hover */
.page-gallery{padding:clamp(56px,7vw,100px) var(--edge);background:#070707;position:relative;isolation:isolate}
.page-gallery-inner{max-width:1500px;margin:0 auto}
.page-gallery h2{margin:0 0 clamp(28px,4vw,48px);font-size:clamp(40px,5vw,84px);line-height:.98;letter-spacing:-.05em;font-weight:800;text-wrap:balance}
.page-gallery h2 em{font-style:normal;color:var(--yellow)}
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(150px,16vw,260px);gap:clamp(12px,1.6vw,22px)}
.gallery-grid figure{margin:0;position:relative;border-radius:22px;overflow:hidden;background:#111110;box-shadow:0 18px 40px #0009}
.gallery-grid figure.span-2{grid-column:span 2;grid-row:span 2}
.gallery-grid img{display:block;width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.1) brightness(.8);transition:filter 520ms var(--ease),transform 720ms var(--ease)}
.gallery-grid figure:hover img,.gallery-grid figure:focus-within img{filter:none;transform:scale(1.03)}
.gallery-grid figure::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,#07070799,transparent 45%);pointer-events:none}
/* Related / next step: two pill links + one primary CTA, centred */
.page-related{position:relative;isolation:isolate;padding:clamp(64px,8vw,120px) var(--edge);background:#070707;text-align:center}
.page-related::before{content:"";position:absolute;inset:0 0 auto;height:1px;background:var(--line)}
.page-related h2{margin:0 0 14px;font-size:clamp(40px,5vw,84px);line-height:.98;letter-spacing:-.05em;font-weight:800;text-wrap:balance}
.page-related h2 em{font-style:normal;color:var(--yellow)}
.page-related p{margin:0 auto 34px;max-width:36em;font-size:18px;line-height:1.7;color:#c8c7c1}
.page-related-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:18px}
.page-related .pill{font-size:15px;min-height:52px;padding:14px 26px}
/* Responsive: derived from the homepage breakpoints */
@media(min-width:801px) and (max-width:1100px){
  .gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .page-body-inner.has-aside{grid-template-columns:1fr}
  .page-aside{position:static}
}
@media(max-width:800px){
  .prose-wave{height:38px;width:min(150px,60%);margin-bottom:16px}
  .page-hero{padding-top:calc(96px + 48px);padding-bottom:44px}
  .page-hero h1{font-size:clamp(46px,13vw,72px)}
  .page-intro{font-size:17px;margin-top:20px}
  .page-hero .hero-wave{width:100%;height:64px}
  .page-body{padding-top:36px;padding-bottom:56px}
  .page-body-inner.has-aside{grid-template-columns:1fr}
  .page-aside{position:static}
  .prose-section{padding:48px 0}
  .prose-section h2{font-size:clamp(40px,11vw,60px)}
  .prose-section p,.prose-list li{font-size:16px;line-height:1.75}
  .prose-lead{font-size:19px}
  .prose-quote{padding:20px 22px;margin:24px 0}
  .page-facts{grid-template-columns:1fr}
  .page-gallery{padding:48px var(--edge)}
  .page-gallery h2,.page-related h2{font-size:clamp(36px,10.5vw,56px)}
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:34vw;gap:10px}
  .gallery-grid figure.span-2{grid-column:span 2;grid-row:span 1}
  .page-related{padding:56px var(--edge)}
  .page-related-actions{flex-direction:column}
  .page-related .pill,.page-related .hero-cta{width:100%;max-width:360px;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .gallery-grid img{transition:none}
  .gallery-grid figure:hover img{transform:none}
}
/* Inner-page pill buttons: filled yellow, black text (hover → white, as the homepage active CTA) */
.page-body .pill,.page-related .pill{background:var(--yellow);border-color:var(--yellow);color:var(--black)}
.page-body .pill:hover,.page-body .pill:focus-visible,.page-related .pill:hover,.page-related .pill:focus-visible{background:var(--white);border-color:var(--white);color:var(--black)}
.page-body .hero-cta,.page-related .hero-cta{color:var(--black)}
.page-body .hero-cta>span:first-child,.page-related .hero-cta>span:first-child{color:var(--black)}
/* Subtitle under a short H1, and in-page tabs (outlined pills → yellow when active/hover) */
.page-subtitle{font-size:clamp(20px,2vw,30px);color:var(--white);max-width:30em;margin-top:18px}
.page-tabs{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}
.page-tabs .pill{background:transparent;border-color:#f5f4ed66;color:var(--white);font-size:15px;min-height:48px;padding:12px 24px;transition:background var(--micro),border-color var(--micro),color var(--micro),transform var(--micro)}
.page-tabs .pill:hover,.page-tabs .pill:focus-visible,.page-tabs .pill.is-active{background:var(--yellow);border-color:var(--yellow);color:var(--black)}
.page-body-inner .prose-section[id],.prose-section h2[id],.page-gallery h2[id]{scroll-margin-top:calc(116px + 24px)}
.page-tour{padding-top:0}
.tour-frame{display:grid;place-items:center;aspect-ratio:16/9;max-height:560px;border-radius:22px;background:#111110;box-shadow:0 18px 40px #0009;color:#a8a69e;font-size:15px;letter-spacing:.04em}
@media(max-width:800px){
  .page-tabs{gap:8px;margin-top:26px}
  .page-tabs .pill{font-size:14px;min-height:42px;padding:10px 18px}
  .page-subtitle{font-size:19px}
  .tour-frame{aspect-ratio:4/3}
}
/* Photo hero variant — same blend recipe as the homepage hero: image on the left, masked to transparent toward the text side, black fades top/bottom */
.page-hero.has-photo{min-height:min(92vh,880px);display:flex;align-items:center}
.page-hero-media{position:absolute;left:-4%;top:0;width:69%;height:100%;z-index:0;overflow:hidden;mask-image:linear-gradient(to right,transparent 0,#000 12%,#000 58%,transparent 100%);-webkit-mask-image:linear-gradient(to right,transparent 0,#000 12%,#000 58%,transparent 100%)}
.page-hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,var(--black) 0%,transparent 35%,transparent 70%,var(--black) 100%);pointer-events:none}
.page-hero-bg{width:100%;height:100%;object-fit:cover;object-position:46% 42%;display:block;transform:scale(1.35);transform-origin:46% 42%;filter:saturate(.6) brightness(.72)}
.page-hero.has-photo::after{height:clamp(90px,14vw,200px)}
.page-hero.has-photo .page-hero-inner{width:100%}
.page-hero.has-photo .page-eyebrow{display:none}
.page-hero.has-photo h1{max-width:none;font-size:clamp(60px,8.6vw,150px)}
.page-hero.has-photo .page-subtitle{color:var(--white);line-height:1.35}
@media(max-width:800px){
  .page-hero.has-photo{min-height:78svh;align-items:flex-end;padding-bottom:40px}
  .page-hero-media{left:0;width:100%;height:62%;mask-image:linear-gradient(to bottom,transparent 0,#000 14%,#000 55%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 14%,#000 55%,transparent 100%)}
  .page-hero-media::after{background:none}
  .page-hero.has-photo h1{font-size:clamp(46px,14vw,72px)}
}
/* Icon headings (About): each icon is its own metaphor, drawn in the sound-wave ribbon's grammar —
   thin gold-gradient lines, light dots at the tips, soft haze, slow gentle motion. */
.h2-with-icon{display:flex;align-items:center;gap:22px;margin-bottom:32px!important}
.h2-icon{flex:0 0 auto;width:clamp(56px,5vw,84px);height:clamp(56px,5vw,84px);filter:drop-shadow(0 0 4px #ffc84d66) drop-shadow(0 0 12px #ffb53440)}
.h2-icon svg{display:block;width:100%;height:100%;overflow:visible}
.h2-icon .ic-dot{opacity:.9}
.h2-icon .ic-tip{animation:ic-glow 2.6s ease-in-out infinite}
.h2-icon .ic-core{transform-box:fill-box;transform-origin:center;animation:ic-pulse 2.6s ease-in-out infinite}
.h2-icon .ic-wave{stroke-dasharray:60;animation:ic-draw 3.2s var(--ease) infinite}
.ic-why .ic-rays{transform-origin:24px 24px;animation:ic-rays 2.6s ease-in-out infinite}
.ic-why .ic-tip:nth-of-type(2){animation-delay:-.6s}
.ic-why .ic-tip:nth-of-type(3){animation-delay:-1.3s}
.ic-why .ic-tip:nth-of-type(4){animation-delay:-1.9s}
.ic-what .ic-item{transform-box:fill-box;transform-origin:50% 100%;animation:ic-bounce 2.6s ease-in-out infinite}
.ic-what .ic-i2{animation-delay:-.85s}
.ic-what .ic-i3{animation-delay:-1.7s}
.ic-where .ic-pin{transform-box:fill-box;transform-origin:50% 100%;animation:ic-bob 2.6s ease-in-out infinite}
.ic-where .ic-inpin{animation-duration:2.6s}
.ic-where .ic-ring{transform-box:fill-box;transform-origin:center;animation:ic-ring 2.6s ease-in-out infinite}
.ic-how .ic-node{transform-box:fill-box;transform-origin:center;animation:ic-node 3.2s ease-in-out infinite}
.ic-how .ic-n2{animation-delay:-.65s}
.ic-how .ic-n3{animation-delay:-1.3s}
.ic-how .ic-n4{animation-delay:-1.95s}
.ic-how .ic-n5{animation-delay:-2.6s}
.ic-how .ic-links{stroke-dasharray:26;animation:ic-draw 3.2s var(--ease) infinite}
@keyframes ic-glow{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes ic-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.3)}}
@keyframes ic-draw{0%{stroke-dashoffset:60;opacity:.3}45%,70%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:.3}}
@keyframes ic-rays{0%,100%{transform:scale(.88);opacity:.5}50%{transform:scale(1);opacity:1}}
@keyframes ic-bounce{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.1) translateY(-1px)}}
@keyframes ic-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.5px)}}
@keyframes ic-ring{0%,100%{transform:scale(1);opacity:.6}50%{transform:scale(1.5);opacity:.15}}
@keyframes ic-node{0%,100%{transform:scale(1);opacity:.55}50%{transform:scale(1.35);opacity:1}}
@media(max-width:800px){
  .h2-with-icon{gap:12px}
  .h2-icon{width:44px;height:44px}
}
@media(prefers-reduced-motion:reduce){
  .h2-icon *{animation:none!important}
}
/* "What" section: three homepage vinyl discs in a row (no sound-wave backdrop), verb headings with the yellow stem, centred copy */
.page-wide{max-width:none}
.page-prose-cont .prose-section:first-child{padding-top:0;border-top:0}
.page-wide .prose-section{padding-top:0;border-top:0;border-bottom:1px solid var(--line)}
.page-wide+.page-prose .prose-section:first-child{border-top:0;padding-top:0}
.about-discs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,4vw,64px);margin:12px 0 0;padding:0}
.about-disc{text-align:center;max-width:380px;margin:0 auto}
.about-disc .vinyl{width:min(100%,300px);margin:0 auto}
.about-disc h3{margin:34px 0 14px;font-size:clamp(28px,2.6vw,46px);line-height:1.1;font-weight:800;color:var(--white)}
.about-disc h3 em{font-style:normal;color:var(--yellow)}
.about-disc p{margin:0;font-size:17px;line-height:1.7;color:#c8c7c1;text-wrap:balance}
.disc-wave{display:block;width:120px;height:34px;margin:18px auto 0;overflow:visible;opacity:.9;filter:drop-shadow(0 0 3px #ffc84d77) drop-shadow(0 0 10px #ffb5343d);-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.prose-section:has(.about-discs) .prose-cta{justify-content:center;margin-top:48px}
.prose-section:has(.about-discs) .h2-with-icon{justify-content:center}
@media(max-width:800px){
  .about-discs{grid-template-columns:1fr;gap:40px}
  .about-disc .vinyl{width:min(70vw,260px)}
  .about-disc h3{font-size:32px;margin-top:24px}
  .about-disc p{font-size:16px}
}
