:root {
  --ink: #1a1b1b;
  --background: #050505;
  --surface: #101010;
  --accent-text: #ff8b80;
  --red: #bb3026;
  --white: #fff;
  --soft: #f5f3f1;
  --line: #d9d4d0;
  --display: Impact, "Arial Black", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--white); background: var(--background); font: 1rem/1.6 "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #e66559; outline-offset: 4px; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 2; padding: .5rem 1rem; background: white; color: var(--ink); }
.skip:focus { top: 1rem; }
.wrap { width: min(88%, 73rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
h1, h2, h3, .team strong { font-family: var(--display); font-weight: 700; line-height: 1.05; text-transform: uppercase; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.8rem, 7.8vw, 7.2rem); letter-spacing: -.018em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.35rem; }
.header, .hero, .footer { background: #000; color: var(--white); }
.bar { min-height: 7rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; border-bottom: 1px solid #454545; }
.bar > a { flex: 0 0 auto; max-width: 100%; }
.bar img { display: block; width: clamp(17rem, 37vw, 30rem); max-width: 100%; height: auto; }
.footer img { display: block; width: 8rem; height: auto; filter: contrast(1.28); }
nav { display: flex; flex-wrap: wrap; gap: .55rem clamp(.85rem, 3vw, 2.3rem); }
nav a { text-decoration: none; font-weight: 700; }
nav a:hover { text-decoration: underline; }
.hero {
  padding-block: clamp(3rem, 7vw, 6rem);
  background-image: linear-gradient(90deg, #000 12%, rgb(0 0 0 / 76%) 52%, rgb(0 0 0 / 45%)), url("assets/nakama-logo-fondo.jpg");
  background-size: 100% 100%, auto 135%;
  background-position: center, right -5rem center;
  background-repeat: no-repeat;
}
.hero p { margin-bottom: .75rem; font-weight: 700; }
.hero h1 {
  font-size: clamp(1.9rem, 5.8vw, 5.4rem);
  letter-spacing: .02em;
  -webkit-text-stroke: .035em #000;
  paint-order: stroke fill;
  text-shadow: 0 1px 4px #000;
}
.hero-location {
  display: block;
  margin-top: .2em;
  font-size: .44em;
  letter-spacing: .035em;
}
.hero-booking { display: flex; align-items: center; gap: .65rem; margin-top: 1.6rem; }
.whatsapp-icon-link {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #25d366;
}
.whatsapp-icon-link:hover { background: #102618; }
.whatsapp-icon-link .action-icon { width: 26px; height: 26px; margin: 0; }
.hero .button.whatsapp {
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: "Segoe UI Variable Text", system-ui, sans-serif;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.hero .button.whatsapp:hover { background: #9f261e; }
.button { display: inline-block; padding: .68rem 1.25rem; background: var(--red); color: white; border: 1px solid transparent; border-radius: 2rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #95241c; }
.gallery-home-link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; margin-bottom: 1.5rem; background: #d43c31; color: #fff; border-color: #ed645a; font-size: 1rem; font-weight: 750; }
.gallery-home-link:hover, .gallery-home-link:focus-visible { background: #b92b22; }
.gallery-home-link--bottom { margin-top: 1.5rem; margin-bottom: 0; }
.button.whatsapp { background: #25d366; color: #122618; }
.button.whatsapp:hover { background: #54e58a; }
.team { margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.3rem; list-style: none; text-align: center; }
.team a { display: block; text-decoration: none; }
.team img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.team a[data-artist="Joni Prados"] img, .team a[data-artist="Erika Ceño"] img { box-sizing: border-box; border: 1.5px solid #000; }
.team strong, .team span { display: block; }
.team strong { margin-top: .85rem; font-size: 1.35rem; }
.team span { color: var(--accent-text); margin-top: .3rem; }
.team .portrait-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font: 700 clamp(2rem, 5vw, 4rem)/1 var(--display);
}
.team a:hover strong { text-decoration: underline; }
.process, .location { background: var(--white); color: var(--ink); }
.intro { max-width: 56ch; margin-top: .95rem; }
.artist-profile { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.artist-profile > img { width: min(100%, 22rem); height: auto; aspect-ratio: 1; object-fit: cover; }
.artist-profile .button { margin-top: 1.25rem; }
.tattoo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(.6rem, 1.5vw, 1.2rem);
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.tattoo-gallery a { display: block; background: var(--surface); }
.tattoo-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.stitch-thumbnail { overflow: hidden; }
.stitch-thumbnail img { transform: scale(1.4); transform-origin: 40% 50%; }
.tattoo-gallery a:hover { outline: 2px solid #d43c31; outline-offset: 2px; }
.tattoo-preview {
  position: fixed;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: #000;
}
.tattoo-preview::backdrop { background: rgb(0 0 0 / 88%); }
.tattoo-preview img {
  display: block;
  max-width: min(86vw, 36rem);
  max-height: 74vh;
  width: auto;
  height: auto;
}
.tattoo-preview-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 44px;
  height: 44px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.process ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.75rem, 3vw, 2.5rem); list-style: none; counter-reset: paso; padding: 0; margin: 2.1rem 0 0; }
.process li { counter-increment: paso; border-top: 2px solid #555; padding-top: .85rem; }
.process h3 { font-size: clamp(1.55rem, 2.35vw, 2rem); }
.process h3::before { content: counter(paso, decimal-leading-zero) " "; margin-inline-end: .25em; color: #ff1a1a; }
.process li p { margin-top: .6rem; }
.columns, .booking { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.location address { margin: 1rem 0 .65rem; font-style: normal; }
.location .button { margin-top: 1.05rem; border-color: var(--ink); }
.button.light { color: var(--ink); background: white; }
.button.light:hover { background: var(--soft); }
.location iframe { width: 100%; height: 20rem; border: 0; border-radius: 1rem; background: var(--soft); }
.booking aside p { margin: .8rem 0 1.1rem; max-width: 38ch; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fields label { display: grid; gap: .25rem; font-weight: 650; }
.fields .wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-width: 0; color-scheme: dark; background: var(--surface); color: var(--white); padding: .55rem .65rem; border: 1px solid #777; border-radius: .25rem; }
textarea { resize: vertical; }
.form-note { margin: .8rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2rem; }
.footer strong { display: block; margin-bottom: .3rem; }
.footer div a { display: block; width: fit-content; }
@media (max-width: 810px) {
  .bar { min-height: 0; padding-block: .5rem .25rem; flex-direction: column; gap: .25rem; }
  .bar > a { width: min(100%, 35rem); }
  .bar img { width: 100%; }
  .bar nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: .2rem; overflow-x: auto; }
  .bar nav a { display: grid; align-items: center; min-height: 44px; white-space: nowrap; font-size: clamp(.75rem, 3.5vw, 1rem); }
  .tattoo-preview[open] {
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    overflow: hidden;
    background: rgb(0 0 0 / 94%);
  }
  .tattoo-preview form { position: absolute; top: max(.5rem, env(safe-area-inset-top)); right: max(.5rem, env(safe-area-inset-right)); z-index: 1; }
  .tattoo-preview-close { position: static; }
  .tattoo-preview img { max-width: 100%; max-height: 100vh; max-height: 100dvh; object-fit: contain; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .columns, .booking, .process ol, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .section { padding-block: 2.75rem; }
  .header .bar { width: calc(100% - 1rem); }
  .hero {
    padding-block: 2.75rem;
    background-image: linear-gradient(rgb(0 0 0 / 78%), rgb(0 0 0 / 78%)), url("assets/nakama-logo-fondo.jpg");
    background-size: 100% 100%, 165% auto;
    background-position: center;
  }
  h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem 1rem; }
  .team strong { font-size: 1.2rem; }
  .team a { overflow-wrap: anywhere; }
  .columns, .booking, .fields, .process ol { grid-template-columns: minmax(0, 1fr); }
  .location iframe { height: clamp(12rem, 65vw, 16rem); }
  .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; text-align: center; }
  input, select, textarea { min-height: 48px; font-size: max(1rem, 16px); }
  .booking aside a, .footer div a { min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer div a { display: flex; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:where(a[href], button) {
  display: inline-block;
  transform-origin: center;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1),
    color .3s ease, background-color .4s ease,
    border-color .4s ease, box-shadow .5s ease;
  -webkit-tap-highlight-color: transparent;
}
.artist-link { transform-origin: left center; }
.artist-portrait, .artist-designs a, .tattoo-gallery a, .review-photo {
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease;
}
@media (hover: hover) {
  :where(a[href], button):not(.skip):hover {
    transform: translateY(-2px) scale(1.025);
  }
  :where(.button, .whatsapp-icon-link, .tattoo-preview-close):hover {
    box-shadow: 0 4px 16px rgb(212 60 49 / 22%);
  }
}
:where(a[href], button):not(.skip):focus-visible {
  transform: translateY(-2px) scale(1.025);
}
:where(a[href], button):not(.skip):active { transform: scale(.98); }
input, select, textarea {
  transition: border-color .3s ease, box-shadow .3s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #e66559;
  box-shadow: 0 0 0 3px rgb(212 60 49 / 18%);
}
@media (prefers-reduced-motion: reduce) {
  :where(a[href], button), .artist-portrait, .artist-designs a, .tattoo-gallery a, .review-photo,
  input, select, textarea { transition: none; }
  :where(a[href], button):not(.skip):is(:hover, :focus-visible, :active) { transform: none; }
}
