/* app.css — portfolio-specific styles on top of design-system tokens */

html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--fg1);
  background: var(--bg-page);
  min-height: 100vh;
}

/* Fix the font-face paths (tokens.css uses relative "fonts/" — same here) */

/* ===== Shell / header ===== */
.ps-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ps-header {
  height: 48px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
  position: sticky; top: 0; z-index: 20;
}
.ps-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px;
  color: var(--fg1);
  border-right: 1px solid var(--border-subtle);
  text-decoration: none;
  cursor: pointer;
}
.ps-brand-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.ps-brand-dot {
  width: 6px; height: 6px; background: var(--accent-50);
}
.ps-nav { display: flex; }
.ps-nav-item {
  padding: 0 16px; display: flex; align-items: center;
  font-size: 14px; letter-spacing: .16px;
  color: var(--fg2); cursor: pointer; position: relative; border: 0; background: transparent;
  font-family: inherit;
}
.ps-nav-item:hover { color: var(--fg1); background: var(--bg-layer-1); }
.ps-nav-item.is-active { color: var(--fg1); background: var(--bg-layer-1); }
.ps-nav-item.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--accent-50);
}
.ps-spacer { flex: 1; }
.ps-icon-btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-left: 1px solid var(--border-subtle);
  color: var(--fg1); cursor: pointer;
}
.ps-icon-btn:hover { background: var(--bg-layer-1); }

/* ===== Sections ===== */
.ps-main { flex: 1; }
.ps-section {
  max-width: 1280px; margin: 0 auto; padding: 64px 32px;
  box-sizing: border-box;
}
.ps-section-sm { max-width: 860px; }

/* ===== Hero (album-first) ===== */
.hero-album-wrap {
  position: relative;
  width: 100%;
  padding: 24px 32px 48px;
  box-sizing: border-box;
}
.hero-album-caption {
  max-width: 1280px; margin: 0 auto 20px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  flex-wrap: wrap;
}
.hero-album-eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  color: var(--fg2); text-transform: uppercase;
}
.hero-album-sep { color: var(--fg3); }
.hero-album-hint {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--fg2); text-transform: uppercase;
}
.hero-album-hint kbd {
  display: inline-block; padding: 2px 6px; margin-right: 6px;
  border: 1px solid var(--border-strong); color: var(--fg1); background: var(--bg-page);
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
}
.hero-album-more { color: var(--fg2); }
.hero-album-more a { color: var(--fg1); text-decoration: none; border-bottom: 1px solid var(--accent-50); }
#album {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
#album .stage {
  min-height: calc(100vh - 48px - 130px);
}

/* Album-only stats chip for Now/Focus */
.hero-album-tags {
  max-width: 1280px; margin: 12px auto 0;
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--fg3); text-transform: uppercase;
}

/* ===== Stage (photo workspace) ===== */
.stage {
  position: relative;
  min-height: 640px;
  background:
    linear-gradient(var(--border-subtle) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--bg-layer-1);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.stage-eyebrow {
  position: absolute; top: 16px; left: 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--fg2); z-index: 4;
  text-transform: uppercase;
}
.stage-hint {
  position: absolute; bottom: 16px; left: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--fg3); z-index: 4;
  text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.stage-hint .kbd {
  display: inline-block; padding: 2px 6px; margin-right: 4px;
  border: 1px solid var(--border-strong); color: var(--fg2); background: var(--bg-page);
}
.stage-toolbar {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  display: flex; gap: 1px; background: var(--border-subtle);
}
.stage-toolbar button {
  background: var(--bg-page); border: 0; color: var(--fg1);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  padding: 8px 12px; cursor: pointer; text-transform: uppercase;
}
.stage-toolbar button:hover { background: var(--bg-layer-2); }
.stage-toolbar button:disabled { color: var(--fg3); cursor: default; }

/* Home drop zone */
.stack-home {
  position: absolute; z-index: 1;
  border: 1px dashed transparent;
  transition: border-color var(--duration-moderate-01), background-color var(--duration-moderate-01);
  pointer-events: none;
}
.stack-home.is-target {
  border-color: var(--accent-50);
  background: rgba(255,195,65,0.06);
}

/* ===== Photo ===== */
.photo {
  position: absolute;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 14px rgba(0,0,0,0.12);
  padding: 14px 14px 52px 14px;
  cursor: grab;
  will-change: transform;
}
.photo.is-dragging { cursor: grabbing; z-index: 999; }
.photo-img {
  display: block;
  background: var(--gray-20);
  width: 100%; aspect-ratio: 5 / 6;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.photo-caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
}
.photo-caption .num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  color: var(--fg2); text-transform: uppercase;
}
.photo-caption .ttl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--fg1); text-transform: uppercase; text-align: right;
  max-width: 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.photo-overlay {
  position: absolute; inset: 14px 14px 52px 14px;
  background: rgba(22,22,22,0.88);
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--duration-moderate-01) var(--ease-productive-enter);
  pointer-events: none;
}
.photo:hover .photo-overlay,
.photo.show-overlay .photo-overlay { opacity: 1; }
.photo-overlay .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  color: var(--accent-40); margin-bottom: 6px; text-transform: uppercase;
}
.photo-overlay .title {
  font-family: var(--font-sans); font-weight: 400; font-size: 22px; line-height: 28px;
  color: #fff; margin: 0 0 4px;
}
.photo-overlay .sub { font-size: 13px; color: #c6c6c6; line-height: 18px; }
.photo-accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0; background: var(--accent-50);
  transition: height var(--duration-fast-02) var(--ease-productive-enter);
}
.photo:hover .photo-accent { height: 3px; }

/* pin dot */
.photo .pin {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; background: var(--accent-50);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== Preview modal ===== */
.preview-scrim {
  position: fixed; inset: 0; background: rgba(22,22,22,0.72);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.preview-card {
  background: var(--bg-page); max-width: 920px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  max-height: 88vh; overflow: hidden;
  border-top: 3px solid var(--accent-50);
}
.preview-img {
  background: var(--gray-10);
  aspect-ratio: 5 / 6;
  position: relative;
  overflow: hidden;
}
.preview-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-body {
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto;
}
.preview-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  color: var(--fg2); text-transform: uppercase;
}
.preview-body h2 {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 34px; line-height: 40px; letter-spacing: -0.01em;
  margin: 0;
}
.preview-sub { font-size: 15px; line-height: 22px; color: var(--fg2); margin: 0; }
.preview-summary { font-size: 15px; line-height: 24px; color: var(--fg1); margin: 0; }
.preview-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.preview-meta div .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--fg2); text-transform: uppercase; margin-bottom: 4px; }
.preview-meta div .v { font-size: 13px; color: var(--fg1); }
.preview-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.preview-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; background: var(--bg-page); color: var(--fg1);
  border: 1px solid var(--border-subtle); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.preview-close:hover { background: var(--bg-layer-1); }

/* ===== Buttons (local; inherit DS tokens) ===== */
.btn {
  font-family: var(--font-sans); font-size: 14px; letter-spacing: .16px;
  border: 0; border-radius: 0; cursor: pointer;
  min-height: 48px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 48px;
  line-height: 1; font-weight: 400;
  transition: background-color var(--duration-fast-02), color var(--duration-fast-02);
}
.btn:focus-visible { outline: 2px solid var(--accent-50); outline-offset: 2px; }
.btn:not(.btn-icon) { gap: 0; }
.btn-primary { background: var(--fg1); color: var(--bg-page); }
.btn-primary:hover { background: var(--gray-80); }
.btn-tertiary { background: transparent; color: var(--fg1); box-shadow: inset 0 0 0 1px var(--fg1); }
.btn-tertiary:hover { background: var(--fg1); color: var(--bg-page); }
.btn-ghost { background: transparent; color: var(--fg1); }
.btn-ghost:hover { background: rgba(141,141,141,.12); }
.btn-icon img { width: 16px; height: 16px; }

/* ===== About ===== */
.about-intro { padding-top: 16px; margin-bottom: 56px; }
.hero-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 64px; line-height: 72px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--fg1);
}
.hero-title mark { background: var(--accent-50); color: var(--gray-100); padding: 0 8px; }
.about-meta { border-top: 2px solid var(--fg1); padding-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; margin-top: 32px; }
.hero-meta-val { font-size: 14px; color: var(--fg1); line-height: 20px; letter-spacing: .16px; margin-top: 4px; }
.hero-dot { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; margin-right: 6px; vertical-align: middle; background: var(--support-success); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px;
  border-top: 2px solid var(--fg1); padding-top: 24px;
}
.about-lede {
  font-family: var(--font-serif);
  font-size: 26px; line-height: 36px; color: var(--fg1);
  margin: 0; max-width: 28ch; font-weight: 400;
}
.about-body p { font-size: 16px; line-height: 26px; color: var(--fg2); margin: 0 0 16px; max-width: 56ch; }
.cv-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--border-subtle); }
.cv-list li { display: flex; gap: 24px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); font-size: 14px; color: var(--fg1); }
.cv-year { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--fg2); min-width: 96px; }

/* ===== About — Ran-Zhou-style long-form ===== */
.about-page { font-family: var(--font-sans); }
.about-bio {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin: 16px 0 80px;
}
.about-bio-photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--gray-10);
}
.about-bio-text p {
  font-size: 15px; line-height: 1.75;
  color: var(--fg1);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.about-bio-text p:last-child { margin-bottom: 0; }
.about-bio-text a {
  color: var(--fg1);
  text-decoration: none;
  border-bottom: 1px solid var(--fg1);
}
.about-bio-text a:hover { color: var(--accent-50); border-bottom-color: var(--accent-50); }
.about-bio-text strong { font-weight: 600; }

.about-h {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg1);
  margin: 64px 0 28px;
  padding: 0;
}
.about-h-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg2);
  margin: 28px 0 16px;
}

.about-list { display: flex; flex-direction: column; gap: 28px; }
.about-row { font-size: 15px; line-height: 1.7; color: var(--fg1); }
.about-row-org { font-size: 15px; }
.about-row-org strong { font-weight: 600; }
.about-row-meta { color: var(--fg2); font-size: 14px; margin-top: 2px; }
.about-row-meta em { font-style: italic; }
.about-row-body { color: var(--fg1); margin-top: 6px; max-width: 64ch; }

.about-bullets {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.about-bullets li {
  font-size: 15px; line-height: 1.6; color: var(--fg1);
  padding-left: 4px;
}
.about-bullets li strong { font-weight: 600; }
.about-bullets li em { font-style: italic; color: var(--fg2); }

.about-skills-flat p {
  font-size: 15px; line-height: 1.7; color: var(--fg1);
  margin: 0 0 12px;
  max-width: 72ch;
}
.about-skills-flat strong { font-weight: 600; }

.about-contact-line {
  font-size: 15px; line-height: 1.7; color: var(--fg1);
  margin: 0 0 16px;
}
.about-contact-line a {
  color: var(--fg1);
  border-bottom: 1px solid var(--fg1);
  text-decoration: none;
}
.about-contact-line a:hover { color: var(--accent-50); border-bottom-color: var(--accent-50); }
.about-contact-row {
  font-size: 15px; line-height: 1.7; color: var(--fg1);
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  column-gap: 20px;
}
.about-contact-row a {
  color: var(--fg1);
  border-bottom: 1px solid var(--fg1);
  text-decoration: none;
  justify-self: start;
}
.about-contact-row a:hover { color: var(--accent-50); border-bottom-color: var(--accent-50); }
.about-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg2);
}
.about-contact-lines { margin: 0 0 16px; }

@media (max-width: 720px) {
  .about-bio { grid-template-columns: 1fr; gap: 32px; }
  .about-bio-photo img { max-width: 360px; }
  .about-h { font-size: 18px; margin: 48px 0 20px; }
}
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; color: var(--fg1); text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}
.contact-link:hover { border-bottom-color: var(--accent-50); }
.contact-link img { width: 18px; height: 18px; }

/* ===== Project detail page ===== */
.detail {
  max-width: 920px; margin: 0 auto; padding: 48px 32px 96px;
}
.detail-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg2); margin-bottom: 48px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.detail-crumb button { background: transparent; border: 0; color: var(--fg2); padding: 0; cursor: pointer; font-family: inherit; font-size: inherit; letter-spacing: inherit; }
.detail-crumb button:hover { color: var(--fg1); border-bottom: 1px solid var(--accent-50); }
.detail-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--fg2); text-transform: uppercase; margin-bottom: 16px; }
.detail h1 {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 54px; line-height: 60px; letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.detail-lede { font-size: 22px; line-height: 32px; color: var(--fg1); margin: 0 0 32px; max-width: 58ch; font-weight: 300; letter-spacing: -0.005em; }
.detail-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 24px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); margin-bottom: 48px; }
.detail-meta .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--fg2); text-transform: uppercase; margin-bottom: 4px; }
.detail-meta .v { font-size: 14px; color: var(--fg1); }
.detail-hero {
  width: 100%; aspect-ratio: 16/9; background: var(--gray-10);
  margin: 0 0 48px; position: relative; overflow: hidden;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.detail-section { max-width: 65ch; margin: 0 0 48px; }
.detail-section h2 { font-family: var(--font-sans); font-weight: 400; font-size: 28px; line-height: 36px; margin: 8px 0 16px; }
.detail-section p { font-size: 16px; line-height: 26px; color: var(--fg1); margin: 0 0 16px; }
.detail-list { padding-left: 20px; margin: 0 0 16px; }
.detail-list li { font-size: 16px; line-height: 26px; color: var(--fg1); margin-bottom: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-left: 1px solid var(--border-subtle); border-top: 1px solid var(--border-subtle); }
.stat { padding: 24px; border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: var(--bg-layer-1); }
.stat-num { font-size: 36px; line-height: 1.1; font-weight: 300; color: var(--fg1); letter-spacing: -0.01em; margin-bottom: 4px; }
.stat-lbl { font-size: 12px; color: var(--fg2); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.detail-palette { display: flex; gap: 8px; margin: 16px 0 32px; }
.detail-palette .sw { width: 48px; height: 48px; border: 1px solid var(--border-subtle); }
.detail-nav { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }

/* ===== Tweaks panel ===== */
.tweaks {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  width: 280px; z-index: 60;
  font-size: 13px;
}
.tweaks-head {
  padding: 10px 14px; background: var(--gray-100); color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.tweaks-head button { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 0 4px; }
.tweaks-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.tweaks-row { display: flex; flex-direction: column; gap: 4px; }
.tweaks-row label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--fg2); text-transform: uppercase; }
.tweaks-row input[type="range"] { width: 100%; accent-color: var(--accent-50); }
.tweaks-row .val { font-family: var(--font-mono); font-size: 11px; color: var(--fg2); }
.tweaks-row .opts { display: flex; gap: 0; }
.tweaks-row .opts button {
  flex: 1; font-family: var(--font-sans); font-size: 12px;
  padding: 6px 8px; background: transparent; color: var(--fg1);
  border: 1px solid var(--border-strong); cursor: pointer;
}
.tweaks-row .opts button + button { border-left: 0; }
.tweaks-row .opts button.on { background: var(--accent-50); border-color: var(--accent-50); color: var(--gray-100); }

/* ===== Footer ===== */
.ps-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 32px;
  max-width: 1280px; margin: 48px auto 0; width: 100%;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px;
  box-sizing: border-box;
}
.ps-footer .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--fg2); text-transform: uppercase; margin-bottom: 8px; }
.ps-footer p { font-size: 13px; color: var(--fg2); line-height: 1.55; margin: 0; max-width: 32ch; }
.ps-footer a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg1); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.ps-footer a:hover { border-bottom-color: var(--accent-50); }

/* ===== Section headings (shared) ===== */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 2px solid var(--fg1); padding-top: 16px; margin-bottom: 32px;
}
.section-head h2 { font-family: var(--font-sans); font-weight: 400; font-size: 28px; line-height: 36px; margin: 0; }
.section-head .eyebrow { margin: 0; }

/* ===== Stickers ===== */
.sticker-wrap { touch-action: none; }
.sticker-wrap.is-dragging { cursor: grabbing !important; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.18)); }
.sticker { display: block; transform-origin: center; }

.sticker-name {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-sans); font-weight: 300;
  font-size: 34px; line-height: 1; letter-spacing: -0.02em;
  color: var(--fg1); white-space: nowrap;
}
.sticker-name-last { padding: 2px 10px 4px; color: var(--gray-100); }

.sticker-avatar {
  position: relative;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}
.sticker-avatar-photo {
  display: block;
  width: 120px;
  height: 120px;
  max-width: 120px;
  max-height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 3px solid var(--gray-100);
  background: var(--gray-5);
  flex: none;
}
.sticker-avatar-tag {
  position: absolute; bottom: -6px; right: -10px;
  background: var(--accent-50); color: var(--gray-100);
  padding: 2px 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  transform: rotate(6deg);
}

.sticker-tape {
  background: rgba(255,195,65,0.65);
  border: 0;
  padding: 9px 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--gray-100); text-transform: uppercase;
  backdrop-filter: blur(2px);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.05),
    0 1px 2px rgba(0,0,0,0.08);
}
.sticker-tape::before, .sticker-tape::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05));
}
.sticker-tape::before { left: 0; transform: scaleX(-1); }
.sticker-tape::after { right: 0; }

.sticker-star { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }

.sticker-stamp {
  display: inline-flex; align-items: baseline; gap: 10px;
  border: 2px solid rgb(0, 71, 145);
  color: rgb(0, 71, 145);
  padding: 8px 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  background: rgba(255,255,255,0.8);
}
.sticker-stamp-year { font-size: 22px; font-weight: 500; letter-spacing: .04em; }
.sticker-stamp-label { font-size: 11px; letter-spacing: .24em; }

.sticker-stamp-aalto {
  border-color: var(--accent-50);
  color: var(--accent-50);
}
[data-theme="dark"] .sticker-stamp-aalto { border-color: var(--accent-50); color: var(--accent-50); }

.sticker-stamp-taipei {
  border-color: var(--support-error);
  color: var(--support-error);
}

[data-theme="dark"] .sticker-name { color: var(--fg1); }
[data-theme="dark"] .sticker-stamp { background: rgba(22,22,22,0.7); }
[data-theme="dark"] .sticker-tape { background: rgba(255,195,65,0.45); }

/* ===== CV page ===== */
.about-block { margin-top: 48px; }
.about-block .cv-block-head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--fg2); text-transform: uppercase;
  padding: 24px 0 8px;
  border-bottom: 1px solid var(--fg1);
  margin-bottom: 0;
}
.about-block .cv-rows { list-style: none; padding: 0; margin: 0; }
.about-block .cv-rows li {
  display: grid; grid-template-columns: 180px 1.4fr 2fr;
  gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--border-subtle);
}
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 48px; padding: 16px 0 0; }
.skills-grid .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--fg2); text-transform: uppercase; margin-bottom: 6px; }
.skills-grid p { font-size: 14px; line-height: 22px; color: var(--fg1); margin: 0; }
@media (max-width: 900px) {
  .about-block .cv-rows li { grid-template-columns: 1fr; gap: 4px; }
  .skills-grid { grid-template-columns: 1fr; }
}

.cv-actions { display: flex; gap: 8px; }
.cv-pdf-wrap {
  width: 100%; background: var(--bg-layer-1);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 8.5 / 11;
  max-height: calc(100vh - 260px);
  min-height: 600px;
}
.cv-pdf-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.cv-fallback { font-size: 13px; color: var(--fg2); margin-top: 12px; }
.cv-fallback a { color: var(--fg1); border-bottom: 1px solid var(--accent-50); text-decoration: none; }

.cv-page {
  border-top: 2px solid var(--fg1);
  padding-top: 24px;
}
.cv-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}
.cv-name { font-family: var(--font-sans); font-weight: 300; font-size: 48px; line-height: 1.1; letter-spacing: -0.01em; color: var(--fg1); }
.cv-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--fg2); text-transform: uppercase; margin-top: 6px; }
.cv-top-right { display: flex; gap: 32px; flex-wrap: wrap; font-size: 13px; color: var(--fg1); line-height: 1.5; }
.cv-top-right .eyebrow { display: inline-block; }
.cv-download {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg1); text-decoration: none;
  border: 1px solid var(--fg1); padding: 10px 14px;
  align-self: flex-start;
}
.cv-download:hover { background: var(--accent-50); border-color: var(--accent-50); }
.cv-download img { width: 14px; height: 14px; }
.cv-download-primary { background: var(--fg1); color: var(--bg-page); }
.cv-download-primary img { filter: invert(1); }
[data-theme="dark"] .cv-download-primary img { filter: none; }
.cv-download-primary:hover { background: var(--accent-50); color: var(--gray-100); border-color: var(--accent-50); }
.cv-download-primary:hover img { filter: none; }

.cv-block { margin-top: 40px; }
.cv-block-head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--fg2); text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid var(--fg1);
  margin-bottom: 0;
}
.cv-rows { list-style: none; padding: 0; margin: 0; }
.cv-rows li {
  display: grid; grid-template-columns: 140px 1.2fr 2fr;
  gap: 24px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border-subtle);
}
.cv-row-year { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--fg2); }
.cv-row-title { font-size: 15px; color: var(--fg1); font-weight: 500; }
.cv-row-desc { font-size: 14px; color: var(--fg2); line-height: 1.5; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-album-wrap { padding: 16px 16px 32px; }
  #album .stage { min-height: 70vh; }
  .hero-title { font-size: 40px; line-height: 48px; }
  .stage { min-height: 520px; }
  .about-meta { grid-template-columns: 1fr 1fr; }
  .preview-card { grid-template-columns: 1fr; max-height: 92vh; }
  .preview-img { aspect-ratio: 4 / 3; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .ps-footer { grid-template-columns: 1fr; gap: 24px; }
  .detail h1 { font-size: 36px; line-height: 42px; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .ps-section { padding: 32px 20px; }
  .ps-nav-item { padding: 0 12px; font-size: 13px; }
  .tweaks { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
  .cv-rows li { grid-template-columns: 1fr; gap: 4px; }
  .cv-name { font-size: 36px; }
}

/* Tap Taipei cover crop — shift toward the left so the Metro Taipei
   logo + project title stay visible inside the portrait crop. */
.photo-img[src*="taptaipei-hero"],
.preview-img img[src*="taptaipei-hero"] {
  object-position: 18% center;
}

/* Wagyu Rush preview — let the artwork fill the standard 5:6 frame
   flush against both left and right edges. Force the portrait ratio
   even on narrow viewports so the portrait artwork doesn't end up
   letterboxed inside a landscape frame. */
.preview-img:has(img[src*="wagyu-preview"]) {
  aspect-ratio: 5 / 6 !important;
}
.preview-img img[src*="wagyu-preview"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
