/* Palco em Si — public site. Two looks, chosen in the backoffice (Definições → Estilo):
   [data-theme="dia"]   agency: warm paper, black ink, Jost, crisp.
   [data-theme="noite"] fado house: near-black, warm white, curtain red, Cormorant Garamond headings.
   Structure is shared; themes only change tokens and a few treatments at the end of this file. */
:root, [data-theme="dia"] {
  --bg: #f7f6f3; --bg-2: #efede8; --ink: #111111; --mute: #6c6963; --line: #d9d6cf; --soft: #e9e7e1;
  --accent: #111111; --accent-ink: #f7f6f3; --quote-ink: #111111;
  --font: 'Jost', 'Century Gothic', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-display: 'Jost', 'Century Gothic', 'Segoe UI', sans-serif;
  --display-weight: 300; --display-tracking: .01em;
  --photo-filter: grayscale(1); --photo-filter-hover: none;
  --hero-overlay: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.55));
  color-scheme: light;
}
[data-theme="noite"] {
  --bg: #121010; --bg-2: #171414; --ink: #f3ede4; --mute: #a0978b; --line: #2b2624; --soft: #1c1918;
  --accent: #a3212b; --accent-ink: #f8f1e8; --quote-ink: #e9dcc9;
  --font: 'Jost', 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --display-weight: 500; --display-tracking: 0;
  --photo-filter: saturate(.3) sepia(.2) contrast(1.05) brightness(.88); --photo-filter-hover: none;   /* colour washed out, barely there; full colour on hover */
  --hero-overlay: linear-gradient(to bottom, rgba(18,16,16,.35), rgba(18,16,16,.85));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; line-height: 1.55; font-size: 16.5px;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
p { margin: 0 0 1em; }
.muted { color: var(--mute); font-weight: 300; }
.eyebrow { font-family: var(--font); font-size: .74rem; letter-spacing: .4em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[data-theme="dia"] .only-dark, [data-theme="noite"] .only-light { display: none; }

.preview-bar { background: var(--accent); color: var(--accent-ink); font-size: .74rem; letter-spacing: .08em; padding: 6px 16px; text-align: center; }
.preview-bar a { color: inherit; margin-left: 14px; }

/* header */
.top { display: flex; align-items: center; gap: 28px; padding: 22px 32px; }
.top .brand img { width: 34px; }
.nav { display: flex; gap: 28px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--mute); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on { border-bottom-color: var(--accent); }
.lang { margin-left: auto; display: flex; gap: 14px; font-size: .74rem; letter-spacing: .22em; }
.lang a { text-decoration: none; color: var(--mute); }
.lang a:hover { color: var(--ink); }
.lang .on { color: var(--ink); border-bottom: 1px solid var(--accent); }

/* layout */
.wrap { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 32px 88px; }
.page-title { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.1; margin: 10px 0 36px; }
.crumb { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 8px; }
.crumb a { text-decoration: none; color: var(--mute); }
.crumb a:hover { color: var(--ink); }
.block { margin-top: 84px; }
.block h2, .month h2 { font-family: var(--font); font-size: .76rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; color: var(--mute); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.block-head a { font-size: .76rem; letter-spacing: .12em; text-decoration: none; color: var(--mute); }
.block-head a:hover { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.prose { max-width: 62ch; font-weight: 300; font-size: 1.12rem; line-height: 1.7; }
.aside { font-weight: 300; color: var(--mute); border-left: 1px solid var(--line); padding-left: 24px; }
.aside a { color: var(--ink); }

/* buttons */
.btn {
  display: inline-block; padding: 15px 38px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover:not(:disabled) { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }

/* hero (home) */
.hero { position: relative; min-height: 78vh; display: grid; place-items: center; overflow: hidden; background: #0e0e0e; }
.hero-photo { position: absolute; inset: 0; display: block; }
.hero-inner picture { display: contents; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; filter: grayscale(1) contrast(1.05); }
.hero::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { position: relative; z-index: 1; text-align: center; padding: 40px 24px; }
.hero-lockup { width: min(500px, 70vw); margin: 0 auto; }
.hero-mark, .hero-word { display: none; }
.hero-line { margin: 32px 0 0; color: #f7f7f7; font-weight: 300; letter-spacing: .32em; text-transform: uppercase; font-size: .8rem; }
.intro { max-width: 48rem; margin: 64px auto 0; text-align: center; font-weight: 300; font-size: 1.25rem; line-height: 1.65; }
.intro .btn { margin-top: 16px; }
.intro-title { font-family: var(--font); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); font-weight: 400; margin: 0 0 22px; line-height: 1.7; }
.services-grid { gap: 36px; }
.service { border-top: 1px solid var(--line); padding-top: 18px; font-weight: 300; }
.service-n { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); margin-bottom: 8px; }
[data-theme="dia"] .service-n { color: var(--mute); }
.cta { margin-top: 110px; padding: 64px 24px; border-top: 1px solid var(--line); text-align: center; }
.cta p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.7rem; line-height: 1.3; }

/* cards */
.cards { display: grid; gap: 30px; }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { text-decoration: none; display: block; }
.shot { overflow: hidden; background: var(--soft); border: 1px solid var(--line); transition: border-color .25s; }
.shot.portrait { aspect-ratio: 3 / 4; }
.shot.wide { aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); transition: filter .4s, transform .7s; }
a.card:hover .shot, .card-main:hover .shot { border-color: var(--accent); }
a.card:hover .shot img, .card-main:hover .shot img { filter: var(--photo-filter-hover); transform: scale(1.03); }
.card-main { display: block; text-decoration: none; color: inherit; }   /* project cards: photo and title link to the project, each face to its person */
.card h2, .card h3 { font-family: var(--font-display); margin: 16px 0 2px; font-size: 1.25rem; font-weight: var(--display-weight); }
.card p { margin: 0; color: var(--mute); font-weight: 300; font-size: .92rem; }

/* profile (artist) */
.profile { display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; gap: 56px; align-items: start; }
.profile-photo { margin: 0; }
.profile-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: var(--photo-filter); }
.profile-text h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
.tagline { color: var(--mute); font-weight: 300; font-size: 1.15rem; margin: 8px 0 28px; letter-spacing: .04em; }
.links { display: flex; gap: 18px; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin: 24px 0; }
.links a { color: var(--mute); text-decoration: none; border-bottom: 1px solid var(--line); }
.links a:hover { color: var(--ink); border-color: var(--accent); }

/* videos (artist page) */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.video { margin: 0; }
.video.featured { grid-column: span 2; }
.video.featured:only-child { max-width: 66%; }
.video-poster, .video iframe { display: block; position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; overflow: hidden; border: 0; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); opacity: .85; transition: filter .4s, opacity .3s; }
.video-poster:hover img { filter: none; opacity: 1; }
.video-blank { display: block; width: 100%; height: 100%; background: var(--soft); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.4rem; padding-left: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.video:not(.featured) .play { width: 48px; height: 48px; font-size: 1rem; }
.video figcaption { margin-top: 8px; font-size: .9rem; font-weight: 300; }
.media .links { margin-top: 24px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr 1fr; } .video.featured { grid-column: 1 / -1; } .video.featured:only-child { max-width: none; } }

/* gallery (venue / event) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 44px; }
.gallery figure { margin: 0; overflow: hidden; background: var(--soft); }
.gallery figure.main { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; filter: var(--photo-filter); }
.gallery figure:not(.main) img { aspect-ratio: 4 / 3; }
.gallery.no-main { grid-template-columns: repeat(3, 1fr); }
.gallery.no-main img { aspect-ratio: 4 / 3; }
.quote { margin: 64px auto; max-width: 46rem; text-align: center; font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 1.7rem; line-height: 1.4; color: var(--quote-ink); }
.quote p { margin: 0; }
.quote cite { display: block; margin-top: 14px; font-family: var(--font); font-style: normal; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.quote.small { font-size: 1.3rem; margin: 40px auto; }
.quote cite a { color: inherit; }

/* events */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 72px 1.2fr 1fr 120px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ev-tickets { justify-self: end; }
.ev-date { display: flex; flex-direction: column; line-height: 1; }
.ev-date .d { font-family: var(--font-display); font-size: 2rem; font-weight: var(--display-weight); }
.ev-date .m { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-top: 5px; }
.ev-main { display: flex; flex-direction: column; gap: 2px; }
.ev-title { font-weight: 500; }
.ev-title a, .ev-artists a { text-decoration: none; }
.ev-title a:hover, .ev-artists a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.ev-note { font-size: .88rem; color: var(--mute); font-weight: 300; }
.ev-where { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 300; color: var(--mute); }
.ev-where a { color: var(--ink); text-decoration: none; }
.ev-where a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.ev-where .time { font-variant-numeric: tabular-nums; }
.ev-tickets { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--accent); color: var(--ink); padding: 9px 14px; transition: background .2s, color .2s; }
.ev-tickets:hover { background: var(--accent); color: var(--accent-ink); }
.ev-more { border-color: var(--line); color: var(--mute); }
.ev-more:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.events.past, .block.past .events { opacity: .62; }
.month { margin-top: 44px; }
.past-details { margin-top: 64px; }
.past-details summary { cursor: pointer; font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.past-details ul { margin-top: 18px; }

/* event page */
.event-page .event-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-weight: 300; margin: -20px 0 26px; font-size: 1.05rem; }
.event-page .event-meta a { text-decoration: none; border-bottom: 1px solid var(--line); }
.event-page .event-meta a:hover { border-color: var(--accent); }
.event-page .lead-note { max-width: 40rem; font-weight: 300; font-size: 1.12rem; }
.event-hero { margin: 8px 0 0; }
.event-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: var(--photo-filter); }
/* event and project pages: the image runs edge to edge above the text, at most 60% of the screen high */
.event-hero.wide { margin: 0; width: 100%; height: min(60vh, 56.25vw); min-height: 220px; overflow: hidden; background: var(--soft); }
.event-hero.wide img, .event-hero.wide img.in-focus { aspect-ratio: auto; height: 100%; object-fit: cover; filter: none; }   /* the picture that sells the show: always full colour */
/* chosen in the backoffice (hero_figure() in app/view.php): the point kept in view and the zoom around it */
.event-hero.wide img { object-position: var(--hx, 50%) var(--hy, 50%); transform: scale(var(--hz, 1)); transform-origin: var(--hx, 50%) var(--hy, 50%); }
/* "Imagem inteira": the whole image, never cropped or enlarged, centred on its own background colour */
.event-hero.wide.fit-inteira { height: auto; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 36px 20px; background: var(--hero-bg, var(--soft)); }
.event-hero.wide.fit-inteira img { width: auto; max-width: 100%; height: auto; max-height: min(60vh, 640px); object-fit: contain; transform: none; }
/* "Na coluna": in the text column, uncropped, never enlarged */
.event-hero.fit-coluna { max-width: 1180px; margin: 0 auto; padding: 28px 32px 0; }
.event-hero.fit-coluna img, .event-hero.fit-coluna:hover img, .event-hero.fit-coluna img.in-focus { width: auto; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: initial; filter: none; }
.event-hero.wide + .wrap { padding-top: 28px; }
.event-hero figcaption { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }
.event-artists { margin-top: 56px; }

/* portfolio */
.intro-text { max-width: 46rem; font-weight: 300; font-size: 1.12rem; margin: -16px 0 36px; color: var(--mute); }
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.portfolio .tile { position: relative; display: block; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.portfolio .tile img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); transition: filter .4s, transform .7s; }
.portfolio .tile:hover img { filter: var(--photo-filter-hover); transform: scale(1.03); }
.portfolio .tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); color: #fff; display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.portfolio .tile-label small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
@media (max-width: 760px) { .portfolio { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* project page */
.project-page .tagline { color: var(--mute); font-weight: 300; font-size: 1.15rem; margin: -24px 0 24px; }
.faces { display: flex; flex-wrap: wrap; gap: 24px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; width: 112px; text-align: center; font-size: .9rem; font-weight: 300; }
.face-img { position: relative; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--soft); border: 1px solid var(--line); display: block; }
.face-img img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); transition: filter .4s; }
.face .face-img { transition: transform .25s ease, border-color .25s; }
a.face:hover .face-img img { filter: var(--photo-filter-hover); }
a.face:hover .face-img { border-color: var(--accent); transform: scale(1.06); }   /* links to the person's page */
.face small { color: var(--mute); font-size: .78rem; line-height: 1.3; }
/* destaque: larger faces/cards first, the others smaller below */
.face.big { width: 168px; font-size: 1.05rem; }
.face.big .face-img { width: 140px; height: 140px; }
.faces-title { margin: 32px 0 16px; font-size: .75rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); font-family: var(--font); }
.cards-spot { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards-rest { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin-top: 28px; }
.card.small h3 { font-size: 1.02rem; margin-top: 10px; }
.card.small p { font-size: .82rem; }
.card-faces { display: flex; margin-top: 12px; padding-left: 8px; }
.card-face { position: relative; margin-left: -8px; flex: none; }
.card-faces .face-img { width: 34px; height: 34px; border: 2px solid var(--bg); transition: transform .2s ease; }
.card-faces .face-img img { filter: none; }   /* too small to wash out: always in colour */
/* the card is the link (to the project); hovering a face shows whose it is */
.card-face-name { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 3; transform: translate(-50%, 4px);
  white-space: nowrap; padding: 3px 8px; border-radius: 3px; background: var(--ink); color: var(--bg);
  font-size: .72rem; letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
@media (hover: hover) {
  .card-face:hover { z-index: 2; }
  .card-face:hover .face-img { transform: scale(1.18); }
  .card-face:hover .card-face-name { opacity: 1; transform: translate(-50%, 0); }
}
@media (hover: none) { .card-face-name { display: none; } }
a.card-face { display: block; text-decoration: none; }
a.card-face:focus-visible .face-img { outline: 2px solid var(--accent); outline-offset: 1px; }
.card-face.more .face-img { display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--mute); }
/* Definições → Listagens: cards per row on a computer screen (narrower screens keep their own layout) */
@media (min-width: 961px) {
  .cards.cols-2, .portfolio.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cards.cols-3, .portfolio.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards.cols-4, .portfolio.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .cols-2 .card-faces { padding-left: 10px; }
  .cols-2 .card-face { margin-left: -10px; }
  .cols-2 .card-faces .face-img { width: 44px; height: 44px; }
  .cols-2 .card-face.more .face-img { font-size: .82rem; }
}
@media (max-width: 760px) {
  .faces { gap: 18px 12px; justify-content: flex-start; }
  .face { width: calc((100% - 24px) / 3); }
  .face .face-img { width: 72px; height: 72px; }
  .face.big { width: calc((100% - 12px) / 2); }
  .face.big .face-img { width: 120px; height: 120px; }
  .cards-spot { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .cards-rest { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
}

/* contact form */
.contact-cols { grid-template-columns: 3fr 2fr; }
.contact .hint { color: var(--mute); font-weight: 300; margin-bottom: 28px; }
.field { display: block; margin-bottom: 24px; }
.field span { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field span em { font-style: normal; text-transform: none; letter-spacing: .02em; opacity: .75; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.alt-contact { margin: 12px 0 0; font-size: .85rem; }
.alt-contact a { color: var(--mute); }
.cf-turnstile { margin: 0 0 22px; }
.form-msg { margin: 0 0 22px; padding: 14px 0; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); font-weight: 300; }
.form-msg.err { color: #c0392b; border-color: #c0392b; }
.contact-info p { margin-bottom: 14px; }
/* social logos (footer, Contactos): text colour, brand colour on hover; 44px tap area */
.social { display: flex; flex-wrap: wrap; gap: 6px; margin-left: -10px; }
.social a.social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); transition: color .2s, transform .2s; }
.social a.social-link:hover, .social a.social-link:focus-visible { transform: translateY(-2px); }
.social a.social-youtube:hover, .social a.social-youtube:focus-visible { color: #FF0000; }
.social a.social-instagram:hover, .social a.social-instagram:focus-visible { color: #E4405F; }
.social a.social-facebook:hover, .social a.social-facebook:focus-visible { color: #0866FF; }
.contact-info .social { margin-top: 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 32px 32px; font-size: .9rem; font-weight: 300; color: var(--mute); }
.foot-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot strong { color: var(--ink); font-weight: 500; letter-spacing: .08em; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.foot .copy { max-width: 1180px; margin: 36px auto 0; font-size: .7rem; letter-spacing: .14em; }
.notfound { text-align: center; padding-top: 80px; }

/* photos in colour (Definições → Fotografias) */
[data-photos="cor"] { --photo-filter: none; }
[data-photos="cor"] .hero-bg { filter: none; opacity: .85; }
[data-theme="noite"][data-photos="cor"] .hero-bg { filter: contrast(1.05) brightness(.8); }

/* theme-specific treatments */
[data-theme="noite"][data-photos="mono"] .hero-bg { filter: saturate(.3) sepia(.25) contrast(1.05) brightness(.8); opacity: .8; }
[data-theme="noite"] .hero-line { font-family: var(--font-display); font-style: italic; text-transform: none; letter-spacing: .04em; font-size: 1.6rem; color: #e9dcc9; }
[data-theme="noite"] .intro { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.5; }
[data-theme="noite"] .nav a.on { border-bottom-color: var(--accent); }
[data-theme="noite"] .shot { border-color: transparent; }
[data-theme="noite"] .ev-date .d { color: var(--quote-ink); }
[data-theme="dia"] .hero-line { color: #f0f0f0; }

/* Every photo is washed out until hovered. The big ones (artist photo, event/project image, galleries)
   colour on hover too; touch screens can't hover, so a photo takes its colour while it sits in the
   middle of the screen instead (js/beta.js adds .in-focus). */
.profile-photo:hover img, .event-hero:hover img, .gallery figure:hover img { filter: var(--photo-filter-hover); }
.shot img.in-focus, .portfolio .tile img.in-focus, .face-img img.in-focus, .video-poster img.in-focus,
.profile-photo img.in-focus, .event-hero img.in-focus, .gallery img.in-focus { filter: var(--photo-filter-hover); opacity: 1; }
.shot img, .portfolio .tile img, .face-img img, .video-poster img,
.profile-photo img, .event-hero img, .gallery img { transition: filter .6s ease, transform .7s, opacity .3s; }
@media (prefers-reduced-motion: reduce) {
  .shot img, .portfolio .tile img, .face-img img, .video-poster img, .profile-photo img, .event-hero img, .gallery img { transition: none; }
}

/* header extras: desktop hides them */
.nav-cta, .menu-btn, .mobile-cta, .quick-contact { display: none; }
/* desktop/tablet: the "pedir proposta" button sits at the end of the menu */
@media (min-width: 761px) {
  .nav .nav-cta { display: inline-block; padding: 6px 14px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
  .nav .nav-cta:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
}

/* tablets: menu wraps instead of clipping */
@media (max-width: 960px) {
  .top { flex-wrap: wrap; }
  .lang { order: 2; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; white-space: normal; overflow: visible; justify-content: center; gap: 8px 22px; }
}

/* phones: compact header with a Menu button and a full-screen overlay (JS); sticky contact bar */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { flex-wrap: wrap; gap: 14px 20px; padding: 14px 18px; align-items: center; }
  .lang { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; gap: 14px 18px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; order: 3; margin-left: 6px; min-height: 44px; padding: 0 2px; background: none; border: 0; color: var(--ink); font: inherit; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
  .menu-btn[hidden] { display: none; }
  .menu-bars { position: relative; width: 22px; height: 2px; background: currentColor; display: block; }
  .menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .2s, top .2s; }
  .menu-bars::before { top: -7px; } .menu-bars::after { top: 7px; }
  .menu-open .menu-bars { background: transparent; }
  .menu-open .menu-bars::before { top: 0; transform: rotate(45deg); } .menu-open .menu-bars::after { top: 0; transform: rotate(-45deg); }
  body.has-menu .nav { display: none; }
  body.has-menu.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; position: fixed; inset: 0; z-index: 40;
    padding: 96px 28px 40px; background: var(--bg); overflow-y: auto;
  }
  body.has-menu.menu-open .top { position: relative; z-index: 41; }
  /* brand, PT/EN and the Menu/Fechar button stay above the overlay so it can be closed */
  body.has-menu.menu-open .brand, body.has-menu.menu-open .lang, body.has-menu.menu-open .menu-btn { position: relative; z-index: 42; }
  .menu-open .nav a { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0; text-transform: none; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .menu-open .nav a.on { color: var(--accent); border-bottom-color: var(--line); }
  .menu-open .nav .nav-cta { display: block; margin-top: 28px; padding: 16px; text-align: center; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-family: var(--font); font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; }
  body.menu-open { overflow: hidden; }
  .mobile-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30; padding: 15px; text-align: center; background: var(--accent); color: var(--accent-ink); font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
  body.menu-open .mobile-cta, .mobile-cta.is-hidden { display: none; }
  /* phone quick actions on the contacts page (the aside with the same links sits below the form there) */
  .quick-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; margin: 0 0 24px; }
  .field-row { grid-template-columns: 1fr; }
  /* fingers: at least 44px to tap */
  .lang a, .lang .on { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .lang .on { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
  .block-head a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .alt-contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .quick-contact a { display: block; padding: 13px; text-align: center; border: 1px solid var(--ink); color: var(--ink); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; }
  .cards-4:not(.scroll-row) { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .foot { padding-bottom: 90px; }
  .btn { display: block; width: 100%; text-align: center; }
  .scroll-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 12px; margin: 0 -20px; scrollbar-width: none; }
  .scroll-row::-webkit-scrollbar { display: none; }
  .scroll-row .card { flex: 0 0 62vw; scroll-snap-align: start; }
  .block { margin-top: 56px; }
  .page-title { margin: 8px 0 24px; }
  .intro { margin-top: 40px; }
  .cta { margin-top: 64px; padding: 44px 16px; }
  .services-grid { gap: 22px; }
  .event-page .event-meta { margin-top: -8px; }
  .wrap { padding: 16px 20px 110px; } /* bottom room for the sticky contact bar */
  .event-hero.fit-coluna { padding: 16px 20px 0; }
  .two-col, .profile, .contact-cols { grid-template-columns: 1fr; gap: 32px; }
  .aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .gallery, .gallery.no-main { grid-template-columns: repeat(2, 1fr); }
  .ev { grid-template-columns: 60px 1fr; gap: 8px 16px; }
  .ev-date { grid-row: span 3; }
  .ev-tickets { justify-self: start; }
  .ev > span:empty { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  /* phones: the whole stage photo, uncropped, with the lockup below it on the dark panel */
  .hero { min-height: 0; display: block; padding: 0; }
  .hero-photo { position: relative; inset: auto; display: block; width: 100%; height: calc(100vw * 2 / 3); }
  .hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, #0e0e0e 100%); }
  .hero-bg { object-position: center; opacity: .9; } /* absolute inside the 3:2 picture box */
  .hero::after { display: none; }
  .hero-inner { padding: 0 20px 30px; }
  .hero-lockup { display: none; }
  .hero-mark { display: block; width: 30vw; height: auto; margin: -49vw auto 0; position: relative; z-index: 2; } /* bottom edge on the front of the stage floor */
  .hero-word { display: block; width: 78vw; height: auto; margin: 18vw auto 0; position: relative; z-index: 2; } /* starts just under the stage steps (photo fades to black there) */
  .intro { font-size: 1.12rem; }
  [data-theme="noite"] .intro { font-size: 1.3rem; }
}
