:root {
  --bg: #070707;
  --surface: #101010;
  --card: #161616;
  --text: #ece8e4;
  --muted: #7a7578;
  --accent: #ff4d8d;
  --accent-dark: #e0357a;
  --accent-glow: rgba(255, 77, 141, 0.35);
  --accent-soft: rgba(255, 77, 141, 0.12);
  --border: rgba(236, 232, 228, 0.08);
  --sigil: "UnifrakturMaguntia", "Cinzel Decorative", Georgia, serif;
  --display: "Cinzel Decorative", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); overflow-x: hidden; }
body.has-cursor { cursor: none; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }

.cursor-dot, .cursor-ring {
  position: fixed; pointer-events: none; z-index: 9999; border-radius: 50%;
  transform: translate(-50%, -50%); transition: width 0.3s var(--ease), height 0.3s var(--ease);
  display: none;
}
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { display: block; }
.cursor-dot { width: 5px; height: 5px; background: var(--accent); }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(255, 77, 141, 0.45); }
.cursor-ring.hover { width: 56px; height: 56px; background: rgba(255, 77, 141, 0.07); border-color: var(--accent); }

/* ── Loader ── */
.loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-content { position: relative; z-index: 2; text-align: center; }
.loader-sigil { width: 140px; height: 140px; margin: 0 auto 1.5rem; }
.sigil-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.5;
  stroke-dasharray: 553; stroke-dashoffset: 553; animation: sigilDraw 2s var(--ease) forwards; }
.sigil-ring--inner { stroke-dasharray: 452; stroke-dashoffset: 452; animation-delay: 0.2s; }
.sigil-spike { fill: none; stroke: var(--accent); stroke-width: 0.8; opacity: 0;
  animation: sigilFade 0.6s var(--ease) forwards; }
.sigil-spike:nth-child(3) { animation-delay: 0.6s; }
.sigil-spike:nth-child(4) { animation-delay: 0.75s; }
.sigil-spike:nth-child(5) { animation-delay: 0.9s; }
.sigil-spike:nth-child(6) { animation-delay: 1.05s; }
@keyframes sigilDraw { to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes sigilFade { to { opacity: 0.7; } }

.loader-title { display: flex; gap: 0.35em; justify-content: center; margin-bottom: 1.8rem; }
.loader-letter {
  font-family: var(--sigil); font-size: 2.4rem; font-weight: 400; letter-spacing: 0.1em;
  color: var(--text); opacity: 0; transform: translateY(12px);
  animation: letterIn 0.5s var(--ease) forwards;
}
.loader-letter:nth-child(1) { animation-delay: 0.3s; }
.loader-letter:nth-child(2) { animation-delay: 0.42s; }
.loader-letter:nth-child(3) { animation-delay: 0.54s; }
.loader-letter:nth-child(4) { animation-delay: 0.66s; color: var(--accent); }
.loader-letter:nth-child(5) { animation-delay: 0.78s; }
@keyframes letterIn { to { opacity: 1; transform: none; } }

.loader-bar { width: 160px; height: 2px; background: rgba(255,255,255,0.08); margin: 0 auto 0.8rem; border-radius: 2px; overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); box-shadow: 0 0 12px var(--accent-glow); transition: width 0.1s linear; }
.loader-tag { font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); }
.loader-needle { position: fixed; width: 26px; height: 80px; z-index: 3; pointer-events: none; opacity: 0; filter: drop-shadow(0 0 6px var(--accent-glow)); }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem; transition: background 0.4s, padding 0.4s var(--ease);
}
.nav.scrolled { background: rgba(7,7,7,0.92); backdrop-filter: blur(18px); padding: 1rem 4rem; border-bottom: 1px solid var(--border); }
.logo { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.25em; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; position: relative; }
.nav-links a::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-btn { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.7rem 1.4rem; border: 1px solid var(--accent); color: var(--accent); transition: all 0.35s var(--ease); }
.nav-btn:hover { background: var(--accent); color: var(--bg); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--text); }

/* ── Hero split layout ── */
.hero {
  position: relative; min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden;
}
.hero-stage { position: absolute; inset: 0; z-index: 0; }
#tattooCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7,7,7,0.95) 38%, rgba(7,7,7,0.4) 58%, transparent 75%),
    radial-gradient(ellipse at 72% 50%, transparent 20%, rgba(7,7,7,0.5) 70%);
}
.hero-panel {
  position: relative; z-index: 2; padding: 0 4rem;
  display: flex; align-items: center; min-height: 100vh;
}
.hero-inner { max-width: 520px; }
.hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem; }
.hero-title { line-height: 1; margin-bottom: 1.6rem; position: relative; }
.hero-deco {
  display: block; width: 44px; height: 44px; margin-bottom: 1.2rem;
  border: 1px solid rgba(255,77,141,0.35); border-radius: 50%; position: relative;
}
.hero-deco::before, .hero-deco::after {
  content: ""; position: absolute; background: var(--accent); opacity: 0.55;
}
.hero-deco::before { top: 50%; left: -24px; width: 20px; height: 1px; transform: translateY(-50%); }
.hero-deco::after {
  top: 50%; left: 50%; width: 1px; height: 12px;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 8px var(--accent-glow);
}
.hero-brand {
  display: block; font-family: var(--sigil); font-size: clamp(3.2rem, 10vw, 7rem);
  font-weight: 400; letter-spacing: 0.1em; color: var(--text); line-height: 0.95;
  text-shadow: 0 0 50px rgba(255,77,141,0.1);
}
.hero-brand em { font-style: normal; color: var(--accent); text-shadow: 0 0 24px var(--accent-glow); }
.hero-sub { font-size: 0.9rem; line-height: 1.85; color: var(--muted); margin-bottom: 2.2rem; font-weight: 300; }
.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-needle { position: absolute; width: 28px; height: 90px; z-index: 3; pointer-events: none; opacity: 0; filter: drop-shadow(0 0 6px var(--accent-glow)); transition: opacity 0.2s; }
.hero-needle.on { opacity: 1; }
.hero-needle svg { width: 100%; height: 100%; }
.needle-tip { animation: tip 0.12s ease-in-out infinite alternate; }
@keyframes tip { to { fill: #ff80b0; } }

.ink-drips { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.drip { position: absolute; width: 2px; background: linear-gradient(var(--accent), transparent); border-radius: 0 0 50% 50%; animation: drip 4s ease-in-out infinite; opacity: 0; }
@keyframes drip { 10% { opacity: 0.45; height: 0; } 100% { height: 90px; opacity: 0; transform: translateY(160px); } }

.scroll-hint { position: absolute; bottom: 2.5rem; left: 4rem; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; z-index: 2; }
.scroll-hint span { font-size: 0.55rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 50% { transform: scaleY(0.4); opacity: 0.4; } }

.btn { display: inline-flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.95rem 1.8rem; border: none; cursor: pointer; transition: all 0.35s var(--ease); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.show { opacity: 1; transform: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 2; background: var(--bg); }
.stat { padding: 2.8rem 1.5rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 400; color: var(--accent); line-height: 1; margin-bottom: 0.4rem; }
.stat span { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.tag { display: block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.1; margin-bottom: 1.5rem; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding: 7rem 4rem; align-items: center; }
.about-frame { aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 30% 20%, var(--accent-soft), transparent 55%), linear-gradient(135deg, #1a1a1a, #0c0c0c); }
.about-monogram { font-family: var(--display); font-size: 11rem; font-weight: 400; color: rgba(236,232,228,0.04); user-select: none; }
.about-border { position: absolute; top: -16px; right: -16px; width: 100%; height: 100%; border: 1px solid var(--accent); opacity: 0.25; pointer-events: none; }
.about-img { position: relative; }
.about-text p { font-size: 0.88rem; line-height: 1.85; color: var(--muted); margin-bottom: 1.2rem; font-weight: 300; }
.tags-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin-top: 1.5rem; }
.tags-list li { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.55rem 1rem; border: 1px solid var(--border); transition: all 0.3s; }
.tags-list li:hover { border-color: var(--accent); color: var(--accent); }

.gallery { padding: 7rem 4rem; background: var(--surface); }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: pointer; }
.card-art { width: 100%; height: 100%; background: radial-gradient(ellipse at 50% 30%, hsla(var(--h), 50%, 45%, 0.25), transparent 60%), linear-gradient(160deg, #1c1c1c, #101010); transition: transform 0.7s var(--ease); }
.card-art::before { content: ""; position: absolute; inset: 22%; border: 1px solid rgba(255,77,141,0.1); border-radius: 50%; transition: inset 0.5s var(--ease); }
.card:hover .card-art { transform: scale(1.06); }
.card:hover .card-art::before { inset: 16%; border-color: rgba(255,77,141,0.3); }
.card-info { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(7,7,7,0.95)); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; opacity: 0; transform: translateY(8px); transition: all 0.45s var(--ease); }
.card:hover .card-info { opacity: 1; transform: none; }
.card-info small { font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.card-info h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 400; }

.process { padding: 7rem 4rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { padding: 2rem 1.6rem; border: 1px solid var(--border); position: relative; overflow: hidden; transition: background 0.35s, border-color 0.35s; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.step:hover { background: var(--surface); border-color: rgba(255,77,141,0.2); }
.step:hover::before { transform: scaleX(1); }
.step-num { font-family: var(--display); font-size: 2.4rem; font-weight: 400; color: rgba(255,77,141,0.15); display: block; margin-bottom: 1rem; }
.step h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 0.7rem; }
.step p { font-size: 0.82rem; line-height: 1.75; color: var(--muted); font-weight: 300; }

.contact { padding: 7rem 4rem; background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; max-width: 1200px; margin: 0 auto; }
.contact-left p { font-size: 0.88rem; line-height: 1.8; color: var(--muted); margin-bottom: 2rem; font-weight: 300; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-list a, .contact-list li { font-size: 0.88rem; color: var(--muted); transition: color 0.3s; }
.contact-list a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.field { position: relative; }
.field input, .field textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border); padding: 0.9rem 0; font-family: var(--sans); font-size: 0.88rem; color: var(--text); outline: none; resize: none; transition: border-color 0.3s; }
.field label { position: absolute; left: 0; top: 0.9rem; font-size: 0.78rem; color: var(--muted); pointer-events: none; transition: all 0.3s var(--ease); }
.field input:focus, .field textarea:focus, .field input:not(:placeholder-shown), .field textarea:not(:placeholder-shown) { border-color: var(--accent); }
.field input:focus + label, .field textarea:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { top: -0.4rem; font-size: 0.58rem; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }

.footer { padding: 2.5rem 4rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.footer p { font-size: 0.72rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .nav { padding: 1.2rem 2rem; }
  .nav.scrolled { padding: 0.9rem 2rem; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-panel {
    padding: 7rem 2rem 5rem;
    min-height: auto;
    width: 100%;
    justify-content: flex-end;
  }
  .hero-inner { max-width: 100%; text-align: center; margin: 0 auto; }
  .hero-deco { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(7,7,7,0.55) 0%, rgba(7,7,7,0.88) 45%, var(--bg) 78%),
      radial-gradient(ellipse at 50% 28%, transparent 0%, rgba(7,7,7,0.6) 55%);
  }
  .hero-needle { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; padding: 5rem 2rem; }
  .gallery { padding: 5rem 2rem; }
  .gallery-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .process { padding: 5rem 2rem; }
  .scroll-hint { left: 50%; right: auto; transform: translateX(-50%); bottom: 1.5rem; }
}
@media (max-width: 768px) {
  .nav {
    padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  .nav.scrolled { padding-top: max(0.75rem, env(safe-area-inset-top)); }
  .logo { font-size: 1.1rem; letter-spacing: 0.2em; }
  .nav-links, .nav-btn { display: none; }
  .menu-btn { display: flex; z-index: 101; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: fixed; inset: 0;
    background: rgba(7,7,7,0.98); backdrop-filter: blur(12px);
    align-items: center; justify-content: center; gap: 2rem; z-index: 99;
  }
  .nav.open .nav-links a { font-size: 0.85rem; }
  .nav.open .nav-btn {
    display: inline-flex; position: fixed; bottom: 3rem; left: 50%;
    transform: translateX(-50%); z-index: 100;
  }
  .hero-panel {
    padding: 6.5rem max(1.25rem, env(safe-area-inset-left)) max(4.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-right));
  }
  .hero-eyebrow { font-size: 0.55rem; letter-spacing: 0.28em; margin-bottom: 1.2rem; }
  .hero-brand { font-size: clamp(2.6rem, 16vw, 4.2rem); letter-spacing: 0.06em; }
  .hero-deco { width: 36px; height: 36px; margin-bottom: 1rem; }
  .hero-deco::before { left: -18px; width: 14px; }
  .hero-sub { font-size: 0.82rem; line-height: 1.75; margin-bottom: 1.8rem; padding: 0 0.25rem; }
  .hero-btns { flex-direction: column; width: 100%; gap: 0.65rem; }
  .hero-btns .btn { width: 100%; padding: 1rem 1.5rem; }
  .scroll-hint { bottom: 1rem; }
  .scroll-line { height: 36px; }
  .gallery-grid, .steps { grid-template-columns: 1fr; }
  .stat { padding: 2rem 1rem; }
  .stat strong { font-size: 2.2rem; }
  .about-monogram { font-size: 7rem; }
  .about-border { top: -10px; right: -10px; }
  .footer { flex-direction: column; gap: 1.2rem; text-align: center; padding: 2rem 1.25rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
  .loader-sigil { width: 110px; height: 110px; }
  .loader-letter { font-size: 2rem; }
  .loader-bar { width: 130px; }
  .ink-drips { display: none; }
  .loader-needle { display: none; }
}
@media (max-width: 380px) {
  .hero-brand { font-size: 2.4rem; }
  .hero-panel { padding-left: 1rem; padding-right: 1rem; }
}
