/* ============================================================
   FIELD NOTES — Portfolio CSS
   Seif Shams · 2026
   ============================================================ */

/* ── 1. RESET + VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --hand:    'Caveat', cursive;
  --hand-2:  'Kalam', cursive;
  --sans:    'Inter Tight', sans-serif;
  --mono:    'JetBrains Mono', monospace;
  --serif:   'Instrument Serif', serif;

  --paper:   #f6f4ee;
  --ink:     #1a1916;
  --ink-2:   #3d3b35;
  --muted:   #857f74;
  --blue:    #2563eb;
  --hi:      #ffec99;
  --line:    rgba(26,25,22,0.14);
  --line-2:  rgba(26,25,22,0.32);

  --gutter:  clamp(20px, 5vw, 80px);
  --radius:  14px;
}

html { scroll-behavior: smooth; }

/* ── SCROLLBARS ── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--paper);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: #1d4ed8; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper) url('paper-bg.png') repeat;
  background-size: 1100px auto;
  cursor: none;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button { cursor: none; font-family: inherit; }

/* ── 2. CUSTOM CURSOR ── */
.cur-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
}

.cur-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s;
}

.cur-ring.hover {
  width: 48px;
  height: 48px;
  border-color: var(--blue);
  background: rgba(37,99,235,0.08);
}

/* ── 3. NAV ── */
nav.top-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--gutter);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--hand-2);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand em {
  color: var(--blue);
  font-style: normal;
}

.brand .dash {
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin-bottom: 4px;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 40px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(10px);
  isolation: isolate;
  box-shadow: 3px 3px 0 0 var(--ink);
}

.nav-links li { position: relative; }

.nav-links a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-family: var(--hand-2);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 36px;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.nav-links a .num {
  font-family: var(--hand);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  line-height: 0.8;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--paper); }
.nav-links a.active .num { color: #fff8e9; }

.nav-pill {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  background: var(--ink);
  border-radius: 36px;
  transition: transform 0.55s cubic-bezier(.4,.0,.2,1),
              width 0.55s cubic-bezier(.4,.0,.2,1),
              opacity 0.35s ease;
  pointer-events: none;
  opacity: 0;
}

.nav-pill.shown { opacity: 1; }

/* ── Hamburger ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 6px 7px;
  margin-left: auto;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: color-mix(in oklab, var(--paper) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  z-index: 899;
  flex-direction: column;
  padding: 8px 16px 16px;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), opacity 0.25s ease;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.mm-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-family: var(--hand-2);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 10px;
  transition: background 0.15s;
}
.mm-link:hover { background: var(--line); }
.mm-link .num {
  font-family: var(--hand);
  font-size: 16px;
  color: var(--blue);
  font-weight: 700;
  min-width: 28px;
}

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .mobile-menu { display: flex; top: 56px; }
}
@media (max-width: 640px) {
  .mobile-menu { top: 52px; }
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--blue);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ── 4. SLIDE FRAMEWORK ── */
.slide {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.bg-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--hand);
  font-size: clamp(200px, 40vw, 560px);
  font-weight: 700;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.slide-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.slide-header .num {
  font-family: var(--hand);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.slide-header .title {
  font-family: var(--hand);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.slide-foot {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
  z-index: 3;
}

/* ── 5. ANIMATIONS ── */
.r-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1) var(--d, 0s),
              transform 0.6s cubic-bezier(.4,0,.2,1) var(--d, 0s);
}

.slide.in .r-in {
  opacity: 1;
  transform: none;
}

.r-pop {
  opacity: 0;
  transform: scale(0.88) rotate(-2deg);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1) var(--d, 0s),
              transform 0.6s cubic-bezier(.34,1.56,.64,1) var(--d, 0s);
}

.slide.in .r-pop {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.r-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1) var(--d, 0s),
              transform 0.6s cubic-bezier(.4,0,.2,1) var(--d, 0s);
}

.slide.in .r-left {
  opacity: 1;
  transform: none;
}

.r-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1) var(--d, 0s),
              transform 0.6s cubic-bezier(.4,0,.2,1) var(--d, 0s);
}

.slide.in .r-right {
  opacity: 1;
  transform: none;
}

/* Cover items show after page loads */
body.loaded .slide-cover .r-in {
  opacity: 1;
  transform: none;
}

/* ── 6. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid var(--ink);
  transition: transform 0.18s cubic-bezier(.4,0,.2,1),
              box-shadow 0.18s cubic-bezier(.4,0,.2,1),
              background 0.18s, color 0.18s;
  cursor: none;
}

.btn .arrow {
  font-size: 16px;
  display: inline-block;
  transition: transform 0.2s;
}

.btn:hover .arrow { transform: translateX(4px); }

.btn.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--blue);
}

.btn.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue);
}

.btn.ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn.ghost:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* ── 7. COVER / INTRO (merged home slide) ── */
.slide-intro {
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px var(--gutter) 80px;
  position: relative;
  align-items: center;
  overflow: hidden;
}

.bg-number.cover-bg {
  position: absolute;
  inset: auto auto auto 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(380px, 60vw, 900px);
  color: var(--ink);
  opacity: 0.04;
  line-height: 0.8;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.cover-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 1;
}

.cover-photo-wrap {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  transform: scale(0.85) rotate(-3deg);
  opacity: 0;
  animation: coverPhotoIn 1.2s cubic-bezier(.34,1.56,.64,1) 0.2s forwards;
}

@keyframes coverPhotoIn {
  to { transform: scale(1) rotate(-1.5deg); opacity: 1; }
}

.cover-photo {
  width: 100%;
  height: 100%;
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 10px 12px 0 var(--ink);
  position: relative;
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), box-shadow 0.5s;
}

.cover-photo:hover {
  transform: rotate(0deg);
  box-shadow: 14px 16px 0 var(--blue);
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cover-photo-tape {
  position: absolute;
  width: 120px;
  height: 28px;
  background: rgba(255,220,90,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  z-index: 3;
  pointer-events: none;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.05);
}

.cover-photo-tape.tape-tl { top: -14px; left: 32px; transform: rotate(-8deg); }
.cover-photo-tape.tape-br { bottom: -12px; right: 32px; transform: rotate(6deg); }

.cover-text { position: relative; z-index: 2; }

.cover-hi {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.cover-hi .dash {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

.cover-name {
  font-family: var(--hand);
  font-size: clamp(72px, 12vw, 148px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.0;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.cover-name .word {
  opacity: 0;
  display: inline-block;
}

.cover-name .w1 { animation: wordIn 0.6s 0.2s cubic-bezier(.34,1.56,.64,1) forwards; }
.cover-name .w2 { animation: wordIn 0.6s 0.35s cubic-bezier(.34,1.56,.64,1) forwards; }
.cover-name .w3 {
  animation: wordIn 0.6s 0.5s cubic-bezier(.34,1.56,.64,1) forwards;
  color: var(--blue);
  font-style: italic;
}

@keyframes wordIn {
  0%   { opacity: 0; transform: translateY(40px) rotate(-4deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: none; }
}

.cover-tag {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeUp 0.6s 0.65s forwards;
}

.cover-tag span + span::before {
  content: ' · ';
  margin: 0 4px;
  color: var(--blue);
}

.cover-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

.cover-scribble {
  position: absolute;
  font-family: var(--hand);
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.cs1 { top: 8%;    right: 14%; transform: rotate(-6deg); font-size: 28px; }
.cs2 { bottom: 14%; right: 6%;  transform: rotate(-4deg); color: var(--ink-2); }
.cs3 { top: 18%;   left: 42%;  transform: rotate(4deg);  color: var(--ink-2); font-size: 20px; }

.cover-doodle {
  position: absolute;
  font-size: 28px;
  pointer-events: none;
  z-index: 1;
  color: var(--blue);
  opacity: 0;
}

.cd1 { top: 30%;    right: 4%;   animation: doodlePop 1s cubic-bezier(.34,1.56,.64,1) 1.7s forwards, doodleSpin 8s linear 2.7s infinite; }
.cd2 { top: 62%;    left: 48%;   animation: doodlePop 1s cubic-bezier(.34,1.56,.64,1) 1.85s forwards, doodleSpin 8s linear 2.85s infinite; color: var(--ink); }
.cd3 { bottom: 30%; right: 38%;  animation: doodlePop 1s cubic-bezier(.34,1.56,.64,1) 2.0s forwards, doodleSpin 8s linear 3.0s infinite; }

@keyframes doodlePop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 0.6; transform: scale(1); }
}
@keyframes doodleSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Floating mini stickers (cover) ── */
.floater {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  opacity: 0;
  animation: floaterIn 1s cubic-bezier(.34,1.56,.64,1) forwards,
             floaterBob 5s ease-in-out infinite;
  z-index: 2;
}
.floater img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(4px 6px 0 rgba(20,20,18,0.08));
}
.floater.f1 { top: 6%;   left: 56%;  width: 80px;  height: 80px;  animation-delay: 1.0s, 2.0s; }
.floater.f2 { top: 18%;  right: 4%;  width: 90px;  height: 90px;  animation-delay: 1.15s, 2.2s; }
.floater.f3 { top: 36%;  left: 60%;  width: 78px;  height: 78px;  animation-delay: 1.3s, 2.5s; }
.floater.f4 { display: none; }
.floater.f5 { display: none; }
@keyframes floaterIn {
  from { opacity: 0; transform: scale(0.4) rotate(-15deg); }
  to   { opacity: 1; transform: scale(1)   rotate(0deg); }
}
@keyframes floaterBob {
  0%, 100% { transform: translateY(0)     rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}
@media (max-width: 1080px) {
  .floater.f3, .floater.f4 { display: none; }
}
@media (max-width: 640px) {
  .floater.f2, .floater.f3 { display: none; }
}

@keyframes spinStar {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.6s 1.4s forwards;
  z-index: 3;
}

.sh-arrow {
  width: 1px;
  height: 24px;
  background: var(--muted);
  position: relative;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

.sh-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--muted);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── 8. INTRO TEXT (locale-driven) ── */

.intro-hi {
  font-family: var(--hand);
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.intro-hi .dash {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

.intro-name {
  font-family: var(--hand);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 20px;
  color: var(--ink);
}

.intro-name .last {
  color: var(--blue);
  font-style: italic;
  display: block;
}

.intro-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.intro-roles span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.intro-roles span::before {
  content: '·';
  color: var(--blue);
  margin-right: 5px;
  font-size: 14px;
}

.intro-bio {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 540px;
}

.intro-bio mark {
  background: var(--hi);
  padding: 0 3px;
  border-radius: 3px;
  color: var(--ink);
}

.intro-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.intro-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-sticker {
  position: relative;
  animation: stickerFloat 4.5s ease-in-out infinite;
}

.intro-sticker img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  filter: drop-shadow(8px 12px 0 rgba(20,20,18,0.08));
}

.intro-scribble {
  position: absolute;
  font-family: var(--hand);
  font-size: 15px;
  color: var(--blue);
  pointer-events: none;
  z-index: 3;
}

.intro-scribble.s1 {
  top: -18px;
  right: 10px;
  transform: rotate(3deg);
}

.intro-scribble.s2 {
  bottom: -18px;
  left: 10px;
  transform: rotate(-2deg);
  color: var(--muted);
}

/* ── 9. SLIDE 01 PROFILE ── */
.slide-profile .slide-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}

.profile-sticker-wrap {
  position: sticky;
  top: 120px;
}

.profile-sticker-wrap img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(20,20,18,0.08));
  animation: stickerFloat 6s ease-in-out infinite;
}

.profile-bio p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.profile-bio mark {
  background: var(--hi);
  padding: 0 4px;
  border-radius: 3px;
  color: var(--ink);
}

.profile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.fact {
  padding: 18px 20px;
  border: 2px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--paper);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.fact:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--blue);
  border-color: var(--blue);
}

.fact .k {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.fact .v {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.fact .v em {
  font-style: italic;
  color: var(--blue);
}

.fact .s {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── 10. SLIDE 02 EDUCATION ── */
.slide-education .slide-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

.edu-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-card {
  padding: 24px 28px;
  border: 2px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.edu-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue);
  border-color: var(--blue);
}

.edu-card .when {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 3px 10px;
  border-radius: 40px;
  margin-bottom: 12px;
}

.edu-card .deg {
  font-family: var(--hand);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}

.edu-card .school {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.edu-card .badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 40px;
  margin-bottom: 10px;
}

.edu-card .note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.edu-card ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edu-card ul li {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.edu-card ul li::before {
  content: '→';
  color: var(--blue);
  position: absolute;
  left: 0;
}

.edu-sticker-wrap {
  position: sticky;
  top: 120px;
}

.edu-sticker-wrap img {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(20,20,18,0.08));
  animation: stickerFloat 6s ease-in-out infinite;
}

/* ── 11. SLIDE 03 EXPERIENCE ── */
.slide-experience .slide-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.exp-sticker-wrap {
  position: sticky;
  top: 120px;
}

.exp-sticker-wrap img {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(20,20,18,0.08));
  animation: stickerFloat 6s ease-in-out infinite;
}

.exp-sticker-wrap .slide-header {
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 0;
  margin-top: 24px;
}

.exp-sticker-wrap .slide-header .num {
  font-family: var(--hand);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.exp-sticker-wrap .slide-header .title {
  font-family: var(--hand);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}

.exp-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 22px 24px;
  border: 2px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.exp-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue);
  border-color: var(--blue);
}

.exp-card .when {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  font-weight: 500;
  line-height: 1.4;
}

.exp-card .loc {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.exp-card .org {
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}

.exp-card .org em {
  font-style: italic;
  color: var(--blue);
}

.exp-card .role {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 10px;
  line-height: 1.5;
}

.exp-card ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exp-card ul li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.exp-card ul li::before {
  content: '→';
  color: var(--blue);
  position: absolute;
  left: 0;
  font-size: 12px;
}

/* ── 12. SLIDE 04 SKILLS ── */
.slide-skills .slide-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.skill-bubble {
  padding: 20px;
  border: 2px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--paper);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.skill-bubble:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.skill-bubble:nth-child(even) {
  transform: rotate(0.5deg);
}

.skill-bubble:nth-child(odd):hover {
  transform: translate(-2px,-2px) rotate(-0.5deg);
  box-shadow: 5px 5px 0 var(--blue);
  border-color: var(--blue);
}

.skill-bubble:nth-child(even):hover {
  transform: translate(-2px,-2px) rotate(0.5deg);
  box-shadow: 5px 5px 0 var(--blue);
  border-color: var(--blue);
}

.skill-bubble h3 {
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.skill-bubble h3 .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 40px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tag:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.skills-sticker-wrap {
  position: sticky;
  top: 120px;
}

.skills-sticker-wrap img {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(20,20,18,0.08));
  animation: stickerFloat 6s ease-in-out infinite;
}

/* ── 13. SLIDE 05 PROJECTS ── */
.slide-projects {
  min-height: auto;
  align-items: flex-start;
  padding-bottom: 100px;
}

.slide-projects .slide-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.projects-row-top {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  width: 100%;
}

.projects-intro {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 520px;
  margin-top: 8px;
}

.projects-intro mark {
  background: var(--hi);
  padding: 0 3px;
  border-radius: 3px;
  color: var(--ink);
}

.projects-sticker-wrap img {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(20,20,18,0.08));
  animation: stickerFloat 6s ease-in-out infinite;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.proj {
  padding: 24px;
  border: 2px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.proj:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--blue);
  border-color: var(--blue);
}

.proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.proj-num {
  font-family: var(--hand);
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.proj-year {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(26,25,22,0.06);
  padding: 3px 9px;
  border-radius: 40px;
}

.proj h3 {
  font-family: var(--hand);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}

.proj .stack {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--blue);
  margin-bottom: 10px;
  line-height: 1.5;
}

.proj p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.proj .open {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: auto;
  transition: color 0.2s;
}

.proj .open::after {
  content: ' →';
}

.proj:hover .open {
  color: var(--blue);
}

/* ── 14. SLIDE 06 CONTACT ── */
.slide-contact {
  text-align: center;
}

.slide-contact .slide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  gap: 20px;
}

.contact-pre {
  font-family: var(--hand);
  font-size: 32px;
  color: var(--blue);
}

.contact-h {
  font-family: var(--hand);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.contact-h em {
  font-style: italic;
  color: var(--blue);
}

.contact-sticker-wrap img {
  max-width: 340px;
  width: 100%;
  height: auto;
  display: block;
  margin: 32px auto;
  filter: drop-shadow(6px 8px 0 rgba(20,20,18,0.08));
  animation: stickerFloat 6s ease-in-out infinite;
}

.contact-mail {
  display: inline-block;
  font-family: var(--hand-2);
  font-size: 26px;
  padding: 12px 32px;
  border: 2px solid var(--ink);
  border-radius: 40px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
  cursor: none;
}

.contact-mail:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue);
  border-color: var(--blue);
  color: var(--blue);
}

.contact-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-socials a {
  font-family: var(--hand-2);
  font-size: 17px;
  padding: 8px 20px;
  border: 1.5px solid var(--line-2);
  border-radius: 40px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink-2);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.contact-socials a:hover {
  transform: translate(-2px, -2px);
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ── 15. FOOTER ── */
footer {
  border-top: 2px dashed var(--line-2);
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--hand-2);
  font-size: 15px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

footer em {
  font-style: italic;
  color: var(--ink);
}

/* ── 16. MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26,25,22,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--paper) url('paper-bg.png') repeat;
  background-size: 1100px auto;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--blue);
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  overscroll-behavior: contain;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246,244,238,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px 28px 18px;
  border-bottom: 2px dashed var(--line-2);
}

.modal-close {
  display: inline-block;
  font-family: var(--hand-2);
  font-size: 14px;
  padding: 6px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 40px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  margin-bottom: 12px;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.modal-num {
  font-family: var(--hand);
  font-size: 36px;
  color: var(--blue);
  line-height: 1;
}

.modal h2 {
  font-family: var(--hand);
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}

.modal-stack {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.modal-body {
  padding: 28px 28px 40px;
}

.modal-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.modal-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-body ul li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 20px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  position: relative;
  line-height: 1.6;
}

.modal-body ul li:last-child {
  border-bottom: none;
}

.modal-body ul li::before {
  content: '→';
  color: var(--blue);
  position: absolute;
  left: 0;
}

.modal-label {
  font-family: var(--hand);
  font-size: 24px;
  color: var(--blue);
  margin: 28px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-label::after {
  content: '';
  flex: 1;
  height: 1px;
  border-top: 2px dashed var(--line-2);
}

/* Diagrams */
.modal-diagrams {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.diagram-card {
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
}

.diagram-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(26,25,22,0.03);
}

.diagram-body {
  padding: 16px;
  overflow-x: auto;
}

/* ── 17. STORY BLOCKS ── */
.story {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--line);
}

.story-block.flip {
  direction: rtl;
}

.story-block.flip > * {
  direction: ltr;
}

.story-img {
  overflow: hidden;
  cursor: zoom-in;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.story-img:hover img {
  transform: scale(1.04);
}

.story-text {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 8px;
}

.story-heading {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.story-caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── 18. MEDIA GRID ── */
.modal-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.modal-media.single {
  grid-template-columns: 1fr;
}

.media-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-slot {
  border: 1.5px solid var(--line-2);
  border-radius: 8px;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.media-slot img:hover {
  transform: scale(1.04);
}

.video-slot {
  background: #111;
}

.video-slot video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-caption {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── 19. LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 40px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-close:hover {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* ── 20. RESPONSIVE ── */

/* ── Tablet landscape (≤1180px) ── */
@media (max-width: 1180px) {
  .slide-profile .slide-inner,
  .slide-education .slide-inner,
  .slide-experience .slide-inner,
  .slide-skills .slide-inner {
    grid-template-columns: 1fr;
  }

  .profile-sticker-wrap,
  .exp-sticker-wrap,
  .edu-sticker-wrap,
  .skills-sticker-wrap {
    position: relative;
    top: auto;
    order: -1;
    display: flex;
    justify-content: center;
  }

  .profile-sticker-wrap img,
  .exp-sticker-wrap img,
  .edu-sticker-wrap img,
  .skills-sticker-wrap img {
    max-width: 220px;
  }

  .projects-row-top { grid-template-columns: 1fr; }
  .projects-sticker-wrap { display: none; }

  .cover-stage {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    justify-items: center;
  }
  .cover-photo-wrap { justify-self: center; max-width: 340px; }
  .cover-text { grid-column: 1; grid-row: 2; }
  .cover-cta { justify-content: center; }
  .cover-hi { justify-content: center; }
  .floater.f1 { top: 2%; left: 54%; }
  .floater.f2, .floater.f3 { display: none; }
}

/* ── Tablet portrait (≤900px) ── */
@media (max-width: 900px) {
  :root { --gutter: 24px; }

  nav.top-nav { height: 56px; }
  .nav-links { display: none; }
  .slide-foot { display: none; }

  .slide { padding: 88px var(--gutter) 60px; }

  .cover-name { font-size: clamp(64px, 14vw, 100px); }

  .profile-facts { grid-template-columns: 1fr; }

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

  .projects-grid { grid-template-columns: 1fr; }

  .proj { flex-direction: column; }
  .proj-thumb { width: 100%; height: 180px; }

  .modal-media { grid-template-columns: 1fr; }
  .story-block { grid-template-columns: 1fr; }
  .story-block.flip { direction: ltr; }

  .contact-h { font-size: clamp(32px, 8vw, 60px); }

  footer { flex-direction: column; text-align: center; gap: 6px; }
}

/* ── Mobile (≤640px) ── */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  body { font-size: 14px; }

  nav.top-nav { height: 52px; padding: 0 16px; }
  .brand { font-size: 20px; }

  .slide { padding: 72px 16px 56px; min-height: auto; }

  /* Home/Intro */
  .slide-intro { min-height: 100svh; padding: 72px 16px 80px; }
  .cover-stage { gap: 24px; }
  .cover-photo-wrap { max-width: 260px; }
  .cover-name { font-size: clamp(52px, 16vw, 80px); line-height: 1.0; }
  .cover-hi { font-size: 16px; }
  .cover-tag { font-size: 11px; letter-spacing: 0.08em; margin-bottom: 20px; }
  .cover-cta { flex-direction: column; align-items: center; gap: 10px; }
  .cover-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .floater { display: none; }
  .cover-doodle { display: none; }

  /* Section headers */
  .slide-header { flex-direction: column; gap: 4px; align-items: flex-start; margin-bottom: 24px; }
  .slide-header .num  { font-size: clamp(48px, 12vw, 72px); }
  .slide-header .title { font-size: clamp(36px, 10vw, 56px); }

  /* Profile */
  .profile-sticker-wrap img { max-width: 160px; }
  .profile-bio p { font-size: 15px; }
  .profile-facts { grid-template-columns: 1fr; gap: 10px; }
  .fact { padding: 14px 16px; }
  .fact .v { font-size: 15px; }

  /* Education */
  .edu-card { padding: 16px 18px; }
  .edu-card .when { font-size: 10px; }

  /* Experience */
  .exp-card { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .exp-sticker-wrap img { max-width: 140px; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; gap: 12px; }
  .skill-bubble { padding: 16px 18px; }
  .skills-sticker-wrap img { max-width: 140px; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .proj { border-radius: 14px; }
  .proj-thumb { height: 160px; }
  .proj-body { padding: 16px; }

  /* Contact */
  .contact-h { font-size: clamp(28px, 9vw, 48px); }
  .contact-mail { font-size: clamp(14px, 4vw, 20px); word-break: break-all; }
  .contact-socials { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .contact-sticker-wrap img { max-width: 180px; }

  /* Modal */
  .modal-overlay { padding: 8px; }
  .modal { border-radius: 12px; max-height: 95svh; }
  .modal-head { padding: 12px 14px; }
  .modal-body { padding: 16px 14px 28px; }
  .modal h2 { font-size: clamp(26px, 8vw, 40px); }
  .modal-media { grid-template-columns: 1fr; }
  .story-block { grid-template-columns: 1fr; gap: 16px; }

  footer { flex-direction: column; text-align: center; gap: 6px; font-size: 12px; }
}

/* ── Small phones (≤400px) ── */
@media (max-width: 400px) {
  .cover-name { font-size: clamp(44px, 18vw, 68px); }
  .cover-photo-wrap { max-width: 220px; }
  .btn { padding: 10px 18px; font-size: 13px; }
}

/* ── 21. STICKER FLOAT KEYFRAME ── */
@keyframes stickerFloat {
  0%,  100% { transform: translateY(0); }
  50%        { transform: translateY(-10px) rotate(0.4deg); }
}
