@font-face {
  font-family: 'PP Neue Montreal';
  src: url('assets/fonts/PPNeueMontrealMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('assets/fonts/PPNeueMontrealBook.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 13px;
}

/* ── Canvas ─────────────────────────────────────────────── */

#bg {
  display: block; width: 100%; height: 100%;
  position: fixed; top: 0; left: 0; z-index: 0;
}

/* ── UI layer ───────────────────────────────────────────── */

#ui { position: fixed; inset: 0; z-index: 10; pointer-events: none; }

/* ── Card base ──────────────────────────────────────────── */

.card {
  position: absolute;
  border-radius: 10px;
  pointer-events: all;
  user-select: none; -webkit-user-select: none;
}

.card-draggable { opacity: 0; cursor: grab; }
.card-draggable.dragging { cursor: grabbing; }

/* ── Anna He pill — top centre ──────────────────────────── */

.card-name {
  top: 23px;
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: center;
  padding: 12px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px);
  border-radius: 24px;
  cursor: default; white-space: nowrap;
}
.card-name span { font-size: 13px; color: #202020; line-height: 1; }

/* ── Outer wrapper (writing, enquire, note) ─────────────── */

.card-outer {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(235,235,235,0.1);
  padding: 4px;
}

/* ── Note card ──────────────────────────────────────────── */

.card-note {
  width: 251px;
  min-height: 306px;
  height: auto;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px 16px;
  overflow: hidden;
}

.note-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 9px;
  color: #909090;
  letter-spacing: 0.9px;
  line-height: 1;
}
.note-body { display: flex; flex-direction: column; gap: 32px; }
.note-text {
  font-size: 13px; color: #202020; line-height: 1.2;
}
.note-text p + p { margin-top: 1.2em; }
.note-time-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 9px;
  color: #909090;
  letter-spacing: 0.9px;
  line-height: 1;
}

/* ── Image card inner ───────────────────────────────────── */

.card-image-inner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px;
}
#card-writing  .card-image-inner { width: 252px; height: 153px; }
#card-enquire  .card-image-inner { width: 270px; height: 212px; }

.card-bg {
  position: absolute; inset: 0;
  width: 100%; height: 130%; top: -20%;
  object-fit: cover; pointer-events: none;
}

/* ── Glass card (case studies) ──────────────────────────── */

.card-glass {
  width: 265px; height: 282px;
  background: rgba(255,255,255,0.3);
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ── Pill label ─────────────────────────────────────────── */

.pill {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 16px 6px 14px;
  background: #fff;
  backdrop-filter: blur(3.125px); -webkit-backdrop-filter: blur(3.125px);
  border-radius: 24px;
  flex-shrink: 0; width: 100%;
  text-decoration: none;
  transition: background 0.2s ease;
}
.pill:hover { background: rgba(255,255,255,0.55); }
.pill span { font-size: 13px; color: #202020; white-space: nowrap; line-height: 1.1; }
.pill svg  { flex-shrink: 0; display: block; }

.pill-no-arrow { padding: 6px 16px; }

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 600px) {
  .card-note { width: 230px; height: 290px; }
  #card-writing .card-image-inner { width: 185px; height: 145px; }
  #card-enquire .card-image-inner { width: 185px; height: 165px; }
  .card-glass { width: 210px; height: 210px; }
}
