/* =========================================================
   Vlad Tattoo — design tokens
   Concept: a flash sheet, but for the work he actually makes —
   black & grey realism, fine line, script lettering. Dark warm
   charcoal instead of cream paper, but the thick black linework
   stays (cards sit one shade lighter than the page so the black
   border still reads, same "stamped on paper" structural idea).
   Bone/parchment text, one cool steel accent. Rotated stamps and
   stickers, flat poster nav — no blur, no gloss.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Sacramento&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root{
  --bg:        #141210;
  --bg-alt:    #1c1a15;
  --card:      #211e19;
  --line-col:  #0b0a08;

  --text:      #ece5d8;
  --text-dim:  #b3aa9a;
  --muted:     #766f61;

  --steel:        #93a8b8;
  --steel-bright: #b3c4d0;
  --bronze:       #a8763f;

  --display: 'Cinzel', serif;
  --hand:    'Sacramento', cursive;
  --body:    'Nunito Sans', sans-serif;

  --container: 1180px;
  --line: 3px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
}
body.ready{ opacity: 1; transition: opacity .5s var(--ease); }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ margin:0; font-weight:400; }

::selection{ background: var(--steel); color: var(--line-col); }
:focus-visible{ outline: 3px solid var(--steel-bright); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .cursor-ring{ display:none !important; }
}

.container{ max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- paper grain ---------- */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- ticket-tag section label ---------- */
.tag-label{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--hand); font-size: 18px; color: var(--bg);
  background: var(--steel-bright);
  padding: 6px 16px 6px 14px;
  transform: rotate(-2deg);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%);
}

/* ---------- scroll progress ---------- */
.scroll-progress{
  position: fixed; top:0; left:0; height: 4px; width: 0%;
  background: repeating-linear-gradient(45deg, var(--steel) 0 10px, var(--bronze) 10px 20px);
  z-index: 100;
}

/* ---------- custom cursor (stamp ring) ---------- */
.cursor-ring{
  position: fixed; top:0; left:0; z-index: 9999; pointer-events:none;
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--text-dim);
  transform: translate(-50%,-50%);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s ease, border-color .2s ease;
}
.cursor-ring.hovered{ width: 48px; height: 48px; background: var(--steel); border-color: var(--steel-bright); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button{ cursor:none; }

/* ---------- header — flat poster bar, no blur, no float ---------- */
header.site{
  position: sticky; top:0; z-index: 95;
  background: var(--bg);
  border-bottom: var(--line) solid var(--line-col);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.wordmark{ display:flex; align-items:center; gap:10px; }
.wordmark .stamp{
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--line-col); background: var(--steel);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--display); font-weight:600; font-size: 15px; color: var(--line-col);
  transform: rotate(-8deg);
  transition: transform .3s var(--ease);
}
.wordmark:hover .stamp{ transform: rotate(4deg) scale(1.05); }
.wordmark span{
  font-family: var(--display); font-weight:600; font-size: 16px; color: var(--text); letter-spacing: .04em; text-transform: uppercase;
}

.nav-links{ display:flex; gap: 6px; font-family: var(--body); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.nav-links a{
  position:relative; padding: 8px 14px; color: var(--text-dim); display:inline-block;
  transition: transform .2s ease, color .2s ease;
}
.nav-links a::after{
  content:''; position:absolute; left:14px; right:14px; bottom:4px; height:3px; background: var(--steel);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover{ transform: rotate(-2deg); color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--text); }

.nav-right{ display:flex; align-items:center; gap: 14px; }
.lang-toggle.mobile-lang{ display:none; }
.lang-toggle{
  display:flex; border: 3px solid var(--line-col); overflow:hidden;
  font-family: var(--body); font-weight:800; font-size: 12px;
}
.lang-toggle button{
  background: var(--card); color: var(--muted); border:none; cursor:pointer;
  padding: 7px 12px; transition: all .2s ease;
}
.lang-toggle button.active{ background: var(--steel); color: var(--line-col); }
.lang-toggle button:not(.active):hover{ color: var(--text); }

.btn{
  font-family: var(--body); font-weight: 800; font-size: 13px; text-transform: uppercase;
  padding: 11px 22px;
  display: inline-flex; align-items:center; gap:8px;
  border: 3px solid var(--line-col); cursor:pointer; position:relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 4px 4px 0 var(--line-col);
}
.btn:hover{ transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--line-col); }
.btn:active{ transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--line-col); }
.btn-primary{ background: var(--steel); color: var(--line-col); }
.btn-ghost{ background: var(--card); color: var(--text); }

.menu-toggle{ display:none; background:none; border:none; color: var(--text); cursor:pointer; }

/* ---------- footer ---------- */
footer.site{ border-top: var(--line) solid var(--line-col); margin-top: 120px; padding: 48px 0 32px; background: var(--bg-alt); }
.footer-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-col h4{ font-family: var(--hand); font-size: 20px; color: var(--steel-bright); margin-bottom: 14px; transform: rotate(-1deg); display:inline-block; }
.footer-col a, .footer-col p{ color: var(--text-dim); font-size: 14px; margin: 0 0 8px; font-weight: 700; }
.footer-col a{ display:inline-block; transition: color .2s ease, transform .2s ease; }
.footer-col a:hover{ color: var(--steel-bright); transform: translateX(2px); }
.footer-bottom{
  margin-top: 36px; padding-top: 20px; border-top: 2px dashed var(--muted);
  display:flex; justify-content:space-between; align-items:center;
  font-family: var(--body); font-weight:700; font-size: 11px; color: var(--muted); letter-spacing:.03em;
}

/* ---------- sections ---------- */
main{ position:relative; z-index:1; }
.section{ padding: 100px 0; }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head h2{
  font-family: var(--display); font-weight:600;
  font-size: clamp(26px, 3.6vw, 40px);
  margin-top: 16px; color: var(--text); line-height: 1.25;
}
.section-head p{ color: var(--text-dim); margin-top: 14px; font-size: 16px; max-width: 520px; font-weight: 700; }

.reveal{
  opacity: 0; transform: translateY(28px) rotate(var(--rot, 0deg));
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.in{ opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }

/* ---------- hero: sticker collage ---------- */
.hero-section{ position:relative; overflow:hidden; padding-top: 60px; padding-bottom: 30px; }
.hero-inner{ max-width: 760px; position:relative; z-index:2; }
.hero-inner .tag-label{ margin-bottom: 18px; }
.hero-word{
  font-family: var(--display); font-weight:600;
  font-size: clamp(38px, 7.5vw, 82px);
  line-height: 1.12; color: var(--text); margin: 0 0 22px;
}
.hero-word em{ font-style:normal; color: var(--steel-bright); }
.hero-marker{
  font-family: var(--hand); font-size: clamp(26px, 3.2vw, 34px);
  color: var(--bronze); transform: rotate(-2deg); display:inline-block; margin-bottom: 18px;
}
.hero-sub{ font-size: 17px; color: var(--text-dim); max-width: 520px; margin-bottom: 30px; font-weight: 700; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 40px; }

.doodle{ position:absolute; z-index:1; opacity:0.5; pointer-events:none; }
.doodle svg{ width:100%; height:100%; }
@media (max-width: 760px){ .doodle{ display:none; } }

/* ---------- house-calls ribbon banner ---------- */
.ribbon{
  background: repeating-linear-gradient(-45deg, var(--line-col) 0 22px, #1a1815 22px 44px);
  color: var(--text); overflow:hidden; position:relative; z-index:1;
  border-top: var(--line) solid var(--line-col); border-bottom: var(--line) solid var(--line-col);
}
.ribbon-track{ display:flex; width:max-content; animation: ribbon-scroll 22s linear infinite; }
.ribbon:hover .ribbon-track{ animation-play-state: paused; }
.ribbon-item{
  font-family: var(--display); font-weight:600; font-size: 16px; letter-spacing:.03em;
  padding: 14px 30px; white-space: nowrap; display:flex; align-items:center; gap: 14px; color: var(--steel-bright);
}
@keyframes ribbon-scroll{ 0%{ transform: translateX(0); } 100%{ transform: translateX(-50%); } }

/* ---------- stamp badges (why-section) ---------- */
.badge-row{ display:flex; flex-wrap:wrap; gap: 30px; justify-content: flex-start; }
.stamp-badge{
  width: 220px; text-align:center;
  background: var(--card); border: 3px solid var(--line-col);
  border-radius: 50%; aspect-ratio: 1/1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding: 20px; position:relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stamp-badge:nth-child(1){ transform: rotate(-4deg); }
.stamp-badge:nth-child(2){ transform: rotate(3deg); }
.stamp-badge:nth-child(3){ transform: rotate(-3deg); }
.stamp-badge:hover{ transform: rotate(0deg) scale(1.04); box-shadow: 6px 6px 0 var(--line-col); }
.stamp-badge .num{ font-family: var(--hand); font-size: 20px; color: var(--bronze); }
.stamp-badge h3{ font-family: var(--display); font-weight:600; font-size: 14px; margin-top: 8px; color: var(--text); line-height:1.3; }
.stamp-badge p{ font-size: 12px; color: var(--text-dim); margin-top: 8px; font-weight:700; line-height:1.4; }

/* ---------- sticker gallery (portfolio wall) ---------- */
.sticker-wall{ display:grid; gap: 26px; margin-top: 44px; }
.sticker-wall.teaser{ grid-template-columns: repeat(4, 1fr); }
.sticker-wall.full{ grid-template-columns: repeat(3, 1fr); }
.gallery-link{ font-family: var(--hand); font-size: 20px; color: var(--steel-bright); white-space:nowrap; transform: rotate(-2deg); display:inline-block; }

.sticker{
  position:relative; aspect-ratio: 4/5;
  border: 3px solid var(--line-col); background: var(--card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), z-index 0s;
  overflow: hidden;
}
.sticker-wall.teaser .sticker:nth-child(1){ transform: rotate(-3deg); }
.sticker-wall.teaser .sticker:nth-child(2){ transform: rotate(2deg); }
.sticker-wall.teaser .sticker:nth-child(3){ transform: rotate(-2deg); }
.sticker-wall.teaser .sticker:nth-child(4){ transform: rotate(3deg); }
.sticker-wall.full .sticker:nth-child(3n+1){ transform: rotate(-3deg); }
.sticker-wall.full .sticker:nth-child(3n+2){ transform: rotate(2deg); }
.sticker-wall.full .sticker:nth-child(3n){ transform: rotate(-2deg); }
.sticker:hover{ transform: rotate(0deg) scale(1.05); box-shadow: 7px 7px 0 var(--line-col); z-index: 5; }
.sticker::before{ content:''; position:absolute; inset:0; }
.s1::before{ background: linear-gradient(155deg, #2a2722, #121110); }
.s2::before{ background: linear-gradient(155deg, #35322c, #16140f); }
.s3::before{ background: linear-gradient(155deg, #2e2a24, #141210); }
.s4::before{ background: linear-gradient(155deg, #3a352d, #18140f); }

.sticker-index{
  position:absolute; top:10px; left:12px; z-index:2;
  font-family: var(--hand); font-size: 17px; color: rgba(236,229,216,0.85);
}
.sticker figcaption{
  position:absolute; left:0; right:0; bottom:0; z-index:2; padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  display:flex; flex-direction:column; gap:2px;
}
.sticker figcaption .tag{ font-family: var(--display); font-weight:600; font-size: 13px; color: var(--steel-bright); }
.sticker figcaption .body{ font-size: 11.5px; color: rgba(236,229,216,0.75); font-weight:700; }
.gallery-note{
  margin-top: 34px; font-family: var(--hand); font-size: 19px; color: var(--muted);
  transform: rotate(-1deg); display:inline-block;
}

/* ---------- cta band ---------- */
.cta-band{ background: var(--bg-alt); color: var(--text); padding: 56px 0; position:relative; overflow:hidden; border-top: var(--line) solid var(--line-col); border-bottom: var(--line) solid var(--line-col); }
.cta-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; position:relative; z-index:1; }
.cta-inner h2{ font-family: var(--display); font-weight:600; font-size: 28px; color: var(--text); }
.cta-inner p{ color: var(--text-dim); margin-top:6px; font-weight:700; }
.cta-band .btn-primary{ background: var(--bronze); color: var(--line-col); }

/* ---------- generic page hero ---------- */
.page-hero{ padding-top: 54px; padding-bottom: 50px; }
.page-title{ font-family: var(--display); font-weight:600; font-size: clamp(34px, 6vw, 62px); color: var(--text); margin: 16px 0 16px; line-height:1.15; }
.page-sub{ color: var(--text-dim); max-width: 560px; font-size: 17px; font-weight:700; }

/* ---------- about page ---------- */
.about-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items:start; }
.about-portrait{
  aspect-ratio: 4/5; border: 3px solid var(--line-col);
  background: linear-gradient(155deg, #35322c, #1a1815 60%, #0e0d0b);
  position:relative; overflow:hidden; transform: rotate(-2deg);
}
.about-portrait::after{
  content:'VLAD'; position:absolute; bottom:18px; left:18px;
  font-family: var(--display); font-weight:600; font-size:20px; color: var(--steel-bright);
}
.approach-list{ margin-top: 30px; display:flex; flex-direction:column; gap:18px; }
.approach-item{ display:flex; gap:16px; align-items:flex-start; }
.approach-item .num{ font-family: var(--hand); font-size:20px; color: var(--bronze); padding-top:2px; }
.approach-item h4{ font-family: var(--display); font-weight:600; font-size:15px; color: var(--text); margin-bottom:4px; }
.approach-item p{ color: var(--text-dim); font-size: 14px; font-weight:700; }

/* ---------- contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items:start; }
.info-row{ padding: 20px 0; border-bottom: 2px dashed var(--muted); display:flex; flex-direction:column; gap:6px; transition: padding-left .25s var(--ease); }
.info-row:hover{ padding-left: 8px; }
.info-row:first-child{ padding-top:0; }
.info-label{ font-family: var(--hand); font-size: 19px; color: var(--steel-bright); transform: rotate(-1deg); display:inline-block; }
.info-value{ font-size: 19px; color: var(--text); font-weight: 800; transition: color .2s ease; }
a.info-value:hover{ color: var(--steel-bright); }

.contact-form{ background: var(--card); border: 3px solid var(--line-col); padding: 30px; box-shadow: 6px 6px 0 var(--line-col); }
.contact-form h3{ font-family: var(--display); font-weight:600; font-size: 20px; color: var(--text); margin-bottom: 22px; }
.contact-form label{
  display:flex; flex-direction:column; gap:8px; margin-bottom:18px;
  font-family: var(--body); font-weight:800; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color: var(--text-dim);
}
.contact-form input, .contact-form textarea{
  font-family: var(--body); font-weight:600; font-size:15px; color: var(--text);
  background: var(--bg); border: 2px solid var(--muted);
  padding: 12px 14px; resize: vertical; transition: box-shadow .2s ease, border-color .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus{ outline:none; border-color: var(--steel); box-shadow: 3px 3px 0 var(--steel); }
.contact-form button{ margin-top:4px; width:100%; justify-content:center; }
.contact-form button.sent{ background: #5a8a6f; color:#fff; }

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .nav-links{ display:none; }
  .menu-toggle{ display:block; }
  .nav-right > .lang-toggle{ display:none; }
  .nav-right > .btn-primary{ display:none; }
  .footer-grid{ grid-template-columns: 1fr; gap:28px; }
  .footer-bottom{ flex-direction:column; gap:10px; align-items:flex-start; }
  .badge-row{ justify-content:center; }
  .sticker-wall.teaser{ grid-template-columns: repeat(2,1fr); }
  .sticker-wall.full{ grid-template-columns: repeat(2,1fr); }
  .about-grid, .contact-grid{ grid-template-columns: 1fr; gap:32px; }
  .cta-inner{ flex-direction:column; align-items:flex-start; }
}

/* ---------- mobile menu overlay ---------- */
.mobile-menu-overlay{
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display:flex; flex-direction:column; justify-content:center;
  padding: 40px 32px;
  opacity:0; visibility:hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.mobile-menu-overlay.open{
  opacity:1; visibility:visible;
  transition: opacity .3s var(--ease), visibility 0s linear 0s;
}
.mobile-menu-links{ display:flex; flex-direction:column; width:100%; }
.mobile-menu-links a{
  font-family: var(--display); font-weight:600; font-size: 11vw; line-height:1.3; color: var(--text);
  padding: 10px 0; border-bottom: 2px dashed var(--muted);
}
.mobile-menu-links a.active{ color: var(--steel-bright); }
.mobile-menu-close{
  position:absolute; top:22px; right:24px;
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--steel); border: 3px solid var(--line-col); color: var(--line-col);
  cursor:pointer;
}
.mobile-menu-cta{ margin-top:26px; width:100%; justify-content:center; }
.mobile-menu-lang{ margin-top:14px; }
@media (min-width: 861px){ .mobile-menu-overlay{ display:none !important; } }

.menu-toggle svg line{
  transform-box: fill-box; transform-origin: center;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle.is-open svg line:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open svg line:nth-child(2){ opacity:0; }
.menu-toggle.is-open svg line:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 560px){
  .hero-ctas{ flex-direction:column; align-items:stretch; }
}
