/* ==========================================================================
   International Tattoo Gallery – design plan
   Identity: the studio is a whitewashed industrial loft (brick, black steel,
   black pendant lamps, a red floor line, red claw marks in the bear piece).
   Treated as an art gallery: paper-white walls, charcoal type, museum labels
   in mono, works hung in black & white that turn to colour when they reach
   the centre. Reference attitude (Lass Tattoo): airy lowercase editorial
   headings, hairlines, preloader, staggered reveals, looping sliders.
   ========================================================================== */
:root {
  --paper: #f3f1ec;
  --paper-2: #e8e5df;
  --ink: #161616;
  --grey: #6b6863;
  --line: rgba(22, 22, 22, .16);
  --red: #c8281d;
  --dark: #121212;
  --on-dark: #efece6;
  --line-dark: rgba(239, 236, 230, .18);

  --display: "Archivo", "Arial", sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --g: clamp(16px, 3.6vw, 52px);
  --section: clamp(96px, 12vw, 190px);
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; font-family: var(--mono); font-size: .8rem; }
.skip:focus { top: 12px; }

.label { font-family: var(--mono); font-size: .74rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.body { font-size: clamp(1.02rem, 1.15vw, 1.15rem); line-height: 1.65; color: #2b2a28; max-width: 34em; }
.h2 {
  font-family: var(--display); font-stretch: 112%; font-weight: 300; text-transform: lowercase;
  font-size: clamp(2.6rem, 5.8vw, 6.2rem); line-height: .95; letter-spacing: -.035em;
}
.h2 em, .contact__title em { font-style: italic; color: var(--red); font-weight: 300; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 1.15em 1.7em; border-radius: 999px; border: 1px solid var(--ink);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  white-space: nowrap;
}
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: var(--line-dark); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--dark); }
.btn--big { font-size: .9rem; padding: 1.35em 2em; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--dark); color: var(--on-dark);
  display: none; grid-template-rows: auto 1fr auto auto; padding: 22px var(--g);
}
.js .loader { display: grid; }
.no-intro .loader { display: none; }
.loader__top, .loader__bottom { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.loader__count { align-self: end; font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: clamp(5rem, 19vw, 20rem); line-height: .8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader__line { height: 1px; background: var(--line-dark); margin: 26px 0 16px; overflow: hidden; }
.loader__line i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- custom cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor {
  display: grid; opacity: 0; place-items: center; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--red);
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease);
}
.has-cursor .cursor.is-on { opacity: 1; }
.has-cursor .cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor__label { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s; }
.cursor.is-big .cursor__label { opacity: 1; transition-delay: .12s; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 0 var(--g); background: rgba(243, 241, 236, .92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .5s, color .5s, border-color .5s;
}
.nav.is-dark { background: rgba(18, 18, 18, .9); color: var(--on-dark); border-color: var(--line-dark); }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: .78rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; justify-self: start; }
.nav__logo svg { width: 34px; height: 34px; flex: none; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav__links a, .nav__cta { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { justify-self: end; color: var(--red); }
.nav.is-dark .nav__cta { color: #ff6a5c; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; padding: 92px var(--g) 22px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto auto; column-gap: var(--g);
}
.hero__meta { grid-column: 1 / span 4; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 26px; padding-top: 6px; }
.hero__lead { font-family: var(--display); font-stretch: 100%; font-weight: 300; font-size: clamp(1.3rem, 1.75vw, 1.75rem); line-height: 1.25; letter-spacing: -.015em; max-width: 19em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__img { grid-column: 6 / -1; grid-row: 1 / span 2; position: relative; height: clamp(280px, 44vh, 520px); overflow: hidden; background: var(--paper-2); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: grayscale(1) contrast(1.06); transition: filter 1.4s var(--ease); }
.hero__img:hover img { filter: grayscale(0) contrast(1); }
.hero__img figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 8px 14px 6px 0; }
.hero__rating { margin-top: auto; display: flex; align-items: flex-end; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; }
.hero__rating strong { font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: 3.6rem; line-height: .8; letter-spacing: -.05em; text-transform: none; }
.hero__title {
  grid-column: 1 / -1; grid-row: 3; margin-top: clamp(18px, 3vh, 40px);
  font-family: var(--display); font-stretch: 125%; text-transform: lowercase; line-height: .84; letter-spacing: -.045em;
  font-size: 10.4vw; white-space: nowrap;
}
.hero__l1, .hero__l2 { display: block; overflow: hidden; padding-bottom: .17em; margin-bottom: -.13em; }
.hero__l1 > span, .hero__l2 > span { display: inline-block; }
.hero__l1 { font-weight: 200; }
.hero__l2 { font-weight: 800; }
.hero__foot { grid-column: 1 / -1; grid-row: 4; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 40px; height: 1px; background: var(--ink); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--red); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- statement ---------- */
.statement {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 48px;
  padding: var(--section) var(--g) calc(var(--section) * .7);
}
.statement > .label { grid-column: 1 / span 2; padding-top: .9em; }
.statement__text {
  grid-column: 3 / -1;
  font-family: var(--display); font-stretch: 100%; font-weight: 300; font-size: clamp(1.9rem, 4.1vw, 4.4rem); line-height: 1.08; letter-spacing: -.03em;
}
.statement__text em { color: var(--red); }
.statement__tags { grid-column: 3 / -1; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.statement__tags li { padding: 14px 28px 0 0; margin-right: 28px; position: relative; }
.statement__tags li + li::before { content: "/"; position: absolute; left: -22px; top: 14px; color: var(--grey); }

/* ---------- studio ---------- */
.studio {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end;
  padding: 0 var(--g) var(--section);
}
.studio__img { grid-column: 1 / span 7; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--paper-2); }
.studio__img img { width: 100%; height: 120%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 1.4s var(--ease); }
.studio__img:hover img { filter: none; }
.studio__text { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 28px; padding-bottom: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.facts dd { font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; margin-top: 4px; }

/* ---------- works ---------- */
.works { position: relative; background: var(--paper); border-top: 1px solid var(--line); }
.works__pin { position: relative; padding: 28px 0 var(--section); overflow: hidden; }
.works__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--g); position: relative; z-index: 2; }
.works__title {
  position: absolute; left: 0; right: 0; bottom: 1vh; z-index: 0; pointer-events: none;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: lowercase; text-align: center;
  font-size: 30vw; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(22, 22, 22, .24);
  white-space: nowrap;
}
.works__track { position: relative; z-index: 1; display: flex; gap: clamp(28px, 4vw, 72px); align-items: flex-start; padding: 48px var(--g) 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.works__track::-webkit-scrollbar { display: none; }
.work { flex: 0 0 auto; scroll-snap-align: center; }
.work__img { overflow: hidden; background: var(--paper-2); }
.work__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter 1.2s var(--ease), transform 1.2s var(--ease); }
.work.is-live .work__img img, .work:hover .work__img img { filter: none; }
.work:hover .work__img img { transform: scale(1.035); }
.work--tall .work__img { height: min(58vh, 560px); aspect-ratio: 3 / 4; }
.work--square .work__img { height: min(44vh, 430px); aspect-ratio: 1; }
.work--slim .work__img { height: min(62vh, 600px); aspect-ratio: 426 / 900; }
.work figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.work figcaption .label { grid-row: span 2; color: var(--red); }
.work figcaption strong { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.1; }
.work figcaption span:last-child { font-size: .9rem; color: var(--grey); }
.works__end { flex: 0 0 auto; align-self: center; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-right: 8vw; }
.works__progress { display: none; }
.works__count span { color: var(--red); }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .works__pin { height: 100vh; height: 100svh; min-height: 640px; padding: 92px 0 40px; display: grid; grid-template-rows: auto 1fr auto; }
  .js .works__track { overflow: visible; align-items: center; padding: 0 12vw 0 var(--g); scroll-snap-type: none; will-change: transform; }
  .js .work--low { translate: 0 7vh; }
  .js .works__progress { display: block; position: relative; margin: 0 var(--g); height: 1px; background: var(--line); }
  .js .works__progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
}

/* ---------- process ---------- */
.process { padding: var(--section) var(--g); border-top: 1px solid var(--line); }
.process__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.process__head { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 28px; align-self: start; position: sticky; top: 110px; }
.steps { grid-column: 7 / -1; counter-reset: s; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; row-gap: 6px; padding: 30px 0 32px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.step:hover::before, .step.is-in::before { transform: scaleX(1); }
.step__no { grid-row: span 2; color: var(--red); padding-top: .55em; }
.step h3 { font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; }
.step p { color: #3a3936; max-width: 32em; }
.diptych { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; margin-top: clamp(80px, 9vw, 140px); }
.diptych__a { grid-column: 1 / span 3; }
.diptych__arrow { grid-column: 4 / span 1; justify-self: center; align-self: center; font-family: var(--display); font-weight: 200; font-size: clamp(2rem, 4vw, 4rem); color: var(--red); }
.diptych__b { grid-column: 5 / span 4; }
.diptych__note { grid-column: 10 / -1; }
.diptych__img { overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper-2); }
.diptych__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 1.2s var(--ease); }
.diptych figure.is-live img, .diptych figure:hover img { filter: none; }
.diptych figcaption { padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0 10px; }
.marquee__track { display: flex; width: max-content; align-items: center; will-change: transform; }
.marquee__track span {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: lowercase; letter-spacing: -.05em;
  font-size: clamp(4rem, 11vw, 11rem); line-height: 1; padding: 0 .18em .06em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.2px var(--ink);
}
.marquee__track i { font-style: normal; color: var(--red); font-size: clamp(2rem, 4vw, 4rem); padding: 0 .3em; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 48px; padding: var(--section) var(--g); align-items: start; }
.reviews__score { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; }
.reviews__num { font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: clamp(7rem, 15vw, 15rem); line-height: .8; letter-spacing: -.06em; }
.reviews__meta { font-family: var(--mono); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.stars { color: var(--red); letter-spacing: .2em; }
.slider { grid-column: 6 / -1; border-top: 1px solid var(--line); padding-top: 28px; }
.slider__list { display: grid; gap: 40px; }
.slide blockquote { font-family: var(--display); font-stretch: 100%; font-weight: 300; font-size: clamp(1.6rem, 3vw, 3rem); line-height: 1.14; letter-spacing: -.025em; margin-bottom: 18px; }
.slider__ui { display: none; }
.js .slider__list { display: grid; grid-template-areas: "s"; gap: 0; }
.js .slide { grid-area: s; }
.js .slider__ui { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.slider__bars { display: flex; gap: 6px; flex: 1; max-width: 320px; }
.slider__bars i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.slider__bars i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* ---------- contact (dark) ---------- */
.contact { background: var(--dark); color: var(--on-dark); padding: var(--section) var(--g) calc(var(--section) * .7); display: flex; flex-direction: column; gap: 36px; }
.contact .label { color: rgba(239, 236, 230, .62); }
.contact__title { font-family: var(--display); font-stretch: 125%; font-weight: 200; text-transform: lowercase; font-size: clamp(3rem, 8.4vw, 9.4rem); line-height: .9; letter-spacing: -.05em; }
.contact__title em { color: #ff6a5c; font-weight: 200; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: var(--g); border-top: 1px solid var(--line-dark); padding-top: 36px; margin-top: 20px; }
.contact__ctas { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 360px; }
.contact__addr, .contact__hours { display: flex; flex-direction: column; gap: 14px; }
.contact__big { font-family: var(--display); font-stretch: 112%; font-weight: 400; font-size: clamp(1.4rem, 2.1vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
.contact__hours p { font-size: 1.1rem; line-height: 1.55; }
.contact__small { color: rgba(239, 236, 230, .7); font-size: .95rem !important; }

/* ---------- footer ---------- */
.foot { background: var(--dark); color: var(--on-dark); padding: 0 var(--g) 26px; }
.foot__word {
  font-family: var(--display); font-stretch: 125%; text-transform: lowercase; letter-spacing: -.05em; line-height: .9;
  font-size: 6.1vw; white-space: nowrap; width: fit-content; margin: 0 auto; padding: 30px 0 34px; border-top: 1px solid var(--line-dark);
}
.foot__word span { font-weight: 200; }
.foot__word b { font-weight: 800; }
.foot__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--line-dark); padding-top: 18px; }
.foot__credit { font-size: .86rem; color: rgba(239, 236, 230, .72); max-width: 60em; }
.foot__credit a { color: var(--on-dark); }
.foot a.label { text-decoration: none; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .studio__text { grid-column: 8 / -1; }
  .reviews__score { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 18px 36px; }
  .reviews__score > .label { flex-basis: 100%; }
  .slider { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .nav { grid-template-columns: 1fr auto; height: 58px; }
  .nav__links { display: none; }
  .hero { padding-top: 82px; grid-template-rows: auto auto auto auto; row-gap: 26px; }
  .hero__meta { grid-column: 1 / -1; grid-row: 1; }
  .hero__img { grid-column: 1 / -1; grid-row: 2; height: auto; aspect-ratio: 4 / 3; }
  .hero__title { grid-row: 3; margin-top: 0; font-size: 12.4vw; }
  .hero__foot { margin-top: 0; }
  .statement > .label, .statement__text, .statement__tags { grid-column: 1 / -1; }
  .studio { row-gap: 40px; }
  .studio__img, .studio__text { grid-column: 1 / -1; }
  .works__track { padding-top: 28px; }
  .works__title { position: static; font-size: 27vw; text-align: left; padding: 0 var(--g); margin-bottom: 8px; -webkit-text-stroke: 1px rgba(22, 22, 22, .35); }
  .work--tall .work__img { height: auto; width: 68vw; }
  .work--square .work__img { height: auto; width: 68vw; }
  .work--slim .work__img { height: auto; width: 46vw; }
  .work figcaption { max-width: 68vw; }
  .works__end { padding-right: var(--g); }
  .process__head { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .steps { grid-column: 1 / -1; }
  .diptych { grid-template-columns: 1fr auto 1fr; row-gap: 24px; column-gap: 12px; }
  .diptych__a { grid-column: 1; }
  .diptych__arrow { grid-column: 2; }
  .diptych__b { grid-column: 3; }
  .diptych__note { grid-column: 1 / -1; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__ctas { max-width: none; }
  .foot__row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .nav__logo span { font-size: .7rem; }
  .nav__cta { font-size: .68rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .step { grid-template-columns: 44px 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll i::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
