@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #17191b;
  --surface: #202426;
  --line: #41484a;
  --control-line: #758582;
  --text: #f2f3f2;
  --muted: #bdc5c3;
  --accent: #a6ccca;
  --petrol: #24545b;
  --focus: #87b5b5;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(1.125rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.6 system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
summary, a { touch-action: manipulation; }
::selection { background: var(--accent); color: var(--background); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }
section[id], #estilos { scroll-margin-top: 1rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), 82rem);
  margin-inline: auto;
}
.section-space { padding-block: clamp(3.5rem, 7.5vw, 7rem); }
.skip {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: var(--gutter);
  transform: translateY(-180%);
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--background);
}
.skip:focus { transform: none; }

.site-header, .site-footer { border-block-end: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-inner { min-height: clamp(4.75rem, 6.7vw, 6.75rem); }
.brand { display: inline-flex; align-items: center; gap: .625rem; min-height: 44px; }
.site-header .brand { gap: clamp(.625rem, 1.1vw, 1rem); }
.site-header .brand img { width: clamp(44px, 4.5vw, 76px); height: auto; }
.site-header .brand strong { font-size: clamp(1.125rem, 1.75vw, 1.85rem); }
.site-header .brand small { font-size: clamp(.6875rem, .85vw, .875rem); }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.125rem; letter-spacing: -.035em; }
.brand small {
  margin-top: .3rem;
  color: var(--muted);
  font: 700 .6875rem/1.2 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em;
}
nav { display: flex; flex: 0 1 clamp(18rem, 33vw, 32rem); align-items: center; justify-content: space-evenly; gap: .875rem; }
nav a { display: grid; place-items: center; min-height: 44px; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.3rem); font-weight: 600; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--accent); }

.button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button { padding: .75rem 1rem; border: 1px solid transparent; border-radius: .4rem; }
.button-outline { border-color: var(--control-line); }
.button-outline:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.button-primary { background: var(--accent); color: var(--background); }
.button-primary:hover { background: var(--text); }
.consent-dialog {
  width: min(32rem, calc(100% - 2rem));
  padding: 1.5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--control-line);
  border-radius: .5rem;
}
.consent-dialog::backdrop { background: #0009; }
.consent-dialog .actions { margin-top: 1rem; }
[data-consent-preferences][hidden] { display: none; }
.button:active { border-color: currentColor; }
.text-link { text-decoration: underline; text-underline-offset: .3em; }
.text-link:hover { color: var(--accent); }
.button-icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(2rem, 4vw, 3.75rem) clamp(2.5rem, 5vw, 4.25rem);
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3.5rem, 6.85vw, 6rem);
  line-height: .88;
  letter-spacing: -.022em;
}
h1 span { display: block; width: fit-content; color: var(--accent); }
@media (hover: hover) {
  .text-glow { transition: text-shadow .2s ease; }
  .text-glow:hover {
    text-shadow: 0 0 .14em color-mix(in srgb, var(--accent) 65%, transparent),
                 0 0 .4em color-mix(in srgb, var(--accent) 40%, transparent);
  }
}
h2 {
  font-size: clamp(2.45rem, 4.6vw, 5rem);
  line-height: .94;
  letter-spacing: -.015em;
}
.hero-intro { max-width: 37ch; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.175rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .625rem; margin-top: 1.65rem; }
.hero-photo {
  overflow: hidden;
  aspect-ratio: 1.18;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .5rem;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.photo-rotation { position: relative; overflow: hidden; isolation: isolate; background: var(--surface); }
.photo-rotation > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
}
.photo-rotation > img[data-active] { z-index: 1; opacity: 1; }
.photo-rotation > img.photo-portrait { object-position: center bottom; }
.photo-rotation[data-rotated] > img[data-active] { animation: photo-enter .55s cubic-bezier(.16, 1, .3, 1); }
.photo-rotation[data-rotated] > img.photo-portrait[data-active] { animation: photo-pan 5.4s cubic-bezier(.35, 0, .65, 1) both; }
.photo-rotation[data-rotated][data-paused] > img[data-active] { animation-play-state: paused; }
@keyframes photo-enter {
  from { transform: translateY(clamp(.55rem, 1.2vw, 1rem)); }
  to { transform: translateY(0); }
}
@keyframes photo-pan {
  from { object-position: center top; }
  to { object-position: center bottom; }
}
.photo-rotation-toggle {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.photo-rotation-toggle:focus-visible { outline-offset: -4px; }

.motion-section { position: relative; isolation: isolate; background: var(--background); }
.section-motion {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, black 24%, transparent 75%);
}
.section-motion > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}
.section-motion:not(.has-frame)::before {
  position: absolute;
  inset: 0;
  content: "";
  background-size: cover;
  background-position: center;
}
.hero-stage .section-motion:not(.has-frame)::before {
  background-image: url("assets/passagens/fundo-fumaca.webp");
  background-position: 38% center;
  opacity: .8;
}
.booking .section-motion:not(.has-frame)::before {
  background-image: url("assets/passagens/fundo-tinta.webp");
  opacity: .35;
}
.hero-stage .section-motion {
  mask-image: linear-gradient(to bottom, transparent, black 16% 72%, transparent);
}
.hero-stage .section-motion > video { object-position: 38% center; }
.hero-stage .section-motion.has-frame > video { opacity: .8; }
.booking .section-motion.has-frame > video { opacity: .35; }

.site-header .brand strong,
.site-header nav a { transition: color .18s ease; }
.site-header nav a { position: relative; }
.site-header nav a::after {
  position: absolute;
  inset: auto 0 .25rem;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.site-header .brand:is(:hover, :focus-visible, :active) strong,
.site-header nav a:is(:hover, :focus-visible, :active) { color: var(--accent); }
.site-header nav a:is(:hover, :focus-visible, :active)::after { transform: scaleX(1); }
:is(.site-header, .hero-stage, .booking) .button:is(:hover, :focus-visible, :active) {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
}
:is(.site-header, .hero-stage, .booking) .button-primary:is(:hover, :focus-visible, :active) {
  border-color: var(--focus);
  background: var(--text);
  color: var(--background);
}
@media (prefers-reduced-motion: no-preference) {
  .site-header .brand,
  :is(.site-header, .hero-stage, .booking) .button {
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  }
  .site-header .brand img { transition: filter .18s ease; }
  .site-header .brand:is(:hover, :focus-visible, :active) img {
    filter: drop-shadow(0 0 .4rem var(--focus));
  }
  .site-header .brand:is(:active, .is-pressed),
  :is(.site-header, .hero-stage, .booking) .button:is(:active, .is-pressed) { transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header nav a::after { display: none; }
}

.video-retry { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; background: var(--background); }

.video-passage {
  --next-surface: var(--background);
  position: relative;
  height: clamp(160px, 23vw, 320px);
  overflow: hidden;
  background: var(--background);
}
.video-passage--portfolio { --next-surface: var(--surface); }
.video-passage--studio { --next-surface: var(--petrol); }
.video-passage--care { height: clamp(130px, 18vw, 260px); }
#conteudo > .care-section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.video-passage > :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-passage--care > :is(img, video) { filter: saturate(.92) contrast(.98) brightness(.94); }
.video-passage--care--tattoo > :is(img, video) { object-position: center 40%; }
.video-passage--portfolio > :is(img, video) { object-position: center 58%; }
.video-passage > video { opacity: 0; transition: opacity .35s ease; }
.video-passage.has-frame > video { opacity: 1; }
.video-passage::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, #17191b66 0% 55%, var(--next-surface) 100%);
}
.video-progress { position: absolute; z-index: 1; inset: auto 0 0; height: 2px; background: #f2f3f233; pointer-events: none; }
.video-progress::after { position: absolute; inset: 0; content: ""; background: var(--accent); transform: scaleX(var(--video-progress, 0)); transform-origin: left; }
.video-passage--care.has-frame > video { animation: care-focus-in .45s ease-out both; }
@keyframes care-focus-in { from { filter: blur(2px) saturate(.92) contrast(.98) brightness(.94); } to { filter: saturate(.92) contrast(.98) brightness(.94); } }
.portfolio { background: var(--surface); border-block: 1px solid var(--line); }
.video-passage + .portfolio { border-block-start: 0; }
.section-heading { margin-bottom: 2rem; }
.muted { color: var(--muted); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.work { border-top: 1px solid var(--control-line); }
.work-intro { min-height: 7rem; padding: .8rem 0 1rem; }
.work-intro h3 { color: var(--accent); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
.work-intro p { max-width: 34ch; margin-top: .45rem; color: var(--muted); }
.work summary { list-style: none; cursor: pointer; }
.work summary::-webkit-details-marker { display: none; }
.work-photo {
  position: relative;
  aspect-ratio: 1.12;
  overflow: hidden;
  background: var(--background);
  border-radius: .4rem;
}
.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: pointer;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
.gallery-slide:first-child img { object-fit: cover; object-position: center 48%; }
.gallery-slide.tiger img { object-position: center 61%; }
.gallery-slide.dog img { object-position: center 45%; }
.gallery-slide img:not([src]) { visibility: hidden; }
.gallery-controls { position: absolute; inset: 0; pointer-events: none; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #f2f3f280;
  border-radius: .4rem;
  background: #17191bdd;
  color: var(--text);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background-color .2s, color .2s, border-color .2s;
}
.gallery-arrow[data-step="-1"] { left: .625rem; }
.gallery-arrow[data-step="1"] { right: .625rem; }
.gallery-arrow[aria-disabled="true"] { opacity: .62; cursor: default; }
.gallery-arrow:focus-visible,
.work-photo:hover .gallery-arrow:not([aria-disabled="true"]) { border-color: var(--accent); }
.gallery-arrow:not([aria-disabled="true"]):hover { background: var(--accent); color: var(--background); }
@media (hover: hover) {
  .work summary:hover .work-trigger { color: var(--accent); }
}
.work-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3rem;
  padding-block: .5rem;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 600;
}
.toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}
.toggle::before, .toggle::after { content: ""; grid-area: 1 / 1; width: .7rem; height: 1px; background: currentColor; }
.toggle::after { transform: rotate(90deg); }
.work details[open] .toggle::after { display: none; }
.work details > p { padding-top: .65rem; color: var(--muted); }

.booking { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.booking .muted { max-width: 44ch; margin-top: 1rem; }
.style-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.style-list div {
  display: grid;
  gap: .3rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.style-list dt { color: var(--accent); font-weight: 700; }
.style-list dd { color: var(--muted); }

.studio { background: var(--petrol); }
.studio-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 6vw, 5.5rem); }
.studio-photo { width: 100%; aspect-ratio: 1.28; height: auto; object-fit: cover; border-radius: .5rem; }
.studio-copy > p { max-width: 45ch; margin-block: 1.25rem .6rem; }
.studio-copy :focus-visible { outline-color: var(--text); }

.care-guide { max-width: 680px; margin-inline: auto; }
.care-guide img { width: 100%; height: auto; border-radius: .4rem; }
.care-text { margin-top: 1rem; }
.care-text summary { width: fit-content; padding-block: .625rem; cursor: pointer; color: var(--accent); }
.care-text .style-list { margin-top: .75rem; }
.aftercare .style-list { gap: 1.25rem clamp(1rem, 4vw, 3.5rem); }
.aftercare-sources { display: flex; flex-wrap: wrap; column-gap: 1.25rem; margin-top: .75rem; }

.reviews-heading { margin-bottom: 1.25rem; }
.reviews-rating {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .125rem .55rem;
  margin-top: .65rem;
  color: var(--muted);
}
.reviews-rating strong { color: var(--text); font-size: 1.125rem; }
.reviews-track {
  --review-gap: 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--review-gap)) / 3);
  gap: var(--review-gap);
  padding: .25rem .25rem .75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .25rem;
}
.visually-hidden, .reviews-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
  scroll-snap-align: start;
  transition: border-color .2s ease;
}
.review-card:hover, .review-card:focus-within, .review-card[data-reading] { border-color: var(--accent); }
.review-card h3 { font-size: 1.65rem; line-height: 1.05; }
.review-stars, .review-source { color: var(--accent); }
.review-reply { padding-top: .65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.review-reply strong { display: block; color: var(--text); }
.review-source { align-self: flex-start; display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; margin-top: auto; font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.reviews-hint:not([hidden]) + .reviews-track .review-card { cursor: pointer; }

.visit {
  padding: clamp(1.25rem, 3.75vw, 2.75rem);
  background: var(--text);
  color: var(--background);
}
.visit img { width: min(100%, 16.4rem); height: auto; margin-bottom: 1rem; mix-blend-mode: multiply; }
.visit .text-link:hover { color: var(--petrol); }
.visit :focus-visible { outline-color: var(--petrol); }
.site-footer { border-block-start: 1px solid var(--line); border-block-end: 0; }
.footer-inner { padding-block: 1rem; flex-wrap: wrap; }

@supports (animation-timeline: view()) and (animation-range: entry 0% entry 85%) {
  @media (prefers-reduced-motion: no-preference) {
    .section-heading, .visit {
      animation: auto cubic-bezier(.22, .75, .27, 1) scroll-rise both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }

    .work-photo {
      animation: auto cubic-bezier(.22, .75, .27, 1) photo-reveal both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }

    .studio-photo {
      animation: auto cubic-bezier(.22, .75, .27, 1) portrait-settle both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
      transform-origin: center bottom;
    }

    .reviews-track {
      animation: auto ease-out review-drop both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }

    .work:focus-within .work-photo, .visit:focus-within, .reviews-track:focus-within { animation: none; }
  }
}

@keyframes scroll-rise {
  from { transform: translateY(1.75rem); }
  to { transform: none; }
}

@keyframes photo-reveal {
  from {
    clip-path: inset(0 0 28% 0 round .4rem);
    transform: translateY(2rem);
  }
  to {
    clip-path: inset(0 round .4rem);
    transform: none;
  }
}

@keyframes portrait-settle {
  from { transform: translateY(1.5rem) scale(.94); }
  to { transform: none; }
}

@keyframes review-drop {
  from { transform: translateY(-.85rem); }
  to { transform: none; }
}

@media (max-width: 1023px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding-top: .625rem; }
  .header-inner .brand { justify-self: start; }
  .header-cta { grid-column: 2; grid-row: 1; padding-inline: .625rem; gap: .375rem; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .375rem; }
  nav a { font-size: .825rem; }
  .hero, .studio-grid, .booking { grid-template-columns: 1fr; }
  .reviews-track { grid-auto-columns: calc((100% - var(--review-gap)) / 2); }
  .hero { gap: 1.5rem; }
  h1 { font-size: clamp(3.05rem, 11.75vw, 5.75rem); }
  .hero-photo { aspect-ratio: 1.28; }
  .section-heading { margin-bottom: 1.25rem; }
  .studio-photo { max-height: 26rem; }
}
@media (max-width: 480px) {
  .reviews-track { grid-auto-columns: 100%; }
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .work-intro { min-height: auto; }
  .style-list { grid-template-columns: 1fr; }
  .actions .button { padding-inline: .6rem; gap: .375rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
