/* ===== Tokens ===== */
:root {
  --night: #21102b;
  --plum: #341843;
  --plum-2: #4a2560;
  --mauve: #9b6cb3;
  --lilac: #cdb6ea;
  --cream: #f3e8d7;
  --paper: #efe2cc;
  --marigold: #e8b04a;
  --ink: #1a0b21;

  --display: "Shrikhand", Georgia, serif;
  --body: "Literata", Georgia, serif;
  --mono: "Courier Prime", "Courier New", monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --spring: cubic-bezier(0.34, 1.7, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 35%, var(--plum) 0%, var(--night) 70%) fixed, var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.075rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px dashed var(--marigold); outline-offset: 4px; }
::selection { background: var(--marigold); color: var(--ink); }

/* ===== Living inkblot background ===== */
.ink-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}
.ink-bg g { fill: var(--plum-2); }

/* ===== Header: folder tabs ===== */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter) 0;
  background: linear-gradient(var(--night) 70%, transparent);
}
.mark {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
  color: var(--lilac);
  padding-bottom: 0.5rem;
}
.mark span { color: var(--marigold); }
.tabs {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid var(--paper);
  padding-top: 6px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  font-family: var(--mono);
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.55rem 1rem 0.4rem;
  border-radius: 12px 12px 0 0;
  background: var(--plum);
  color: var(--lilac);
  transform-origin: bottom;
  transition: transform 0.3s var(--spring), background 0.2s;
}
.tabs a:hover { transform: translateY(-5px); background: var(--plum-2); }
.tabs a[aria-current="page"] { background: var(--paper); color: var(--ink); font-weight: 700; }

/* ===== Layout ===== */
main {
  flex: 1;
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(4rem, 8vw, 7rem);
}
.section { margin-top: clamp(5rem, 11vw, 9rem); }

/* ===== Type ===== */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); color: var(--lilac); text-shadow: 4px 4px 0 var(--plum-2); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--marigold);
  margin: 0 0 0.8rem;
}
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 36ch; }
.muted { color: var(--lilac); }
.note { font-family: var(--mono); font-size: 0.85rem; color: var(--lilac); }

/* ===== Buttons ===== */
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 0.98rem var(--mono);
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--marigold);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.alt { background: var(--lilac); }
.btn.small { padding: 0.45rem 0.9rem; font-size: 0.85rem; box-shadow: 3px 3px 0 var(--ink); }

/* ===== Home hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 12rem);
}
.name {
  font-size: clamp(3.6rem, 9.5vw, 9.5rem);
  white-space: nowrap;
  color: var(--lilac);
  text-shadow: 6px 6px 0 var(--plum-2);
  letter-spacing: -0.01em;
}
.name .ch { display: inline-block; }
.full-name {
  font-family: var(--mono);
  font-size: 1.05rem;
  margin: 0.9rem 0 1.4rem;
  color: var(--cream);
}
.full-name b { color: var(--marigold); font-weight: 400; }

.visual { position: relative; justify-self: center; width: min(360px, 82%); }
.polaroid {
  margin: 0;
  position: relative;
  background: var(--paper);
  padding: 14px 14px 3.6rem;
  rotate: -4deg;
  box-shadow: 0 24px 45px -12px rgba(0, 0, 0, 0.6);
  transition: rotate 0.5s var(--spring);
}
.polaroid:hover { rotate: 2deg; }
.polaroid::before, .print::before, .postcard::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 120px;
  height: 34px;
  translate: -50% 0;
  rotate: 3deg;
  background: rgba(205, 182, 234, 0.7);
  z-index: 2;
}
.photo {
  aspect-ratio: 4 / 5;
  background: var(--plum-2);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: sepia(0.12) saturate(0.95);
}
.placeholder {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--lilac);
  text-align: center;
  padding: 1rem;
}
.polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--ink);
}
.drag-hint { text-align: center; margin-top: 2.2rem; }

/* stickers */
.sticker {
  position: absolute;
  z-index: 3;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.sticker:active { cursor: grabbing; }
.sticker img { pointer-events: none; -webkit-user-drag: none; }
.stamp { width: 132px; top: -44px; right: -58px; }
.stamp svg { width: 100%; height: auto; }
.stamp .ring { animation: spin 22s linear infinite; transform-origin: 70px 70px; }
.stamp text { font-family: var(--mono); font-size: 11.5px; letter-spacing: 2.4px; fill: var(--ink); font-weight: 700; }
.tag {
  left: -64px;
  bottom: 130px;
  background: var(--lilac);
  color: var(--ink);
  font: 700 0.86rem var(--mono);
  padding: 0.45rem 0.85rem;
  rotate: -9deg;
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--ink);
}
.bfly { width: 96px; right: -30px; bottom: -34px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Framed prints (illustrations) ===== */
.print {
  position: relative;
  margin: 0;
  padding: 12px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  rotate: var(--r, 3deg);
  transition: rotate 0.45s var(--spring), scale 0.45s var(--spring);
}
.print:hover { rotate: 0deg; scale: 1.03; }
.print img { width: 100%; height: auto; }
.print figcaption { font: 0.8rem var(--mono); color: var(--plum-2); padding-top: 0.5rem; text-align: center; }

.head-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.head-grid .page-head { margin-bottom: 0; }

/* ===== Passion ===== */
.passion { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: clamp(2rem, 6vw, 4.5rem); align-items: end; margin-bottom: 3rem; }
.section-head { max-width: 40rem; }
.section-head .lede { margin-top: 1.2rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.card-note {
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 1.9rem, rgba(155, 108, 179, 0.28) 1.9rem calc(1.9rem + 1px));
  background-position: 0 1.2rem;
  color: var(--ink);
  padding: 1.2rem 1.4rem 1.6rem;
  line-height: 1.9rem;
  font-size: 1rem;
  box-shadow: 6px 6px 0 var(--ink);
  rotate: var(--r, 0deg);
  transition: rotate 0.35s var(--spring), translate 0.35s var(--spring);
}
.card-note:nth-child(2) { margin-top: 2.5rem; }
.card-note:hover { rotate: 0deg; translate: 0 -8px; }
.card-note::before, .pin::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25), 0 2px 0 var(--ink);
  z-index: 2;
}
.card-note h3 { font-size: 1.45rem; color: var(--plum-2); line-height: 1.9rem; margin: 0.3rem 0 0.4rem; }
.card-note p { margin: 0; }

/* ===== Noticeboard ===== */
.board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem);
  border-radius: 18px;
  border: 3px dashed var(--plum-2);
  background: rgba(33, 16, 43, 0.55);
}
.pin {
  position: relative;
  width: clamp(150px, 20vw, 210px);
  padding: 10px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  rotate: var(--r, 0deg);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.pin:active { cursor: grabbing; }
.pin img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.2rem; }

/* ===== Rorschach ===== */
.rorschach { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.blot-card {
  width: min(100%, 420px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  rotate: 2deg;
  cursor: pointer;
  transition: rotate 0.3s var(--spring);
}
.blot-card:hover { rotate: -1deg; }
.blot-card svg { width: 90%; height: 90%; }
.blot-card g { fill: var(--plum-2); }
.answer {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--marigold);
  min-height: 3.6em;
  margin: 1.4rem 0 0;
}

/* ===== Footer ===== */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 1.6rem var(--gutter);
  border-top: 2px dashed var(--plum-2);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--lilac);
}

/* ===== Sub-page heading ===== */
.page-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 {
  font-size: clamp(3.2rem, 10vw, 7rem);
  color: var(--lilac);
  text-shadow: 6px 6px 0 var(--plum-2);
  margin-bottom: 1rem;
}

.panel {
  background: rgba(52, 24, 67, 0.85);
  border: 2px solid var(--plum-2);
  border-radius: 16px;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.panel h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin-bottom: 0.5rem; }

/* ===== CV ===== */
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.doc-frame {
  position: relative;
  aspect-ratio: 1 / 1.414;
  margin: 1.2rem 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}
.doc-frame object { position: absolute; inset: 0; width: 100%; height: 100%; }
.doc-empty {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 2rem;
  color: var(--ink);
  font-family: var(--mono);
  background-image: repeating-linear-gradient(transparent 0 1.8rem, rgba(155, 108, 179, 0.25) 1.8rem calc(1.8rem + 1px));
}
.doc-empty strong { font: 400 1.6rem var(--display); color: var(--plum-2); }

.tv {
  margin: 1.2rem 0;
  padding: 18px 18px 54px;
  border-radius: 30px;
  background: linear-gradient(160deg, #5b3274, var(--plum-2) 60%, #3b1c4c);
  box-shadow: 6px 6px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}
.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px / 28px;
  overflow: hidden;
  background: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}
.tv-screen::before {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: 0.22;
  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='1.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: static 0.4s steps(4) infinite;
}
@keyframes static {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-8%, 5%); }
  50% { transform: translate(6%, -7%); }
  75% { transform: translate(-4%, -3%); }
}
.tv-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: var(--ink); }
.tv-screen .placeholder { position: relative; color: var(--cream); }
.tv-knobs { position: absolute; right: 26px; bottom: 14px; display: flex; gap: 12px; }
.tv-knobs span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--marigold);
  border: 2px solid var(--ink);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25);
  transition: rotate 0.4s var(--spring);
  position: relative;
}
.tv-knobs span::after { content: ""; position: absolute; top: 3px; left: 50%; width: 2px; height: 8px; translate: -50% 0; background: var(--ink); }
.tv:hover .tv-knobs span:first-child { rotate: 120deg; }
.tv:hover .tv-knobs span:last-child { rotate: -90deg; }
.tv-label { position: absolute; left: 26px; bottom: 16px; font: 700 0.8rem var(--mono); color: var(--lilac); letter-spacing: 0.1em; }

/* ===== Produse ===== */
.products { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

.gem {
  position: relative;
  margin: 1.4rem 0 1rem;
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.gem-inside { padding: 1.6rem; }
.gem-inside h3 { font-size: 1.9rem; color: var(--plum-2); margin-bottom: 0.6rem; }
.deck { margin: 1.4rem 0 1.6rem; border-radius: 10px; outline-offset: 6px; }
.deck-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  cursor: pointer;
  touch-action: pan-y;
}
.deck-img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.deck-bar { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.1rem; }
.deck-count { font: 700 0.95rem var(--mono); color: var(--lilac); min-width: 4.5ch; text-align: center; }
.deck-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--marigold);
  color: var(--ink);
  font: 700 1.1rem var(--mono);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.deck-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.deck-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.deck-full { margin-left: auto; background: var(--lilac); }
.deck:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 2rem; background: var(--night); }
.deck:fullscreen .deck-stage { width: min(100%, (100vh - 9rem) * 16 / 9); margin-inline: auto; }
.deck:fullscreen .deck-bar { width: min(100%, (100vh - 9rem) * 16 / 9); margin-inline: auto; }
.gem.wide { min-height: 0; }
.gem.wide .gem-inside { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(1.2rem, 4vw, 2.5rem); align-items: start; padding: clamp(1.2rem, 3vw, 2rem); }
.gem.wide p { margin: 0 0 0.9rem; }
.gem-photo { margin: 0; }
.gem-photo img { width: 100%; height: auto; border-radius: 4px; filter: sepia(0.15); }
.gem-photo figcaption { font: 0.75rem var(--mono); color: var(--plum-2); margin-top: 0.5rem; }


.gem-soon { margin: 1.4rem 0 1.2rem; padding: 1.4rem 1.3rem; border: 2px dashed var(--mauve); border-radius: 14px; background: rgba(33, 16, 43, 0.6); }
.gem-soon p { margin: 0; }
.gem-soon-tag { display: inline-block; margin-bottom: 0.7rem !important; padding: 0.2rem 0.7rem; border: 2px solid var(--marigold); border-radius: 6px; color: var(--marigold); font: 700 0.8rem var(--mono); rotate: -3deg; }
.btn.is-soon { opacity: 0.6; cursor: default; pointer-events: none; }

.scratch { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.spark { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 80; color: var(--marigold); font-size: 1.3rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.letter {
  position: relative;
  padding: clamp(1.6rem, 5vw, 3.2rem);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--ink);
  rotate: -1deg;
}
.letter::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  border: 10px solid transparent;
  border-image: repeating-linear-gradient(45deg, var(--mauve) 0 14px, var(--paper) 14px 22px, var(--marigold) 22px 36px, var(--paper) 36px 44px) 10;
}
.postage {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 92px;
  height: 112px;
  background: var(--marigold);
  display: grid;
  place-items: center;
  text-align: center;
  font: 400 1.6rem/1 var(--display);
  color: var(--plum-2);
  rotate: 6deg;
  -webkit-mask: radial-gradient(circle 5px at 5px 5px, transparent 98%, #000) -5px -5px / 12px 12px;
  mask: radial-gradient(circle 5px at 5px 5px, transparent 98%, #000) -5px -5px / 12px 12px;
}
.postage small { display: block; font: 700 0.62rem var(--mono); letter-spacing: 0.08em; margin-top: 0.4rem; }
.postmark {
  position: absolute;
  top: 60px;
  right: 92px;
  width: 104px;
  height: 104px;
  border: 2px solid rgba(74, 37, 96, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.7rem var(--mono);
  color: rgba(74, 37, 96, 0.7);
  text-align: center;
  rotate: -14deg;
  pointer-events: none;
}
.letter h2 { color: var(--plum-2); text-shadow: none; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.6rem; max-width: 12ch; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(74, 37, 96, 0.4);
}
.lines li:last-child { border-bottom: 0; }
.lines .label { font-family: var(--mono); font-size: 0.82rem; color: var(--plum-2); width: 6.5rem; flex-shrink: 0; }
.lines .value { font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 600; text-decoration-color: var(--mauve); text-underline-offset: 4px; overflow-wrap: anywhere; }
.lines .btn { margin-left: auto; }
.sign { margin: 2rem 0 0; font: 400 1.8rem var(--display); color: var(--mauve); rotate: -4deg; }
.postcard {
  position: relative;
  margin: 0;
  padding: 12px 12px 2.6rem;
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
  rotate: 5deg;
  transition: rotate 0.45s var(--spring);
}
.postcard:hover { rotate: -2deg; }
.postcard figcaption { position: absolute; left: 0; right: 0; bottom: 0.8rem; text-align: center; font: 0.85rem var(--mono); color: var(--plum-2); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--marigold);
  color: var(--ink);
  font: 700 0.92rem var(--mono);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 85;
  visibility: hidden;
}

/* ===== Proiect ===== */
.wip-wrap { position: relative; }
.wip-stamp {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.5rem 1.1rem;
  border: 4px double var(--marigold);
  border-radius: 8px;
  color: var(--marigold);
  font: 400 clamp(1.3rem, 3vw, 2rem) var(--display);
  rotate: -6deg;
  opacity: 0.92;
}
.journal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.slot {
  border: 2px dashed var(--mauve);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  min-height: 190px;
  background: rgba(33, 16, 43, 0.6);
  transition: border-color 0.2s, translate 0.35s var(--spring);
}
.slot:hover { border-color: var(--marigold); translate: 0 -5px; }
.slot h3 { font-size: 1.7rem; color: var(--lilac); margin-bottom: 0.6rem; }
.slot p { margin: 0; color: var(--cream); }
.slot .note { display: block; margin-top: 1rem; }
.pencil { display: inline-block; animation: write 1.4s ease-in-out infinite; }
@keyframes write {
  0%, 100% { transform: translate(0, 0) rotate(-10deg); }
  50% { transform: translate(14px, 2px) rotate(4deg); }
}

/* ===== Cursor + curtain ===== */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--lilac);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 100;
  transition: scale 0.3s var(--spring);
}
.cursor.big { scale: 2.6; }

.curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: var(--plum-2);
  display: grid;
  place-items: center;
  clip-path: circle(0% at 50% 50%);
}
.js .curtain { clip-path: circle(150% at 50% 50%); }
.curtain span { font: 400 clamp(2rem, 6vw, 3.5rem) var(--display); color: var(--lilac); }

/* ===== Materiale (Canva) ===== */
.materials .section-head { margin-bottom: 2.5rem; }
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.mat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.6rem 1.4rem 1.4rem;
  border: 2px solid var(--plum-2);
  border-radius: 16px;
  background: rgba(52, 24, 67, 0.85);
  text-decoration: none;
  color: var(--cream);
  transition: translate 0.4s var(--spring), border-color 0.2s;
}
.mat:hover { translate: 0 -8px; border-color: var(--marigold); }
.mat-visual { position: relative; display: block; height: 300px; margin-bottom: 1.2rem; }
.mat-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mat-type { font: 700 0.8rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--marigold); }
.mat-title { font: 400 1.6rem/1.1 var(--display); color: var(--lilac); }
.mat-desc { font-size: 0.98rem; color: var(--cream); }
.mat-open { margin-top: 0.7rem; font: 700 0.9rem var(--mono); color: var(--marigold); }
.mat:hover .mat-open { text-decoration: underline; text-underline-offset: 4px; }

/* e-mail: the page slides up out of an envelope */
.mat-email .mat-visual { display: flex; justify-content: center; }
.env-back, .env-front { position: absolute; left: 4%; right: 4%; bottom: 0; height: 46%; border-radius: 6px; }
.env-back { background: #3b1c4c; border: 2px solid var(--ink); }
.mat-email img {
  position: relative;
  width: 74%;
  height: 86%;
  margin-top: 4%;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: translate 0.5s var(--spring);
}
.mat-email:hover img { translate: 0 -18px; }
.env-front {
  background: var(--mauve);
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15);
}

/* booklet: a folded leaflet with a centre crease */
.fold {
  position: relative;
  display: block;
  width: 78%;
  height: 100%;
  margin-inline: auto;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  rotate: -3deg;
  overflow: hidden;
  transition: rotate 0.45s var(--spring);
}
.fold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}
.mat-booklet:hover .fold { rotate: 2deg; }

/* book: spine on the left, page edges on the right */
.book {
  position: relative;
  display: block;
  width: 74%;
  height: 100%;
  margin-inline: auto;
  border-radius: 2px 8px 8px 2px;
  box-shadow: 6px 0 0 #f7f0e6, 8px 2px 0 var(--ink), 12px 12px 0 var(--ink);
  transform: perspective(900px) rotateY(-12deg);
  transition: transform 0.5s var(--spring);
}
.book img { border-radius: 2px 8px 8px 2px; border: 2px solid var(--ink); }
.book::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.15) 60%, transparent);
  z-index: 1;
}
.mat-book:hover .book { transform: perspective(900px) rotateY(0deg) translateY(-4px); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero, .rorschach, .cv-grid, .products, .passion, .head-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .visual { margin-top: 2rem; }
  .print, .postcard { width: min(320px, 85%); justify-self: center; }
  .cards { grid-template-columns: 1fr; max-width: 32rem; }
  .card-note:nth-child(2) { margin-top: 0; }
  .journal { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: 1fr; max-width: 26rem; }
  .gem.wide .gem-inside { grid-template-columns: 1fr; }
  .gem-photo { max-width: 240px; }
}
@media (max-width: 700px) {
  .top { flex-wrap: wrap; }
  .tabs { width: 100%; }
  .stamp { width: 104px; right: -18px; top: -40px; }
  .tag { left: -14px; }
  .bfly { right: -8px; width: 80px; }
  .postmark { display: none; }
  .postage { width: 70px; height: 86px; font-size: 1.2rem; top: 18px; right: 18px; }
  .letter h2 { padding-right: 70px; }
  .pin { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .curtain { clip-path: circle(0% at 50% 50%); }
}
