/* =========================================================
   Universiarte — vitrine de obras
   Paleta herdada do Turno da Noite: azul da madrugada,
   ouro da luz da fábrica e vermelho-carne.
   ========================================================= */

/* Fontes self-hospedadas (variáveis: um arquivo cobre todos os pesos) */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/cinzel-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
}

:root {
  --ink: #07090d;
  --night: #0b1d33;
  --surface: #0e1219;
  --surface-2: #141a24;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2efe8;
  --muted: #a3a8b1;
  --faint: #6c7380;
  --gold: #e5b842;
  --gold-soft: rgba(229, 184, 66, 0.14);
  --red: #8a2a2a;
  --ok: #6fcf97;

  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: .6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Céu estrelado (assinatura visual) ---------- */

.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 32%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 88% 46%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 24% 64%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 78%, rgba(229,184,66,.35), transparent 60%),
    radial-gradient(1px 1px at 5% 88%, rgba(255,255,255,.3), transparent 60%);
  background-size: 520px 520px;
  opacity: .8;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 13, 0.88);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.brand-name b { color: var(--gold); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }

.nav .btn { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform .3s var(--ease), background .3s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(229,184,66,.55);
}
.btn-gold:hover { background: #f0c757; box-shadow: 0 14px 34px -10px rgba(229,184,66,.7); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .72rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Tipografia de seção ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 760px;
}
.section-head h2,
.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: .01em;
}
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

.num { color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(30, 64, 110, .55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(138, 42, 42, .18), transparent 70%),
    linear-gradient(180deg, var(--night) -40%, var(--ink) 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-text { display: grid; gap: 1.6rem; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: .005em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: block;
}

.hero .lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  color: #c9ccd2;
  max-width: 44ch;
  font-weight: 300;
}

.award-chip {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  padding: .45rem .9rem .45rem .5rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(229,184,66,.32);
  font-size: .78rem;
  font-weight: 500;
  color: #f4dc99;
  text-decoration: none;
}
.award-chip svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

.origin {
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--gold);
}
.work-panel .origin { margin-top: .9rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Moldura da obra */
.frame {
  position: relative;
  padding: clamp(.6rem, 1.4vw, 1rem);
  background: linear-gradient(145deg, #1b2230, #0c1017);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,.85),
    0 30px 60px -40px rgba(30,64,110,.6),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.frame img { border-radius: 2px; width: 100%; }
.frame::after { /* reflexo sutil da resina */
  content: "";
  position: absolute;
  inset: clamp(.6rem, 1.4vw, 1rem);
  border-radius: 2px;
  background: linear-gradient(125deg, rgba(255,255,255,.09) 0%, transparent 32%);
  pointer-events: none;
}

.hero-art {
  position: relative;
  text-decoration: none;
  transform: perspective(1600px) rotateY(-4deg) rotateX(1deg);
  transition: transform .8s var(--ease);
}
.hero-art:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.hero-art .caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-art .caption span:last-child { color: var(--gold); }

/* ---------- Acervo (grade de obras) ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  transition: transform .45s var(--ease), border-color .3s ease, box-shadow .45s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229,184,66,.35);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}

.work-card .media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse at 50% 40%, #1a2333, #0b0f15 75%);
  display: grid;
  place-items: center;
  padding: 1.4rem;
  overflow: hidden;
}
.work-card .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.6));
  transition: transform .9s var(--ease);
}
.work-card:hover .media img { transform: scale(1.04); }

.work-card .body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.25rem 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
}
.work-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
}
.work-card .meta { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.work-card .card-price {
  margin-top: .6rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .02em;
}
.work-card .arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.work-card .arrow svg { width: 16px; height: 16px; }
.work-card:hover .arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(-45deg); }

/* Selos de status */
.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .75rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(7,9,13,.75);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-consulta { color: var(--gold); }
.status-premiada { color: var(--gold); border-color: rgba(229,184,66,.45); }
.status-disponivel { color: var(--ok); }
.status-vendida { color: var(--faint); }
.work-card .status { position: absolute; top: 1rem; left: 1rem; z-index: 1; }

.work-card .badge-premio {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
}
.work-card .badge-premio svg { width: 18px; height: 18px; }

/* Vaga para próxima obra */
.work-card.is-soon { background: transparent; border-style: dashed; cursor: default; }
.work-card.is-soon:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.work-card.is-soon .media {
  background: radial-gradient(ellipse at 50% 40%, rgba(26,35,51,.5), transparent 75%);
}
.work-card.is-soon .media .starfield { opacity: .5; mask-image: none; }
.soon-mark {
  position: relative;
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  display: grid;
  gap: .9rem;
  justify-items: center;
}
.soon-mark::before {
  content: "";
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(circle, var(--gold) 0 2px, transparent 3px);
}
.work-card.is-soon h3 { color: var(--muted); }

/* ---------- O artista ---------- */

.artist-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.prose { display: grid; gap: 1.2rem; color: #c9ccd2; font-size: 1.06rem; max-width: 62ch; }
.prose strong { color: var(--text); font-weight: 600; }

.quote {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
  margin-block: .6rem;
}

.award-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(229,184,66,.18), transparent 60%),
    linear-gradient(160deg, #161c27, #0d1118);
  border: 1px solid rgba(229,184,66,.28);
  display: grid;
  gap: 1rem;
}
.award-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
}
.award-card .icon svg { width: 26px; height: 26px; }
.award-card .label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.award-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}
.award-card p { color: var(--muted); font-size: .95rem; }
.award-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .6rem;
  margin-top: .4rem;
}
.award-steps li {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .9rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.award-steps li svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- Como adquirir ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  position: relative;
  padding: 2rem 1.75rem 1.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: .7rem;
  align-content: start;
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(229,184,66,.7);
  margin-bottom: .6rem;
}
.steps h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; }
.steps p { color: var(--muted); font-size: .95rem; }

.note {
  margin-top: 1.5rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size: .95rem;
}
.note svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: .15rem; }

/* ---------- Contato (CTA final) ---------- */

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(30,64,110,.55), transparent 70%),
    var(--ink);
}
.contact .wrap { position: relative; display: grid; justify-items: center; gap: 1.5rem; }
.contact h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  line-height: 1.08;
  max-width: 18ch;
}
.contact p { color: var(--muted); max-width: 52ch; font-size: 1.05rem; }
.contact .btn-row { justify-content: center; }

/* ---------- Rodapé ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: .85rem;
  color: var(--faint);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--gold); }

/* =========================================================
   Página da obra
   ========================================================= */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2rem;
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }

.work-hero {
  position: relative;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(30,64,110,.45), transparent 70%),
    var(--ink);
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.zoomable {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}
.zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.zoom-hint svg { width: 15px; height: 15px; }

.work-panel {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: 1.6rem;
}
.work-panel h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.02;
}
.work-panel .subtitle { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

.price-box {
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: .9rem;
}
.price-box .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.price-box .price-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.price-box .price { font-family: var(--serif); font-size: 1.45rem; }
.price-box .btn { width: 100%; }
.price-box .small { font-size: .82rem; color: var(--faint); text-align: center; }

.spec {
  display: grid;
  border-top: 1px solid var(--line);
}
.spec div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.spec dt { color: var(--faint); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding-top: .15rem; }
.spec dd { margin: 0; color: var(--text); }

.share-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  width: fit-content;
}
.share-btn:hover { color: var(--gold); }
.share-btn svg { width: 17px; height: 17px; }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(3, 4, 7, .96);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(3, 4, 7, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 40px 120px rgba(0,0,0,.8);
}
.lightbox .close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox .close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox .close svg { width: 20px; height: 20px; }

/* Toast (link copiado) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 150%);
  background: var(--text);
  color: var(--ink);
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: transform .4s var(--ease), opacity .3s ease, visibility .4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Botão flutuante do WhatsApp (mobile) */
.fab-whats {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.6);
}
.fab-whats svg { width: 28px; height: 28px; }

/* 404 */
.not-found {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.not-found .wrap { position: relative; display: grid; gap: 1.2rem; justify-items: center; }
.not-found .big { font-family: var(--serif); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }

/* ---------- Entrada do topo: CSS puro, não depende de JS (bom para LCP) ---------- */

.intro { animation: intro-in 1s var(--ease) both; }
.intro[data-delay="1"] { animation-delay: .08s; }
.intro[data-delay="2"] { animation-delay: .16s; }
.intro[data-delay="3"] { animation-delay: .24s; }
@keyframes intro-in {
  from { opacity: 0; transform: translateY(18px); }
}
.hero-art.intro { animation-name: intro-art; }
@keyframes intro-art {
  from { opacity: 0; transform: perspective(1600px) rotateY(-4deg) rotateX(1deg) translateY(24px); }
}

/* ---------- Animação de entrada ao rolar (só com JS ativo) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .artist-grid,
  .work-layout,
  .story-grid { grid-template-columns: 1fr; }
  .hero-art { transform: none; }
  .work-panel { position: static; }
  .steps { grid-template-columns: 1fr; }

  /* Celular/tablet: título → imagem → descrição.
     display: contents "solta" os filhos do bloco de texto na grade,
     e order decide a sequência. */
  .hero-grid { row-gap: 1.6rem; }
  .hero-text { display: contents; }
  .hero-text .award-chip { order: 1; }
  .hero-text .eyebrow    { order: 2; }
  .hero-text h1          { order: 3; }
  .hero-art              { order: 4; margin-block: .6rem; }
  .hero-text .lead       { order: 5; }
  .hero-text .origin     { order: 6; }
  .hero-text .btn-row    { order: 7; }
  .hero-text .hero-meta  { order: 8; }

  .work-layout { row-gap: 1.6rem; }
  .work-panel { display: contents; }
  .work-title { order: -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0,0,0,.6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .nav .btn { margin-top: 1.2rem; border-bottom: 0; }
  .fab-whats { display: grid; }
  .brand-name { font-size: .95rem; letter-spacing: .22em; }
}

@media (max-width: 520px) {
  .btn-row .btn { flex: 1 1 100%; }
  .spec div { grid-template-columns: 6.2rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .intro { animation: none; }
  .hero-art { transform: none; }
}
