:root {
  --ink: #1b1f2e;
  --ink-2: #4a4f63;
  --white: #fbfcff;
  --line: #e2e6ef;
  --sky: #bcd8ff;
  --mist: #e8f0ff;
  --blush: #f9dde7;
  --blue: #4a6be0;
  --blue-d: #3451c4;
  --heart: #ff4d73;
  --notes: #e2a400;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", sans-serif;
  --sans: "TikTok Sans", "Helvetica Neue", Arial, sans-serif;
  --hand: "Nanum Pen Script", "Marker Felt", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 56px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 80;
  background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 10px; }
.hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--mist);
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -0.01em;
  text-decoration: none; line-height: 1; display: inline-block;
  transition: translate .5s var(--ease);
}
.wordmark:hover { translate: 0 -2px; }
.top nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.top nav a { position: relative; text-decoration: none; font-weight: 600; font-size: 16px; }
.top nav a:not(.nav-dm)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.top nav a:not(.nav-dm):hover::after,
.top nav a:not(.nav-dm):focus-visible::after { transform: scaleX(1); }
.top .nav-dm {
  background: var(--ink); color: #fff; padding: 3px 12px 4px; border-radius: 6px;
  transition: background .35s var(--ease), translate .45s var(--ease);
}
.top .nav-dm:hover { background: var(--blue); color: #fff; translate: 0 -2px; }

/* ---------- caption boxes (TikTok text-with-background) ---------- */
.cap {
  display: inline-block; background: #fff; color: var(--ink);
  font-weight: 700; padding: 2px 10px 4px; border-radius: 7px;
  margin: 0;
}
.cap-sm { font-size: 22px; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.cap-h { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.cap-h span {
  display: inline-block; background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.1;
  padding: 2px 14px 6px; border-radius: 12px;
}
.cap-h span + span { margin-top: -6px; }
.cap-h-light span { background: var(--sky); }

.scribble { font-family: var(--hand); font-size: 30px; line-height: 1; margin: 0; }

/* ---------- hero ---------- */
.hero {
  background: var(--mist);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 64px) clamp(48px, 7vw, 96px);
  border-bottom: 2px solid var(--ink);
}
.name {
  margin: 14px 0 22px; font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 17cqi, 140px); line-height: 0.98; letter-spacing: -0.015em;
  display: flex; flex-direction: column;
}
.name span:last-child { color: var(--blue); }
.hero-copy { container-type: inline-size; min-width: 0; }
.hero-lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 34em; margin: 0 0 18px; color: var(--ink); }
.hero-meta { margin: 0; font-weight: 600; }
.hero-meta a {
  margin-left: 14px; text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .45s var(--ease);
}
.hero-meta a:hover, .hero-meta a:focus-visible { background-size: 100% 2px; }

.fyp-wrap { position: relative; justify-self: center; }
.fyp {
  position: relative; width: min(360px, 78vw); aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: #000;
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1.5deg);
  touch-action: none; cursor: grab; user-select: none; outline: none;
  transition: box-shadow .55s var(--ease);
}
.fyp-wrap:hover .fyp { box-shadow: 16px 18px 0 var(--ink); }
.fyp:focus-visible { box-shadow: 10px 10px 0 var(--blue); }
.fyp.dragging { cursor: grabbing; }
.fyp-track { position: absolute; inset: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.fyp.dragging .fyp-track { transition: none; }
.clip { position: absolute; left: 0; right: 0; height: 100%; }
.clip video, .clip img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.clip-info {
  position: absolute; left: 14px; right: 70px; bottom: 22px; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: 15px; line-height: 1.3;
}
.clip-info b { display: block; font-size: 16px; margin-bottom: 3px; }
.clip-info small { display: block; opacity: .9; font-size: 13px; margin-top: 4px; }
.clip::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none;
}
.clip-info { z-index: 2; }

.fyp-rail {
  position: absolute; right: 8px; bottom: 70px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.rail-av { position: relative; width: 46px; height: 46px; margin-bottom: 6px; }
.rail-av img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.rail-av span {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--heart); color: #fff;
  font-weight: 800; font-size: 15px; line-height: 19px; text-align: center;
}
.rail-btn {
  background: none; border: 0; padding: 0; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.rail-btn svg { width: 34px; height: 34px; fill: #fff; transition: transform .45s var(--ease), fill .3s; }
.rail-btn:hover svg, .rail-btn:focus-visible svg { transform: scale(1.12); }
.rail-btn:active svg { transform: scale(.9); }
.rail-btn b { font-size: 12px; font-weight: 600; }
.rail-btn.liked svg { fill: var(--heart); }
.fyp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); z-index: 3; }
.fyp-bar i { display: block; height: 100%; width: 0; background: #fff; }

.hearts { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.hearts svg {
  position: absolute; width: 90px; height: 90px; fill: var(--heart);
  animation: pop .8s ease-out forwards; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
@keyframes pop {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(var(--r)); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.15) rotate(var(--r)); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(.95) rotate(var(--r)); }
  100% { transform: translate(-50%, -140%) scale(1) rotate(var(--r)); opacity: 0; }
}

.scribble-fyp {
  position: absolute; left: -96px; bottom: -34px; transform: rotate(-6deg);
  display: flex; align-items: flex-end; gap: 2px; color: var(--ink); white-space: nowrap;
}
.scribble-fyp svg { width: 70px; height: 48px; margin-bottom: 14px; }

.scribble-fyp .coarse { display: none; }
@media (pointer: coarse), (max-width: 860px) {
  .fyp { touch-action: pan-y; cursor: pointer; }
  .scribble-fyp .fine { display: none; }
  .scribble-fyp .coarse { display: inline; }
}

/* ---------- profile / grid ---------- */
.profile { background: var(--white); padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 40px) 64px; }
.profile-in { max-width: 935px; margin: 0 auto; }
.prof-head { display: flex; gap: clamp(20px, 6vw, 80px); align-items: center; padding: 0 0 36px clamp(0px, 4vw, 48px); }
.prof-av {
  flex: none; width: clamp(88px, 18vw, 150px); aspect-ratio: 1; border-radius: 50%;
  padding: 4px; background: linear-gradient(135deg, var(--sky), var(--blue));
  transition: transform .6s var(--ease);
}
.prof-av:hover { transform: rotate(-4deg) scale(1.04); }
.prof-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--white); }
.prof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.handle { margin: 0 8px 0 0; font-size: 22px; font-weight: 600; }
.pbtn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 14px;
  background: #efebe6; padding: 7px 16px; border-radius: 8px;
  transition: background .35s var(--ease), translate .45s var(--ease), color .35s;
}
.pbtn:hover, .pbtn:focus-visible { background: #e3ddd6; translate: 0 -2px; }
.pbtn-dark { background: var(--ink); color: #fff; }
.pbtn-dark:hover, .pbtn-dark:focus-visible { background: var(--blue); }
.prof-stats { list-style: none; display: flex; gap: clamp(18px, 4vw, 40px); padding: 0; margin: 18px 0 14px; }
.prof-stats b { font-weight: 800; }
.prof-bio { margin: 0; font-size: 15px; line-height: 1.45; }

.tabs { display: flex; justify-content: center; gap: clamp(20px, 6vw, 56px); border-top: 1px solid var(--line); }
.tab {
  background: none; border: 0; border-top: 2px solid transparent; margin-top: -1px;
  padding: 14px 2px; font-weight: 700; font-size: 14px; letter-spacing: .02em; color: #8c837b;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.tab.is-on { color: var(--ink); border-top-color: var(--ink); }
.tab:hover { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tile {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #ddd;
  border: 0; padding: 0; display: block; width: 100%;
}
.tile img, .tile video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s var(--ease);
}
.tile:hover img, .tile:focus-visible img,
.tile:hover video, .tile:focus-visible video { transform: scale(1.06); }
.tile video { opacity: 0; }
.tile.playing video { opacity: 1; }
.tile-ico { position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); z-index: 2; }
.tile-pin {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px 3px; border-radius: 4px;
}
.tile-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: left;
  padding: 26px 10px 9px; color: #fff; font-size: 13px; line-height: 1.25;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  transition: background .45s var(--ease);
}
.tile-meta b { display: block; font-size: 15px; font-weight: 800; }
.tile-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tile-meta svg { width: 12px; height: 12px; fill: #fff; }
.tile:hover .tile-meta, .tile:focus-visible .tile-meta { background: linear-gradient(to top, rgba(52,81,196,.88), rgba(52,81,196,0)); }
.grid-hint { font-family: var(--hand); font-size: 26px; text-align: center; margin: 22px 0 0; color: var(--ink-2); }

/* ---------- comments ---------- */
.comments {
  background: var(--sky); padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 64px);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.sec-head { max-width: 1100px; margin: 0 auto 36px; }
.sec-sub { max-width: 36em; margin: 18px 0 0; font-size: 18px; }
.threads { max-width: 1100px; margin: 0 auto; columns: 3 300px; column-gap: 18px; }
.thread {
  break-inside: avoid; background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  padding: 16px 16px 6px; margin: 0 0 18px; font-size: 15px;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.thread:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 18px 34px rgba(27, 31, 46, .12);
}
.thread:nth-child(3n+1) { transform: rotate(-1deg); }
.thread:nth-child(3n+2) { transform: rotate(.8deg); }
.thread-src { font-size: 12px; font-weight: 700; color: #8c837b; margin: 0 0 10px; letter-spacing: .02em; }
.cmt { display: grid; grid-template-columns: 36px 1fr 26px; gap: 10px; margin-bottom: 12px; }
.cmt.reply { margin-left: 30px; grid-template-columns: 28px 1fr 26px; }
.cmt-av {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff; background: #9a8f86; overflow: hidden;
}
.cmt.reply .cmt-av { width: 28px; height: 28px; font-size: 11px; }
.cmt-av.brand { background: #fff; border: 1px solid var(--line); }
.cmt-av.brand img { width: 70%; }
.cmt-av.shawarma { background: #4b2e1a; }
.cmt-who { font-weight: 700; }
.cmt-who .tick { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; margin-left: 2px; fill: #3897f0; }
.cmt-who small { font-weight: 400; color: #8c837b; margin-left: 6px; }
.cmt-text { margin: 1px 0 3px; }
.cmt-text .at { color: #2a62c9; }
.cmt-meta { font-size: 13px; color: #8c837b; font-weight: 600; }
.cmt-heart { background: none; border: 0; padding: 4px 0 0; align-self: start; }
.cmt-heart svg { width: 16px; height: 16px; fill: none; stroke: #8c837b; stroke-width: 2; transition: transform .15s; }
.cmt-heart.liked svg { fill: var(--heart); stroke: var(--heart); transform: scale(1.2); }
.more { font-size: 13px; color: #8c837b; font-weight: 600; margin: -4px 0 12px 46px; }
.more::before { content: ""; display: inline-block; width: 24px; height: 1px; background: #b8afa6; vertical-align: middle; margin-right: 10px; }

/* ---------- stickers ---------- */
.stickers { background: var(--blush); color: var(--ink); padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 64px) 40px; overflow: hidden; }
.stickers .sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; margin-bottom: 10px; }
.scribble-st { font-size: 32px; color: var(--blue-d); transform: rotate(-3deg); }
.wall { position: relative; max-width: 1100px; height: clamp(520px, 52vw, 600px); margin: 0 auto; }
.stk {
  position: absolute; touch-action: none; cursor: grab; user-select: none;
  background: #fff; border-radius: 18px; padding: 12px;
  box-shadow: 0 0 0 5px #fff, 0 10px 18px rgba(60,40,80,.18);
  transition: box-shadow .15s, scale .15s;
}
.stk img { pointer-events: none; -webkit-user-drag: none; }
.stk.round { border-radius: 50%; padding: 0; overflow: hidden; }
.stk.round img { display: block; object-fit: cover; border-radius: 50%; }
.stk.text {
  font-weight: 900; font-stretch: 80%; font-size: clamp(20px, 2.4vw, 30px); line-height: 1;
  padding: 10px 16px 12px; border-radius: 12px; color: var(--ink); white-space: nowrap;
}
.stk.held { cursor: grabbing; scale: 1.06; box-shadow: 0 0 0 5px #fff, 0 22px 30px rgba(60,40,80,.25); }

/* ---------- about / notes ---------- */
.about { background: var(--white); padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 64px); }
.about-in { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 330px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.polaroid {
  position: relative; margin: 20px 0 0; background: #fff; padding: 14px 14px 18px;
  box-shadow: 0 2px 0 var(--line), 0 14px 30px rgba(23,18,15,.18); transform: rotate(-3deg);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; }
.polaroid figcaption { font-family: var(--hand); font-size: 26px; line-height: 1; margin-top: 12px; text-align: center; }
.tape {
  position: absolute; top: -14px; left: 50%; width: 120px; height: 32px; transform: translateX(-50%) rotate(4deg);
  background: rgba(188, 216, 255, .85); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.note {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 clamp(18px, 3vw, 34px) 26px;
  box-shadow: 0 18px 40px rgba(23,18,15,.08); font-size: 17px;
}
.note-bar {
  display: flex; justify-content: space-between; color: var(--notes); font-weight: 600;
  padding: 14px 0 12px; font-size: 16px;
}
.note-date { text-align: center; color: #9b928a; font-size: 13px; margin: 0 0 8px; }
.note-title { font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.note p { margin: 0 0 14px; }
.note-sub { font-weight: 800; font-size: 20px; margin-top: 22px !important; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  display: flex; gap: 12px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid #f1ede8;
}
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--notes) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* ---------- dm ---------- */
.dm { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 64px); }
.dm-in { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.chat {
  background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; height: 520px; border: 2px solid #fff;
}
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-head b { display: block; line-height: 1.2; }
.chat-head small { color: #8c837b; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 6px; }
.chat-day { text-align: center; font-size: 12px; color: #9b928a; margin: 0 0 8px; }
.msg { max-width: 78%; padding: 9px 14px; border-radius: 20px; font-size: 16px; line-height: 1.35; }
.msg.in { background: #efebe6; align-self: flex-start; }
.msg.out { background: var(--blue); color: #fff; align-self: flex-end; }
.msg.sys { align-self: center; background: none; font-size: 13px; color: #8c837b; text-align: center; padding: 4px 8px; }
.msg.sys a { color: var(--blue); font-weight: 700; }
.seen { align-self: flex-end; font-size: 12px; color: #9b928a; margin-top: -2px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9b928a; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3 } 50% { opacity: 1 } }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.chat-form input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 22px; padding: 10px 16px; font: inherit; font-size: 16px;
}
.chat-form input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.chat-form button {
  border: 0; background: none; font-weight: 800; color: var(--blue); padding: 0 8px;
  transition: color .3s var(--ease), translate .4s var(--ease);
}
.chat-form button:hover, .chat-form button:focus-visible { color: var(--blue-d); translate: 0 -1px; }
.dm-side .cap-h span { background: var(--sky); }
.dm-side > p { font-size: 19px; margin: 22px 0 10px; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { border-bottom: 1px solid rgba(255,255,255,.18); }
.links a {
  display: block; padding: 12px 0; text-decoration: none; font-weight: 700; font-size: clamp(18px, 2vw, 24px);
  transition: color .35s var(--ease), translate .45s var(--ease);
}
.links a:hover, .links a:focus-visible { color: var(--sky); translate: 8px 0; }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  background: var(--ink); color: #9b928a; font-size: 14px;
  padding: 18px clamp(16px, 5vw, 64px); border-top: 1px solid rgba(255,255,255,.12);
}

/* ---------- post viewer ---------- */
.post { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.post[hidden] { display: none; }
.post-scrim { position: absolute; inset: 0; background: rgba(23,18,15,.72); }
.post-card {
  position: relative; display: grid; grid-template-columns: auto 380px;
  max-height: min(820px, calc(100vh - 48px)); background: #fff; border-radius: 6px; overflow: hidden;
  animation: rise .22s ease-out;
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.post-x {
  position: fixed; top: 14px; right: 18px; z-index: 3; background: none; border: 0; color: #fff; font-size: 28px; line-height: 1;
}
.post-media { position: relative; background: #000; height: min(820px, calc(100vh - 48px)); aspect-ratio: 9 / 16; max-width: calc(100vw - 48px - 380px); overflow: hidden; }
.post-slides { touch-action: pan-y; display: flex; height: 100%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.post-slides > * { flex: none; width: 100%; height: 100%; object-fit: contain; background: #000; }
.post-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 0; font-size: 24px; line-height: 30px; color: var(--ink); z-index: 2;
  transition: transform .4s var(--ease), background .3s;
}
.post-nav:hover, .post-nav:focus-visible { background: #fff; transform: translateY(-50%) scale(1.08); }
.post-nav.prev { left: 10px; } .post-nav.next { right: 10px; }
.post-nav[hidden] { display: none; }
.post-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.post-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.post-dots i.on { background: #fff; }
.post-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.post-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.post-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; border: 1px solid var(--line); background: #fff; padding: 3px; }
.post-head b { display: block; line-height: 1.2; }
.post-head small { color: #8c837b; font-size: 13px; }
.post-scroll { flex: 1; overflow-y: auto; padding: 16px; font-size: 15px; }
.post-cap { margin: 0 0 18px; }
.insights[hidden] { display: none; }
.insights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.ins { background: #f6f3ef; border-radius: 10px; padding: 10px 12px; }
.ins b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.ins span { font-size: 13px; color: var(--ink-2); }
.ins:first-child { background: var(--sky); }
.post-label { font-weight: 800; margin: 0 0 6px; }
.post-did { margin: 0 0 14px; padding-left: 18px; }
.post-did li { margin-bottom: 4px; }
.post-note { font-size: 13px; color: #8c837b; margin: 0; }
.post-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.post-like { background: none; border: 0; padding: 0; }
.post-like svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: transform .15s; }
.post-like.liked svg { fill: var(--heart); stroke: var(--heart); transform: scale(1.12); }
.post-dm { font-weight: 700; font-size: 14px; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .scribble-fyp { left: auto; right: 0; bottom: auto; top: -46px; transform: rotate(4deg); }
  .scribble-fyp svg { display: none; }
}
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; }
  .hero-copy { display: contents; }
  .cap-sm { order: 1; }
  .name { order: 2; font-size: clamp(48px, 14vw, 88px); }
  .fyp-wrap { order: 3; margin-top: 8px; display: flex; flex-direction: column; align-items: flex-start; }
  .scribble-fyp { order: -1; position: static; margin: 0 0 8px 4px; transform: rotate(-3deg); }
  .hero-lede { order: 4; margin-top: 28px; }
  .hero-meta { order: 5; }
  .about-in, .dm-in { grid-template-columns: 1fr; }
  .polaroid { max-width: 300px; justify-self: center; }
  .dm-side { order: -1; }
  .post { padding: 0; }
  .post-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .post-media { height: auto; width: 100%; max-width: none; aspect-ratio: auto; height: 58dvh; }
  .post-side { border-left: 0; }
  .post-x { top: 10px; right: 12px; background: rgba(0,0,0,.45); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { align-items: flex-start; gap: 12px; }
  .top nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; }
  .top nav a { font-size: 14px; }
  .prof-head { gap: 18px; align-items: flex-start; }
  .handle { width: 100%; }
  .prof-stats { gap: 16px; font-size: 15px; }
  .grid { gap: 2px; }
  .tile-meta { padding: 20px 6px 6px; font-size: 11px; }
  .tile-meta b { font-size: 12px; }
  .tile-meta span { display: none; }
  .tile-pin { font-size: 10px; top: 6px; left: 6px; padding: 1px 5px 2px; }
  .tile-ico { width: 16px; height: 16px; top: 6px; right: 6px; }
  .tabs { gap: 18px; }
  .thread:nth-child(n) { transform: none; }
  .wall { height: 600px; }
  .chat { height: 460px; }
}
html.motion .reveal { opacity: 0; translate: 0 22px; }
html.motion .reveal.in {
  animation: rise .9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fyp-track, .post-slides, .tile img, .tile video, .thread, .pbtn, .wordmark, .links a { transition: none; }
  html.motion .reveal, .reveal { opacity: 1; translate: none; animation: none; }
}
