/* =========================================================
   KDOOBLY — Tattoo & Art · Zürich
   Ink black + bone + a red needle. Paintings explode into pop.
   ========================================================= */

:root {
  --ink: #0b0b0a;
  --ink-2: #161614;
  --ink-3: #24231f;
  --bone: #efe9df;
  --bone-dim: #a39d93;
  --red: #ff4f6d;
  --rose: #ff8fa8;
  --pop-yellow: #ffd60a;
  --pop-blue: #2346ff;
  --pop-pink: #ff7ac8;
  --line: rgba(239, 233, 223, .14);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: var(--ink); }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.hidden { display: none; }

/* Film grain */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Custom cursor (desktop only) */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--red); mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
  display: grid; place-items: center; opacity: 0;
}
.cursor__label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--bone); mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(11, 11, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.nav__logo { font-weight: 800; font-size: 22px; letter-spacing: -.04em; text-decoration: none; }
.nav__logo span { color: var(--red); display: inline-block; margin-left: 2px; transition: transform .6s var(--ease); }
.nav__logo:hover span { transform: rotate(180deg); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 15px; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 9px 16px; border: 1px solid var(--bone); border-radius: 99px; transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--bone); color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang button { font-family: var(--f-mono); font-size: 11px; padding: 5px 8px; border-radius: 99px; color: var(--bone-dim); }
.lang button.is-active { background: var(--bone); color: var(--ink); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--bone); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--ink); clip-path: circle(0 at calc(100% - 40px) 36px);
    transition: clip-path .7s var(--ease);
  }
  .nav__links a { font-size: clamp(34px, 10vw, 56px); font-weight: 800; letter-spacing: -.03em; }
  .nav__links .nav__cta { font-size: 22px; font-weight: 500; letter-spacing: 0; margin-top: 10px; }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 40px) 36px); }
  .nav.is-open { background: transparent; backdrop-filter: none; border-color: transparent; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh; padding: 112px 0 0;
  display: grid; grid-template-rows: auto 1fr auto auto; grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.hero__top, .hero__title, .hero__row { padding-inline: var(--pad); }
.hero__top { display: flex; align-items: center; gap: 14px; color: var(--bone-dim); }
.hero__dot { color: var(--rose); }

/* Wordmark: one word, one weight. A pink needle-line draws itself underneath. */
.hero__title {
  position: relative; margin: 0; align-self: center;
  font-weight: 800; letter-spacing: -.07em; line-height: .82;
  font-size: clamp(84px, 21.5vw, 360px);
  padding-block: .04em .2em;
}
.hero__word {
  display: inline-flex; overflow: hidden; padding-bottom: .06em; padding-right: .04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--bone);
  transition: color .6s var(--ease), -webkit-text-stroke-color .6s var(--ease);
}
.hero__title:hover .hero__word { color: var(--red); -webkit-text-stroke-color: var(--red); }
.hero__word .ch { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
@keyframes rise { to { transform: translateY(0); } }
.hero__line {
  position: absolute; left: var(--pad); right: var(--pad); bottom: .02em;
  width: calc(100% - 2 * var(--pad)); height: .32em; overflow: visible; pointer-events: none;
}
.hero__line path {
  fill: none; stroke: var(--rose); stroke-width: 5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: needle 2.2s 1s cubic-bezier(.6, .05, .25, 1) forwards;
}
@keyframes needle { to { stroke-dashoffset: 0; } }

.hero__row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px); align-items: end; padding-bottom: clamp(32px, 4vw, 56px);
}
.hero__lead { max-width: 36ch; margin: 0; font-size: clamp(16px, 1.4vw, 19px); color: var(--bone-dim); }
.hero__lead em { color: var(--bone); font-size: 1.45em; display: block; line-height: 1.1; margin-bottom: 8px; }
.hero__cta { justify-self: end; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.facts li { display: grid; gap: 4px; border-left: 1px solid var(--line); padding-left: 14px; }
.facts strong { font-size: clamp(30px, 2.8vw, 44px); line-height: 1; color: var(--rose); font-weight: 400; }
.facts span { font-size: 13px; color: var(--bone-dim); line-height: 1.35; }

/* Film strip of real work, slowly drifting */
.hero__strip { display: block; overflow: hidden; border-block: 1px solid var(--line); padding-block: 14px; }
.hero__track { display: flex; gap: 14px; width: max-content; animation: drift 70s linear infinite; }
.hero__strip:hover .hero__track { animation-play-state: paused; }
.hero__track img {
  height: clamp(120px, 17vh, 190px); width: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 10px; filter: grayscale(1) contrast(1.05) brightness(.85);
  transition: filter .5s, transform .5s var(--ease);
}
.hero__track img:hover { filter: none; transform: translateY(-4px); }
@keyframes drift { to { transform: translateX(-50%); } }

@media (max-width: 1000px) {
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .hero__cta { justify-self: start; }
}
@media (max-width: 600px) {
  .hero { padding-top: 96px; }
  .hero__title { font-size: 23.5vw; letter-spacing: -.06em; }
  .facts strong { font-size: 30px; }
  .facts li { padding-left: 10px; }
}
/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 99px;
  font-weight: 500; font-size: 16px; text-decoration: none; transition: transform .3s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: rotate(45deg); }
.btn--light { background: var(--bone); color: var(--ink); }
.btn--light:hover { background: var(--red); }
.btn--accent { background: var(--red); color: var(--ink); }
.btn--accent:hover { background: var(--bone); }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--red); color: var(--ink); overflow: hidden; transform: rotate(-1.5deg) scale(1.02); margin-block: 34px 40px; }
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span { font-weight: 800; font-size: clamp(28px, 5vw, 64px); letter-spacing: -.03em; white-space: nowrap; padding: 10px 0; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTION BASICS ---------- */
section { padding: clamp(80px, 12vw, 160px) var(--pad); }
.eyebrow { color: var(--red); margin: 0 0 22px; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 1400px; margin-bottom: 40px; }
.section-title { font-size: clamp(40px, 7vw, 104px); line-height: .95; letter-spacing: -.045em; font-weight: 800; margin: 0 0 22px; }
.section-title em { font-weight: 400; letter-spacing: -.02em; }
.section-note { color: var(--bone-dim); max-width: 46ch; margin: 0; }

/* ---------- MANIFEST ---------- */
.manifest { max-width: 1400px; }
.manifest__text { font-size: clamp(28px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; margin: 0 0 36px; }
.manifest__text .w { color: rgba(239, 233, 223, .16); transition: color .5s; }
.manifest__text .w.is-on { color: var(--bone); }
.manifest__text .w.hl.is-on { color: var(--red); font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.manifest__sub { color: var(--bone-dim); max-width: 48ch; font-size: clamp(17px, 1.5vw, 20px); margin: 0 0 0 auto; }

/* ---------- TATTOO GRID ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 9px 15px; border: 1px solid var(--line); border-radius: 99px; color: var(--bone-dim); transition: all .3s; }
.chip:hover { border-color: var(--bone); color: var(--bone); }
.chip.is-active { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.grid { columns: 4 260px; column-gap: 14px; }
.tile {
  break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-2);
  cursor: pointer; transform: translateY(40px); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.tile.is-in { transform: none; opacity: 1; }
.tile.is-hidden { display: none; }
.tile img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.15); min-height: 120px; object-fit: cover; }
.tile:hover img { transform: scale(1.05); filter: none; }
.tile figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 10px;
  background: rgba(11, 11, 10, .75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  transform: translateY(130%); transition: transform .5s var(--ease);
}
.tile:hover figcaption, .tile:focus-visible figcaption { transform: none; }
.tile:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.work__more { margin-top: 36px; text-align: center; }
.link-arrow { font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 4px; }
.link-arrow:hover { color: var(--red); }

/* ---------- VALUES ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 0; padding-bottom: 0; }
.value { padding: 48px 28px 56px 0; border-right: 1px solid var(--line); }
.value + .value { padding-left: 28px; }
.value:last-child { border-right: 0; }
.value__num { color: var(--red); }
.value h3 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.04em; line-height: 1; margin: 18px 0 14px; font-weight: 800; }
.value p { color: var(--bone-dim); margin: 0; max-width: 30ch; }
@media (max-width: 820px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 34px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- ART (pop explosion) ---------- */
.art {
  background: var(--pop-yellow); color: var(--ink); margin-top: clamp(80px, 12vw, 160px);
  border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0; position: relative; overflow: hidden;
  padding-inline: 0;
}
.art::before {
  content: ""; position: absolute; width: 60vw; aspect-ratio: 1; right: -18vw; top: -20vw; border-radius: 50%;
  background: var(--pop-pink); opacity: .55; filter: blur(2px);
}
.art__head { padding-inline: var(--pad); position: relative; max-width: 1400px; }
.art .eyebrow { color: var(--pop-blue); }
.art__title { font-size: clamp(46px, 8.5vw, 132px); line-height: .9; letter-spacing: -.05em; margin: 0 0 22px; font-weight: 800; }
.art__title em { color: var(--pop-blue); }
.art__note { max-width: 44ch; margin: 0 0 40px; font-size: 18px; }
.art__rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 10px var(--pad) 30px; scroll-snap-type: x proximity;
  cursor: grab; scrollbar-width: none; position: relative; outline: none;
}
.art__rail::-webkit-scrollbar { display: none; }
.art__rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.art__rail.is-drag .piece { pointer-events: none; }
.piece { flex: none; width: clamp(220px, 26vw, 360px); scroll-snap-align: start; margin: 0; }
.piece:nth-child(3n+2) { margin-top: 50px; }
.piece:nth-child(3n) { margin-top: 18px; }
.piece__frame {
  border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--ink);
  box-shadow: 8px 8px 0 var(--ink); transition: transform .45s var(--ease), box-shadow .45s var(--ease); cursor: pointer;
}
.piece:hover .piece__frame { transform: translate(-4px, -4px) rotate(-1.2deg); box-shadow: 14px 14px 0 var(--pop-blue); }
.piece img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.piece figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; }
.piece__title { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.piece__ask { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid; white-space: nowrap; }
.piece__ask:hover { color: var(--pop-blue); }
.art__hint { text-align: center; padding-bottom: 60px; opacity: .6; }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1500px; }
.about__img { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.about__img.is-in img { transform: scale(1); }
.about__tag { position: absolute; left: 16px; bottom: 16px; background: var(--red); color: var(--ink); padding: 7px 12px; border-radius: 99px; }
.about__text p { color: var(--bone-dim); max-width: 56ch; }
.about__text p:first-of-type { color: var(--bone); font-size: 1.15em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 26px; }
.stats strong { display: block; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.04em; line-height: 1; color: var(--red); }
.stats span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--bone-dim); letter-spacing: .05em; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__img { aspect-ratio: 1; } }

/* ---------- PROCESS ---------- */
.process { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 26px; position: relative; overflow: hidden; transition: border-color .4s, transform .4s var(--ease); }
.steps li:hover { border-color: var(--red); transform: translateY(-6px); }
.steps__n { font-size: 80px; font-weight: 800; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--bone-dim); display: block; margin-bottom: 26px; }
.steps li:hover .steps__n { -webkit-text-stroke-color: var(--red); }
.steps h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--bone-dim); font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); background: var(--ink-2); border-radius: clamp(24px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 20px); }
.contact__title { font-size: clamp(38px, 5.4vw, 80px); line-height: .98; letter-spacing: -.045em; margin: 0 0 22px; font-weight: 800; }
.contact__title em { color: var(--red); font-weight: 400; }
.contact__intro > p:not(.eyebrow) { color: var(--bone-dim); max-width: 44ch; }
.contact__mail { display: inline-block; margin: 18px 0 22px; font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.02em; text-decoration: none; border-bottom: 2px solid var(--red); word-break: break-all; }
.contact__mail:hover { color: var(--red); }
.socials { display: flex; gap: 22px; }
.socials a { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; text-decoration: none; }
.socials a:hover { color: var(--red); }

.form { display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--bone-dim); }
.field input, .field textarea {
  font: inherit; color: var(--bone); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; outline: none; transition: border-color .3s; border-radius: 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.field input::placeholder { color: rgba(239, 233, 223, .3); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; transition: all .25s; font-size: 15px; }
.pills input:checked + span { background: var(--red); border-color: var(--red); color: var(--ink); }
.pills input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 2px; }
.file { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; cursor: pointer; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file__btn { padding: 11px 18px; border: 1px dashed var(--bone-dim); border-radius: 12px; transition: border-color .3s, color .3s; }
.file:hover .file__btn { border-color: var(--red); color: var(--red); }
.file__name { color: var(--bone-dim); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--bone-dim); cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__status { min-height: 1.4em; color: var(--red); margin: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer { padding: 60px var(--pad) 28px; overflow: hidden; }
.footer__big {
  font-weight: 800; letter-spacing: -.07em; line-height: .78; font-size: 23.5vw; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 233, 223, .25); user-select: none;
  transition: color .8s;
}
.footer:hover .footer__big { color: var(--red); -webkit-text-stroke-color: var(--red); }
.footer__row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 28px; color: var(--bone-dim); }
.footer__memory { color: var(--bone); }
.footer__link { font-family: inherit; font-size: inherit; text-transform: inherit; letter-spacing: inherit; color: var(--bone-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer__link:hover { color: var(--bone); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(11, 11, 10, .95);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 14px; height: 100%; align-content: center; min-width: 0; }
.lightbox__fig img { max-height: 82svh; max-width: 100%; width: auto; border-radius: 12px; transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox__fig img { transform: none; }
.lightbox__fig figcaption { color: var(--bone-dim); text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 22px; font-size: 22px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); }
.lightbox__nav { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; transition: background .3s, color .3s; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--bone); color: var(--ink); }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 70px 12px 90px; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__prev { left: calc(50% - 64px); } .lightbox__next { right: calc(50% - 64px); }
}

/* ---------- IMPRESSUM ---------- */
.impressum { max-width: 560px; width: calc(100% - 32px); background: var(--bone); color: var(--ink); border: 0; border-radius: 22px; padding: 34px; }
.impressum::backdrop { background: rgba(11, 11, 10, .7); backdrop-filter: blur(4px); }
.impressum h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.impressum p { margin: 0 0 22px; font-size: 15px; }
.impressum__close { position: absolute; top: 14px; right: 16px; font-size: 18px; color: var(--ink); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .grain { display: none; }
}

@media (max-width: 420px) { .lang button { padding: 5px 6px; font-size: 10px; } .nav__logo { font-size: 20px; } }

/* ---------- Gallery collapse ---------- */
.grid.is-collapsed .tile.is-more { display: none; }
.grid-toggle { position: relative; display: flex; justify-content: center; margin-top: 8px; }
.grid.is-collapsed + .grid-toggle::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 140px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 11, 10, 0), var(--ink) 92%);
}
.btn--ghost { border: 1px solid var(--line); color: var(--bone); background: transparent; }
.btn--ghost:hover { border-color: var(--bone); }
.btn--ghost svg { transition: transform .35s var(--ease); }
.btn--ghost:hover svg { transform: none; }
.btn--ghost[aria-expanded="true"] svg { transform: rotate(180deg); }
.grid-toggle__count { color: var(--bone-dim); }

/* ---------- Thank-you card ---------- */
.thanks {
  align-self: center; display: grid; gap: 14px; justify-items: start;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: var(--ink);
}
.thanks[hidden] { display: none; }
.thanks__mark { font-size: 34px; color: var(--rose); }
.thanks h3 { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.thanks p { margin: 0; color: var(--bone-dim); max-width: 40ch; }
.thanks .link-arrow { font-size: 18px; background: none; cursor: pointer; }
.grid-toggle[hidden], .form[hidden] { display: none; }
