/* ==========================================================================
   Luna Silvestre — site público
   Grelha de 4 colunas, tipografia Syne em maiúsculas, acento lima.
   ========================================================================== */

:root {
  --bg: #f8f8f8;
  --ink: #000;
  --muted: rgba(0, 0, 0, 0.5);
  --line: rgba(0, 0, 0, 0.07);
  --accent: #c6f432;
  --on-accent: #000;
  --line-2: rgba(0, 0, 0, 0.12);
  --tile: #e9e9e9;
  --veil: rgba(248, 248, 248, 0.97);
  --dark: #0d0d0d;
  --pad: 20px;
  --gap: 20px;
  --header: 58px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Syne', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
body.is-ready { opacity: 1; }
body.is-leaving { opacity: 0; transition-duration: 0.35s; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- utilitários de grelha ---------- */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--pad);
}
.guides {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  padding: 0 var(--pad);
  pointer-events: none; z-index: 0;
}
.guides span { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.rel { position: relative; }
.rel > *:not(.guides) { position: relative; z-index: 1; }

.label {
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--muted);
}
.display {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: -0.055em; line-height: 0.86; margin: 0;
}
.signature .cap { font-family: 'Tangerine', 'Monsieur La Doulaise', cursive; font-size: 1.25em; line-height: 0; }
.signature { font-family: 'Monsieur La Doulaise', 'Snell Roundhand', cursive; font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.05; }
.display.signature { font-size: clamp(110px, 21vw, 330px); line-height: 0.95; padding: 0.12em 0.06em 0; }
.site-header .brand .signature { font-size: 30px; line-height: 1; text-transform: none; letter-spacing: 0; font-weight: 400; position: relative; top: 2px; }
.site-footer .big.signature { font-size: clamp(100px, 19vw, 300px); width: 100%; max-width: 1200px; text-align: center; overflow: visible; }
.h-xl { font-size: clamp(64px, 10.6vw, 178px); }
.h-lg { font-size: clamp(42px, 4.9vw, 82px); line-height: 0.9; letter-spacing: -0.05em; }
.h-md { font-size: clamp(30px, 3.1vw, 52px); line-height: 0.92; letter-spacing: -0.045em; }
.text { font-size: 16px; line-height: 1.2; max-width: 300px; margin: 0; }
.caps { text-transform: uppercase; }

.link-line {
  display: inline-block; font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: -0.01em; padding-bottom: 3px; position: relative;
}
.link-line::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform-origin: left; transition: transform 0.5s var(--ease);
}
.link-line:hover::after { transform: scaleX(0.35); }

.asterisk { width: 88px; height: 88px; display: block; }
.asterisk path { fill: currentColor; }
.moon { width: 88px; height: 88px; display: block; }
.moon.phases .sh { animation: phases 18s linear infinite; }
@keyframes phases { 0% { transform: translateX(0); } 49.99% { transform: translateX(80px); } 50% { transform: translateX(-80px); } 100% { transform: translateX(0); } }
.moon-row { display: flex; gap: 14px; align-items: center; }
.moon-row .moon { width: 26px; height: 26px; }
.asterisk.sm { width: 12px; height: 12px; }
.spin { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header);
  background: var(--bg);
  border-bottom: 3px solid transparent;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--accent); }
.site-header .grid4 { height: 100%; align-items: center; }
.site-header a { font-size: 13.5px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em; }
.site-header .brand { display: inline-flex; align-items: center; gap: 6px; }
.site-header nav a { position: relative; justify-self: start; }
.site-header nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.site-header nav a:hover::after, .site-header nav a.active::after { transform: scaleX(1); }
.site-header nav { display: contents; }
.nav-pair { display: flex; gap: 26px; }
.menu-btn { display: none; font-size: 13px; font-weight: 600; text-transform: uppercase; justify-self: end; }
main { padding-top: var(--header); }

/* ---------- reveals (estilo Shotline: sobe + desfoque → nítido) ---------- */
[data-reveal] {
  opacity: 0; filter: blur(12px); transform: translateY(26px);
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, filter, transform;
}
[data-reveal].in { opacity: 1; filter: blur(0); transform: none; }
.split-word { display: inline-block; white-space: pre; }
.img-reveal { overflow: hidden; background: var(--tile); }
.img-reveal img {
  width: 100%; height: auto;
  opacity: 0; filter: blur(18px); transform: scale(1.12);
  transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.img-reveal.in img { opacity: 1; filter: blur(0); transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .img-reveal img { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .marquee-track, .spin, .moon.phases .sh { animation: none !important; }
}

/* ---------- HERO (home + páginas) ---------- */
.hero { min-height: calc(100vh - var(--header)); min-height: calc(100svh - var(--header)); position: relative; display: flex; flex-direction: column; }
.home .hero { height: calc(100vh - var(--header)); height: calc(100svh - var(--header)); min-height: 640px; }
.home .hero-bottom { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
.hero-images { align-items: start; padding-top: 0; }

.hero-bottom { margin-top: auto; align-items: end; padding-bottom: 24px; padding-top: 40px; }
.hero-bottom .asterisk, .hero-bottom .moon { margin-bottom: 18px; }
.hero-title { grid-column: 2 / span 2; }
.hero-side { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; gap: 32px; }
.hero-side .text { margin-top: auto; }
.accent-bar { height: 16px; background: var(--accent); position: relative; z-index: 2; }

.page-hero { min-height: auto; padding-top: 70px; }
.page-hero .hero-bottom { margin-top: 0; padding-top: 0; padding-bottom: 32px; align-items: start; }
.page-hero .hero-title { padding-top: 0; }

/* ---------- missão (imagem inteira) ---------- */
.mission { position: relative; height: 220vh; }
.mission-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.strip { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.strip { background: var(--bg); }
.strip img:first-child:not(:only-child) { object-position: right center; }
.strip img:last-child:not(:only-child) { object-position: left center; }
.strip img { width: 100%; height: 100%; object-fit: contain; object-position: center; min-height: 0; }
.album-cover .strip { background: var(--bg); }
.mission-sticky { background: var(--bg); }
.mission-sticky .strip { transform: scale(var(--s, 0.86)); will-change: transform; }
.mission-sticky .strip img { filter: brightness(calc(1 - var(--o, 0))); }
.mission-text {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 var(--pad); gap: 26px;
}
.mission-text p { margin: 0; max-width: 760px; font-size: clamp(20px, 2.15vw, 34px); line-height: 1; font-weight: 500; text-transform: uppercase; letter-spacing: -0.04em; }
.mission-text .link-line { color: #fff; }

/* ---------- cabeçalho de secção ---------- */
.section { padding: 120px 0 0; position: relative; }
.section-head { align-items: start; margin-bottom: 70px; }
.section-head .h-lg { grid-column: 2 / span 2; }
.section-head .side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* ---------- projetos (escalonados) ---------- */
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; column-gap: var(--gap); row-gap: 90px; padding: 0 var(--pad) 40px; }
.work-card { display: block; }
.work-card:nth-child(4n + 2) { margin-top: 120px; }
.work-card:nth-child(4n + 3) { margin-top: 40px; }
.work-card:nth-child(4n + 4) { margin-top: 160px; }

.work-card .img-reveal img { transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease); }
.work-card:hover .img-reveal.in img { transform: scale(1.04); }
.work-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.work-meta .t { display: inline-flex; align-items: center; gap: 7px; }
.work-meta .t::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transition: transform 0.4s var(--ease); }
.work-card:hover .work-meta .t::before { transform: scale(1.6); }
.work-meta .y { color: var(--muted); font-weight: 500; }

/* ---------- serviços ---------- */
.services { padding-bottom: 120px; }
.service-cards { align-items: stretch; }
.service-card {
  grid-column: span 1; background: var(--accent); aspect-ratio: 331 / 380; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.service-card:first-child { grid-column: 2; }
.service-card .top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; font-weight: 600; }
.service-card .asterisk { width: 40px; height: 40px; transition: transform 0.9s var(--ease); }
.service-card:hover .asterisk { transform: rotate(90deg); }
.service-card h3 { margin: 0; font-size: clamp(20px, 1.9vw, 30px); line-height: 0.95; font-weight: 500; text-transform: uppercase; letter-spacing: -0.04em; }
.marquee { overflow: hidden; background: var(--accent); margin: var(--gap) var(--pad) 0; }
.marquee.offset { margin-left: calc(var(--pad) + (100% - 2 * var(--pad) - 3 * var(--gap)) / 4 + var(--gap)); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 16px; padding: 14px 16px 14px 0; white-space: nowrap; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.marquee-item i { width: 8px; height: 8px; background: currentColor; display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- índice (lista de trabalhos) ---------- */
.index-list { padding: 0 var(--pad); }
.index-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: center;
  padding: 15px 0; border-top: 1px solid var(--line-2); font-size: 14px; font-weight: 600; text-transform: uppercase;
  position: relative; transition: padding 0.4s var(--ease);
}
.index-row:last-child { border-bottom: 1px solid var(--line-2); }
.index-row::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); z-index: -1; }
.index-row:hover::before { transform: scaleY(1); }
.index-row .yr { grid-column: 2; font-weight: 500; }
.index-row .ttl { grid-column: 2; margin-left: 90px; }
.index-row .cat { color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; }
.index-row .arrow { transition: transform 0.45s var(--ease); }
.index-row:hover .arrow { transform: rotate(45deg); }
.index-row:hover, .index-row:hover .cat { color: var(--on-accent); }

/* ---------- citações (imagens empilhadas) ---------- */
.quotes { margin-top: 140px; }
.quote { position: sticky; top: 0; height: 100vh; overflow: hidden; margin: 0; }
.quote { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.quote .ph { height: 100vh; overflow: hidden; }
.quote .ph { display: flex; align-items: center; justify-content: center; padding: 5vh 0 calc(5vh + 16px); }
.quote .ph img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.quote:nth-child(even) .ph { order: 2; }
.quote figcaption { color: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 0 9% 16px; }
.quote blockquote { margin: 0 0 22px; max-width: 560px; font-size: clamp(24px, 2.7vw, 44px); line-height: 0.98; font-weight: 500; text-transform: uppercase; letter-spacing: -0.045em; }
.quote cite { font-style: normal; font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.quote .accent-bar { position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- contactos (mosaico) ---------- */
.contact-block { padding: 120px 0 120px; }
.contact-mosaic { align-items: start; }
.contact-mosaic .img-reveal { width: 100%; }
.cm-a { grid-column: 1; margin-top: 260px; }
.cm-b { grid-column: 2; margin-top: 60px; }
.cm-d { grid-column: 3; margin-top: 200px; }
.cm-c { grid-column: 4; }
.cm-lime { grid-column: 4; background: var(--accent); aspect-ratio: 1 / 1; margin-top: var(--gap); }
.contact-copy { grid-column: 2 / span 2; grid-row: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-top: 10px; }
.contact-mosaic .col4 { grid-column: 4; grid-row: 1 / span 2; display: flex; flex-direction: column; }

/* ---------- footer ---------- */
.footer-quote { position: relative; min-height: 460px; overflow: hidden; background: var(--bg); }
.footer-quote { height: 100vh; }
.footer-quote .strip img { filter: grayscale(1) brightness(0.72); }
.footer-quote p { position: absolute; top: 50%; transform: translateY(-50%); left: 0; right: 0; margin: 0 auto; max-width: 520px; z-index: 2; color: #fff; text-align: center; font-size: clamp(16px, 1.45vw, 22px); line-height: 1; font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em; padding: 0 var(--pad); }
.site-footer { position: relative; background: var(--bg); color: var(--ink); overflow: hidden; }
.site-footer .bg { position: absolute; inset: 0; }
.site-footer .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.75; }
.site-footer .inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 90px var(--pad) 46px; text-align: center; }
.site-footer .asterisk { width: 46px; height: 46px; }
.site-footer nav { display: flex; gap: 22px; margin: 26px 0 18px; font-size: 13px; font-weight: 500; text-transform: uppercase; }
.site-footer nav a:hover { opacity: 0.55; }
.site-footer .big { font-size: clamp(64px, 12.5vw, 210px); }
.site-footer .copy { margin-top: 26px; font-size: 11px; font-weight: 500; text-transform: uppercase; opacity: 0.8; }
.footer-marquee { background: var(--accent); color: var(--on-accent); overflow: hidden; position: relative; z-index: 2; }
.footer-marquee .marquee-item { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; padding: 9px 18px 9px 0; gap: 18px; line-height: 1; }
.footer-marquee .asterisk { width: 9px; height: 9px; }
.footer-marquee .marquee-track { animation-duration: 60s; }

/* ---------- página de trabalhos ---------- */
.works-page .section { padding-top: 90px; }

/* ---------- página de álbum ---------- */
.album-hero { padding-top: 70px; padding-bottom: 0; }
.album-hero .lime-sq { width: 46px; height: 46px; background: var(--accent); margin-top: 12px; }
.album-hero .text { align-self: start; }
.album-meta { margin-top: 50px; padding-top: 14px; padding-bottom: 46px; border-top: 1px solid var(--line-2); grid-column: 2 / span 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.album-meta .v { font-size: 13px; font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.album-cover { height: 66.6vw; overflow: hidden; position: relative; }

.gallery { column-count: 4; column-gap: var(--gap); padding: 110px var(--pad) 40px; }
.gallery .g { break-inside: avoid; margin-bottom: var(--gap); }
.gallery .img-reveal { cursor: zoom-in; }



/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--veil); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; animation: lbIn 0.5s var(--ease); }
@keyframes lbIn { from { opacity: 0; filter: blur(10px); transform: scale(0.98); } }
.lightbox .lb-btn { position: absolute; font-size: 13px; font-weight: 600; text-transform: uppercase; padding: 14px; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { bottom: 10px; left: 50%; transform: translateX(-50%); color: var(--muted); }

/* ---------- sobre ---------- */

.about-intro { padding: 120px 0 0; }
.about-intro .h-md { grid-column: 2 / span 2; }
.about-cols { grid-column: 2 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 56px; }
.about-cols p { margin: 10px 0 0; font-size: 14px; line-height: 1.25; }
.about-photos { margin-top: 56px; align-items: start; }
.about-photos .a { grid-column: 2; }
.about-photos .b { grid-column: 3; margin-top: 120px; }
.about-photos .c { grid-column: 4; }

/* topo: foto grande à esquerda, apresentação à direita */
.about-top .grid4 { min-height: calc(100vh - var(--header)); min-height: calc(100svh - var(--header)); align-items: stretch; }
.about-photo { grid-column: 1 / span 2; }
.about-photo .img-reveal { height: calc(100vh - var(--header) - 24px); height: calc(100svh - var(--header) - 24px); background: transparent; }
.about-photo .img-reveal img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left top; }
.about-hello { grid-column: 3 / span 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 22px; padding-bottom: 28px; }
.about-hello .display { width: 100%; }
.about-hello .text { max-width: 340px; }

/* ---------- testemunhos ---------- */
.testimonials { row-gap: var(--gap); align-items: stretch; }
.testimonial { margin: 0; grid-column: span 1; padding: 16px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; border: 1px solid var(--line-2); }
.testimonial.wide { grid-column: span 2; }
.testimonial.filled { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.testimonial .top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; font-weight: 600; }
.testimonial .top .asterisk { width: 28px; height: 28px; }
.testimonial .tag { font-size: 11px; font-weight: 600; text-transform: uppercase; border: 1px solid currentColor; border-radius: 99px; padding: 3px 9px; }
.testimonial blockquote { margin: 0; font-size: clamp(18px, 1.55vw, 26px); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; }
.testimonial.wide blockquote { font-size: clamp(22px, 2.1vw, 34px); max-width: 560px; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 3px; font-size: 13px; text-transform: uppercase; }
.testimonial figcaption strong { font-weight: 600; }
.testimonial figcaption span { opacity: 0.6; font-weight: 500; }

/* ---------- contactos (página) ---------- */
.contact-page { padding-top: 70px; padding-bottom: 120px; align-items: start; }
.contact-page .left { grid-column: 1 / span 2; display: flex; flex-direction: column; gap: 40px; }
.contact-page .channels { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-page .channels .row { display: flex; gap: 18px; flex-wrap: wrap; }
.form-card { grid-column: 3 / span 2; background: var(--accent); padding: 18px; min-height: 520px; display: flex; flex-direction: column; }
.form-card .head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.form-card .asterisk { width: 28px; height: 28px; }
.field { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); padding: 18px 0 10px; }
.field input, .field textarea {
  width: 100%; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 500; text-transform: uppercase; outline: none; resize: none; color: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, currentColor 55%, transparent); }
.form-card .actions { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form-card .status { font-size: 12px; font-weight: 600; text-transform: uppercase; }

/* ---------- paletas (html[data-theme]) ---------- */
.service-card, .marquee, .form-card, .cm-lime { color: var(--on-accent); }
html[data-theme='creme'] {
  --bg: #f3ede2; --ink: #1b1612; --muted: rgba(27, 22, 18, 0.55); --line: rgba(27, 22, 18, 0.08); --line-2: rgba(27, 22, 18, 0.16);
  --accent: #ff4a1c; --on-accent: #1b1612; --tile: #e6dfd2; --veil: rgba(243, 237, 226, 0.97);
}
html[data-theme='noite'] {
  --bg: #0e0e0e; --ink: #f3f3ef; --muted: rgba(243, 243, 239, 0.55); --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.17);
  --accent: #c6f432; --on-accent: #0e0e0e; --tile: #1b1b1b; --veil: rgba(14, 14, 14, 0.97);
}
html[data-theme='azul'] {
  --bg: #eef0f3; --ink: #0b1020; --muted: rgba(11, 16, 32, 0.55); --line: rgba(11, 16, 32, 0.08); --line-2: rgba(11, 16, 32, 0.15);
  --accent: #2f48ff; --on-accent: #fff; --tile: #dfe3ea; --veil: rgba(238, 240, 243, 0.97);
}

html[data-theme='rosa'] {
  --bg: #fbeff0; --ink: #2a1118; --muted: rgba(42, 17, 24, 0.55); --line: rgba(42, 17, 24, 0.08); --line-2: rgba(42, 17, 24, 0.16);
  --accent: #ff5fa2; --on-accent: #2a1118; --tile: #f3dfe2; --veil: rgba(251, 239, 240, 0.97); --dark: #2a1118;
}
html[data-theme='bebe'] {
  --bg: #fff8f5; --ink: #3a1822; --muted: rgba(58, 24, 34, 0.55); --line: rgba(58, 24, 34, 0.08); --line-2: rgba(58, 24, 34, 0.15);
  --accent: #ffb7d2; --on-accent: #3a1822; --tile: #f6e7e3; --veil: rgba(255, 248, 245, 0.97); --dark: #3a1822;
}
html[data-theme='lilas'] {
  --bg: #f6f2fb; --ink: #1f1532; --muted: rgba(31, 21, 50, 0.55); --line: rgba(31, 21, 50, 0.08); --line-2: rgba(31, 21, 50, 0.15);
  --accent: #c9a6ff; --on-accent: #1f1532; --tile: #e9e1f4; --veil: rgba(246, 242, 251, 0.97); --dark: #0d0d0d;
}

html[data-theme='salvia'] {
  --bg: #f4f3ee; --ink: #20241f; --muted: rgba(32, 36, 31, 0.55); --line: rgba(32, 36, 31, 0.08); --line-2: rgba(32, 36, 31, 0.15);
  --accent: #aab89b; --on-accent: #20241f; --tile: #e7e6de; --veil: rgba(244, 243, 238, 0.97); --dark: #20241f;
}

/* ---------- responsivo ---------- */
@media (max-width: 1150px) {
  .site-header .grid4 { display: flex; justify-content: space-between; gap: 20px; }
  .site-header nav { display: flex; gap: 22px; }
  .nav-pair { gap: 22px; }
}
@media (max-width: 1000px) {

  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 60px; }
  .gallery { column-count: 3; }
  .work-card:nth-child(odd) { margin-top: 0; }
  .work-card:nth-child(even) { margin-top: 90px; }
}
@media (max-width: 760px) {
  :root { --pad: 14px; --gap: 12px; --header: 52px; }
  .site-header .grid4 { display: grid; grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .site-header.menu-open nav {
    display: flex; flex-direction: column; position: fixed; top: var(--header); left: 0; right: 0; background: var(--bg);
    padding: 24px var(--pad) 32px; gap: 18px; border-bottom: 3px solid var(--accent);
  }
  .nav-pair { display: contents; }
  .about-top .grid4 { min-height: 0; }
  .about-photo, .about-hello { grid-column: 1 / -1; }
  .about-photo .img-reveal { height: auto; }
  .about-photo .img-reveal img { width: 100%; height: auto; }
  .about-hello { padding: 20px 0 28px; }
  .testimonial, .testimonial.wide { grid-column: 1 / -1; min-height: 240px; }
  .site-header.menu-open nav a { font-size: 28px; font-weight: 500; letter-spacing: -0.04em; }
  .menu-btn { display: block; }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .guides span:nth-child(n + 3) { display: none; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-images .img-reveal:nth-child(n + 3) { display: none; }
  .home .hero { height: auto; min-height: 0; }
  .home .hero-bottom { position: relative; padding-top: 70px; }
  .hero-title, .section-head .h-lg, .about-intro .h-md, .about-cols, .album-meta, .contact-copy { grid-column: 1 / -1; }
  .hero-bottom { row-gap: 24px; }
  .hero-bottom .asterisk, .hero-bottom .moon { width: 54px; height: 54px; margin: 0; }
  .hero-side { grid-column: 1 / -1; }
  .section { padding-top: 80px; }
  .section-head { margin-bottom: 40px; row-gap: 18px; }
  .section-head .side { grid-column: 1 / -1; }
  .works { grid-template-columns: 1fr; row-gap: 44px; }
  .work-card:nth-child(n) { margin-top: 0; }
  .service-card, .service-card:first-child { grid-column: 1 / -1; aspect-ratio: auto; min-height: 220px; }
  .marquee.offset { margin-left: var(--pad); }
  .index-row { grid-template-columns: 70px 1fr auto; }
  .index-row .yr { grid-column: 1; }
  .index-row .ttl { grid-column: 2; margin: 0; }
  .index-row .cat span:first-child { display: none; }
  .contact-mosaic .img-reveal, .cm-lime { display: none; }
  .contact-mosaic .cm-b { display: block; grid-column: 1 / -1; margin-top: 30px; }
  .contact-copy { grid-row: auto; }
  .contact-mosaic .col4 { display: none; }
  .gallery { column-count: 2; padding-top: 50px; }

  .strip { grid-template-columns: 1fr; }
  .album-cover { height: 133vw; }
  .strip img:nth-child(n + 2) { display: none; }
  .quote { display: block; position: relative; height: auto; padding-bottom: 16px; }
  .quote .ph { height: auto; padding: 0; }
  .quote .ph img { height: auto; }
  .strip img:nth-child(n) { object-position: center !important; }
  .quote figcaption { padding: 26px var(--pad) 40px; }
  .about-photos .c { display: none; }
  .album-meta { grid-template-columns: repeat(3, 1fr); }
  .album-hero .lime-sq { display: none; }
  .about-photos .a, .about-photos .b { grid-column: auto; margin-top: 0; }
  .about-cols { grid-template-columns: 1fr; }
  .contact-page .left, .form-card { grid-column: 1 / -1; }
  .lightbox img { max-width: calc(100vw - 20px); }
  .mission { height: 180vh; }
}
