/* KOVAL — Artem Kovalenko · Tattoo Artist Linz
   Identity: Big Shoulders Display + Inter
   Palette: charcoal #141416 / off-white #F0EDE6 / muted #7C7A85 / crimson #D7263D
   Archetype: stark modern ink-artist portfolio, gallery-forward */

:root {
  --charcoal: #141416;
  --charcoal-2: #1b1b1e;
  --charcoal-3: #232327;
  --offwhite: #F0EDE6;
  --muted: #7C7A85;
  --crimson: #D7263D;
  --line: rgba(240, 237, 230, 0.12);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--offwhite);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

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

h1, h2, h3 {
  font-family: "Big Shoulders Display", "Inter", sans-serif;
  margin: 0;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--crimson);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary {
  background: var(--crimson);
  color: #fff;
}
.btn-primary:hover { background: #b81e32; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--offwhite);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--offwhite); transform: translateY(-2px); }
.btn-lg { font-size: 1.25rem; padding: 1.05rem 2.4rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-chip {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--charcoal-3);
}
.brand-word {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--offwhite);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--crimson); }
.nav-cta {
  border: 1px solid var(--crimson);
  color: var(--crimson) !important;
  padding: 0.45rem 1rem;
  font-weight: 600;
}
.nav-cta:hover { background: var(--crimson); color: #fff !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--offwhite);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(2rem, 5vw, 4rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.lockup {
  font-weight: 900;
  font-size: clamp(3.5rem, 13vw, 9rem);
  margin: 0 0 1.4rem;
}
.lockup-line { display: block; }
.lockup-accent { color: var(--crimson); }
.hero-sub {
  max-width: 32ch;
  color: var(--offwhite);
  font-size: 1.12rem;
  margin: 0 0 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.hero-meta {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0;
}
.hero-frame {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  background: var(--charcoal-2);
  overflow: hidden;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(20,20,22,0.6);
  pointer-events: none;
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--charcoal-2);
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex;
  gap: 1.4rem;
  white-space: nowrap;
  width: max-content;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  color: var(--offwhite);
}
.marquee-track .dot { color: var(--crimson); }

/* ---------- About ---------- */
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about-portrait { margin: 0; position: relative; }
.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}
.about-portrait figcaption {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-copy h2 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.4rem;
}
.about-copy p { color: #d6d3cb; margin: 0 0 1.1rem; }
.about-copy strong { color: var(--offwhite); }
.creds {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.creds li {
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 8px; height: 8px;
  background: var(--crimson);
  transform: rotate(45deg);
}

/* ---------- Services ---------- */
.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 1.25rem clamp(3.5rem, 8vw, 6rem);
}
.services-head { margin-bottom: 2.6rem; }
.services-head h2 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--charcoal);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  transition: background 0.3s;
}
.service:hover { background: var(--charcoal-2); }
.service-no {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--crimson);
  letter-spacing: 0.1em;
}
.service h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0.6rem 0 0.7rem;
}
.service p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Gallery ---------- */
.gallery {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 1.25rem clamp(3.5rem, 8vw, 6rem);
}
.gallery-head { margin-bottom: 2.4rem; }
.gallery-head h2 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 800;
}
.gallery-note { color: var(--muted); margin: 0.6rem 0 0; font-size: 0.95rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
}
.gallery-item {
  margin: 0;
  padding: 0;
  border: none;
  background: var(--charcoal-2);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: block;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s;
  filter: grayscale(0.15) contrast(1.02);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,20,22,0.55));
  opacity: 0;
  transition: opacity 0.35s;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--charcoal-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem;
  text-align: center;
}
.contact-inner h2 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.3rem;
}
.contact-lead {
  color: #d6d3cb;
  max-width: 48ch;
  margin: 0 auto 2.2rem;
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin: 3rem 0 0;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.contact-meta dt {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact-meta dd {
  margin: 0;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}
.contact-meta a:hover { color: var(--crimson); }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 1.25rem 6rem; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.brand-footer { justify-content: center; margin-bottom: 1rem; }
.footer-tag { color: var(--offwhite); margin: 0 0 0.4rem; letter-spacing: 0.04em; }
.footer-small { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 11, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--line);
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--offwhite);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
}
.lightbox-close:hover { color: var(--crimson); }

/* ---------- Sticky DM bar (mobile) ---------- */
.dm-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--crimson);
  color: #fff;
  text-align: center;
  padding: 0.95rem 1rem;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}
.dm-bar-icon { margin-right: 0.4rem; }

/* ---------- Entrance animation (reduced-motion safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); }
  .loaded .reveal { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .marquee-track { animation: scroll-x 26s linear infinite; }
  @keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-frame { max-width: 420px; }
  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 440px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { padding-bottom: 56px; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.6rem; border-bottom: none !important; }
  .dm-bar { display: block; }
}

@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-meta { gap: 1.5rem; }
}
