﻿/* ============================================
   ŌNAMAZU TATTOO
============================================ */
:root {
  --ink: #0b0b0c;
  --ink-2: #141412;
  --ink-3: #1c1a17;
  --bone: #ece5d6;
  --bone-dim: #b9b2a2;
  --blood: #7d1e1e;
  --blood-bright: #a12a24;
  --gold: #ab8b52;
  --teal: #14302f;
  --line: rgba(236, 229, 214, 0.14);
  --serif: "Shippori Mincho", "Noto Serif JP", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 6vw;
}

.hero, .page-header {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.hero-image .hero-bg,
.page-header-image .page-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-fallback,
.page-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.06) 0%, rgba(11,11,12,0.25) 45%, rgba(11,11,12,0.94) 100%),
    radial-gradient(ellipse at 50% 10%, rgba(171,139,82,0.15), transparent 50%);
}
.hero-intro {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content:  center;
  overflow: hidden;
  background: #050505;
  opacity: 1;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.hero-intro.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-intro video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
  object-fit: contain;
  transform: translate(-50%,-50%) scale(.90);
  opacity: 1;
  filter: brightness(0.9) contrast(1.05);
}
.hero-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 6vh 6vw 8vh;
  animation: heroReveal 1.8s ease-out both;
}
.hero-overlay { padding-bottom: 8vh; }
@keyframes heroReveal {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-kanji {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 0.6rem;
}
.hero-title {
  font-size: clamp(2.8rem, 10vw, 6.2rem);
  color: var(--bone);
  line-height: 0.92;
}
.hero-sub {
  margin-top: 0.9rem;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--gold) 40%, transparent);
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: 0; left: -2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: cueDrop 2.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* Transições suaves entre os blocos da Home. */
.section-transition {
  position: relative;
  z-index: 8;
  height: 100px;
  margin: -50px 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(11, 11, 12, 0.95) 55%,
    var(--blood) 10%,
    var(--blood) 10%,
    rgba(11, 11, 12, 0.95) 55%,
    transparent 100%
  );
}

.section-transition::after {
  content: "";
  position: absolute;
  inset: 50px 0 auto;
  height: 2px;
  background: var(--blood);
  box-shadow: 0 0 30px rgba(125, 30, 30, 0.9);
}

.facade-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facade-banner img {
  width: 100%; height: auto;
  filter: grayscale(20%) brightness(0.8) contrast(1.05);
  transform: scale(1.24) translate(var(--pan-x, 0%), var(--pan-y, 0%));
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 88vh;
  position: relative;
}
.split-photo {
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}
.split-photo img,
.split-photo video {
  width: 100%; height: 100%;
  object-fit: contain;
  position: absolute; inset: 0;
  background: #080807;
  filter: grayscale(20%) contrast(1.05);
  /* Imagem do artista fixa no toque para não disputar o gesto de rolagem mobile. */
  transform: scale(1.18);
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.caio-media { position: absolute; inset: 0; overflow: hidden; }
.caio-media .media-item { display: none; }
.caio-media .media-item.is-active { display: block; }
.pan-image.is-panning img { transition: transform 0.08s linear; }
.pan-image.is-panning video { transition: transform 0.08s linear; }
.pan-image { cursor: crosshair; touch-action: none; }
.split-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,11,12,0.95) 0%, rgba(11,11,12,0.24) 45%, rgba(11,11,12,0.02) 70%), linear-gradient(90deg, rgba(11,11,12,0.7), transparent 16%, transparent 84%, rgba(11,11,12,0.7));
  z-index: 1;
}
.split-photo .photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 3rem;
}
.photo-caption .eyebrow { margin-bottom: 0.6rem; }
.photo-caption h2 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); margin-bottom: 0.9rem; }
.photo-caption p {
  max-width: 46ch;
  color: var(--bone-dim);
  font-size: 0.98rem;
  line-height: 1.7;
}

.split-actions {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  position: relative;
}
.action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  position: relative;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 2rem;
  transition: filter 0.35s ease;
}
.action-btn + .action-btn { border-top: 1px solid var(--line); }
.action-btn .eyebrow { color: var(--bone-dim); }
.action-btn .btn-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  letter-spacing: 0.04em;
}
.action-btn .btn-note {
  font-size: 0.82rem;
  color: var(--bone-dim);
  max-width: 32ch;
}
.action-btn.primary {
  background-image: linear-gradient(160deg, rgba(11,11,12,0.82), rgba(11,11,12,0.94)), url("../assets/fundo0.png");
  background-position: center;
  background-size: cover;
}
.action-btn.primary .btn-title { color: var(--bone); }
.action-btn.primary:hover { filter: brightness(1.14); }
.action-btn.primary::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blood-bright);
}
.action-btn.secondary {
  background-image: linear-gradient(160deg, rgba(11,11,12,0.84), rgba(11,11,12,0.95)), url("../assets/fundo1.png");
  background-position: center;
  background-size: cover;
}
.action-btn.secondary:hover { filter: brightness(1.14); }
.action-btn.secondary::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blood-bright);
}

.portfolio-strip {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(161, 42, 36, 0.12), transparent 34%),
    linear-gradient(180deg, #120f0d 0%, #0b0b0c 100%);
  min-height: 360px;
  width: 100%;
   margin:auto !important;
    display:flex;
    justify-content:center;
    align-items:center;
}
.portfolio-strip h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  margin: 0.9rem 0 1rem;
}
.portfolio-strip p {
  max-width: 66ch;
  color: var(--bone-dim);
  line-height: 1.75;
  margin: 0 0 2rem;
}
.instagram-feed {
  min-height: 360px;
  width: 100%;
   margin:auto !important;
    display:flex;
    justify-content:center;
    align-items:center;
}
.portfolio-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 0 1.2rem;
}
.portfolio-track {
  position: relative;
  width: min(100%, 680px);
  height: min(72vh, 720px);
  margin: 0 auto;
  overflow: hidden;
  background: #090909;
  border: 1px solid var(--line);
}
.portfolio-item {
  position: absolute;
  inset: 0;
  display: none;
  margin: 0;
  background: var(--ink-2);
}
.portfolio-item.is-active { display: block; animation: galleryReveal 0.45s ease both; }
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(8%) contrast(1.04) brightness(0.96);
}
@keyframes galleryReveal { from { opacity: 0; } to { opacity: 1; } }
.carousel-arrow {
  position: absolute;
  z-index: 2;
  top: calc(50% - 2.1rem);
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid rgba(236,229,214,0.35);
  border-radius: 50%;
  background: rgba(11,11,12,0.74);
  color: var(--bone);
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.58;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.carousel-arrow:hover { opacity: 1; background: rgba(125,30,30,0.82); }
.carousel-prev { left: max(0.3rem, calc(50% - 410px)); }
.carousel-next { right: max(0.3rem, calc(50% - 410px)); }
.portfolio-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 1rem max(0.5rem, calc(50% - 340px)) 0;
  scrollbar-width: none;
}
.portfolio-thumbs::-webkit-scrollbar { display: none; }
.portfolio-thumb {
  flex: 0 0 42px;
  width: 42px;
  height: 56px;
  padding: 0;
  border: 1px solid transparent;
  background: #111;
  cursor: pointer;
  opacity: 0.52;
  overflow: hidden;
}
.portfolio-thumb.is-active { border-color: var(--gold); opacity: 1; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }

.location {
  position: relative;
  padding: 7rem 0 5rem;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.location h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: 1.4rem; }
.location .addr {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--bone-dim);
  margin-bottom: 1.8rem;
}
.location .addr strong { color: var(--bone); font-weight: 500; }
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(55%) contrast(1.05) brightness(0.9); }
.map-tag {
  position: absolute;
  right: 1rem; bottom: 1rem;
  z-index: 2;
  background: var(--ink);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
}
footer.site-footer {
  padding: 2.4rem 0;
  background: var(--ink);
  text-align: center;
}
.foot-links {
  display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-dim);
}
.foot-links a:hover { color: var(--gold); }
.foot-copy { font-size: 0.72rem; color: var(--bone-dim); opacity: 0.6; }

.page-header {
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.page-header-image {
  min-height: 78svh;
}
.page-header-inner {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
}
.page-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) contrast(1.05) grayscale(22%);
}
.about-page {
  background: #0b0b0c url("../assets/sobre.png") center top / cover fixed no-repeat;
}
.about-page .page-header { min-height: 45svh; background: rgba(11,11,12,0.9); }
.about-page .prose-section,
.about-page .cta-strip { background: rgba(11,11,12,0.9); }
.page-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.5) 0%, rgba(11,11,12,0.78) 56%, rgba(11,11,12,0.96) 100%);
}
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 2.4rem;
}
.back-link:hover { color: var(--gold); }

.prose-section {
  padding: 5rem 0;
}
.prose-section .eyebrow { margin-bottom: 1rem; }
.prose-section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.6rem; max-width: 22ch; }
.prose-section .lede {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--bone);
  max-width: 62ch;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}
.prose-section p {
  max-width: 62ch;
  color: var(--bone-dim);
  line-height: 1.85;
  font-size: 1rem;
  margin: 0 0 1.2rem;
}
.care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.care-col .eyebrow { color: var(--blood-bright); margin-bottom: 1rem; display: block; }
.care-col ul { list-style: none; padding: 0; margin: 0; }
.care-col li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  line-height: 1.6;
  font-size: 0.96rem;
}
.care-col li:last-child { border-bottom: 1px solid var(--line); }
.care-col li strong { color: var(--bone); font-weight: 500; display: block; margin-bottom: 0.2rem; }
.cta-strip {
  padding: 4.5rem 0;
  text-align: center;
}
.cta-strip .eyebrow { margin-bottom: 1rem; }
.cta-strip h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 2rem; }
.btn-inline {
  display: inline-block;
  padding: 1.1rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-inline:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split-photo { min-height: 62vh; }
  .split-actions { flex-direction: row; flex-wrap: wrap; }
  .action-btn { min-height: 220px; flex: 1 1 50%; }
  .action-btn + .action-btn { border-top: none; border-left: 1px solid var(--line); }
  .portfolio-track { height: min(66vh, 620px); }
  .location-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .care-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 560px) {
  .action-btn { flex: 1 1 100%; }
  .action-btn + .action-btn { border-left: none; border-top: 1px solid var(--line); }
  .container { padding: 0 6vw; }
  .portfolio-track { height: 62vh; }
  .carousel-prev { left: 0.3rem; }
  .carousel-next { right: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
