/* Rebrot Teatre — design system
   Palette comes from the company's own poster: curtain burgundy, footlight amber, poster honey. */
:root {
  --burgundy: #7a1f2b;
  --burgundy-deep: #571520;
  --amber: #ffa926;
  --honey: #ffbd59;
  --paper: #fffcf6;
  --ink: #26121a;
  --muted: #6b5560;
  --line: #ecdfd2;
  --card: #ffffff;

  --f-display: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--burgundy-deep); }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--burgundy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--burgundy-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- type */
.display { font-family: var(--f-display); font-weight: 400; line-height: .96; letter-spacing: .005em; margin: 0; color: var(--burgundy); text-wrap: balance; }
h1.display { font-size: clamp(3.4rem, 9vw, 7rem); }
h2.display { font-size: clamp(2.4rem, 5vw, 4rem); }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; }
.prose strong, .prose b { font-weight: 700; color: var(--ink); }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--burgundy); margin: 1.6em 0 .5em; }
.prose h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.4rem); line-height: 1; color: var(--burgundy); margin: 1.6em 0 .55em; padding-top: .45em; position: relative; }
.prose h3::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; background: var(--amber); border-radius: 2px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .35em; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 10px; width: 100%; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: .5em; }
.prose em, .prose i { font-style: italic; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .95rem/1 var(--f-body); padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--burgundy); color: #fff; }
.btn-solid:hover { background: var(--burgundy-deep); color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #fff; color: var(--burgundy); }
.btn-line { border-color: var(--burgundy); color: var(--burgundy); background: transparent; }
.btn-line:hover { background: var(--burgundy); color: #fff; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 252, 246, .88); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(87, 21, 32, .35); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav ul { display: flex; gap: clamp(14px, 2.2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav ul a { position: relative; display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); }
.nav ul a[aria-current] { font-weight: 700; color: var(--burgundy); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 18px; } .nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- home hero */
.hero { position: relative; background: var(--honey); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: clamp(20px, 4vw, 60px); min-height: min(82vh, 780px); }
.hero-copy { align-self: center; padding-block: clamp(40px, 8vw, 90px); }
.hero-copy h1 { color: var(--burgundy); margin-bottom: .22em; }
.hero-copy .lead { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.4; color: var(--ink); max-width: 30ch; margin: 0 0 1em; }
.hero-copy p { max-width: 52ch; margin: 0 0 1.4em; }
.hero-poster { margin: 0; justify-self: end; width: min(100%, 560px); align-self: end; }
.hero-poster img { width: 100%; }
.curtain { display: none; }
.curtain-on .curtain { display: block; position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.curtain i { position: absolute; top: 0; bottom: 0; width: 51%; background:
  repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 36px, rgba(255,255,255,.07) 36px 44px, transparent 44px 72px),
  linear-gradient(var(--burgundy), var(--burgundy-deep)); animation-duration: 1.5s; animation-delay: .35s; animation-timing-function: cubic-bezier(.75, 0, .2, 1); animation-fill-mode: forwards; box-shadow: 0 0 60px rgba(0, 0, 0, .35); }
.curtain i:first-child { left: 0; animation-name: part-l; } .curtain i:last-child { right: 0; animation-name: part-r; }
@keyframes part-l { to { transform: translateX(-110%); } }
@keyframes part-r { to { transform: translateX(110%); } }

/* ---------- trajectòria + gallery */
.trajectoria { padding-block: clamp(56px, 9vw, 110px); }
.traj-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 6vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.traj-head p { margin: 0; max-width: 46ch; color: var(--muted); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 21vw, 260px); gap: 14px; }
.gallery li { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--burgundy-deep); }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.gallery a { display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .7s var(--ease); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); }
.gallery .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: linear-gradient(to top, rgba(38, 18, 26, .86), transparent); transition: padding .3s var(--ease); }
.gallery a:hover .cap { padding-bottom: 20px; }
.gallery .cap b { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.gallery .cap i { font: normal 400 1.5rem/1 var(--f-display); color: var(--amber); letter-spacing: .02em; }
.g-big .cap b { font-size: 1.25rem; } .g-big .cap i { font-size: 2.2rem; }
.more-link { margin: 32px 0 0; text-align: center; }

/* ---------- join band + footer */
.join { background: var(--amber); }
.join-in { padding-block: clamp(44px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px clamp(20px, 4vw, 56px); align-items: center; }
.join h2 { color: var(--burgundy-deep); }
.join p { margin: 0; color: var(--ink); max-width: 38ch; }
.site-footer { background: var(--burgundy); color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px 48px; padding-block: clamp(44px, 7vw, 72px) 32px; align-items: end; }
.site-footer h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; margin-bottom: 20px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.social a:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.foot-news { margin: 0; color: rgba(255, 255, 255, .85); }
.foot-news a { color: var(--honey); font-weight: 600; }
.foot-news a:hover { color: #fff; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; color: rgba(255, 255, 255, .75); }
.foot-base a { color: #fff; text-decoration: none; }
.foot-base a:hover { color: var(--honey); text-decoration: underline; }
.foot-base nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- inner pages */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(18px, 3vw, 30px); display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; }
.chip { font: 400 1.9rem/1 var(--f-display); color: var(--ink); background: var(--amber); padding: 6px 16px 4px; border-radius: 999px; letter-spacing: .03em; transform: translateY(-.35em); }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: clamp(36px, 6vw, 72px); }
.feature.no-media { grid-template-columns: 1fr; }
.feature .media-col { position: sticky; top: calc(var(--header-h) + 24px); }
.feature .text-col { padding-top: 4px; }
.solo { margin: 0; }
.solo img { width: 100%; border-radius: var(--radius); max-height: 80vh; object-fit: contain; object-position: top; }
.more { padding-bottom: clamp(40px, 7vw, 90px); }
.more .block, .more .sheet { max-width: 68ch; }
.sheet { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--amber); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); margin: 2em 0; box-shadow: 0 18px 40px -30px rgba(87, 21, 32, .5); }
.sheet h3 { margin-top: 0; }
.sheet h3::before { display: none; }
.sheet p:last-child { margin-bottom: 0; }

/* slider (scroll-snap) */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--burgundy-deep); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 252, 246, .92); color: var(--burgundy); font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.nav-btn:hover { background: var(--amber); color: var(--ink); }
.prev { left: 12px; } .next { right: 12px; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.dots button { pointer-events: auto; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .25s var(--ease), background-color .25s; }
.dots button.on { width: 26px; border-radius: 6px; background: var(--amber); }

/* la funció que surt malament */
.show-head { flex-direction: column; align-items: flex-start; gap: 6px; }
.show-head h1 { color: var(--amber); -webkit-text-stroke: 0; text-shadow: 3px 3px 0 var(--burgundy); }
.thanks { font: 400 clamp(1.8rem, 4vw, 3rem)/1.05 var(--f-display); color: var(--burgundy); margin: 0; }
.show-sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
.show-sheet .sheet { margin: 0; }
.cast { margin: 0; } .cast img { width: 100%; border-radius: var(--radius); }
.sponsors { text-align: center; padding-block: 24px clamp(56px, 8vw, 100px); }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px clamp(28px, 7vw, 90px); margin-top: 28px; }
.logos img { max-height: 110px; width: auto; }

/* obres timeline */
.obres-intro { padding-bottom: 24px; }
.timeline { padding-bottom: clamp(56px, 8vw, 100px); }
.decade { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px clamp(16px, 4vw, 48px); padding-block: 22px; border-top: 1px solid var(--line); }
.decade h2 { font-size: clamp(3rem, 6vw, 4.6rem); color: var(--amber); position: sticky; top: calc(var(--header-h) + 12px); align-self: start; text-shadow: 2px 2px 0 var(--burgundy); }
.decade ol { list-style: none; margin: 0; padding: 0; }
.decade li { border-bottom: 1px dashed var(--line); }
.decade li > a, .decade li:not(.has-sheet) { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 11px 6px; }
.decade li a { text-decoration: none; color: var(--ink); position: relative; border-radius: 10px; transition: background-color .2s, padding .25s var(--ease); }
.decade li.has-sheet { border-bottom-style: solid; }
.decade li.has-sheet a { background: #fff3da; padding-inline: 12px; margin-inline: -6px; }
.decade li.has-sheet a:hover { background: var(--amber); }
.decade .n { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.decade .t { font-weight: 600; }
.decade li:not(.has-sheet) .t { font-weight: 500; }
.decade .y { color: var(--muted); font-size: .92rem; text-align: right; }
.decade .go { grid-column: 2 / 4; font-size: .85rem; font-weight: 600; color: var(--burgundy); }
.soon { font: 400 clamp(2.2rem, 5vw, 3.4rem)/1 var(--f-display); color: var(--burgundy); text-align: center; margin: 24px 0 0; }

/* legal */
.legal { padding-bottom: clamp(48px, 8vw, 100px); }
.legal h2 { font-size: 1.9rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1em 0; }
.legal td, .legal th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* contact + forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 80px); align-items: start; padding-bottom: clamp(56px, 8vw, 110px); }
.joincard { background: var(--burgundy); color: #fff; border-radius: var(--radius); padding: 24px; margin: 1.6em 0; }
.joincard p { margin: 0 0 16px; color: #fff; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(87, 21, 32, .55); }
.card h2 { margin-bottom: 18px; }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.req { color: var(--burgundy); font-weight: 600; }
.form input[type=text], .form input[type=email], .form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #d9c9bb; border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.form input:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(255, 169, 38, .45); }
.form textarea { resize: vertical; min-height: 130px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form small { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; }
.checks { display: grid; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--burgundy); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1a6b3a; } .form-status.err { color: #b42318; }
.form .invalid { border-color: #b42318 !important; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; background: var(--paper); padding: 8px var(--gutter) 26px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(87, 21, 32, .45); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav .btn { align-self: flex-start; margin-top: 12px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding-bottom: 20px; }
  .hero-poster { justify-self: center; width: min(86%, 440px); }
  .traj-head, .join-in, .foot-grid, .contact-grid, .show-sheet { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature .media-col { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 38vw, 230px); gap: 10px; }
  .decade { grid-template-columns: 1fr; }
  .decade h2 { position: static; }
}
@media (max-width: 520px) {
  .form .row { grid-template-columns: 1fr; }
  .decade li > a, .decade li:not(.has-sheet) { grid-template-columns: 2.2em minmax(0, 1fr); }
  .decade .y { grid-column: 2; text-align: left; }
  .decade .go { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- refinements after visual review */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
.hero-poster img { mix-blend-mode: multiply; }
.curtain i { box-shadow: none; }
.curtain i:first-child { animation-name: part-l; } .curtain i:last-child { animation-name: part-r; }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 68ch; }
.legal.prose > table { max-width: none; }

.field > label.check { display: flex; font-weight: 400; margin: 0; }
.field > label.check a { font-weight: 600; }

/* hero poster: natural colours, presented as a framed poster card (no blend filter) */
.hero-poster img { mix-blend-mode: normal; }
.hero-grid { align-items: center; }
.hero-poster { align-self: center; margin-block: clamp(28px, 5vw, 64px); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 34px 60px -30px rgba(87, 21, 32, .6), 0 0 0 1px rgba(87, 21, 32, .06); }
@media (max-width: 960px) { .hero-poster { margin-block: 8px 36px; } }

/* "already premiered" stamp on the home poster */
.hero-poster { position: relative; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
.hero-poster img { border-radius: 20px; background: #fff; box-shadow: 0 34px 60px -30px rgba(87, 21, 32, .6), 0 0 0 1px rgba(87, 21, 32, .06); }
.stamp { position: absolute; left: -22px; top: 26px; z-index: 2; transform: rotate(-6deg); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 20px 11px 18px; color: #fff; background: var(--burgundy); border-radius: 6px 14px 14px 6px; box-shadow: 0 14px 28px -12px rgba(87, 21, 32, .7); }
.stamp::before { content: ""; position: absolute; left: 6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--honey); }
.stamp b { font: 400 2.6rem/.9 var(--f-display); letter-spacing: .02em; color: var(--amber); padding-left: 14px; }
.stamp span { font-size: .85rem; font-weight: 600; line-height: 1.2; padding-left: 14px; }
@media (max-width: 960px) { .stamp { left: -6px; top: 18px; } .stamp b { font-size: 2.1rem; } }

/* stamp moved to the bottom-left so it never covers the poster title */
.stamp { top: auto; bottom: 34px; transform: rotate(5deg); }
@media (max-width: 960px) { .stamp { top: auto; bottom: 26px; } }
.soon { text-align: left; margin: 0 0 8px; }

/* video facade (YouTube loads only after the visitor presses play) */
.video-wrap { padding-bottom: clamp(32px, 5vw, 64px); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 30px 60px -36px rgba(87, 21, 32, .6); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border: 0; border-radius: 50%; background: var(--amber); color: var(--burgundy-deep); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s var(--ease), background-color .2s; }
.video .play svg { width: 40px; height: 40px; margin-left: 4px; }
.video:hover .play { transform: scale(1.08); background: #fff; }

/* obres: years as highlighted chips */
.decade li > a, .decade li:not(.has-sheet) { grid-template-columns: 2.2em minmax(0, 1fr) auto; align-items: center; padding-block: 13px; }
.decade .t { font-size: 1.05rem; }
.decade .y { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 360px; }
.decade .y b { font: 400 1.6rem/1 var(--f-display); letter-spacing: .03em; color: var(--ink); background: var(--amber); padding: 6px 13px 4px; border-radius: 999px; }
.decade li.has-sheet a:hover .y b { background: var(--burgundy); color: #fff; }
@media (max-width: 520px) { .decade .y { justify-content: flex-start; max-width: none; } .decade .y b { font-size: 1.35rem; padding: 5px 11px 3px; } }

/* obres: the left column shows the period (e.g. 2010-2019) */
.decade { grid-template-columns: clamp(170px, 22vw, 270px) minmax(0, 1fr); }
.decade h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; }
@media (max-width: 960px) { .decade { grid-template-columns: 1fr; } }

/* ---------- home hero v2: the company + "curtain call" composition + "stay tuned" notice */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.hero-copy { align-self: center; }
.hero-copy h1 { font-size: clamp(3rem, 7vw, 5.9rem); max-width: 12ch; }
.hero-copy .lead { max-width: 34ch; }
.hero-copy p { max-width: 50ch; }
.announce { margin-top: clamp(24px, 3vw, 36px); max-width: 560px; padding: 20px 22px 18px; background: var(--burgundy); color: #fff; border-radius: 18px; box-shadow: 0 26px 44px -30px rgba(87, 21, 32, .85); }
.announce .announce-title { margin: 0 0 4px; font: 400 clamp(2rem, 3.2vw, 2.7rem)/1 var(--f-display); letter-spacing: .01em; color: var(--amber); }
.announce p { margin: 0 0 14px; color: #fff; max-width: none; }
.announce strong { color: #fff; }
.announce .social { gap: 8px; }
.announce .social a { padding: 8px 14px 8px 10px; font-size: .9rem; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy, .hero-copy h1 { max-width: none; }
  .hero-poster { justify-self: center; width: min(86%, 440px); }
}

/* production photos of La funció que surt malament: full-width carousel */
.reel { padding-bottom: clamp(36px, 6vw, 72px); }
.reel .media-col { position: static; }
.reel .slide img { aspect-ratio: 16 / 9; max-height: 74vh; }
@media (max-width: 700px) { .reel .slide img { aspect-ratio: 4 / 3; } }

/* the first (big) gallery tile: frame the actor and the jerrycan of the gold-curtain photo */
.gallery .g-big img { object-position: 36% 40%; }

/* portrait photos in carousels: keep the frame filled but crop from the bottom, so heads stay in view */
.slide img.tall { object-position: center top; }

/* ---------- home hero v3: "Molt soroll per no res" banner card (megaphone blares, sound rings, the poster shakes) */
.hero-show { padding-block: clamp(22px, 3.6vw, 48px) clamp(26px, 4vw, 52px); }
.banner { position: relative; display: block; border-radius: 22px; text-decoration: none; box-shadow: 0 40px 70px -34px rgba(87, 21, 32, .75), 0 0 0 1px rgba(87, 21, 32, .08); transition: transform .35s var(--ease), box-shadow .35s; --d: .6s; }
.curtain-on .banner { --d: 2.1s; }
.banner:hover { transform: translateY(-4px) rotate(-.15deg); box-shadow: 0 50px 80px -36px rgba(87, 21, 32, .85), 0 0 0 1px rgba(87, 21, 32, .08); }
.banner-in { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 22px; background: #f3e7d9; isolation: isolate; }
.b-stage { position: absolute; inset: 0; display: block; transform: scale(1.015); animation: b-shake 4.2s steps(1, end) var(--d) infinite; }
.b-stage picture, .b-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.b-pop { clip-path: polygon(45.49% 38.87%, 48.59% 29.39%, 52.18% 27.11%, 54.15% 19.26%, 55.13% 11.42%, 57.74% 5.54%, 61.99% 3.25%, 67.21% 6.19%, 71.14% 15.34%, 72.93% 29.72%, 71.79% 44.10%, 67.87% 49.98%, 63.29% 51.15%, 60.68% 50.63%, 56.76% 50.50%, 55.45% 51.28%, 52.18% 51.42%, 49.90% 52.59%, 47.28% 51.94%, 45.65% 48.02%); transform-origin: 53.66% 50.96%; animation: b-pop 4.2s ease-out var(--d) infinite; will-change: transform; }
.ring { position: absolute; z-index: 2; left: 64%; top: 26.6%; width: 14%; aspect-ratio: 1; margin: -7% 0 0 -7%; border-radius: 50%; border: 3px solid rgba(225, 150, 0, .85); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset; opacity: 0; pointer-events: none; animation: b-ring 4.2s ease-out var(--d) infinite; }
.ring:nth-of-type(2) { animation-delay: calc(var(--d) + .2s); }
.ring:nth-of-type(3) { animation-delay: calc(var(--d) + .4s); }
@keyframes b-shake {
  0%, 15%, 100% { transform: scale(1.015); }
  2% { transform: scale(1.015) translate(-.35%, .2%); } 4% { transform: scale(1.015) translate(.4%, -.25%); }
  6% { transform: scale(1.015) translate(-.3%, -.15%); } 8% { transform: scale(1.015) translate(.25%, .2%); }
  10% { transform: scale(1.015) translate(-.15%, 0); } 12% { transform: scale(1.015) translate(.1%, -.1%); }
}
@keyframes b-pop {
  0%, 24%, 100% { transform: none; }
  3% { transform: scale(1.05) rotate(-1.8deg); } 8% { transform: scale(1.012) rotate(.7deg); }
  13% { transform: scale(1.038) rotate(-1.1deg); } 19% { transform: scale(1.006) rotate(.2deg); }
}
@keyframes b-ring {
  0% { transform: scale(.4); opacity: 0; }
  3% { opacity: .9; }
  52% { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* the funcions strip under the banner: three tickets */
.show-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 22px clamp(22px, 4vw, 56px); margin-top: clamp(18px, 2.4vw, 30px); }
.dates { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(8px, 1.4vw, 16px); flex: 1 1 560px; }
.dates li { position: relative; flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "dow dow" "num mon"; align-items: center; column-gap: clamp(8px, 1.4vw, 16px); padding: clamp(10px, 1.4vw, 16px) clamp(12px, 1.8vw, 22px) clamp(8px, 1.2vw, 14px); background: var(--paper); border-radius: 12px; box-shadow: 0 14px 26px -20px rgba(87, 21, 32, .8); }
.dates li:nth-child(odd) { transform: rotate(-1.2deg); } .dates li:nth-child(even) { transform: rotate(1deg); }
.dates li::before, .dates li::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--honey); }
.dates li::before { left: -6px; } .dates li::after { right: -6px; }
.dow { grid-area: dow; font: 400 clamp(1.25rem, 2.6vw, 1.9rem)/1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dnum { grid-area: num; font: 400 clamp(3.6rem, 7vw, 5.4rem)/.9 var(--f-display); color: var(--burgundy); }
.dmon { grid-area: mon; font: 700 clamp(1rem, 2.3vw, 1.45rem)/1.15 var(--f-body); color: var(--ink); }
.strip-cta { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
.strip-cta p.next { margin: 0; display: grid; gap: 6px; }
.strip-cta b { font: 400 clamp(2.8rem, 4.6vw, 3.8rem)/.9 var(--f-display); letter-spacing: .02em; color: var(--burgundy); }
.strip-cta .next span { font-weight: 700; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.2; color: var(--burgundy-deep); }
.btn-lg { font-size: 1.1rem; padding: 17px 32px; }


/* the company intro, now under the banner */
.company { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 6vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 76px) 0; }
.company h1 { font-size: clamp(3rem, 6.4vw, 5.2rem); max-width: 13ch; }
.company .lead { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.4; color: var(--ink); max-width: 34ch; margin: 0 0 1em; }
.company-copy p { max-width: 50ch; margin: 0 0 1.4em; }
.company-copy .actions { margin-top: 4px; }

@media (max-width: 960px) { .company { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .banner-in { aspect-ratio: 4 / 5; border-radius: 16px; } .banner { border-radius: 16px; }
  .b-pop { display: none; }
  .ring { left: 55.1%; top: 51.1%; width: 30%; margin: -15% 0 0 -15%; }
  .dates { flex-basis: 100%; }
  .dates li { padding: 8px 9px 6px; column-gap: 6px; }
  .dates li::before, .dates li::after { display: none; }
  .strip-cta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
  .strip-cta p.next { flex: 1 1 200px; }
}

/* obres: the upcoming play, highlighted at the top of the timeline */
.decade li.is-next { border-bottom-style: solid; }
.decade li.is-next > a { background: var(--burgundy); color: #fff; padding-inline: 12px; margin-inline: -6px; box-shadow: 0 22px 36px -24px rgba(87, 21, 32, .9); }
.decade li.is-next > a:hover { background: var(--burgundy-deep); }
.decade li.is-next .t { color: #fff; font-size: 1.25rem; }
.decade li.is-next .go { color: var(--honey); }
.decade li.is-next .y b { background: var(--amber); color: var(--ink); }
.decade li.is-next > a:hover .y b { background: #fff; color: var(--burgundy); }
.tag { display: inline-block; vertical-align: .18em; margin-left: .6em; padding: 4px 11px 2px; font: 400 1.05rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; font-style: normal; color: var(--burgundy-deep); background: var(--honey); border-radius: 999px; }
.decade li.is-next .n { display: flex; align-items: center; }
.pulse { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 169, 38, .75); } 80%, 100% { box-shadow: 0 0 0 14px rgba(255, 169, 38, 0); } }

/* play page: tickets band + two-column sheet */
.tickets { padding-bottom: clamp(36px, 6vw, 72px); }
.tickets-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 20px clamp(24px, 5vw, 64px); align-items: center; padding: clamp(26px, 4.4vw, 52px); color: #fff; background: var(--burgundy); border-radius: 20px; box-shadow: 0 30px 50px -34px rgba(87, 21, 32, .9); }
.tickets h2 { color: #fff; font-size: clamp(3.2rem, 6.4vw, 5.2rem); }
.tickets h2 span { display: block; margin-top: .1em; color: var(--amber); font-size: .62em; letter-spacing: .02em; }
.tickets ul.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; }
.tickets ul.how li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 18px; padding-bottom: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .28); }
.tickets ul.how li:last-child { border-bottom: 0; padding-bottom: 0; }
.tickets ul.how b { color: var(--honey); font-weight: 700; }
.tickets ul.how .soon-text { font-weight: 700; color: var(--amber); }
.tickets ul.how .small { font-size: .85em; opacity: .85; }
.tickets a { color: #fff; font-weight: 600; }
.tickets .social { margin-top: 22px; }
.tickets .social a { font-size: 1.05rem; padding: 12px 20px 12px 16px; }
.sheet-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.sheet-cols .sheet { margin: 0 0 clamp(20px, 3vw, 32px); max-width: none; }
.sheet-cols .sheet:last-child { margin-bottom: 0; }
.sheet-cols .sheet h3 { margin-bottom: .4em; }
.sheet-cols .cast { margin-top: clamp(20px, 3vw, 32px); }
@media (max-width: 960px) { .tickets-in, .sheet-cols { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tickets ul.how li { grid-template-columns: 1fr; } }
