/* ============================================================
   Thiago Pelaes — thiagopelaes.com.br
   Linguagem do catálogo impresso, em versão escura.
   Site multipágina.
   ============================================================ */

:root {
  --bg: #161411;
  --bg-2: #1e1b16;
  --cream: #e8e4da;
  --muted: #9a948a;
  --hairline: rgba(232, 228, 218, 0.14);
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

::selection { background: var(--cream); color: var(--bg); }

/* ---------- tipografia base ---------- */

.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.display {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 16em;
}

.lede {
  margin-top: 26px;
  max-width: 34em;
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--muted);
}
.lede em { font-style: normal; color: var(--cream); }

.fineprint { margin-top: 28px; font-size: 13px; color: var(--muted); }

.block {
  padding: clamp(90px, 14vh, 160px) var(--pad);
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: 0 auto;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

/* no topo: degradê suave sobre a foto */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(13, 12, 10, 0.85) 0%, rgba(13, 12, 10, 0.4) 48%, transparent 100%);
  opacity: 0.4;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

/* ao rolar: vira uma barra escura definida, com blur (descolamento da foto) */
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled {
  background: rgba(13, 12, 10, 0.72);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.28);
}

.wordmark { font-size: 17px; font-weight: 400; letter-spacing: 0.01em; transition: opacity 0.5s ease; }
.site-header.over-hero .wordmark { opacity: 0; pointer-events: none; }

.site-nav { display: flex; gap: 26px; }

.site-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--cream); }
.site-nav a.active { color: var(--cream); border-bottom: 1px solid var(--cream); }

.nav-toggle { display: none; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px var(--pad);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.foot-loc { color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; }

/* ---------- botões ---------- */

.btn-whats, .btn-ghost {
  display: inline-block;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--cream);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
  background: none;
  font-family: inherit;
}
.btn-whats { background: var(--cream); color: var(--bg); }
.btn-whats:hover { background: transparent; color: var(--cream); }
.btn-ghost { border-color: var(--hairline); color: var(--muted); }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }

/* ============================================================
   HOME
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media, .hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media img { opacity: 0; transition: opacity 1.8s ease; filter: brightness(0.62); }
.hero-media img.on { opacity: 1; }

/* tom uniforme leve sobre a foto (sem degradê atrás do texto) */
.hero-veil {
  position: absolute; inset: 0;
  background: rgba(13, 12, 10, 0.22);
}

.hero-content { position: relative; padding: 0 var(--pad) 9vh; }
.hero-content .kicker { margin-bottom: 14px; }
.hero-content h1 {
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}
.hero-roles {
  margin-top: 18px;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 228, 218, 0.8);
}

.hero-caption {
  position: absolute;
  bottom: 34px; right: calc(var(--pad) + 26px);
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 228, 218, 0.65);
  transition: color 0.3s;
}
.hero-caption:hover { color: var(--cream); }

.scroll-cue {
  position: absolute;
  bottom: 30px; right: var(--pad);
  z-index: 3;
  width: 1px; height: 56px;
  background: rgba(232,228,218,0.25);
  overflow: hidden;
}
.scroll-cue span {
  display: block; width: 100%; height: 40%;
  background: var(--cream);
  animation: cue 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(260%); }
}

/* as três portas */

.portas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.porta {
  position: relative;
  height: 72svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.porta img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1s cubic-bezier(0.22,1,0.36,1), filter 0.6s ease;
  filter: brightness(0.62);
}
.porta:hover img { transform: scale(1.07); filter: brightness(0.82); }

.porta .porta-label {
  position: relative;
  z-index: 1;
  padding: 0 26px 30px;
}
.porta .porta-label .kicker { margin-bottom: 6px; }
.porta h2 {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.porta h2 strong { display: inline; }

/* chamada fine art */

.chamada-fineart {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.chamada-fineart img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.chamada-fineart .inner {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad);
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: 0 auto;
  width: 100%;
}
.chamada-fineart .display { max-width: 12em; }
.chamada-fineart .lede { color: rgba(232,228,218,0.8); }
.chamada-fineart .btn-ghost { margin-top: 36px; border-color: rgba(232,228,218,0.4); color: var(--cream); }
.chamada-fineart .btn-ghost:hover { border-color: var(--cream); }

/* ============================================================
   PORTFÓLIO — DIREÇÃO / DIREÇÃO DE FOTOGRAFIA (mosaico)
   ============================================================ */

.page-head {
  padding: calc(var(--header-h) + clamp(40px, 8vh, 90px)) var(--pad) clamp(36px, 6vh, 64px);
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: 0 auto;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 2px;
}

.tile {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
}
.tile.static { cursor: default; }

.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1s cubic-bezier(0.22,1,0.36,1), filter 0.6s ease;
}
.tile:hover img { transform: scale(1.06); filter: brightness(0.45); }

.tile .tile-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tile:hover .tile-info { opacity: 1; transform: none; }

.tile .tile-info .kicker { margin-bottom: 6px; font-size: 10px; }
.tile h3 { font-size: clamp(16px, 1.5vw, 21px); font-weight: 700; letter-spacing: -0.01em; }
.tile .tile-desc { margin-top: 8px; font-size: 13px; color: rgba(232,228,218,0.75); max-width: 34em; }
.tile .tile-play {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
}

/* player overlay */

.player-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 12, 10, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 70px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.player-overlay[hidden] { display: none; }
.player-overlay.open { opacity: 1; }
.player-overlay .frame {
  width: min(1280px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-overlay iframe { width: 100%; height: 100%; border: 0; }

.overlay-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: none;
  color: var(--muted);
  font-size: 38px; font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s;
  z-index: 2;
}
.overlay-close:hover { color: var(--cream); }

/* ============================================================
   FOTOGRAFIA — faixas verticais das séries
   ============================================================ */

.strips {
  display: flex;
  height: calc(100svh - var(--header-h));
  margin-top: var(--header-h);
}

.strip {
  position: relative;
  flex: 1;
  overflow: hidden;
  transition: flex 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  border-right: 1px solid rgba(13, 12, 10, 0.9);
}
.strip:last-child { border-right: none; }

.strip img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.9);
  transition: filter 0.7s ease, transform 1.2s cubic-bezier(0.22,1,0.36,1);
  transform: scale(1.02);
}

.strip .strip-label {
  position: absolute;
  left: 22px; bottom: 26px; right: 22px;
  opacity: 0.75;
  transition: opacity 0.5s ease;
}
.strip .strip-label .kicker { margin-bottom: 4px; font-size: 9px; }
.strip h2 {
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strips:hover .strip { flex: 0.82; }
.strips .strip:hover { flex: 2.1; }
.strip:hover img { filter: brightness(0.92) saturate(1); transform: scale(1.0); }
.strip:hover .strip-label { opacity: 1; }

/* ============================================================
   SÉRIE — galeria fluida
   ============================================================ */

.serie-gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(90px, 14vh, 160px);
}

.serie-item { margin-bottom: clamp(56px, 9vh, 110px); }

.serie-item img {
  width: 100%;
  max-height: 88svh;
  object-fit: contain;
  object-position: left center;
}

.serie-cap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.serie-cap .code { font-size: 11px; letter-spacing: 0.26em; }
.serie-cap .buy-link {
  margin-left: auto;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
  cursor: pointer;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font: inherit;
  font-size: 13px;
}
.serie-cap .buy-link:hover { color: var(--cream); border-color: var(--cream); }

/* ============================================================
   FINE ART — página imersiva
   ============================================================ */

.fa-full {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.fa-full img {
  position: absolute; inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}
.fa-full .fa-text {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) 12vh;
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.fa-full.inview .fa-text { opacity: 1; transform: none; }
.fa-full .display { max-width: 13em; }
.fa-full .lede { color: rgba(232,228,218,0.82); }

/* reveal elegante ao rolar (Fine Art) */
.fa-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.fa-reveal.from-left { transform: translateX(-40px); }
.fa-reveal.from-right { transform: translateX(40px); }
.fa-reveal.is-in { opacity: 1; transform: none; }

/* texto único da banda (sem título grande) */
.fa-line {
  font-size: clamp(25px, 2.9vw, 40px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.24;
  max-width: 17em;
  color: var(--cream);
}
.fa-line strong { font-weight: 700; }

/* alterna o lado do texto entre as bandas */
.fa-full.fa-right .fa-text { text-align: right; }
.fa-full.fa-right .fa-line { margin-left: auto; }

/* como funciona — esquema didático */

.fa-howto { position: relative; background: var(--bg-2); }

.fa-pin {
  display: flex;
  align-items: center;
  min-height: 88svh;
  padding: clamp(70px, 11vh, 130px) 0;
}

.fa-howto-inner {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 6fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.fa-howto-copy .kicker { margin-bottom: 22px; }
.fa-howto-copy .display { font-size: clamp(26px, 3vw, 40px); }
.fa-howto-copy .lede { margin-top: 22px; }
.fa-steps { list-style: none; }
.fa-step {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  opacity: 0.32;
  transition: opacity 0.5s ease;
}
.fa-step:first-child { border-top: none; }
.fa-step.active { opacity: 1; }
.fa-step em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-top: 6px;
}
.fa-step h3 { font-size: clamp(18px, 1.7vw, 23px); font-weight: 400; letter-spacing: -0.01em; }
.fa-step p { margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 28em; }

.fa-window { width: 100%; }
.fa-window-inner {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #000;
}
.fa-window-inner .room-base {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* moldura de madeira na parede, ciclando as obras */
.sim-frame {
  position: absolute;
  left: 28%; top: 7.5%;
  width: 35%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #3c2e1f 0%, #271d12 100%);
  padding: 1.1%;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), 0 4px 9px rgba(0, 0, 0, 0.35);
}

.sim-mat {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: #0d0c0a;
}
.sim-mat::after {              /* reflexo do vidro */
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(118deg, rgba(255,255,255,0.13) 0%, transparent 30%, transparent 76%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}
.sim-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.sim-photo.on { opacity: 1; }

/* medidas esquemáticas sobre a janela */
.fa-measures {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.fa-measures text {
  font-family: "Inter", Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 2px;
}
.fa-measures .m-dark line { stroke: rgba(38, 32, 24, 0.92); stroke-width: 3; }
.fa-measures .m-dark text { fill: rgba(38, 32, 24, 0.96); }
.fa-measures .m-light { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8)); }
.fa-measures .m-light line { stroke: rgba(238, 234, 224, 0.96); stroke-width: 3; }
.fa-measures .m-light text { fill: rgba(238, 234, 224, 0.98); }

/* preços */

.precos { border-top: 1px solid var(--hairline); }

.price-tables {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(32px, 6vw, 96px);
}

.price-table h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.price-table h4.mt { margin-top: 44px; }

.price-table table { width: 100%; border-collapse: collapse; }
.price-table td {
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 17px;
}
.price-table td:last-child { text-align: right; font-weight: 700; }
.price-table td span { color: var(--muted); font-size: 13px; margin-left: 6px; }

/* notas (acabamento / condições) */
.fa-notes ul { list-style: none; }
.fa-notes li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.fa-notes li:last-child { border-bottom: none; }

/* convite final */

.fa-final { text-align: left; }
.fa-final .contato { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   SOBRE
   ============================================================ */

.sobre .contato { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   FICHA DA OBRA (overlay compartilhado)
   ============================================================ */

.ficha {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 12, 10, 0.97);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(20px, 5vw, 70px);
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
/* o atributo hidden precisa vencer o display:grid acima */
.ficha[hidden] { display: none; }
.ficha.open { opacity: 1; }

.ficha-media { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.ficha-media img { max-height: 86svh; max-width: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }

.ficha-info .kicker { margin-bottom: 10px; }
.ficha-info h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 400; letter-spacing: -0.02em; }
.ficha-loc { color: var(--muted); margin-top: 6px; font-size: 14px; }

.ficha-formats { margin: 34px 0 30px; width: 100%; max-width: 360px; border-collapse: collapse; }
.ficha-formats td { padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.ficha-formats td:last-child { text-align: right; font-weight: 700; }
.ficha-formats td span { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 880px) {
  /* sem backdrop-filter no mobile: ele criaria containing block e prenderia o menu fullscreen */
  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13, 12, 10, 0.92);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(22, 20, 17, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  }
  .site-nav.open { transform: none; }
  .site-nav a { font-size: 16px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 60;
    padding: 8px 0;
  }
  .nav-toggle span { width: 26px; height: 1.5px; background: var(--cream); transition: transform 0.35s, opacity 0.35s; }
  .nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .portas { grid-template-columns: 1fr; }
  .porta { height: 44svh; }

  .strips { flex-direction: column; height: auto; }
  .strip { height: 30svh; border-right: none; border-bottom: 1px solid rgba(13,12,10,0.9); }
  .strips:hover .strip { flex: 1; }
  .strips .strip:hover { flex: 1; }
  .strip img { filter: brightness(0.78); }
  .strip .strip-label { opacity: 1; }

  .fa-pin { min-height: 0; display: block; padding: 70px 0; }
  .fa-howto-inner { grid-template-columns: 1fr; gap: 32px; }
  .fa-window { order: -1; }

  .ficha { grid-template-columns: 1fr; grid-template-rows: 1fr auto; overflow-y: auto; }
  .ficha-media img { max-height: 46svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue { display: none; }
  .fa-full .fa-text, .sim-frame, .sim-photo, .fa-measures {
    transition: none !important;
  }
  .fa-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PAINEL ADMIN (admin.html)
   ============================================================ */

body[data-page="admin"] { background: var(--bg); }

/* o atributo hidden precisa vencer os display abaixo */
.adm-login[hidden], .adm-panel[hidden], .adm-preview[hidden] { display: none !important; }

/* login */
.adm-login {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
}
.adm-login-card {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.adm-login-card h1 { font-size: 32px; font-weight: 400; letter-spacing: -0.02em; }
.adm-login-card .kicker { margin-bottom: 0; }
.adm-muted { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.adm-login-card input,
.adm-add input,
.adm-row input,
.adm-preview input {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  color: var(--cream);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
}
.adm-login-card input:focus,
.adm-add input:focus,
.adm-row input:focus,
.adm-preview input:focus { outline: none; border-color: var(--cream); }
.adm-error { color: #e0796b; font-size: 13px; }

/* painel */
.adm-panel { max-width: 1040px; margin: 0 auto; padding: 28px var(--pad) 90px; }
.adm-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--hairline);
}
.adm-logo { font-size: 15px; }
.adm-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-whats.adm-sm, .btn-ghost.adm-sm { padding: 9px 14px; font-size: 11px; letter-spacing: 0.1em; }

.adm-status { font-size: 13px; color: var(--muted); margin: 16px 0 8px; }
.adm-status .adm-dirty { color: #d8a657; }

.adm-tabs { display: flex; gap: 6px; margin: 18px 0 24px; }
.adm-tab {
  background: none; border: 1px solid var(--hairline); color: var(--muted);
  font: inherit; font-size: 13px; letter-spacing: 0.06em;
  padding: 9px 16px; cursor: pointer; transition: border-color .2s, color .2s;
}
.adm-tab:hover { color: var(--cream); }
.adm-tab.active { color: var(--bg); background: var(--cream); border-color: var(--cream); }

/* adicionar */
.adm-add { background: var(--bg-2); border: 1px solid var(--hairline); padding: 20px; margin-bottom: 28px; }
.adm-add h2, .adm-list-wrap h2 { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.adm-add-row { display: flex; gap: 10px; }
.adm-add-row input { flex: 1; }
.adm-add-row .btn-ghost { white-space: nowrap; }

.adm-preview { display: flex; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.adm-preview img { width: 200px; aspect-ratio: 16/9; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.adm-preview-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.adm-preview-fields label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.adm-prev-meta { font-size: 12px; color: var(--muted); }

/* lista */
.adm-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.adm-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--hairline); padding: 10px;
}
.adm-thumb { width: 116px; aspect-ratio: 16/9; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.adm-row-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.adm-row-fields .adm-embed { font-size: 12px; color: var(--muted); }
.adm-row-actions { display: flex; gap: 4px; flex-shrink: 0; }
.adm-mini {
  width: 34px; height: 34px; background: none; border: 1px solid var(--hairline);
  color: var(--muted); font-size: 16px; cursor: pointer; transition: border-color .2s, color .2s;
}
.adm-mini:hover { color: var(--cream); border-color: var(--cream); }
.adm-mini.adm-del:hover { color: #e0796b; border-color: #e0796b; }

.adm-note { margin-top: 34px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 60em; }
.adm-note code { background: var(--bg-2); padding: 2px 6px; border: 1px solid var(--hairline); font-size: 12px; }

@media (max-width: 680px) {
  .adm-preview { flex-direction: column; }
  .adm-preview img { width: 100%; }
  .adm-row { flex-wrap: wrap; }
  .adm-thumb { width: 100%; aspect-ratio: 16/9; }
}
