/* ==========================================================================
   Vanessa Brandão Studio Beauty — Landing Page
   Paleta: preto, dourado e cobre (base no cartão de visita)
   ========================================================================== */

:root {
  --ink: #0d0b0a;
  --ink-2: #14110f;
  --ink-3: #1c1814;
  --cream: #efe6da;
  --muted: #a89c8e;
  --gold: #d6a25e;
  --gold-soft: #e9c894;
  --copper: #b56a42;
  --copper-deep: #8a4a2c;
  --line: rgba(214, 162, 94, 0.2);
  --line-strong: rgba(214, 162, 94, 0.45);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Pinyon Script", "Cormorant Garamond", cursive;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

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

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px;
  font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

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

/* Grão sutil sobre o fundo preto (dá textura de papel do cartão) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 38px; height: 1px;
  background: linear-gradient(90deg, var(--copper), var(--gold));
}

.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}
.display em {
  font-style: italic;
  color: var(--gold-soft);
}

.gold-text {
  background: linear-gradient(100deg, var(--copper) 0%, var(--gold) 35%, var(--gold-soft) 55%, var(--gold) 75%, var(--copper) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 9s var(--ease) infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 54ch; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px;
  font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--gold {
  color: var(--ink);
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 45%, var(--copper));
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn--gold:hover { color: var(--gold-soft); border-color: var(--gold); }
.btn--gold:hover::after { transform: translateY(0); }

.btn--line {
  color: var(--cream);
  border-color: var(--line-strong);
}
.btn--line::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--gold), var(--copper));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.btn--line:hover { color: var(--ink); border-color: var(--gold); }
.btn--line:hover::after { transform: scaleX(1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(13, 11, 10, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo img { width: 190px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.nav a:not(.btn):hover { color: var(--gold-soft); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 12px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; background: none; border: 0; padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--gold);
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}
.hero__title {
  font-size: clamp(44px, 6.4vw, 92px);
  margin: 26px 0 28px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 0;
  margin: 56px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
}
.hero__facts li {
  flex: 1 1 150px;
  padding: 22px 24px 0 0;
}
.hero__facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__facts strong {
  display: block;
  font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.1;
  color: var(--gold-soft);
}
.hero__facts span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
}
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
}
.hero__frame img {
  width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%;
  filter: contrast(1.05);
  will-change: transform;
}
.hero__media::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px;
  border: 1px solid var(--line-strong);
  z-index: -1;
}
.hero__caption {
  position: absolute; left: -44px; bottom: 44px;
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 18px 24px;
  max-width: 240px;
}
.hero__caption .script { font-family: var(--f-script); font-size: 30px; line-height: 1; color: var(--gold); }
.hero__caption p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 1px; height: 54px; background: var(--line);
  overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--gold);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Seções ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section--alt { background: var(--ink-2); }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head .display { font-size: clamp(38px, 5vw, 68px); margin-top: 20px; }
.section__head .lead { margin-top: 22px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lead { margin-inline: auto; }

/* ---------- História ---------- */
.story__intro {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px);
  align-items: start;
  margin-bottom: clamp(70px, 9vw, 120px);
}
.story__intro .display { font-size: clamp(40px, 5.4vw, 76px); margin-top: 20px; }
.story__text { padding-top: 12px; border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); }
.story__text p { margin: 0 0 20px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.story__text p:first-child::first-letter {
  float: left;
  font-family: var(--f-display); font-size: 74px; line-height: .8;
  margin: 8px 12px 0 0; color: var(--gold);
}
.story__text p:last-child { margin-bottom: 0; }

/* Foto da porta + agradecimento */
.closing {
  display: grid; grid-template-columns: minmax(0, 420px) 1fr;
  align-items: center; gap: 0;
  max-width: 1040px; margin-inline: auto;
}
.closing__photo {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5.2; overflow: hidden;
  isolation: isolate;
}
.closing__photo::before { /* moldura dourada deslocada */
  content: ""; position: absolute; inset: 14px; z-index: 2;
  border: 1px solid rgba(233, 200, 148, .55);
  pointer-events: none;
}
.closing__photo::after { /* luz quente de cobre embaixo */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 11, 10, 0) 45%, rgba(13, 11, 10, .55)),
    radial-gradient(120% 60% at 50% 110%, rgba(181, 106, 66, .35), transparent 70%);
  pointer-events: none;
}
.closing__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: sepia(.18) saturate(.92) contrast(1.04);
  animation: breathe 16s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.07); } }
.closing__shine { /* reflexo dourado que passa pela foto */
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(233, 200, 148, .22) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 7s var(--ease) infinite 1.5s;
}
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }

.closing__text { position: relative; padding-left: clamp(40px, 7vw, 110px); }
.closing__line {
  position: absolute; left: 0; top: 50%;
  width: clamp(28px, 5.5vw, 86px); height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) .5s;
}
.closing__line::before {
  content: ""; position: absolute; left: -4px; top: -4px;
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
}
.closing__text.is-in .closing__line { transform: scaleX(1); }
.closing__text p {
  margin: 0 0 22px;
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.35; color: var(--cream);
}
.closing__text .script { font-family: var(--f-script); font-size: clamp(46px, 5vw, 66px); line-height: 1.1; color: var(--gold); }

/* ---------- Portfólio ---------- */
.portfolio-bar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.filters button {
  background: none; border: 0; padding: 0 0 16px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  position: relative;
  transition: color .3s;
}
.filters button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .45s var(--ease);
}
.filters button:hover { color: var(--cream); }
.filters button[aria-selected="true"] { color: var(--gold-soft); }
.filters button[aria-selected="true"]::after { transform: scaleX(1); }

.carousel__nav { display: flex; gap: 8px; padding-bottom: 12px; }
.carousel__btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-strong); color: var(--gold);
  transition: background .3s, color .3s, opacity .3s;
}
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn:hover:not(:disabled) { background: var(--gold); color: var(--ink); }
.carousel__btn:disabled { opacity: .3; cursor: default; }

.carousel { position: relative; }
.carousel[hidden] { display: none; }
.carousel.is-entering .gallery__item { animation: slideIn .8s var(--ease) both; }
.carousel.is-entering .gallery__item:nth-child(2) { animation-delay: .06s; }
.carousel.is-entering .gallery__item:nth-child(3) { animation-delay: .12s; }
.carousel.is-entering .gallery__item:nth-child(4) { animation-delay: .18s; }
.carousel.is-entering .gallery__item:nth-child(5) { animation-delay: .24s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

.carousel__track {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel__track.is-dragging .gallery__item { pointer-events: none; }

.gallery__item {
  flex: 0 0 clamp(230px, 24vw, 290px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
  cursor: zoom-in;
  display: block; padding: 0; border: 0;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
  -webkit-user-drag: none; user-select: none;
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 11, 10, .88));
  transition: opacity .5s var(--ease);
}
.gallery__label {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
  text-align: left;
  font-family: var(--f-display); font-size: 19px; line-height: 1.2; color: var(--cream);
}
.gallery__label small {
  display: block; margin-bottom: 4px;
  font-family: var(--f-sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.gallery__item:hover img { transform: scale(1.06); }

.carousel__progress {
  position: relative; height: 1px; margin-top: 26px;
  background: var(--line);
}
.carousel__progress span {
  position: absolute; left: 0; top: 0; height: 1px; width: 20%;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  transition: transform .3s var(--ease), width .3s var(--ease);
}

/* ---------- Método ---------- */
.method {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.method__step {
  padding: 40px 36px 10px 0;
}
.method__step + .method__step { padding-left: 36px; border-left: 1px solid var(--line); }
.method__step span {
  font-family: var(--f-display); font-style: italic; font-size: 54px; line-height: 1;
  color: var(--copper);
}
.method__step h3 {
  font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.15;
  margin: 18px 0 12px;
}
.method__step p { color: var(--muted); margin: 0; }


/* ---------- Serviços ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.6fr auto;
  align-items: center; gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .5s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(181, 106, 66, .12), rgba(214, 162, 94, .04) 60%, transparent);
  opacity: 0; transition: opacity .5s var(--ease);
}
.service:hover { padding-left: 18px; }
.service:hover::before { opacity: 1; }
.service__num { font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--copper); }
.service h3 {
  margin: 0;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1;
}
.service p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Visite / Contato ---------- */
.section--compact { padding: clamp(64px, 8vw, 104px) 0; }
.visit {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.visit__info .display { font-size: clamp(30px, 3.2vw, 42px); margin: 14px 0 24px; }
.visit__list { list-style: none; margin: 0 0 28px; padding: 0; }
.visit__list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.visit__list .k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.visit__list a { transition: color .3s; }
.visit__list a:hover { color: var(--gold-soft); }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.visit__map { position: relative; height: 320px; background: var(--ink-3); border: 1px solid var(--line); }
.visit__map::before { content: "Carregando mapa…"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.visit__map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(.92) contrast(.9) sepia(.35) hue-rotate(-12deg);
}

/* ---------- CTA final ---------- */
.final {
  text-align: center;
  padding: clamp(100px, 13vw, 180px) 0;
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(181, 106, 66, .22), transparent 70%),
    var(--ink);
}
.final .display { font-size: clamp(42px, 6vw, 88px); margin: 22px auto 26px; max-width: 14ch; }
.final .lead { margin: 0 auto 44px; }
.final .hero__actions { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 14px; color: var(--muted);
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer img { width: 170px; }
.footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--gold-soft); }
.footer__bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 22px 0 18px;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 45%, var(--copper));
  color: var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  transform: translateY(120px); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease), box-shadow .3s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { box-shadow: 0 18px 50px rgba(181, 106, 66, .45); }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(8, 7, 6, .96);
  display: grid; place-items: center;
  padding: 70px 80px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; max-height: 100%; }
.lightbox img {
  max-height: calc(100svh - 190px); max-width: 100%; width: auto;
  object-fit: contain;
  transform: scale(.97); transition: transform .5s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; text-align: center; }
.lightbox figcaption span { font-family: var(--f-display); font-size: 24px; }
.lightbox__btn {
  position: absolute;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-strong); color: var(--gold);
  transition: background .3s, color .3s;
}
.lightbox__btn:hover { background: var(--gold); color: var(--ink); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Animações de entrada ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
/* o clip fica na imagem (filho), para o IntersectionObserver enxergar o bloco */
.js [data-reveal="mask"] { opacity: 1; transform: none; }
.js [data-reveal="mask"] > img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"].is-in > img { clip-path: inset(0 0 0 0); }

.js .hero__title .line > span {
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .is-loaded .hero__title .line > span { transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .service { grid-template-columns: 60px 1fr auto; }
  .service p { grid-column: 2 / 3; grid-row: 2; }
  .service .link-arrow { grid-row: 1 / 3; grid-column: 3; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a:not(.btn) { font-family: var(--f-display); font-size: 34px; letter-spacing: 0; text-transform: none; color: var(--cream); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .header__logo { position: relative; z-index: 2; }
  .header__logo img { width: 150px; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; width: min(100%, 420px); order: -1; margin-top: 12px; }
  .hero__frame { aspect-ratio: 4 / 4.4; }
  .hero__caption { left: -10px; bottom: 24px; }
  .hero__media::before { inset: -12px 12px 12px -12px; }
  .scroll-cue { display: none; }

  .story__intro { grid-template-columns: 1fr; }
  .story__text { border-left: 0; padding-left: 0; }
  .closing { grid-template-columns: 1fr; max-width: 460px; gap: 40px; }
  .closing__text { padding-left: 0; padding-top: 34px; text-align: center; }
  .closing__line { top: 0; left: 50%; width: 1px; height: 26px; transform: scaleY(0); transform-origin: top; background: linear-gradient(var(--gold), transparent); }
  .closing__line::before { left: -4px; top: -4px; }
  .closing__text.is-in .closing__line { transform: scaleY(1); }
  .portfolio-bar { flex-direction: column; align-items: stretch; border-bottom: 0; }
  .filters { border-bottom: 1px solid var(--line); gap: 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; font-size: 12px; letter-spacing: .12em; }
  .carousel__nav { display: none; }
  .carousel__track { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); gap: 12px; }
  .gallery__item { flex-basis: 68vw; }

  .method { grid-template-columns: 1fr; }
  .method__step, .method__step + .method__step { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }

  .visit { grid-template-columns: 1fr; }
  .visit__map { height: 260px; }

  .lightbox { padding: 70px 16px 90px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__facts li { flex-basis: 33%; padding-right: 12px; }
  .hero__facts li + li { padding-left: 12px; }
  .hero__facts strong { font-size: 26px; }
  .hero__facts span { font-size: 12px; }
  .hero__actions .btn { width: 100%; }
  .service { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .service p, .service .link-arrow { grid-column: auto; grid-row: auto; }
  .service:hover { padding-left: 0; }
  .visit__list li { grid-template-columns: 1fr; gap: 2px; }
  .visit__actions .btn { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; padding: 0; width: 58px; justify-content: center; }
  .wa-float span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal="mask"] > img, .js .hero__title .line > span { opacity: 1; transform: none; clip-path: none; }
  .closing__shine { display: none; }
}
