:root {
  --bg: #0a0a0a;
  --blood-deep: #2b0000;
  --blood-mid: #8b0000;
  --blood-hot: #c1121f;
  --steel: #6e6e6e;
  --skin: #d6bfa7;
  --panel-dark: #130e0e;
  --panel-mid: #241616;
  --line: rgba(214, 191, 167, 0.32);
  --line-hard: rgba(110, 110, 110, 0.7);
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
  --max-width: 1240px;
  --human-skin: url("assets/pale_skin_generated.webp");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--skin);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 14% 20%, rgba(193, 18, 31, 0.2), transparent 44%),
    radial-gradient(circle at 76% 8%, rgba(139, 0, 0, 0.18), transparent 42%),
    radial-gradient(circle at 50% 92%, rgba(193, 18, 31, 0.14), transparent 36%),
    linear-gradient(160deg, #050505 0%, var(--bg) 48%, #050505 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.ambient-flicker .grain-layer {
  opacity: 0.44;
}

body.ambient-flicker .scratch-layer {
  opacity: 0.14;
}

body.is-scrolling .grain-layer,
body.is-scrolling .scratch-layer {
  opacity: 0;
}

body.is-scrolling .tattoo-machine {
  opacity: 0 !important;
}

body.perf-lite .grain-layer {
  opacity: 0.16;
}

body.perf-lite .scratch-layer {
  opacity: 0.04;
}

body.perf-lite .vignette-layer {
  opacity: 0.54;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.grain-layer,
.scratch-layer,
.vignette-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

.grain-layer {
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(214, 191, 167, 0.04) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(214, 191, 167, 0.03) 0 1px,
      transparent 1px 4px
    );
  opacity: 0.35;
}

.scratch-layer {
  background:
    repeating-linear-gradient(
      12deg,
      transparent 0 19px,
      rgba(214, 191, 167, 0.055) 19px 20px,
      transparent 20px 42px
    ),
    repeating-linear-gradient(
      168deg,
      transparent 0 29px,
      rgba(214, 191, 167, 0.035) 29px 30px,
      transparent 30px 52px
    );
  opacity: 0.11;
}

.vignette-layer {
  background: radial-gradient(circle, transparent 36%, rgba(0, 0, 0, 0.78) 100%);
  opacity: 0.68;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(214, 191, 167, 0.18);
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.94), rgba(18, 9, 9, 0.92)),
    repeating-linear-gradient(
      90deg,
      transparent 0 14px,
      rgba(214, 191, 167, 0.03) 14px 15px
    );
}

.top-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.56rem;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.6rem;
  line-height: 0.9;
}

.brand-mark {
  grid-row: 1 / 3;
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--blood-hot);
  text-shadow: 0 0 14px rgba(193, 18, 31, 0.5);
}

.brand-main {
  font-size: clamp(1.18rem, 2.3vw, 1.8rem);
  letter-spacing: 0.09em;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.17em;
  color: rgba(214, 191, 167, 0.68);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem;
}

.main-nav a {
  padding: 0.42rem 0.62rem;
  border: 1px solid transparent;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  background: rgba(43, 0, 0, 0.18);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--blood-hot);
  color: #f2dfcf;
  transform: translateY(-2px);
}

.sound-toggle {
  border: 1px solid rgba(193, 18, 31, 0.7);
  background:
    linear-gradient(140deg, rgba(43, 0, 0, 0.7), rgba(13, 13, 13, 0.92)),
    repeating-linear-gradient(
      -30deg,
      transparent 0 8px,
      rgba(214, 191, 167, 0.08) 8px 9px
    );
  color: #f2dfcf;
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.44rem 0.58rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.18s ease, color 0.18s ease;
}

.sound-toggle[aria-pressed="true"] {
  border-color: #ef2436;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(193, 18, 31, 0.32), 0 0 14px rgba(193, 18, 31, 0.28);
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  transform: translateY(-2px);
}

main {
  position: relative;
  z-index: 10;
  isolation: isolate;
}

main::before {
  display: none;
}

.ritual-section {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(5.2rem, 8vw, 7rem) clamp(1rem, 3.8vw, 3rem);
  scroll-margin-top: 96px;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  isolation: isolate;
  z-index: 1;
}

.ritual-section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 960px;
}

.ritual-section::before {
  display: none;
}

.ritual-section.is-live {
  opacity: 1;
  transform: translateY(0);
}

.ritual-section.flicker-burst {
  animation: section-flicker 0.32s steps(2, end) 1;
}

.ritual-section.is-live::before {
  animation: none;
}

body.perf-lite .ritual-section::before {
  display: none;
}

body.perf-lite .ritual-section.flicker-burst {
  animation: none;
}

.hero {
  max-width: none;
  min-height: 100svh;
  padding-top: clamp(6.6rem, 11vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-left: clamp(1rem, 5vw, 5rem);
  padding-right: clamp(1rem, 5vw, 5rem);
  display: grid;
  align-content: center;
  gap: 1.4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(193, 18, 31, 0.08), transparent 52%),
    linear-gradient(170deg, rgba(10, 10, 10, 0.18), rgba(10, 10, 10, 0.05)),
    url("assets/pentagram_generated.webp") center 46% / min(980px, 72vw) auto no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    130deg,
    transparent 0 34px,
    rgba(214, 191, 167, 0.025) 34px 35px
  );
}

.chain {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 0.6rem;
  height: auto;
  background:
    radial-gradient(ellipse at center, #999 28%, #555 61%, #282828 100%) center / 100% 22px repeat-y;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
  opacity: 0.5;
  z-index: 24;
  pointer-events: none;
}

.chain-left {
  left: max(10px, 3.8vw);
}

.chain-right {
  right: max(10px, 3.8vw);
}

body.perf-lite .chain {
  display: none;
}

body.perf-lite .floating-stickers {
  display: none;
}

.blood-drips {
  display: none;
}

.blood-drips::before {
  display: none;
}

body.perf-lite .blood-drips {
  animation: none;
  opacity: 0.34;
}

.section-kicker {
  margin-bottom: 0.28rem;
  color: rgba(214, 191, 167, 0.74);
  font-size: clamp(0.84rem, 1.3vw, 1rem);
  letter-spacing: 0.19em;
}

.stamp {
  width: fit-content;
  padding: 0.28rem 0.56rem;
  border: 1px solid rgba(193, 18, 31, 0.56);
  background: rgba(43, 0, 0, 0.34);
  box-shadow: inset 0 0 0 1px rgba(214, 191, 167, 0.1);
  transform: rotate(-4deg);
}

.hero-title {
  margin: 0;
  width: min(100%, 18ch);
  max-width: 100%;
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 8.6vw, 7.1rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-wrap: pretty;
  text-align: justify;
  text-justify: inter-word;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.54), 0 0 8px rgba(193, 18, 31, 0.3);
}

.display-ink {
  display: block;
  width: 100%;
  max-width: 100%;
}

.hero-subline {
  max-width: 60ch;
  display: grid;
  gap: 0.4rem;
}

.hero-subline p {
  font-size: clamp(1rem, 2.15vw, 1.34rem);
  letter-spacing: 0.05em;
}

.scribble {
  font-family: "Caveat Brush", "Segoe Script", cursive;
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(214, 191, 167, 0.9);
  font-size: clamp(1.02rem, 2.5vw, 1.55rem);
}

.hero-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.9rem;
  width: min(820px, 100%);
}

.price-patch {
  display: grid;
  gap: 0.4rem;
  min-height: 104px;
}

.price-label {
  font-size: 0.8rem;
  color: rgba(214, 191, 167, 0.68);
  letter-spacing: 0.16em;
}

.price-ink {
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
  font-size: clamp(1.55rem, 3.5vw, 2.45rem);
  line-height: 1;
  color: #f0dfd0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.cta-brutal {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 78px;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--line-hard);
  background:
    linear-gradient(150deg, rgba(17, 17, 17, 0.98), rgba(38, 18, 18, 0.95)),
    repeating-linear-gradient(
      -35deg,
      transparent 0 13px,
      rgba(193, 18, 31, 0.08) 13px 14px
    );
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(214, 191, 167, 0.12);
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
  font-size: clamp(1.12rem, 2.2vw, 1.95rem);
  letter-spacing: 0.11em;
  color: #f3e7dc;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-main {
  min-width: min(450px, 100%);
  border-color: var(--blood-hot);
}

.cta-secondary {
  min-width: min(420px, 100%);
}

.cta-brutal:hover,
.cta-brutal:focus-visible {
  transform: translateY(-4px) skewX(-2deg);
  border-color: #ef2436;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.62), 0 0 20px rgba(193, 18, 31, 0.35);
}

.hero-note {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: clamp(2rem, 6vw, 5rem);
}

.sticker {
  padding: 0.35rem 0.66rem;
  border: 1px dashed rgba(214, 191, 167, 0.52);
  background: rgba(10, 10, 10, 0.8);
  color: rgba(214, 191, 167, 0.84);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  transform: rotate(8deg);
}

.floating-stickers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 46;
}

.floating-sticker {
  position: absolute;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  background: rgba(8, 8, 8, 0.86);
  border-color: rgba(214, 191, 167, 0.44);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}

.fs-1 {
  left: calc(max(10px, 3.8vw) - 56px);
  top: 22vh;
  transform: rotate(-9deg);
}

.fs-2 {
  right: calc(max(10px, 3.8vw) - 54px);
  top: 34vh;
  transform: rotate(8deg);
}

.fs-3 {
  left: calc(max(10px, 3.8vw) - 58px);
  top: 58vh;
  transform: rotate(-7deg);
}

.fs-4 {
  right: calc(max(10px, 3.8vw) - 56px);
  top: 76vh;
  transform: rotate(9deg);
}

.nail-plate {
  position: relative;
  padding: clamp(0.9rem, 2vw, 1.25rem);
  background:
    linear-gradient(150deg, rgba(24, 16, 16, 0.78), rgba(34, 20, 20, 0.7)),
    var(--human-skin) center / 180% auto no-repeat,
    repeating-linear-gradient(
      120deg,
      transparent 0 12px,
      rgba(214, 191, 167, 0.027) 12px 13px
    );
  background-blend-mode: normal, multiply, normal;
  border: 1px solid rgba(110, 110, 110, 0.78);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(214, 191, 167, 0.09);
  clip-path: polygon(1.6% 0, 98.6% 1%, 100% 97%, 3% 100%, 0 5%);
}

body.perf-lite .nail-plate {
  clip-path: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(214, 191, 167, 0.08);
}

.nail-plate::before,
.nail-plate::after {
  content: "";
  position: absolute;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d6d6d6 0, #797979 48%, #2a2a2a 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.nail-plate::before {
  top: 8px;
  left: 10px;
}

.nail-plate::after {
  top: 8px;
  right: 10px;
}

.section-head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1.2rem;
}

.glitch-title {
  position: relative;
  margin: 0;
  width: fit-content;
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
  font-size: clamp(1.95rem, 5.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.ritual-section.is-live .glitch-title::before {
  color: rgba(193, 18, 31, 0.75);
  transform: translate(2px, -1px);
  animation: glitch-a 0.66s steps(2, end) 1;
}

.ritual-section.is-live .glitch-title::after {
  color: rgba(214, 191, 167, 0.7);
  transform: translate(-2px, 1px);
  animation: glitch-b 0.66s steps(2, end) 1;
}

body.perf-lite .ritual-section.is-live .glitch-title::before,
body.perf-lite .ritual-section.is-live .glitch-title::after {
  animation: none;
  opacity: 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.work-fragment {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 0.72rem;
}

.work-fragment h3 {
  margin: 0;
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
  font-size: clamp(1.06rem, 2vw, 1.4rem);
  line-height: 1.03;
  letter-spacing: 0.045em;
  text-align: left;
  text-wrap: balance;
  min-height: 2.1em;
}

.work-fragment p {
  font-size: clamp(0.94rem, 1.25vw, 1.03rem);
  color: rgba(214, 191, 167, 0.84);
  line-height: 1.32;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: left;
  max-width: 30ch;
}

.work-visual {
  aspect-ratio: 0.88;
  border: 1px solid rgba(214, 191, 167, 0.17);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  background-color: #090909;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.work-visual-1 {
  background-image:
    linear-gradient(165deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.58)),
    url("assets/work-1.jpg");
}

.work-visual-2 {
  background-image:
    linear-gradient(165deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.62)),
    url("assets/work-2.jpg");
}

.work-visual-3 {
  background-image:
    linear-gradient(165deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.58)),
    url("assets/work-3.jpg");
}

.work-visual-4 {
  background-image:
    linear-gradient(165deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.55)),
    url("assets/work-4.jpg");
}

.flash-strip {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.flash-strip span {
  border: 1px solid rgba(214, 191, 167, 0.32);
  padding: 0.28rem 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  background: rgba(22, 22, 22, 0.78);
  transform: rotate(-2deg);
}

.styles-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.95rem;
}

.style-list h3,
.style-pricing h3,
.pain-block h3,
.care-block h3,
.contact-info h3 {
  margin: 0 0 0.56rem;
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
  font-size: clamp(1.15rem, 2.3vw, 1.8rem);
}

.style-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.6rem;
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  padding: 0.38rem 0;
  border-bottom: 1px dashed rgba(214, 191, 167, 0.12);
}

.style-list li span {
  color: rgba(193, 18, 31, 0.8);
}

.pricing-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(214, 191, 167, 0.14);
  font-size: clamp(0.9rem, 1.8vw, 1.18rem);
}

.masters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.master-unit {
  display: grid;
  align-content: start;
  gap: 0.68rem;
}

.master-head {
  aspect-ratio: 1.04;
  border: 1px solid rgba(214, 191, 167, 0.15);
}

.master-head-1 {
  background:
    radial-gradient(circle at 20% 26%, rgba(193, 18, 31, 0.45), transparent 42%),
    linear-gradient(170deg, #131313, #050505);
}

.master-head-2 {
  background:
    radial-gradient(circle at 72% 14%, rgba(193, 18, 31, 0.46), transparent 37%),
    linear-gradient(165deg, #121212, #090909);
}

.master-head-3 {
  background:
    radial-gradient(circle at 54% 68%, rgba(193, 18, 31, 0.4), transparent 37%),
    linear-gradient(165deg, #111, #060606);
}

.master-unit h3 {
  margin: 0;
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
  font-size: clamp(1.08rem, 2vw, 1.5rem);
}

.master-unit p {
  font-size: 0.94rem;
  line-height: 1.22;
}

.master-tag {
  width: fit-content;
  border: 1px solid rgba(193, 18, 31, 0.54);
  padding: 0.22rem 0.44rem;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  color: rgba(214, 191, 167, 0.85);
  background: rgba(43, 0, 0, 0.25);
}

.care-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 0.95rem;
}

.pain-scale li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.38rem 0;
  border-bottom: 1px dashed rgba(214, 191, 167, 0.14);
}

.pain-scale span {
  min-width: 3.1rem;
  color: #f0d7bf;
  font-family: "Black Ops One", "Bebas Neue", sans-serif;
}

.care-block ol {
  list-style: decimal;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.56rem;
  text-transform: none;
  font-size: 1rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.review {
  display: grid;
  gap: 0.8rem;
}

.review p {
  text-transform: none;
  font-size: 1.04rem;
  line-height: 1.28;
}

.review cite {
  color: rgba(214, 191, 167, 0.72);
  font-size: 0.84rem;
  font-style: normal;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0.95rem;
}

.contact-info {
  display: grid;
  gap: 0.56rem;
  align-content: start;
  font-size: clamp(0.94rem, 1.8vw, 1.2rem);
}

.contact-note {
  margin-top: 0.5rem;
  width: fit-content;
}

.booking-form {
  display: grid;
  gap: 0.75rem;
}

.booking-form .cta-main {
  width: 100%;
}

.booking-form label {
  display: grid;
  gap: 0.34rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
}

.booking-form input,
.booking-form textarea {
  border: 1px solid rgba(214, 191, 167, 0.28);
  background: rgba(10, 10, 10, 0.86);
  color: #f2e2d4;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  padding: 0.62rem 0.7rem;
  resize: vertical;
  min-height: 42px;
}

.booking-form input:focus-visible,
.booking-form textarea:focus-visible {
  outline: none;
  border-color: var(--blood-hot);
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.24);
}

.footer {
  position: relative;
  z-index: 15;
  padding: 1.1rem 1rem 1.8rem;
  text-align: center;
  color: rgba(214, 191, 167, 0.56);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.tattoo-write {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  min-height: 1em;
  transform: translate(var(--jitter-x, 0), var(--jitter-y, 0));
}

.ink-char {
  opacity: 0;
  transform: translateY(0.2em) scale(0.94);
  filter: blur(1.3px);
  transition: transform 0.1s linear, opacity 0.1s linear, filter 0.12s linear, color 0.45s ease;
}

.ink-char.space {
  width: 0.36em;
}

.ink-char.inked {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

.ink-char.fresh {
  color: #e22937;
  text-shadow: 0 0 11px rgba(193, 18, 31, 0.55), 0 0 18px rgba(193, 18, 31, 0.45);
}

.tattoo-write.is-inking {
  animation: needle-jitter 0.075s steps(2, end) infinite;
}

body.perf-lite .tattoo-write.is-inking {
  animation-duration: 0.12s;
}

body.perf-lite .ink-char {
  filter: none;
  transition: transform 0.08s linear, opacity 0.08s linear, color 0.24s ease;
}

.tattoo-write.stutter {
  animation-play-state: paused;
  opacity: 0.96;
}

.cta-brutal.is-writing {
  box-shadow: var(--shadow), 0 0 22px rgba(193, 18, 31, 0.26);
}

.tattoo-machine {
  position: fixed;
  top: 0;
  left: 0;
  width: 168px;
  height: 190px;
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
  pointer-events: none;
  z-index: 130;
  opacity: 0;
  transform: translate(-120vw, -120vh) rotate(0deg);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), opacity 0.2s ease;
  will-change: transform, opacity;
}

.tattoo-machine img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.7));
}

.tattoo-machine::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 3px;
  top: 60px;
  border-radius: 50%;
  background: rgba(193, 18, 31, 0.9);
  box-shadow: 0 0 8px rgba(193, 18, 31, 0.75);
}

.tattoo-machine.active {
  opacity: 0.95;
}

.ink-drop {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.95), rgba(43, 0, 0, 0.84));
  filter: blur(0.6px);
  z-index: 120;
  animation: ink-pop 0.6s ease-out forwards;
}

body.perf-lite .ink-drop {
  display: none;
}

@keyframes brutal-wipe {
  0% {
    opacity: 0.8;
    transform: translateX(-130%);
  }
  50% {
    opacity: 0.54;
  }
  100% {
    opacity: 0;
    transform: translateX(130%);
  }
}

@keyframes section-flicker {
  0%,
  100% {
    filter: brightness(1);
  }
  24% {
    filter: brightness(1.16);
  }
  38% {
    filter: brightness(0.88);
  }
  64% {
    filter: brightness(1.1);
  }
}

@keyframes glitch-a {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.64;
    clip-path: inset(0 0 80% 0);
  }
  45% {
    opacity: 0.44;
    clip-path: inset(42% 0 34% 0);
  }
  70% {
    opacity: 0.38;
    clip-path: inset(78% 0 4% 0);
  }
  100% {
    opacity: 0;
  }
}

@keyframes glitch-b {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.5;
    clip-path: inset(74% 0 2% 0);
  }
  50% {
    opacity: 0.35;
    clip-path: inset(8% 0 74% 0);
  }
  78% {
    opacity: 0.46;
    clip-path: inset(40% 0 30% 0);
  }
  100% {
    opacity: 0;
  }
}

@keyframes needle-jitter {
  0%,
  100% {
    transform: translate(var(--jitter-x, 0), var(--jitter-y, 0));
  }
  33% {
    transform: translate(calc(var(--jitter-x, 0) + 1px), calc(var(--jitter-y, 0) - 1px));
  }
  66% {
    transform: translate(calc(var(--jitter-x, 0) - 1px), calc(var(--jitter-y, 0) + 1px));
  }
}

@keyframes ink-pop {
  0% {
    opacity: 0.95;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.22);
  }
}

@keyframes blood-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(0);
  }
  50% {
    opacity: 0.62;
    transform: translateY(4px);
  }
}

@keyframes blood-flow {
  0% {
    background-position:
      left 0 top 0,
      left 52px top -2px,
      left 98px top -1px,
      left 0 top 0;
  }
  100% {
    background-position:
      left 0 top 14px,
      left 52px top 20px,
      left 98px top 16px,
      left 0 top 34px;
  }
}

@media (max-width: 1100px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .styles-layout,
  .masters-grid,
  .care-layout,
  .reviews-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: start;
    flex-direction: column;
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }

  .top-controls {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .main-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .main-nav a {
    white-space: nowrap;
  }

  .hero-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.2rem, 10.5vw, 4.9rem);
    text-align: left;
  }

  .hero-prices {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
  }

  .cta-main,
  .cta-secondary {
    min-width: min(100%, 480px);
  }

  .hero-note {
    position: static;
    margin-top: 0.2rem;
    transform: rotate(0deg);
    width: fit-content;
  }

  .fs-3,
  .fs-4 {
    display: none;
  }
}

@media (max-width: 640px) {
  .ritual-section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero {
    padding-top: 10rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .sound-toggle {
    font-size: 0.62rem;
  }

  .tattoo-machine {
    width: 132px;
    height: 150px;
  }

  .work-fragment p,
  .master-unit p,
  .review p {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
