@font-face {
  font-family: "Makcasa";
  src: url("fonts/Makcasa-Regular.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #111;
  --muted: #555;
  --paper: #fff;
  --line: #d9d6d1;
  --cream: #f7f3ee;
  --wine: #7d1f22;
  --gutter: clamp(16px, 5vw, 64px);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: clamp(32px, 5vw, 56px) 0; }

/* ---------- type ---------- */
.display {
  font-family: "Makcasa", serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  margin: 0;
  letter-spacing: 0;
}
.display--md { font-size: clamp(44px, 7vw, 78px); margin: .1em 0 .4em; }
.display--sm { font-size: clamp(36px, 5vw, 54px); margin-bottom: .3em; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(13px, 1.6vw, 18px);
  margin: 0;
}
.label { text-transform: uppercase; font-weight: 600; font-size: 15px; letter-spacing: .04em; margin: 0 0 .5em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  background: var(--ink); color: #fff; text-decoration: none;
  text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 500;
  border: 1px solid var(--ink); border-radius: 999px;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--wine); border-color: var(--wine); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 18px; font-size: 11px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__logo img { width: 150px; }
.topbar__nav { display: flex; gap: 22px; margin-left: auto; }
.topbar__nav a { white-space: nowrap;
  text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: 11px;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.topbar__nav a:hover { border-bottom-color: currentColor; }

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding-bottom: 0; }
  .topbar__logo img { width: 130px; }
  .topbar .btn--sm { margin-left: auto; }
  .topbar__nav {
    order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px; overflow-x: auto; scrollbar-width: none; gap: 20px;
  }
  .topbar__nav::-webkit-scrollbar { display: none; }
  .topbar__nav a { white-space: nowrap; }
  html { scroll-padding-top: 100px; }
}

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center;
  padding: clamp(32px, 6vh, 72px) var(--gutter) clamp(28px, 5vh, 56px);
}
.hero__oval { width: clamp(64px, 7vw, 92px); }
.hero__title .display { font-size: clamp(96px, 20vw, 230px); margin-top: .08em; }
.hero__wordmark { width: clamp(170px, 20vw, 230px); }
.hero__scroll {
  margin-top: 20px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.hero__scroll span { display: inline-block; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- category ---------- */
.category { padding-bottom: clamp(48px, 8vw, 96px); }
.category__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(28px, 4vw, 44px);
}
.category__head img { width: clamp(110px, 14vw, 160px); }
.category__name {
  margin: 0; font-weight: 400; text-transform: uppercase;
  letter-spacing: .2em; font-size: clamp(15px, 2.2vw, 24px);
}
.category__cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-height: 88vh;
}
@media (min-width: 760px) {
  .category__cover { aspect-ratio: 16 / 8; }
}

/* ---------- product grid ---------- */
.grid {
  display: grid; gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: 1fr;
  max-width: var(--maxw); margin: clamp(16px, 2.4vw, 28px) auto 0;
  padding: 0 var(--gutter);
}
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
}
.grid--1 { grid-template-columns: 1fr; max-width: 640px; }
@media (max-width: 759px) {
  .grid { padding: 0; gap: 0; margin-top: 0; }
  .grid--1 { max-width: none; }
}

.card {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 3 / 4;
  background: var(--cream);
}
.card > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.card:hover > img { transform: scale(1.03); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 32%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 66%);
}
.card--top::after {
  background: linear-gradient(to bottom, rgba(255,255,255,.9) 0%, rgba(255,255,255,.6) 26%, rgba(255,255,255,0) 50%);
}
.card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: clamp(22px, 4vw, 36px);
}
.card--top .card__body { bottom: auto; top: 0; }

.pname {
  margin: 0 0 .5em; font-weight: 400;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .45em; row-gap: 0;
}
.pname__main {
  font-family: "Makcasa", serif; text-transform: uppercase;
  font-size: clamp(40px, 5.6vw, 58px); line-height: .9;
}
.pname__small { text-transform: uppercase; letter-spacing: .16em; font-size: clamp(14px, 1.6vw, 18px); }
.pname__w { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.price { margin: 0; font-size: clamp(20px, 2.2vw, 24px); letter-spacing: .06em; }
.note { margin: .25em 0 0; font-size: 13.5px; line-height: 1.45; max-width: 46ch; }
.card__cta {
  display: inline-block; margin-top: 14px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid currentColor;
}
.card__cta:hover { color: var(--wine); }

.seal {
  position: absolute; z-index: 1; top: 18px; right: 18px;
  background: rgba(255,255,255,.88); color: var(--ink);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px;
}

/* ---------- info ---------- */
.info {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter);
}
.info p { max-width: 52ch; }
.info__intro { display: grid; gap: 32px; align-items: center; }
.info__art { width: min(240px, 55%); margin: 0 auto; mix-blend-mode: multiply; }
@media (min-width: 760px) {
  .info__intro { grid-template-columns: 1.4fr 1fr; }
  .info__art { width: min(300px, 100%); }
}
.info__lists { display: grid; gap: 32px 48px; }
@media (min-width: 760px) {
  .info__lists { grid-template-columns: 1fr 1fr; }
  .info__wide { grid-column: 1 / -1; }
}
.dots { margin: 0; font-size: 17px; }

/* ---------- contact ---------- */
.contact {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(56px, 9vw, 96px) var(--gutter) 0;
  background: var(--paper);
  overflow: hidden;
  text-align: center;
}
.contact__logo { width: clamp(170px, 20vw, 230px); }
.contact__art {
  width: min(560px, 92%);
  margin-top: 40px;
  mix-blend-mode: multiply;
}
.contact__actions {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vw, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 var(--gutter);
}
.contact__actions .eyebrow {
  font-size: 12px; background: #fff; padding: 4px 10px;
}
.contact__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact__buttons .btn { background-clip: padding-box; }
.contact__buttons .btn--ghost { background: #fff; }
.contact__buttons .btn--ghost:hover { background: var(--ink); }

.footer {
  border-top: 1px solid var(--line);
  text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--muted);
  padding: 24px var(--gutter) 96px;
}
.footer p { margin: 0; }
.footer p + p { margin-top: 8px; }
.footer__credit { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.footer__credit a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.footer__credit a:hover { color: var(--wine); }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: background .2s, transform .2s;
}
.wa-float:hover { background: var(--wine); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
  .card > img { transition: none; }
}

/* =========================================================
   ANIMAÇÕES
   ========================================================= */
.topbar__nav a.is-accent { font-weight: 600; }

/* entrada da capa */
.hero__oval, .hero__title .eyebrow, .hero__title .display, .hero__wordmark, .hero__scroll {
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.hero__title .eyebrow { animation-delay: .25s; }
.hero__title .display { animation-name: riseBlur; animation-duration: 1.6s; animation-delay: .4s; }
.hero__wordmark { animation-delay: .9s; }
.hero__scroll { animation-delay: 1.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes riseBlur {
  from { opacity: 0; transform: translateY(24px); filter: blur(10px); letter-spacing: .08em; }
  to { opacity: 1; transform: none; filter: blur(0); letter-spacing: 0; }
}

/* revelar ao rolar */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.category__cover.reveal { transform: scale(1.06); clip-path: inset(6% 0 6% 0); transition: opacity 1s, transform 1.6s cubic-bezier(.2,.7,.2,1), clip-path 1.4s cubic-bezier(.2,.7,.2,1); }
.category__cover.reveal.is-in { transform: none; clip-path: inset(0 0 0 0); }
.card.reveal > img { transform: scale(1.08); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.card.reveal.is-in > img { transform: none; }
.card.reveal.is-in:hover > img { transform: scale(1.03); transition-duration: .8s; }
.info hr.reveal { transform: scaleX(0); transform-origin: left; opacity: 1; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.info hr.reveal.is-in { transform: none; }

/* velas: aparecem como se fossem desenhadas de cima pra baixo */
.wipe {
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 55%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 55%);
  -webkit-mask-size: 100% 220%; mask-size: 100% 220%;
  -webkit-mask-position: 0 100%; mask-position: 0 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: -webkit-mask-position 2.6s cubic-bezier(.45,.1,.3,1), mask-position 2.6s cubic-bezier(.45,.1,.3,1);
}
.wipe.is-in { -webkit-mask-position: 0 0; mask-position: 0 0; }


/* prévia do portfólio na home */
.teaser {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  padding: clamp(56px, 9vw, 104px) 0;
  background: var(--cream);
}
.teaser__head { padding: 0 var(--gutter); }
.teaser__strip { width: 100%; overflow: hidden; }
.teaser__track { display: flex; gap: 10px; width: max-content; animation: strip 70s linear infinite; }
.teaser__track img { width: clamp(150px, 18vw, 240px); aspect-ratio: 3/4; object-fit: cover; }
.teaser__strip:hover .teaser__track { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(-50%); } }

/* =========================================================
   PÁGINA PORTFÓLIO
   ========================================================= */
.pf-head {
  text-align: center; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(24px, 3vw, 36px);
}
.pf-head .display { font-size: clamp(56px, 10vw, 128px); margin: .08em 0 .2em; }
.pf-head p:last-child { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.gallery {
  position: relative; overflow: hidden;
  height: clamp(440px, 80vh, 880px);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.gallery.is-drag { cursor: grabbing; }
.gallery__track { display: flex; height: 100%; width: max-content; will-change: transform; }
.gallery__set { display: flex; height: 100%; }
.mod { position: relative; height: 100%; flex: none; }
.tile { position: absolute; padding: 0; border: 0; background: var(--cream); overflow: hidden; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .5s; pointer-events: none; }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.gallery-ctl { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 18px var(--gutter) 8px; }
.gallery-ctl button {
  min-width: 46px; height: 42px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; transition: background .2s, color .2s;
}
.gallery-ctl button:hover { background: var(--ink); color: #fff; }
.gallery-ctl #g-pause { min-width: 96px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.gallery-hint { text-align: center; font-size: 12px; letter-spacing: .08em; color: var(--muted); margin: 0 0 clamp(40px, 6vw, 72px); }
.pf-cta { text-align: center; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); }
.pf-cta .display { font-size: clamp(36px, 5vw, 56px); margin-bottom: .4em; }
.pf-cta .contact__buttons { margin-top: 20px; }

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(255,255,255,.97);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); font-size: 20px; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.lb-btn:hover { background: var(--ink); color: #fff; }
.lb-close { top: 16px; right: 16px; font-size: 24px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .16em; color: var(--muted); }
@media (max-width: 759px) {
  .lb-prev, .lb-next { top: auto; bottom: 10px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__oval, .hero__title .eyebrow, .hero__title .display, .hero__wordmark, .hero__scroll { animation: none; }
  .teaser__track { animation: none; }
  .reveal, .wipe { transition: none !important; }
}

/* ---------- texto: palavras entrando por trás de uma máscara ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span {
  display: inline-block; transform: translateY(105%); opacity: 0;
  transition: transform 1s cubic-bezier(.2,.75,.2,1), opacity .6s ease;
}
.split.is-in .w > span { transform: none; opacity: 1; }
.pname.split { flex-wrap: wrap; }
.pname .w { vertical-align: baseline; }

/* ---------- texto corrido ---------- */
.rise {
  opacity: 0; transform: translateY(16px); filter: blur(6px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.75,.2,1), filter 1s ease;
  transition-delay: var(--rd, 0ms);
}
.rise.is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .split .w > span, .rise { transition: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
}
@media (max-width: 759px) {
  .gallery { height: min(62vh, 540px); }
}
