/* Alex Rafailovič — portfolio
   Palette: espresso / crema / amber. Fonts: Bodoni Moda (display), Jost (body), Caveat (margin notes), Courier Prime (the CV sheet). */

:root {
  --espresso: #110d0a;
  --roast: #1b1410;
  --roast-2: #241b15;
  --crema: #efe3c8;
  --crema-dim: #b9a98a;
  --paper: #f4ecd9;
  --paper-2: #ece2cb;
  --ink: #241b14;
  --ink-soft: #6b5a48;
  --amber: #d19a3d;
  --amber-deep: #8f6222;
  --pen: #b3382f;
  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --body: 'Jost', 'Futura', 'Helvetica Neue', sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --mono: 'Courier Prime', 'Courier New', monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-weight: 300;
  background: var(--espresso);
  color: var(--crema);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
strong { font-weight: 500; color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; color: #fff; }
h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; margin-bottom: 1.2rem; }
h2 em, h1 em, h3 em { font-style: italic; color: var(--amber); }

.eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.7em;
}
.eyebrow--center { justify-content: center; text-align: center; }
.eyebrow .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--amber-deep); display: inline-block; }

.hand { font-family: var(--hand); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--amber); }
.hand--inline { display: inline; margin-left: .3em; }
.hand--note { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.7em; border: 1px solid var(--amber); border-radius: 999px;
  font-family: var(--body); font-weight: 400; font-size: .95rem; letter-spacing: .04em; text-decoration: none;
  transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s;
}
.btn--solid { background: var(--amber); color: var(--espresso); }
.btn--solid:hover { background: #e4b054; box-shadow: 0 10px 40px -10px rgba(209, 154, 61, .6); transform: translateY(-2px); }
.btn--ghost { color: var(--crema); border-color: rgba(239, 227, 200, .3); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn--big { font-size: 1.1rem; padding: 1.05em 2.2em; }

/* ---------- cursor + toast ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%;
    background: var(--amber); pointer-events: none; z-index: 9999; mix-blend-mode: screen;
    transform: translate(-50%, -50%); transition: width .2s, height .2s, opacity .3s; opacity: 0;
  }
  body.has-cursor .cursor { opacity: .9; }
  body.cursor-hover .cursor { width: 34px; height: 34px; opacity: .45; }
}
.spark { position: fixed; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); pointer-events: none; z-index: 9998;
  animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 9000;
  background: var(--crema); color: var(--ink); padding: .8em 1.3em; border-radius: 12px; max-width: min(92vw, 420px);
  font-weight: 400; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.is-scrolled { background: rgba(17, 13, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(209,154,61,.12); }
.nav__brand { font-family: var(--display); font-size: 1.5rem; color: #fff; text-decoration: none; letter-spacing: .02em; }
.nav__brand em { color: var(--amber); }
.nav__links { display: flex; gap: 1.6em; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.nav__links a { text-decoration: none; color: var(--crema-dim); transition: color .3s; }
.nav__links a:hover { color: var(--amber); }
.nav__cta { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: .55em 1.1em; border: 1px solid var(--amber); border-radius: 999px; color: var(--amber); transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--amber); color: var(--espresso); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: 110px var(--gutter) 60px; position: relative;
  background: radial-gradient(ellipse 70% 60% at 75% 40%, rgba(209,154,61,.14), transparent 60%), var(--espresso);
}
.hero__name { font-size: clamp(3.2rem, 9vw, 7.2rem); letter-spacing: -0.02em; margin: .2em 0 .35em; }
.hero__name em { display: block; }
.hero__tag { font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 30ch; color: var(--crema); }
.hero__greeting { margin-top: 1.1rem; color: var(--crema-dim); font-size: .95rem; min-height: 1.6em; }
.hero__greeting b { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--amber); font-size: 1.15em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero__portrait { justify-self: end; width: min(100%, 420px); perspective: 1200px; margin: 0; }
.hero__frame {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px;
  transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(209,154,61,.25);
}
.hero__frame::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(239,227,200,.25); pointer-events: none; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.hero__img--b { opacity: 0; transform: scale(1.06); }
.hero__portrait.is-alt .hero__img--b { opacity: 1; transform: scale(1); }
.hero__portrait.is-alt .hero__img--a { opacity: 0; }
.hero__portrait figcaption { text-align: right; margin-top: .6rem; opacity: .85; }
.hero__portrait figcaption .hand { font-size: 1.15rem; }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px; background: rgba(239,227,200,.15); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--amber); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0% { top: -100%; } 60%, 100% { top: 100%; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; text-align: left; }
  .hero__portrait { justify-self: start; width: min(100%, 360px); order: -1; }
  .hero__name { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero__scroll { display: none; }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid rgba(209,154,61,.18); border-bottom: 1px solid rgba(209,154,61,.18); padding: 12px 0; background: var(--roast); }
.ticker__track { display: flex; gap: 2.2em; white-space: nowrap; width: max-content; animation: ticker 38s linear infinite;
  font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--crema-dim); }
.ticker__track i { color: var(--amber); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- profil ---------- */
.profil { padding: clamp(70px, 10vw, 140px) var(--gutter); }
.profil__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); max-width: 1180px; margin: 0 auto; align-items: center; }
.profil__photo { position: relative; }
.profil__photo img { border-radius: 4px; filter: grayscale(1) contrast(1.05); cursor: zoom-in; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); transition: filter .6s; }
.profil__photo:hover img { filter: grayscale(.6) contrast(1.05); }
.profil__note { position: absolute; right: -8px; bottom: -34px; transform: rotate(-3deg); text-align: right; font-size: 1.25rem; }
.values { margin-top: 2rem; display: grid; gap: 1.6rem; }
.values dt { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--amber); margin-bottom: .25rem; }
.values dd { color: var(--crema); max-width: 52ch; }
@media (max-width: 860px) {
  .profil__grid { grid-template-columns: 1fr; }
  .profil__photo { max-width: 420px; }
  .profil__note { right: 0; bottom: -40px; }
  .profil__text { margin-top: 3rem; }
}

/* ---------- CV sheet (signature) ---------- */
.cv { padding: clamp(70px, 10vw, 140px) var(--gutter); background: linear-gradient(180deg, var(--espresso), var(--roast) 40%, var(--espresso)); }
.cv__title { text-align: center; }
.cv__hint { text-align: center; color: var(--crema-dim); margin-bottom: 3rem; }

.sheet {
  position: relative; max-width: 780px; margin: 0 auto; background: var(--paper); color: var(--ink);
  font-family: var(--mono); padding: clamp(28px, 5vw, 64px); border-radius: 2px;
  box-shadow: 0 60px 100px -40px rgba(0,0,0,.9), 0 2px 0 rgba(255,255,255,.4) inset;
  transform: rotate(-.4deg);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(36,27,20,.05) 31px 32px);
}
.sheet::before { content: ''; position: absolute; left: 40px; top: 0; bottom: 0; width: 1px; background: rgba(179,56,47,.35); }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.sheet__head h3 { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.sheet__head p { font-size: .9rem; color: var(--ink-soft); }
.sheet__meta { font-size: .78rem !important; }
.sheet__h { font-family: var(--mono); font-weight: 700; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--ink-soft); margin: 2rem 0 .6rem; }
.sheet__p { font-size: .95rem; }
.sheet .hand { color: var(--pen); }

.rows { list-style: none; }
.row { position: relative; border-top: 1px dashed rgba(36,27,20,.2); cursor: pointer; transition: background .3s; }
.row:last-child { border-bottom: 1px dashed rgba(36,27,20,.2); }
.row__front { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1.5rem; padding: .85rem .4rem; align-items: center; font-size: .95rem; }
.row__k { font-weight: 700; }
.row__v { color: var(--ink-soft); font-size: .85rem; text-align: right; }
.row__back { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); padding: 0 .4rem; }
.row__back::before { content: ''; grid-row: 1; }
.row.is-open .row__back { grid-template-rows: 1fr; padding-bottom: .9rem; }
.row__back { overflow: hidden; transform: rotate(-.6deg); }
.row:hover { background: rgba(209,154,61,.08); }
.row.is-open { background: rgba(179,56,47,.05); }
.row::after { content: '+'; position: absolute; right: -1.6rem; top: .8rem; font-weight: 700; color: rgba(36,27,20,.25); transition: transform .3s; }
.row.is-open::after { transform: rotate(45deg); color: var(--pen); }
@media (max-width: 600px) {
  .row::after { display: none; }
  .row__front { grid-template-columns: 1fr; gap: .15rem; }
  .row__v { text-align: left; }
  .rows--skills .row__front { grid-template-columns: 1fr auto; gap: .3rem .8rem; }
  .rows--skills .row__k { grid-column: 1; }
  .rows--skills .row__v { grid-column: 2; text-align: right; }
  .rows--skills .bar { grid-column: 1 / -1; }
  .sheet .stamp { top: auto; bottom: 22px; right: 18px; }
  .sheet { transform: none; }
}

.rows--skills .row__front { grid-template-columns: 10.5rem 1fr auto; }
@media (max-width: 520px) { .rows--skills .row__front { grid-template-columns: 1fr auto; } .rows--skills .bar { grid-column: 1 / -1; } }
.bar { height: 6px; background: rgba(36,27,20,.1); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 1.2s var(--ease); }
.sheet.is-in .bar i { width: var(--p); }

.stamp {
  position: absolute; right: clamp(16px, 5vw, 48px); top: clamp(16px, 5vw, 40px); padding: .35em .8em;
  border: 3px double var(--pen); color: var(--pen); font-family: var(--mono); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .9rem;
  transform: rotate(12deg) scale(2.2); opacity: 0; mix-blend-mode: multiply; pointer-events: none;
  transition: transform .5s cubic-bezier(.2, 1.4, .4, 1), opacity .3s;
}
.sheet.is-in .stamp { transform: rotate(-8deg) scale(1); opacity: .85; transition-delay: .9s; }

/* ---------- Alain ---------- */
.alain { padding: clamp(70px, 10vw, 140px) var(--gutter); background: var(--roast-2); }
.alain__intro { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.alain__intro .eyebrow { justify-content: center; }
.alain__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1100px; margin: 0 auto 4rem; }
.alain__gallery figure { margin: 0; }
.alain__gallery img { border-radius: 4px; cursor: zoom-in; transition: transform .6s var(--ease), filter .6s; filter: brightness(.85); }
.alain__gallery img:hover { transform: scale(1.02); filter: brightness(1); }
.alain__gallery figcaption { font-family: var(--display); font-style: italic; color: var(--crema-dim); margin-top: .6rem; font-size: .95rem; }
@media (max-width: 700px) { .alain__gallery { grid-template-columns: 1fr; } }

.invite { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); max-width: 1000px; margin: 0 auto; align-items: start; }
.invite h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .5rem; }
.invite__lead { color: var(--crema-dim); margin-bottom: 1.5rem; }
.invite fieldset { border: 0; margin-bottom: 1.2rem; }
.invite legend { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--crema-dim); margin-bottom: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .5em 1em; border: 1px solid rgba(239,227,200,.25); border-radius: 999px; font-size: .9rem; color: var(--crema); transition: all .25s; }
.chip:hover { border-color: var(--amber); }
.chip.is-on { background: var(--amber); color: var(--espresso); border-color: var(--amber); font-weight: 400; }
.invite__aside { min-height: 2em; margin-top: .5rem; }

.ticket {
  background: var(--paper); color: var(--ink); border-radius: 10px; padding: 26px 28px; position: relative; transform: rotate(1deg);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.9);
  -webkit-mask: radial-gradient(circle at 0 62%, transparent 11px, #000 12px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 62%, transparent 11px, #000 12px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 62%, transparent 11px, #000 12px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 62%, transparent 11px, #000 12px) right / 51% 100% no-repeat;
}
.ticket__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.ticket__title { font-family: var(--display); font-style: italic; font-size: 2rem; margin: .5rem 0 1rem; color: var(--ink); }
.ticket__body { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; border-top: 1px dashed rgba(36,27,20,.3); border-bottom: 1px dashed rgba(36,27,20,.3); padding: 1rem 0; }
.ticket__body dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.ticket__body dd { font-weight: 400; font-size: 1.05rem; }
.ticket__foot { text-align: right; color: var(--pen); margin: .8rem 0 1.2rem; font-size: 1.2rem; }
.ticket__send { width: 100%; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ticket__send:hover { background: #3a2c22; box-shadow: none; }
.ticket__small { font-size: .75rem; color: var(--ink-soft); text-align: center; margin-top: .6rem; }
@media (max-width: 820px) { .invite { grid-template-columns: 1fr; } .ticket { transform: none; max-width: 460px; } }

/* ---------- zájmy ---------- */
.zajmy { padding: clamp(70px, 10vw, 140px) var(--gutter); }
.zajmy__hint { text-align: center; color: var(--crema-dim); margin-bottom: 3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.card { position: relative; aspect-ratio: 4 / 3; perspective: 1000px; text-align: left; }
.card__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; padding: 22px;
  border-radius: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .7s var(--ease);
}
.card__front { background: var(--roast); border: 1px solid rgba(209,154,61,.15); }
.card__back { background: var(--paper); color: var(--ink); transform: rotateY(180deg); justify-content: center; }
.card__back .hand { color: var(--pen); font-size: 1.5rem; }
.card.is-flipped .card__front { transform: rotateY(180deg); }
.card.is-flipped .card__back { transform: rotateY(360deg); }
.card__icon { font-size: 1.8rem; margin-bottom: auto; }
.card__t { font-family: var(--display); font-size: 1.5rem; color: #fff; }
.card__s { color: var(--crema-dim); font-size: .9rem; }
.card:hover .card__front { border-color: var(--amber); }
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__face { padding: 14px; }
  .card__icon { font-size: 1.4rem; }
  .card__t { font-size: 1.2rem; }
  .card__s { font-size: .78rem; }
  .card__back .hand { font-size: 1.2rem; }
}

/* ---------- test ---------- */
.test { padding: clamp(70px, 10vw, 140px) var(--gutter); background: var(--roast); }
.test__box { max-width: 640px; margin: 0 auto; }
.test__lead { color: var(--crema-dim); margin-bottom: 2rem; }
.quiz__progress { height: 2px; background: rgba(239,227,200,.12); margin-bottom: 2rem; }
.quiz__progress i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .5s var(--ease); }
.q { animation: qin .5s var(--ease); }
@keyframes qin { from { opacity: 0; transform: translateY(12px); } }
.q__n { font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; color: var(--amber); margin-bottom: .6rem; }
.q__t { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; margin-bottom: 1.4rem; line-height: 1.2; }
.q__opts { display: grid; gap: 10px; }
.opt { text-align: left; padding: 1em 1.2em; border: 1px solid rgba(239,227,200,.18); border-radius: 10px; transition: all .25s; display: flex; align-items: center; gap: .9em; }
.opt::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--amber-deep); flex: none; transition: background .2s; }
.opt:hover { border-color: var(--amber); background: rgba(209,154,61,.06); transform: translateX(4px); }
.opt:hover::before { background: var(--amber); }
.result { text-align: center; animation: qin .6s var(--ease); }
.result__label { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--crema-dim); }
.result__num { font-family: var(--display); font-style: italic; font-size: clamp(5rem, 15vw, 8rem); line-height: 1; color: var(--amber); }
.result__num small { font-size: .35em; color: var(--crema-dim); margin-left: .1em; }
.result__text { font-size: 1.1rem; max-width: 40ch; margin: .5rem auto 1rem; color: var(--crema); }
.result__note { font-size: 1.2rem; margin-bottom: 1.6rem; }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- games ---------- */
.games { padding: clamp(70px, 10vw, 140px) var(--gutter); }
.games__hint { text-align: center; color: var(--crema-dim); margin-bottom: 3rem; }
.games__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 820px) { .games__grid { grid-template-columns: 1fr; } }
.game__head h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.game__head p { color: var(--crema-dim); font-size: .95rem; }
.game__stats { display: flex; gap: 1.6em; margin: 1rem 0 .8rem; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--crema-dim); }
.game__stats b { color: var(--amber); font-family: var(--display); font-size: 1.3rem; letter-spacing: 0; margin-left: .3em; }
.arena { position: relative; height: 340px; background: var(--roast); border: 1px solid rgba(209,154,61,.25); border-radius: 6px; overflow: hidden; touch-action: none; user-select: none; }
.arena__start { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-size: 2rem; color: var(--amber); background: rgba(17,13,10,.55); backdrop-filter: blur(2px); z-index: 5; }
.arena__start:hover { color: #fff; }
.cup { position: absolute; bottom: 12px; left: 50%; width: 64px; height: 42px; background: var(--crema); border-radius: 0 0 24px 24px; transform: translateX(-50%); }
.cup::after { content: ''; position: absolute; right: -16px; top: 6px; width: 20px; height: 20px; border: 4px solid var(--crema); border-radius: 50%; }
.cup::before { content: ''; position: absolute; left: 8px; right: 8px; top: 6px; height: 4px; border-radius: 2px; background: var(--amber-deep); }
.falling { position: absolute; font-size: 26px; pointer-events: none; will-change: transform; }
.pop { position: absolute; font-family: var(--display); font-style: italic; color: var(--amber); pointer-events: none; animation: pop .6s ease-out forwards; }
@keyframes pop { to { transform: translateY(-40px); opacity: 0; } }

#gecko { position: absolute; width: 60px; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); transform-origin: center; transition: transform .4s cubic-bezier(.25,.8,.25,1); z-index: 3; pointer-events: none; }
#tongue { position: absolute; height: 6px; width: 0; background: #d14e4e; border-radius: 3px; transform-origin: left center; z-index: 2; }
.fly { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2c8, var(--amber) 45%, var(--amber-deep)); box-shadow: 0 0 14px var(--amber); cursor: crosshair; z-index: 4; animation: hover 1.6s ease-in-out infinite alternate; }
@keyframes hover { to { transform: translate(6px, -8px); } }

/* ---------- kontakt ---------- */
.kontakt { padding: clamp(90px, 12vw, 160px) var(--gutter); text-align: center; background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(209,154,61,.16), transparent 70%), var(--espresso); }
.kontakt__title { font-size: clamp(3.4rem, 12vw, 8rem); font-style: italic; letter-spacing: -.02em; }
.kontakt__lead { color: var(--crema-dim); max-width: 44ch; margin: 1rem auto 2rem; }
.kontakt__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.compliment { margin-top: 3.5rem; }
.compliment__btn { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--crema-dim); border-bottom: 1px solid var(--amber-deep); padding-bottom: 2px; transition: color .3s; }
.compliment__btn:hover { color: var(--amber); }
.compliment__out { margin-top: 1rem; min-height: 1.5em; font-size: 1.55rem; }

.footer { padding: 40px var(--gutter) 60px; text-align: center; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--crema-dim); border-top: 1px solid rgba(209,154,61,.14); }
.footer__q { font-family: var(--display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1rem; margin-top: .6rem; color: var(--amber); }
.footer__egg { margin-top: 1.8rem; text-transform: none; letter-spacing: 0; opacity: .35; font-size: 1.05rem; }
.footer__egg b { font-weight: 600; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 8000; background: rgba(17,13,10,.94); display: grid; place-items: center; padding: 24px; animation: qin .3s; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 4px; box-shadow: 0 40px 80px rgba(0,0,0,.8); }
.lightbox__close { position: absolute; right: 20px; top: 12px; font-size: 2.6rem; color: var(--crema); line-height: 1; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track, .hero__scroll span, .fly { animation: none; }
  .hero__frame { transition: none !important; transform: none !important; }
  .cursor { display: none !important; }
}
