:root {
  --ink: #1a1a10;
  --muted: #6a6858;
  --paper: #eeecd6;
  --panel: rgba(238, 235, 212, 0.88);
  --line: rgba(20, 20, 10, 0.14);
  --blue: #c4a8f0;
  --acid: #c4a8f0;
  --rose: #ffa946;
  --shadow: 0 22px 60px rgba(20, 20, 10, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.portfolio-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(20, 20, 10, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 10, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(196, 168, 240, 0.10), transparent 28%),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.hero-board {
  position: relative;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
}

.board-frame {
  position: absolute;
  inset: clamp(14px, 2.5vw, 34px);
  border: 1px solid rgba(20, 20, 10, 0.18);
  border-radius: 26px;
  pointer-events: none;
}

.polaroid {
  position: absolute;
  z-index: 5;
  top: clamp(38px, 7vw, 74px);
  right: clamp(32px, 7vw, 92px);
  width: clamp(180px, 18vw, 250px);
  padding: 12px 12px 18px;
  border: 0;
  background: #f0eeda;
  box-shadow: var(--shadow);
  color: var(--ink);
  cursor: grab;
  user-select: none;
  --x: 0px;
  --y: 0px;
  --lift: 0px;
  --tilt: 0deg;
  --scale: 1;
  transform: rotate(3deg) translate(var(--x), calc(var(--y) + var(--lift))) rotate(var(--tilt)) scale(var(--scale));
  transition: box-shadow 200ms ease;
}

.polaroid.is-dragging,
.polaroid.is-releasing {
  cursor: grabbing;
  z-index: 10;
  transition: box-shadow 160ms ease;
}

.polaroid:not(.is-dragging):hover,
.polaroid:focus-visible {
  --lift: -6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  outline: none;
}

.polaroid-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f5f3e4;
}

.polaroid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  text-align: left;
}

.polaroid-caption strong {
  font-size: 1rem;
  line-height: 1.1;
}

.polaroid-caption span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.profile-note {
  position: absolute;
  z-index: 7;
  top: clamp(320px, 31vw, 390px);
  right: clamp(32px, 7vw, 92px);
  width: min(320px, calc(100vw - 52px));
  padding: 22px;
  border: 1px solid var(--line);
  background: #f5f3e4;
  box-shadow: var(--shadow);
}

.profile-note p {
  margin: 0;
  color: #242424;
  font-size: 0.95rem;
  line-height: 1.55;
}

.close-note {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
}

.headline {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 1;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-size: clamp(3.6rem, 9vw, 9.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.83;
  text-align: center;
  text-transform: uppercase;
}

.headline span:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

/* ── Stickers ── */
.sticker {
  position: absolute;
  z-index: 6;
  cursor: grab;
  user-select: none;
  --x: 0px;
  --y: 0px;
  --tilt: 0deg;
  --scale: 1;
  transition: box-shadow 160ms ease;
}

.sticker.is-dragging { cursor: grabbing; z-index: 20; }

/* ── Individual stickers ── */

.sticker-product-designer {
  top: clamp(60px, 9vh, 95px);
  right: clamp(200px, 17vw, 265px);
  padding: 14px 18px;
  border: 2.5px solid #1a1a10;
  border-radius: 14px;
  background: #e84040;
  box-shadow: 3px 3px 0 #1a1a10;
  color: #fffde8;
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-6deg) translate(var(--x), var(--y)) rotate(var(--tilt)) scale(var(--scale));
}

.sticker-ai-ux {
  top: clamp(430px, 65vh, 580px);
  right: clamp(220px, 16vw, 260px);
  width: clamp(86px, 9vw, 116px);
  height: clamp(86px, 9vw, 116px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f050a8;
  clip-path: polygon(
    50% 0%, 63% 13%, 78% 5%, 80% 21%, 95% 20%, 90% 35%, 100% 46%,
    87% 53%, 95% 67%, 79% 67%, 78% 83%, 63% 75%, 55% 91%, 45% 75%,
    31% 83%, 29% 67%, 13% 67%, 21% 53%, 9% 46%, 19% 35%, 14% 20%,
    29% 21%, 32% 5%, 46% 13%
  );
  color: #fff;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(8deg) translate(var(--x), var(--y)) rotate(var(--tilt)) scale(var(--scale));
}

.sticker-krakow {
  top: clamp(360px, 55vh, 490px);
  right: clamp(30px, 4vw, 60px);
  width: clamp(88px, 10vw, 118px);
  height: clamp(88px, 10vw, 118px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #fffde8;
  border-radius: 50%;
  background: #1a2060;
  box-shadow: 3px 3px 0 #1a1a10;
  color: #fffde8;
  font-size: clamp(0.62rem, 0.85vw, 0.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-3deg) translate(var(--x), var(--y)) rotate(var(--tilt)) scale(var(--scale));
}

.sticker-years {
  top: clamp(175px, 27vh, 245px);
  left: clamp(620px, 59vw, 910px);
  padding: 12px 22px;
  border: 2.5px solid #1a1a10;
  border-radius: 100px;
  background: #ffe033;
  box-shadow: 3px 3px 0 #1a1a10;
  color: #1a1a10;
  font-size: clamp(0.78rem, 1.1vw, 0.96rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(5deg) translate(var(--x), var(--y)) rotate(var(--tilt)) scale(var(--scale));
}

.sticker-ux-design {
  top: clamp(40px, 7vh, 68px);
  left: clamp(300px, 28vw, 430px);
  padding: 12px 20px;
  border: 2.5px solid #1a1a10;
  border-radius: 100px;
  background: #c4a8f0;
  box-shadow: 3px 3px 0 #1a1a10;
  color: #1a1a10;
  font-size: clamp(0.78rem, 1.1vw, 0.96rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-4deg) translate(var(--x), var(--y)) rotate(var(--tilt)) scale(var(--scale));
}

.case-zone {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.case-card {
  position: absolute;
  width: clamp(220px, 22vw, 340px);
  user-select: none;
  -webkit-user-drag: none;
  --x: 0px;
  --y: 0px;
  --lift: 0px;
  --tilt: 0deg;
  --scale: 1;
  --active-rotate: var(--rotate);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  cursor: grab;
  pointer-events: auto;
  transform: translate3d(var(--x), calc(var(--y) + var(--lift)), 0) rotate(calc(var(--active-rotate) + var(--tilt))) scale(var(--scale));
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
  touch-action: none;
  will-change: transform;
}

.case-card:hover,
.case-card:focus-within {
  --lift: -7px;
  --active-rotate: 0deg;
  box-shadow: 0 30px 80px rgba(20, 20, 20, 0.2);
}

.case-card.is-dragging:hover,
.case-card.is-dragging:focus-within {
  --active-rotate: var(--rotate);
}

/* No CSS transform transition during drag or release — rAF owns the transform */
.case-card.is-dragging,
.case-card.is-releasing {
  z-index: 12;
  transition: box-shadow 160ms ease;
}

.case-card.is-dragging {
  --lift: 0px;
  cursor: grabbing;
  box-shadow: 0 40px 100px rgba(20, 20, 20, 0.28);
}

.case-hit {
  display: grid;
  width: 100%;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.case-hit:focus-visible,
.back-button:focus-visible,
.close-note:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* Image wrapper — needed for zoom overflow clip */
.case-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 10, 0.08);
}


.case-hit img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
}

.case-card:not(.is-dragging):hover .case-hit img,
.case-card:focus-within:not(.is-dragging) .case-hit img {
  transform: scale(1.055);
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding-top: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.case-subtitle {
  display: block;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
}

.prd-tag {
  flex: 0 0 auto;
  border: 1px solid rgba(20, 20, 10, 0.14);
  background: var(--acid);
  padding: 7px 9px;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0;
  transition: background 240ms ease, border-color 240ms ease;
}

.case-card:not(.is-dragging):hover .prd-tag {
  background: var(--acid);
  border-color: rgba(20, 20, 10, 0.22);
}

.card-one {
  left: clamp(38px, 6vw, 95px);
  top: clamp(90px, 15vh, 140px);
}

.card-two {
  left: clamp(38px, 6vw, 95px);
  bottom: clamp(20px, 5vh, 55px);
}

.card-three {
  left: clamp(360px, 34vw, 520px);
  bottom: clamp(20px, 4vh, 45px);
}

.card-four {
  left: clamp(600px, 58vw, 890px);
  bottom: clamp(15px, 3vh, 40px);
}

.contact-panel {
  position: absolute;
  right: clamp(32px, 7vw, 92px);
  bottom: clamp(36px, 8vw, 86px);
  z-index: 4;
  display: grid;
  gap: 9px;
  width: min(260px, calc(100vw - 52px));
  padding: 18px;
  border: 1px solid var(--line);
  background: #f5f3e4;
  color: var(--muted);
  font-style: normal;
  backdrop-filter: blur(18px);
  cursor: grab;
  user-select: none;
  --x: 0px;
  --y: 0px;
  --tilt: 0deg;
  --scale: 1;
  transform: translate(var(--x), var(--y)) rotate(var(--tilt)) scale(var(--scale));
  transition: box-shadow 160ms ease;
}

.contact-panel.is-dragging {
  cursor: grabbing;
  z-index: 10;
}

.contact-panel a,
.contact-panel span,
.contact-link {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
}

.contact-panel a:hover,
.contact-panel a:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--blue);
  outline: none;
}

.contact-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.download-icon-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-self: start;
  gap: 6px;
  height: 42px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(20, 20, 10, 0.14);
  background: var(--acid);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.download-icon-link span:last-child {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-icon-link:hover,
.download-icon-link:focus-visible {
  border-color: rgba(20, 20, 10, 0.35);
  background: #1a1a10;
  color: #eeecd6;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cv-actions.compact {
  margin-top: 16px;
}

.note-link {
  display: inline-flex;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0 0 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.education-section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) clamp(28px, 5vw, 80px);
  background: #141412;
  color: #ffffeb;
}

.education-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.education-left {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
  min-width: 0;
}

.education-header {
  min-width: 0;
}

.edu-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--acid);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.education-header h2 {
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #ffffeb;
}

.education-chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  padding-top: 8px;
  min-width: 0;
}

.edu-pill {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 235, 0.22);
  border-radius: 100px;
  padding: 11px 20px;
  background: transparent;
  color: rgba(255, 255, 235, 0.82);
  font-size: clamp(0.8rem, 1.05vw, 0.94rem);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.edu-pill:hover {
  background: rgba(255, 255, 235, 0.07);
  border-color: rgba(255, 255, 235, 0.45);
  color: #ffffeb;
}

.edu-pill.is-active {
  background: var(--acid);
  border-color: var(--acid);
  color: #1a1a10;
  font-weight: 700;
}

.edu-pill--edu {
  border-color: rgba(196, 168, 240, 0.28);
  color: rgba(196, 168, 240, 0.75);
}

.edu-pill--edu:hover {
  background: rgba(196, 168, 240, 0.08);
  border-color: rgba(196, 168, 240, 0.55);
  color: #c4a8f0;
}

.edu-pill--edu.is-active {
  background: var(--acid);
  border-color: var(--acid);
  color: #1a1a10;
}

/* ── Detail panel ── */
.education-detail {
  min-width: 0;
  padding-top: 4px;
}

.edu-detail-inner {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 320ms ease,
    transform 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.edu-detail-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.edu-detail-inner[hidden] {
  display: none;
}

.edu-detail-type {
  display: inline-block;
  margin-bottom: 18px;
  border: 1px solid rgba(196, 168, 240, 0.35);
  border-radius: 100px;
  padding: 6px 14px;
  color: var(--acid);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edu-detail-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffeb;
}

.edu-detail-meta {
  margin: 0 0 18px;
  color: rgba(255, 255, 235, 0.45);
  font-size: 0.9rem;
}

.edu-detail-desc {
  margin: 0;
  color: rgba(255, 255, 235, 0.68);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.65;
}

/* ── Experience & Skills section ── */
.exp-section {
  padding: clamp(64px, 9vw, 120px) clamp(28px, 5vw, 80px);
  background: #0f0f0d;
  color: #ffffeb;
  border-top: 1px solid rgba(255, 255, 235, 0.06);
}

.exp-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.exp-left h2 {
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #ffffeb;
}

.exp-right {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
  min-width: 0;
}

/* Experience list */
.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 235, 0.08);
}

.exp-item:first-child {
  border-top: 1px solid rgba(255, 255, 235, 0.08);
}

.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.exp-role {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 700;
  color: #ffffeb;
}

.exp-date {
  font-size: 0.82rem;
  color: rgba(255, 255, 235, 0.38);
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-company {
  font-size: 0.88rem;
  color: var(--acid);
}

/* Skills & tools */
.skills-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skills-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 235, 0.38);
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 235, 0.16);
  border-radius: 100px;
  padding: 9px 16px;
  background: transparent;
  color: rgba(255, 255, 235, 0.75);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 500;
  line-height: 1;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
  cursor: default;
}

.skill-pill:hover {
  background: rgba(255, 255, 235, 0.07);
  border-color: rgba(255, 255, 235, 0.35);
  color: #ffffeb;
}

@media (max-width: 900px) {
  .exp-inner {
    grid-template-columns: 1fr;
  }
}

.cv-preview {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(17, 19, 21, 0.74);
  backdrop-filter: blur(18px);
}

.cv-preview[hidden] {
  display: none;
}

.cv-preview-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(980px, 100%);
  height: min(860px, 92vh);
  border: 1px solid rgba(20, 20, 10, 0.10);
  background: #f0eeda;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.cv-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(20, 20, 10, 0.12);
  background: #e6e4cc;
  color: #1a1a10;
  padding: 12px 14px;
}

.cv-preview-bar strong {
  font-size: 0.92rem;
}

.cv-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-preview-actions a,
.close-cv {
  border: 1px solid rgba(20, 20, 10, 0.20);
  background: transparent;
  color: #1a1a10;
  cursor: pointer;
  padding: 9px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.cv-preview-actions a:hover,
.cv-preview-actions a:focus-visible,
.close-cv:hover,
.close-cv:focus-visible {
  background: rgba(20, 20, 10, 0.08);
  outline: none;
}

.cv-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #f5f3ee;
}


.detail-view {
  min-height: 100vh;
  padding: clamp(22px, 4vw, 54px);
  background: #1b3a28;
  color: #ffffeb;
}

.detail-view.is-visible {
  display: block;
}

.back-button {
  border: 1px solid rgba(20, 20, 10, 0.18);
  background: rgba(20, 20, 10, 0.06);
  color: #ffffeb;
  cursor: pointer;
  padding: 12px 16px;
}

.back-button:hover {
  background: rgba(247, 242, 232, 0.14);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 104px);
}

.detail-copy {
  max-width: 680px;
}

.detail-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(20, 20, 10, 0.16);
  color: var(--acid);
  padding: 8px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5.4vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-intro-heading {
  margin: 0 0 10px;
  color: var(--acid);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-intro {
  margin: 0 0 28px;
  color: rgba(255, 255, 235, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
}

.detail-section {
  border-top: 1px solid rgba(20, 20, 10, 0.11);
  padding: 18px 0;
}

.detail-section h2 {
  margin: 0 0 8px;
  color: var(--acid);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-section p {
  margin: 0;
  color: rgba(255, 255, 235, 0.65);
  font-size: 0.98rem;
  line-height: 1.55;
}

.detail-media {
  margin: 0;
  border: 1px solid rgba(20, 20, 10, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.detail-media img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.detail-gallery[hidden] {
  display: none;
}

.detail-gallery figure {
  margin: 0;
  border: 1px solid rgba(20, 20, 10, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 900px) {
  .portfolio-shell {
    overflow: visible;
  }

  .hero-board {
    display: grid;
    gap: 34px;
    min-height: 100vh;
    padding: 26px;
  }

  .board-frame {
    inset: 12px;
    border-radius: 20px;
  }

  .sticker {
    display: none;
  }

  .polaroid,
  .headline,
  .case-zone,
  .contact-panel,
  .profile-note {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .polaroid {
    justify-self: end;
    width: min(220px, 66vw);
  }

  .profile-note {
    justify-self: end;
  }

  .headline {
    transform: none;
    font-size: clamp(3.1rem, 16vw, 6.8rem);
  }

  .case-zone {
    display: grid;
    gap: 20px;
    pointer-events: auto;
  }

  .case-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    --x: 0px;
    --y: 0px;
    --lift: 0px;
    --tilt: 0deg;
    --active-rotate: 0deg;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    touch-action: auto;
  }

  .case-card:hover,
  .case-card:focus-within {
    --lift: -4px;
  }

  .contact-panel {
    width: 100%;
  }

  .education-inner {
    grid-template-columns: 1fr;
  }

  .education-detail {
    padding-top: 0;
  }

  .cv-preview-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .education-card {
    min-height: 180px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .detail-media {
    order: -1;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }
}
