/* --- Design system --- */
:root {
  --color-bg: #F9F7EF;
  --color-cream: #F9F7EF;
  --color-accent: #7EC8E3;
  --color-text: #1a1a1a;
  --color-text-muted: #444;
  --color-white: #ffffff;
  --color-sticky: #fef9c3;
  --color-sticky-alt: #e0f2fe;
  --color-tape: rgba(255, 255, 255, 0.7);
  --font-display: 'Caveat', cursive;
  --font-body: 'DM Sans', sans-serif;
  --shadow-soft: 2px 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lift: 4px 6px 16px rgba(0, 0, 0, 0.12);
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-link {
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
}

.nav-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* --- Sections --- */
.section {
  padding: 5rem 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 2rem;
  color: var(--color-text);
}

.section-title--script {
  font-family: var(--font-display);
  font-weight: 600;
}

/* --- Hero (clipboard first slide) --- */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 1rem 4rem;
}

.hero-clipboard {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.hero-clip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 8px 8px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero-clip::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 14px;
  border: 3px solid #1a1a1a;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: transparent;
}

.hero-clipboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem 0.75rem;
  padding-top: 2.5rem;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.hero-brand {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.hero-picture {
  position: relative;
  min-height: 200px;
  margin: 0 1rem;
  background: var(--color-bg);
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-picture img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.hero-file {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hero-file:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}

.hero-clipboard-bottom {
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
}

.hero-title-wrap {
  margin: 0 0 0.25rem;
  line-height: 1.1;
}

.hero-title-port {
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title-folio {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
}

.hero-handle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Sticky notes --- */
.sticky-note {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--color-sticky);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-note:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.sticky-note--hero {
  font-size: 1.5rem;
}

.sticky-note--small {
  padding: 0.5rem 0.9rem;
  font-size: 1.1rem;
}

.sticky-note--inline {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.sticky-note--badge {
  background: var(--color-sticky-alt);
  margin-bottom: 0.5rem;
}

.sticky-note--contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.sticky-note--contact .contact-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* --- Map pins --- */
.map-pin {
  width: 28px;
  height: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath fill='%231a1a1a' d='M12 0C7.58 0 4 3.58 4 8c0 6 8 14 8 14s8-8 8-14c0-4.42-3.58-8-8-8zm0 11c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z'/%3E%3Ccircle cx='12' cy='8' r='2.5' fill='%237EC8E3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: default;
  transition: transform 0.2s ease;
  position: absolute;
}

.map-pin:hover {
  animation: wobble 0.4s ease;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.map-pin--hero {
  top: 6rem;
  right: 15%;
}

.map-pin--uk {
  right: 20%;
  top: 50%;
}

/* --- About (Page 2: About ME, Portugal → UK) --- */
.about {
  position: relative;
  overflow: hidden;
}

.about-bg-journey {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.about-bg-svg {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.about-bg-path {
  stroke: #1a1a1a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 10;
}

.about-bg-pin {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.about .section-title,
.about .about-journey,
.about .about-intro {
  position: relative;
  z-index: 1;
}

.about-page-title {
  text-align: center;
  margin-bottom: 2rem;
}

.about-journey {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.about-box {
  position: relative;
  width: 340px;
  padding: 0 0.75rem 1rem;
  padding-top: 1.5rem;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.35s ease;
  cursor: pointer;
}

.about-box:hover {
  box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: rotate(-4deg);
}

.about-box.about-box--uk:hover {
  transform: rotate(4deg);
}

.about-box--portugal {
  background: linear-gradient(180deg, #dbeafe 0%, #e0e7ff 50%, #fce7f3 100%);
  border: 1px solid rgba(147, 197, 253, 0.4);
}

.about-box--uk {
  background: linear-gradient(180deg, #fce7f3 0%, #e0e7ff 50%, #dbeafe 100%);
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.about-box-tape {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  width: 52px;
  height: 20px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.about-box-tape--blue {
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
  opacity: 0.95;
}

.about-box-tape--pink {
  background: linear-gradient(135deg, #f9a8d4 0%, #f472b6 100%);
  opacity: 0.95;
}

.about-box-pic {
  min-height: 320px;
  margin: 0 -0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.about-box-pic-btn {
  cursor: pointer;
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  width: 100%;
  text-align: center;
}

.about-box-pic-btn:hover {
  opacity: 0.98;
}

.about-box-pic img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.about-box-label {
  display: block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.about-box-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .about-box {
    width: 100%;
    max-width: 340px;
  }

  .about-box-pic {
    min-height: 340px;
  }

  .about-box-pic img {
    min-height: 340px;
  }
}

@media (max-width: 480px) {
  .about-journey {
    flex-direction: column;
  }
}

.about-intro {
  font-size: 1.1rem;
  max-width: 42ch;
  margin: 0 auto;
  text-align: center;
}

/* --- Lightbox (zoom picture on click) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.lightbox-polaroid-frame {
  position: relative;
  z-index: 1;
  width: 320px;
  padding: 0.5rem 0.5rem 2.5rem 0.5rem;
  background: var(--color-white);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  cursor: pointer;
  box-sizing: border-box;
}

.lightbox-polaroid-frame--fitness { background: #d9f2ea; }
.lightbox-polaroid-frame--hardware { background: #ffecd9; }
.lightbox-polaroid-frame--tech { background: #dceef9; }
.lightbox-polaroid-frame--education { background: #fefde8; }
.lightbox-polaroid-frame--social { background: #fceef5; }

@media (max-width: 420px) {
  .lightbox-polaroid-frame {
    width: min(90vw, 320px);
  }
}

.lightbox-polaroid-frame .lightbox-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  pointer-events: auto;
  height: auto;
}

/* --- Cards (Experience / Projects / Education) --- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.card {
  position: relative;
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lift);
}

.card-inner {
  position: relative;
  z-index: 1;
}

.card .map-pin {
  top: -8px;
  right: 1rem;
  z-index: 2;
}

.card-title {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.card-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.card-desc {
  margin: 0 0 0.75rem;
}

.card-list {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
}

.card-list li {
  margin-bottom: 0.35rem;
}

.card-footer {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.75rem 0 0;
  font-style: italic;
}

.card-tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  margin-top: 0.5rem;
}

/* --- Tape --- */
.tape {
  position: absolute;
  width: 60px;
  height: 18px;
  background: var(--color-tape);
  opacity: 0.9;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tape--top-right {
  top: 12px;
  right: 24px;
  transform: rotate(25deg);
}

.tape--top-left {
  top: 12px;
  left: 24px;
  transform: rotate(-25deg);
}

/* --- Polaroid photo --- */
.polaroid {
  margin-top: 1rem;
  padding: 0.5rem 0.5rem 2rem;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
  max-width: 220px;
}

.polaroid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  min-height: 180px;
  background: var(--color-cream);
}

/* --- Explore: Courses-style folders --- */
.explore {
  max-width: 1000px;
  position: relative;
}

#panel-social .entry-card.is-open .entry-body {
  display: flex;
  flex-direction: column;
}

#panel-social .entry-body > .entry-polaroids {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 0;
  max-width: 320px;
  min-height: 200px;
  margin-left: auto;
  margin-right: auto;
}

#panel-social .entry-polaroid {
  max-width: 180px;
  flex-shrink: 0;
}

#panel-social .entry-polaroid:nth-child(1) {
  transform: rotate(-5deg);
  margin-right: -42px;
  margin-bottom: -28px;
  z-index: 1;
}

#panel-social .entry-polaroid:nth-child(2) {
  transform: rotate(4deg);
  margin-right: -42px;
  z-index: 2;
}

#panel-social .entry-polaroid:nth-child(3) {
  transform: rotate(-3deg);
  z-index: 3;
}

.explore-search-wrap {
  position: relative;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.explore-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.6;
  pointer-events: none;
}

.explore-search {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-text);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text);
}

.explore-search::placeholder {
  color: var(--color-text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-grid.is-hidden {
  display: none;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 140px;
  padding: 1.25rem 1rem 1rem 1rem;
  padding-top: 2rem;
  border: 2px solid var(--color-text);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  cursor: pointer;
  background: transparent;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-2px);
}

.category-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.category-card-tab {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid var(--color-text);
}

.category-card--fitness {
  background: #b8e6d5;
}

.category-card--fitness .category-card-tab {
  background: #8dd4bc;
}

.category-card--hardware {
  background: #ffd6a5;
}

.category-card--hardware .category-card-tab {
  background: #e8b87a;
}

.category-card--tech {
  background: #a8d4f0;
}

.category-card--tech .category-card-tab {
  background: #7ebce8;
}

.category-card--education {
  background: #fef9c3;
}

.category-card--education .category-card-tab {
  background: #e8e078;
}

.category-card--social {
  background: #fce4ec;
}

.category-card--social .category-card-tab {
  background: #f8bbd9;
}

.category-card-label {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-text);
  border-radius: 6px;
  line-height: 1.3;
  max-width: calc(100% - 1rem);
}

.explore-empty {
  color: var(--color-text-muted);
  font-style: italic;
  margin: 1rem 0;
}

/* --- Category panels (folder content) --- */
.category-panel {
  animation: panelIn 0.25s ease;
}

@keyframes panelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.category-panel[hidden] {
  display: none !important;
}

.category-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.category-panel-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0;
}

.category-panel-back {
  padding: 0.4rem 0.75rem;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.category-panel-back:hover {
  opacity: 0.9;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.entry-card {
  position: relative;
  background: var(--color-white);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.entry-card:hover {
  box-shadow: var(--shadow-lift);
}

.entry-card.is-open .entry-body {
  display: block;
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.entry-head:hover {
  background: rgba(126, 200, 227, 0.12);
}

.entry-head:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.entry-head::after {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.entry-card.is-open .entry-head::after {
  transform: rotate(-135deg);
}

.entry-pin {
  position: static;
  flex-shrink: 0;
}

.entry-title {
  flex: 1;
  min-width: 0;
}

.entry-meta {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.entry-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  padding-top: 0;
  grid-template-columns: 1fr minmax(0, 240px);
  gap: 1.25rem;
  align-items: start;
}

.entry-body[aria-hidden="false"],
.entry-card.is-open .entry-body {
  display: grid;
}

.entry-body-text {
  grid-column: 1;
  min-width: 0;
}

.entry-body > .entry-polaroids {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-width: 0;
}

.entry-body .card-desc,
.entry-body .card-list,
.entry-body .card-footer,
.entry-body .card-tag,
.entry-body .sticky-note,
.entry-body .polaroid {
  margin-top: 0.75rem;
}

.entry-polaroids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0;
  justify-items: center;
  align-content: start;
}

.entry-polaroid:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
}

.entry-polaroid {
  width: 100%;
  max-width: 110px;
  padding: 0.35rem 0.35rem 1.1rem;
  background: var(--color-white);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

#panel-fitness .entry-polaroid { background: #d9f2ea; }
#panel-hardware .entry-polaroid { background: #ffecd9; }
#panel-tech .entry-polaroid { background: #dceef9; }
#panel-education .entry-polaroid { background: #fefde8; }
#panel-social .entry-polaroid { background: #fceef5; }

.entry-polaroid:nth-child(1) { transform: rotate(-4deg); }
.entry-polaroid:nth-child(2) { transform: rotate(3deg); }
.entry-polaroid:nth-child(3) { transform: rotate(-2deg); }

.entry-polaroid-placeholder {
  width: 100%;
  aspect-ratio: 1;
  min-height: 75px;
  background: rgba(249, 247, 239, 0.9);
  border: 2px dashed rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.entry-polaroid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  min-height: 75px;
}

.entry-polaroid:has(img),
.lilworld-polaroid:has(img) {
  cursor: pointer;
}

.entry-polaroid:has(img) .entry-polaroid-placeholder {
  display: none;
}

.entry-body .tape {
  top: 0;
  right: 1rem;
}

.entry-body .tape--top-left {
  left: 1rem;
  right: auto;
}

/* --- Education --- */
.card--education .map-pin {
  top: -8px;
  right: 1rem;
}

/* --- Lil World (postcard + polaroids) --- */
.lilworld {
  background: #fdf2f8;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 4rem 1.5rem;
}

.lilworld-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

.lilworld-postcard {
  position: relative;
  width: 280px;
  padding: 2rem 1.75rem 3rem;
  background: #fefce8;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  border-radius: 4px;
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.08);
  transform: rotate(-2deg);
  flex-shrink: 0;
}

.lilworld-postcard-stamp {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.4rem;
  border: 2px solid #1a1a1a;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.lilworld-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--color-text);
}

.lilworld-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
}

.lilworld-note {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

.lilworld-seal {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f472b6, #be185d);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lilworld-polaroids {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  max-width: 480px;
}

.lilworld-polaroid {
  width: 140px;
  padding: 0.4rem 0.4rem 1.75rem;
  background: var(--color-white);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lilworld-polaroid:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.12);
}

.lilworld-polaroid:nth-child(1) { transform: rotate(-5deg); }
.lilworld-polaroid:nth-child(2) { transform: rotate(3deg); }
.lilworld-polaroid:nth-child(3) { transform: rotate(-2deg); }
.lilworld-polaroid:nth-child(4) { transform: rotate(4deg); }

.lilworld-polaroid:hover:nth-child(1),
.lilworld-polaroid:hover:nth-child(2),
.lilworld-polaroid:hover:nth-child(3),
.lilworld-polaroid:hover:nth-child(4) {
  transform: rotate(0deg) translateY(-4px);
}

.polaroid-placeholder {
  cursor: pointer;
}

.polaroid-placeholder-inner {
  width: 100%;
  aspect-ratio: 1;
  min-height: 120px;
  background: rgba(254, 242, 248, 0.8);
  border: 2px dashed rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.polaroid-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  min-height: 120px;
}

.polaroid-placeholder:has(img) .polaroid-placeholder-inner {
  display: none;
}

@media (max-width: 640px) {
  .lilworld-inner {
    flex-direction: column;
    align-items: center;
  }

  .lilworld-postcard {
    width: 100%;
    max-width: 300px;
  }

  .lilworld-polaroids {
    max-width: 100%;
  }

  .lilworld-polaroid {
    width: 120px;
  }

  .polaroid-placeholder-inner {
    min-height: 100px;
  }
}

/* --- Contact --- */
.contact {
  text-align: center;
  padding-bottom: 4rem;
}

.contact-text {
  color: var(--color-text-muted);
  margin: 0;
}

/* Torn paper effect (optional junk journal detail) */
.card--experience:first-of-type {
  clip-path: polygon(0 0, 100% 0, 100% 98%, 98% 100%, 0 100%, 0 0);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .section {
    padding: 4rem 1rem 3rem;
  }

  .hero {
    min-height: 60vh;
    padding: 5rem 0.75rem 3rem;
  }

  .hero-clipboard-top {
    padding: 2rem 1rem 0.5rem;
    padding-top: 2.25rem;
  }

  .hero-picture {
    margin: 0 0.75rem;
    min-height: 160px;
  }

  .hero-clipboard-bottom {
    padding: 1.25rem 1rem 1.5rem;
  }

  .map-pin--hero {
    right: 8%;
  }

  .about .map-pin,
  .about .map-pin--uk {
    display: none;
  }

  .sticky-note {
    transform: rotate(-1deg);
  }

  .card .map-pin {
    right: 0.5rem;
  }

  .tape {
    width: 48px;
    height: 14px;
  }

  .tape--top-right {
    right: 12px;
  }

  .tape--top-left {
    left: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card {
    min-height: 130px;
    padding: 1.75rem 0.75rem 0.75rem 0.75rem;
    font-size: 0.65rem;
  }

  .entry-head {
    padding: 0.875rem 1rem;
  }

  .entry-body {
    padding: 0 1rem 1rem;
  }

  .entry-body[aria-hidden="false"],
  .entry-card.is-open .entry-body {
    display: block;
  }

  .entry-body-text {
    grid-column: unset;
  }

  .entry-body > .entry-polaroids {
    grid-column: unset;
    grid-row: unset;
    margin-top: 1rem;
  }

  .entry-polaroid {
    max-width: 100px;
  }

  .entry-polaroid-placeholder {
    min-height: 75px;
  }

  .entry-polaroid img {
    min-height: 75px;
  }
}
