/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --ac: #0a0a0a;
  --border: #ebebeb;
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px;  --sp-7: 48px; --sp-8: 64px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #0a0a0a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none;
}

.feat-title, .proj-title, .lede {
  font-family: 'Plus Jakarta Sans', sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ── Header ──────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.2s;
  padding: 0 clamp(20px, 5%, 80px);
}
#site-header.scrolled { border-color: #ebebeb; }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}
#site-header.scrolled .header-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.logo-name {
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo-role {
  font-size: 14px;
  color: #555;
  max-height: 18px;
  opacity: 1;
  overflow: hidden;
}
#site-header.scrolled .logo-role {
  max-height: 0;
  opacity: 0;
}
nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.13s, color 0.13s;
}
nav a:hover { background: #0a0a0a; color: #fff; }
nav a.active { color: #0a0a0a; font-weight: 500; }

/* ── Homepage wrapper ────────────────────────────────────── */
.home-band {
  padding: 0 clamp(20px, 5%, 80px) 80px;
}

/* ── Lede ────────────────────────────────────────────────── */
.lede {
  font-size: 28px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 1.4;
  letter-spacing: -0.01em;
  padding: 48px 0 56px;
  max-width: 36ch;
}

/* ── Section label ───────────────────────────────────────── */
.section-label {
  font-size: 14px;
  color: #555;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.inner-content .section-label { margin-top: 48px; }
.inner-content .section-label:first-of-type { margin-top: 0; }

/* ── Featured grid ───────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid #ebebeb;
  border-bottom: 0.5px solid #ebebeb;
  margin-left: calc(-1 * clamp(20px, 5%, 80px));
  margin-right: calc(-1 * clamp(20px, 5%, 80px));
  margin-bottom: 56px;
}
.feat-card {
  padding: 36px 32px;
  border-right: 0.5px solid #ebebeb;
  cursor: pointer;
  min-height: 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.18s ease;
}
.feat-card:last-child { border-right: none; }
.feat-card:hover { background: #f9f9f9; }
.feat-title {
  font-size: 54px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 20px;
  transition: filter 0.2s;
}
.feat-sub {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin-top: auto;
}
.feat-arr {
  font-size: 15px;
  color: #555;
  align-self: flex-end;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.18s, transform 0.18s;
}
.feat-card:hover .feat-arr {
  opacity: 1;
  transform: translate(0, 0);
  color: #0a0a0a;
}

/* WordArt hover effects */
.feat-card:nth-child(1):hover .feat-title {
  background: linear-gradient(180deg, #dbe4ff 0%, #88a4ff 50%, #6f93ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 0 #5e83ff) drop-shadow(2px 2px 0 #4f74ee) drop-shadow(3px 3px 0 #3f63e0) drop-shadow(4px 4px 0 #3253c9) drop-shadow(5px 5px 0 #2645a8);
}
.feat-card:nth-child(2):hover .feat-title {
  background: linear-gradient(180deg, #ffeccb 0%, #ffc070 50%, #ffae4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 0 #ff9e2e) drop-shadow(2px 2px 0 #f08a1c) drop-shadow(3px 3px 0 #db7714) drop-shadow(4px 4px 0 #bd6210) drop-shadow(5px 5px 0 #9c4f0c);
}
.feat-card:nth-child(3):hover .feat-title {
  background: linear-gradient(180deg, #efd9ff 0%, #cd9bfd 50%, #bd84fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 0 #ad62f8) drop-shadow(2px 2px 0 #9a4cee) drop-shadow(3px 3px 0 #863bda) drop-shadow(4px 4px 0 #7030bd) drop-shadow(5px 5px 0 #5a2493);
}
.feat-card:nth-child(4):hover .feat-title {
  background: linear-gradient(180deg, #c2f7e1 0%, #5ce6b8 50%, #2fd9a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 0 #18cf92) drop-shadow(2px 2px 0 #11bd84) drop-shadow(3px 3px 0 #0ea876) drop-shadow(4px 4px 0 #0a8a60) drop-shadow(5px 5px 0 #07724e);
}

/* ── Work header + filters ───────────────────────────────── */
.work-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.filters { display: flex; gap: 16px; align-items: center; }
.filter-btn {
  font-size: 14px;
  color: #555;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.13s;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.filter-btn:hover { color: #0a0a0a; }
.filter-btn.active {
  color: #0a0a0a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ── Project list rows ────────────────────────────────────── */
.row-wrap {
  overflow: hidden;
  max-height: 120px;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.row-wrap.open { opacity: 1; }
.row-wrap.hidden { display: none; }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 0.5px solid #ebebeb;
  cursor: pointer;
  transition: background 0.2s ease;
}
.row-wrap:first-of-type .row { border-top: 0.5px solid #ebebeb; }
.row:hover { background: #f7f7f7; }
.row:hover .row-arr { opacity: 1; }

/* Category accent pairs */
.row[data-cat~="developer"]    { --accent: #2b6cff; --accent-2: #0ea5e9; }
.row[data-cat~="monetisation"] { --accent: #0aa17a; --accent-2: #00c896; }
.row[data-cat~="internal"]     { --accent: #8b5cf6; --accent-2: #ec4899; }
.row[data-cat~="cms"]          { --accent: #f4660b; --accent-2: #ffb000; }

@keyframes grad-flow { to { background-position: 200% 0; } }

.row:hover .row-title {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: grad-flow 2.2s linear infinite;
}
.row:hover .num,
.row:hover .row-arr { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .row:hover .row-title { animation: none; }
}

.num { font-size: 14px; font-weight: 500; color: #555; min-width: 22px; flex-shrink: 0; }
.rmain {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}
.row-title {
  font-size: 16px;
  font-weight: 400;
  color: #555;
  line-height: 1.3;
  transition: transform 0.2s ease;
}
.row:hover .row-title { transform: translateY(-9px); }
.rsub {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  top: calc(50% + 5px);
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.row:hover .rsub { opacity: 1; }
.row-year { font-size: 14px; color: #555; flex-shrink: 0; min-width: 36px; text-align: right; }
.row-arr { font-size: 14px; opacity: 0; transition: opacity 0.2s ease; color: #555; flex-shrink: 0; }
.cat-tag {
  font-size: 15px;
  color: #555;
  border: 0.5px solid #e0e0e0;
  border-radius: 3px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.feat-tag {
  font-size: 15px;
  color: #555;
  border: 0.5px solid #e0e0e0;
  border-radius: 3px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #0a0a0a;
  padding: 64px clamp(20px, 5%, 80px) 48px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer-left { flex: 1; }
.footer-statement {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 340px;
}
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 24px;
}
@keyframes ftag-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.85; }
}
.ftag {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  cursor: default;
  user-select: none;
  animation: ftag-pulse 3s ease-in-out infinite;
}
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.4); }
.footer-right {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  flex-shrink: 0;
  min-width: 220px;
}
.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
  transition: color 0.15s;
}
.footer-link:first-child { border-top: 0.5px solid rgba(255,255,255,0.1); }
.footer-link:hover { color: #fff; }
.footer-arr { opacity: 0.5; font-size: 14px; }
.footer-bottom { margin: 48px 0 0; font-size: 14px; color: rgba(255,255,255,0.3); }

/* ── Inner pages ─────────────────────────────────────────── */
.inner-main { padding: 0 clamp(20px, 5%, 80px); }
.inner-content { padding: 56px 0 80px; max-width: 720px; }
.ds-content { max-width: none; }
.inner-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.inner-content .page-sub { font-size: 14px; color: #555; margin-bottom: 48px; }

/* ── About ───────────────────────────────────────────────── */
.about-bio {
  font-size: 18px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  max-width: 560px;
}

/* ── About (Notion content) ─────────────────────────────── */
/* About page — Notion-generated HTML styling */
.about-notion { max-width: 720px; padding: 56px 0 80px; }

/* Section labels: Experience, Education, Skills */
.about-notion h2 {
  font-size: 14px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 48px 0 20px;
  padding-top: 24px;
  border-top: 0.5px solid #ebebeb;
}
.about-notion h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

/* Role titles and year headings: bold-only paragraphs */
.about-notion p { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 4px; }
.about-notion p:has(> strong:only-child) { font-size: 16px; color: #0a0a0a; font-weight: 600; margin-top: 20px; margin-bottom: 2px; }
.about-notion p:has(> strong:only-child):first-of-type { margin-top: 0; }

/* Project lists: italic-only paragraphs */
.about-notion p:has(> em:only-child) { font-size: 14px; color: #888; margin-bottom: 16px; }

/* Dividers */
.about-notion hr { border: none; border-top: 0.5px solid #ebebeb; margin: 32px 0; }

/* Links */
.about-notion a { color: #0a0a0a; text-decoration: underline; text-underline-offset: 3px; }
.about-notion strong { font-weight: 600; color: #0a0a0a; }
.about-notion em { font-style: italic; }

/* ── CV ──────────────────────────────────────────────────── */
.cv-role { margin-bottom: 40px; }
.cv-sub-roles { border-left: 1.5px solid #ebebeb; padding-left: 20px; margin-top: 12px; }
.cv-sub-role { margin-bottom: 24px; }
.cv-sub-role:last-child { margin-bottom: 0; }
.cv-role-header { margin-bottom: 6px; }
/* Top-level role: UX Designer · Wix.com · 2014–2026 */
.cv-title { font-size: 20px; font-weight: 500; color: #0a0a0a; display: block; margin-bottom: 16px; margin-top: 8px; }
/* Sub-period: 2025–2026 · OS company */
.cv-years { font-size: 16px; font-weight: 600; color: #0a0a0a; display: block; }
.cv-desc { font-size: 16px; color: #555; line-height: 1.7; margin-top: 4px; }
.cv-proj-list { font-size: 14px; color: #555; font-style: italic; line-height: 1.6; margin-top: 6px; }
.cv-skills { font-size: 16px; color: #555; line-height: 1.8; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-intro { font-size: 16px; color: #555; line-height: 1.65; max-width: 480px; margin-bottom: 32px; }
.contact-simple-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.contact-plain-link { font-size: 16px; color: #0a0a0a; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.contact-plain-link:hover { color: #555; }
.contact-location { font-size: 14px; color: #555; }

/* ── Project page ────────────────────────────────────────── */
.proj-page-grid {
  display: grid;
  grid-template-columns: 0 1fr 0;
  overflow-x: clip;
}
.proj-gutter {
  align-self: start;
  position: sticky;
  top: 56px;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding-top: 36px;
}
.proj-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2563eb;
  gap: 8px;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s;
  color: #0a0a0a;
}
.proj-nav-btn:hover { opacity: 1; }
.proj-nav-btn i { font-size: 20px; }
.proj-nav-name {
  font-size: 14px;
  font-weight: 400;
  color: #2563eb;
  writing-mode: vertical-rl;
  max-width: 52px;
  line-height: 1.4;
  text-align: center;
}
/* Prev/next project arrows: vertical, in the side padding, fixed so they stay in place on scroll */
.proj-side-nav .proj-nav-btn { position: fixed; top: 40vh; z-index: 8; }
.proj-side-nav .proj-nav-prev { left: clamp(24px, 7vw, 150px); }
.proj-side-nav .proj-nav-next { right: clamp(24px, 7vw, 150px); }
.proj-breadcrumb {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
  opacity: 1;
  max-height: 24px;
  overflow: hidden;
}
.proj-breadcrumb a { color: #555; text-decoration: none; }
.proj-breadcrumb a:hover { color: #0a0a0a; }
.proj-title-wrap {
  position: sticky;
  top: 56px;
  background: #fff;
  z-index: 5;
  margin-left: calc(-1 * clamp(40px, 20%, 240px));
  margin-right: calc(-1 * clamp(40px, 20%, 240px));
  padding-top: 28px;
  padding-bottom: 28px;
  padding-left: clamp(40px, 20%, 240px);
  padding-right: clamp(40px, 20%, 240px);
  transition: box-shadow 0.2s ease;
}
.proj-title-wrap.condensed { box-shadow: 0 1px 0 rgba(10,10,10,0.04), 0 6px 16px -12px rgba(10,10,10,0.18); }
.proj-title-wrap.condensed .proj-breadcrumb { opacity: 0; max-height: 0; margin-bottom: 0; pointer-events: none; }
.proj-title-wrap.condensed .proj-subtitle { opacity: 0; max-height: 0; margin: 0; overflow: hidden; }
.proj-title-wrap.condensed .proj-title { font-size: 22px; }
.proj-title-wrap.condensed .proj-meta { padding-bottom: 0; }
.proj-title-wrap .proj-meta { margin-bottom: 0; }
.proj-subtitle { font-size: 20px; font-weight: 500; color: #0a0a0a; margin-bottom: 8px; line-height: 1.4; max-height: 60px; overflow: hidden; }
.proj-main { padding: 0 clamp(40px, 20%, 240px); position: relative; }
.proj-content { padding: 24px 0 80px; }
.proj-title {
  font-size: 54px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.proj-subtitle { font-size: 20px; font-weight: 500; color: #0a0a0a; margin-bottom: 16px; line-height: 1.4; max-width: 68ch; }
.proj-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.proj-meta-item { font-size: 14px; color: #555; }
.proj-meta-sep  { font-size: 14px; color: #ccc; }
.proj-intro {
  font-size: 16px;
  font-weight: 400;
  color: #555;
  line-height: 1.7;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid #ebebeb;
}
.proj-body { font-size: 16px; color: #555; line-height: 1.7; }
.proj-body + .proj-body { margin-top: 16px; }
.proj-img { width: 100%; border-radius: 8px; margin: 32px 0; overflow: hidden; background: #f5f5f5; }
.proj-img img { width: 100%; height: auto; display: block; border-radius: 8px; }
/* Notion-generated content */
.proj-content p { font-size: 16px; color: #555; line-height: 1.7; margin-bottom: 16px; }
.proj-content h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: #0a0a0a; margin: 48px 0 16px; }
.proj-content h3 { font-size: 20px; font-weight: 500; color: #0a0a0a; margin: 32px 0 12px; }
.proj-content ul, .proj-content ol { padding-left: 20px; margin-bottom: 16px; font-size: 16px; color: #555; line-height: 1.7; }
.proj-content li { margin-bottom: 6px; }
.proj-content figure { margin: 24px 0; }
.proj-content img { max-width: 100%; border-radius: 6px; border: 0.5px solid var(--border); }
.proj-content figcaption { font-size: 14px; color: #555; margin-top: 8px; }
.proj-content hr { border: none; border-top: 0.5px solid var(--border); margin: 32px 0; }
.proj-content a { color: #0a0a0a; text-decoration: underline; text-underline-offset: 2px; }
.proj-content code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.875em; background: #f5f5f3; padding: 0.1em 0.3em; border-radius: 4px; }
.col-layout { display: grid; gap: 12px; margin: 24px 0; }
.col-2 { grid-template-columns: 1fr 1fr; }
.col-3 { grid-template-columns: 1fr 1fr 1fr; }
.col figure { margin: 0; }
.col img { width: 100%; }
.callout {
  background: #f8f8f8;
  border-left: 2px solid #0a0a0a;
  padding: 14px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
  font-size: 14px; color: #555; line-height: 1.6;
}

/* ── More work (project pages) ───────────────────────────── */
.more-section { padding: 0 clamp(20px, 5%, 80px); }
.more-inner {
  padding-top: 64px;
  border-top: 0.5px solid #ebebeb;
}
/* More-work rows start visible (no accordion) */
#more-list .row-wrap { opacity: 1; }
.more-label { font-size: 14px; color: #555; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 16px; }
/* already 14px — unified with section-label */
.more-cta { display: flex; justify-content: flex-end; padding-top: 16px; padding-bottom: 64px; }
.more-cta-link { font-size: 15px; font-weight: 500; color: #0a0a0a; text-decoration: none; transition: opacity 0.15s; }
.more-cta-link:hover { opacity: 0.45; }

/* ── Lightbox ────────────────────────────────────────────── */
.lb-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000; display: none;
  align-items: center; justify-content: center;
  padding: 48px 16px 24px;
}
.lb-overlay.open { display: flex; }
.lb-stage { display: flex; align-items: center; gap: 20px; width: 100%; height: 100%; }
.lb-content { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; height: 100%; justify-content: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 4px; display: block; }
.lb-caption { font-size: 15px; color: rgba(255,255,255,0.5); text-align: center; line-height: 1.5; }
.lb-close {
  position: fixed; top: 20px; right: 28px;
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 20px; cursor: pointer; padding: 8px; line-height: 1; transition: color 0.15s;
}
.lb-close:hover { color: #fff; }
.lb-handle {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none;
  color: rgba(255,255,255,0.8); font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; user-select: none; line-height: 1;
}
.lb-handle:hover { background: rgba(255,255,255,0.22); color: #fff; }
.lb-handle[hidden] { visibility: hidden; pointer-events: none; }
.proj-content img { cursor: zoom-in; }

/* ── Design system page ──────────────────────────────────── */
.ds-section { margin-bottom: 56px; }
.ds-section-title {
  font-size: 14px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.07em; color: #555;
  padding-bottom: 10px; border-bottom: 0.5px solid var(--border);
  margin-bottom: 24px; display: block; margin-top: 0;
}
.ds-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ds-swatch { display: flex; flex-direction: column; }
.ds-swatch-box { width: 100%; aspect-ratio: 1; border-radius: 6px; border: 0.5px solid var(--border); margin-bottom: 8px; }
.ds-swatch-hex { font-size: 13px; font-weight: 500; color: #0a0a0a; display: block; margin-bottom: 2px; font-family: 'SF Mono', monospace; }
.ds-swatch-name { font-size: 13px; color: #555; display: block; }
.ds-type-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 20px 0; border-bottom: 0.5px solid var(--border); }
.ds-type-row:first-child { border-top: 0.5px solid var(--border); }
.ds-type-num { font-size: 13px; font-weight: 500; color: #555; font-family: 'SF Mono', monospace; min-width: 20px; flex-shrink: 0; padding-top: 4px; }
.ds-type-sample { flex: 1; min-width: 0; }
.ds-type-meta { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.ds-type-spec { font-size: 13px; color: #555; font-family: 'SF Mono', monospace; display: flex; align-items: center; gap: 10px; }
.ds-type-where { font-size: 12px; color: #888; }
.ds-type-color { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #888; }
.ds-type-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; border: 0.5px solid rgba(0,0,0,0.08); }
.ds-spacing { display: flex; flex-direction: column; gap: 12px; }
.ds-sp-row { display: flex; align-items: center; gap: 16px; }
.ds-sp-bar { background: #0a0a0a; height: 4px; border-radius: 2px; flex-shrink: 0; }
.ds-sp-token { font-size: 14px; color: #555; font-family: 'SF Mono', monospace; min-width: 64px; }
.ds-sp-val { font-size: 14px; color: #555; min-width: 32px; }
.ds-comp-block { margin-bottom: 40px; }
.ds-comp-label { font-size: 14px; color: #555; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.ds-comp-demo { padding: 24px; border: 0.5px solid var(--border); border-radius: 6px; margin-bottom: 12px; }
.ds-comp-demo-dark { background: #0a0a0a; }
.ds-code { background: #f5f5f3; border-radius: 6px; padding: 16px; font-size: 14px; font-family: 'SF Mono', 'Fira Code', monospace; color: #555; overflow-x: auto; white-space: pre; line-height: 1.6; }
.ds-changelog { display: flex; flex-direction: column; }
.ds-cl-row { display: flex; gap: 24px; padding: 10px 0; border-bottom: 0.5px solid var(--border); }
.ds-cl-row:first-child { border-top: 0.5px solid var(--border); }
.ds-cl-date { font-size: 13px; color: #555; flex-shrink: 0; width: 88px; padding-top: 1px; }
.ds-cl-text { font-size: 14px; color: #0a0a0a; line-height: 1.5; }
.ds-updated { font-size: 14px; color: #555; margin-top: 64px; padding-top: 24px; border-top: 0.5px solid var(--border); }
.nav-demo-hovered { background: #0a0a0a !important; color: #fff !important; }

/* ── Mobile-only elements (hidden on desktop) ────────────── */
.mob-burger { display: none; }
.mob-scrim { display: none; }
.mob-panel { display: none; }
.feat-foot { display: none; }
.mob-row-meta { display: none; }
.mob-row-foot { display: none; }
.mob-filter { display: none; }
.mob-proj-back { display: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .feat-grid { grid-template-columns: 1fr 1fr; height: auto; margin-left: 0; margin-right: 0; }
  .feat-card:nth-child(n+3) { border-top: 0.5px solid #ebebeb; }
}
@media (max-width: 768px) {
  :root { --border: #c8c8c8; }
}
@media (max-width: 768px) {
  /* Layout */
  #site-header { padding: 0 20px; }
  .home-band { width: 100%; max-width: 100%; padding: 0 20px 60px; }
  .inner-main, .proj-main, .more-section { padding: 0 20px; }
  .proj-page-grid { grid-template-columns: 0 1fr 0; }
  .proj-nav-btn { display: none; }

  /* Desktop nav → hamburger */
  #site-header nav { display: none; }
  .mob-burger {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 40px; height: 40px; border-radius: 11px; border: 0.5px solid #ebebeb;
    background: none; cursor: pointer; flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s;
  }
  .mob-burger:active { background: #0a0a0a; border-color: #0a0a0a; }
  .mob-burger span { display: block; width: 17px; height: 1.5px; background: #0a0a0a; border-radius: 2px; }
  .mob-burger:active span { background: #fff; }

  /* Scrim */
  .mob-scrim {
    display: block; position: fixed; inset: 0; z-index: 50;
    background: rgba(10,10,10,0.36);
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .mob-scrim.open { opacity: 1; pointer-events: auto; }

  /* Slide-in panel */
  .mob-panel {
    display: flex; flex-direction: column; position: fixed;
    top: 0; right: 0; bottom: 0; z-index: 51;
    width: 80%; max-width: 320px; background: #fff;
    transform: translateX(100%); transition: transform 0.34s cubic-bezier(0.22,0.61,0.36,1);
    padding: 56px 24px 34px; box-shadow: -20px 0 50px rgba(0,0,0,0.16);
  }
  .mob-panel.open { transform: translateX(0); }
  .mob-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
  .mob-panel-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 700; }
  .mob-panel-close {
    width: 38px; height: 38px; border-radius: 10px; border: 0.5px solid #ebebeb;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #555; background: none; cursor: pointer;
  }
  .mob-panel-nav { display: flex; flex-direction: column; }
  .mob-panel-link {
    display: block; font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
    padding: 14px 0; color: #0a0a0a; border-bottom: 0.5px solid #ebebeb;
    text-decoration: none; text-align: left; transition: opacity 0.15s;
  }
  .mob-panel-link:active { opacity: 0.5; }
  .mob-panel-foot { margin-top: auto; padding-top: 28px; }
  .mob-panel-social { display: flex; flex-direction: column; gap: 2px; }
  .mob-panel-social a {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; color: #555; padding: 9px 0; text-decoration: none;
  }
  .mob-arr { opacity: 0.5; }

  /* Featured cards — vertical stack, reset negative margins */
  .feat-grid {
    width: 100%; max-width: 100%; grid-template-columns: 1fr;
    height: auto; border-bottom: none; margin-bottom: 32px;
    margin-left: 0; margin-right: 0;
  }
  .feat-card {
    border-right: none; border-bottom: 0.5px solid #ebebeb;
    min-height: unset; padding: 30px 0 24px; gap: 0; flex-direction: column;
    transition: none;
  }
  .feat-card:nth-child(n+3) { border-top: none; }
  .feat-card:hover { background: #fff; }
  .feat-title {
    font-size: 40px; font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1; min-height: unset; margin-bottom: 12px;
  }
  /* Disable WordArt hover on touch screens */
  .feat-card:nth-child(1):hover .feat-title,
  .feat-card:nth-child(2):hover .feat-title,
  .feat-card:nth-child(3):hover .feat-title,
  .feat-card:nth-child(4):hover .feat-title {
    background: none; -webkit-text-fill-color: unset; filter: none;
  }
  .feat-sub { font-size: 15px; }
  .feat-arr { display: none; }
  .feat-foot { display: block; margin-top: 18px; }

  /* View buttons */
  .mob-view-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 500; color: #0a0a0a;
    border: 0.5px solid #d8d8d8; border-radius: 999px; padding: 8px 16px;
    text-decoration: none; transition: background 0.16s, color 0.16s, border-color 0.16s;
  }
  .mob-view-btn:active { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
  .mob-view-sm { padding: 6px 13px; font-size: 13px; }

  /* Work rows — stacked layout */
  .row-wrap { opacity: 1; max-height: none; overflow: visible; }
  .row { padding: 22px 0; border-bottom-color: #c8c8c8; }
  .row-wrap:first-of-type .row { border-top-color: #c8c8c8; }
  .rmain { flex-direction: column; align-items: flex-start; }
  .rsub {
    position: static; opacity: 1; white-space: normal;
    overflow: visible; text-overflow: unset; width: auto;
    top: auto; left: auto; font-size: 13px; margin-top: 4px;
  }
  .row-title { font-size: 16px; font-weight: 400; line-height: 1.3; }
  .row:hover .row-title { transform: none; background: none; -webkit-text-fill-color: unset; color: #0a0a0a; animation: none; }
  .row:hover .num { color: #555; }
  .row:hover .row-arr { opacity: 0; }
  .desk-only { display: none !important; }
  .row-year { display: none; }
  .row-arr { display: none; }
  .mob-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
  .mob-row-foot { display: block; margin-top: 14px; }
  .cat-tag { font-size: 13px; padding: 3px 9px; }
  .feat-tag { font-size: 13px; padding: 3px 9px; }

  /* Filter dropdown */
  .work-header .filters { display: none; }
  .mob-filter { display: block; position: relative; }
  .mob-filter-btn {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; color: #0a0a0a; padding: 7px 13px;
    border: 0.5px solid #ebebeb; border-radius: 999px;
    background: none; cursor: pointer; font-family: inherit;
    transition: background 0.16s, color 0.16s, border-color 0.16s;
  }
  .mob-filter-caret { font-size: 10px; color: #555; transition: transform 0.18s; }
  .mob-filter-btn.open { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
  .mob-filter-btn.open .mob-filter-caret { color: #fff; transform: rotate(180deg); }
  .mob-filter-drop {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 25;
    min-width: 180px; background: #fff;
    border: 0.5px solid #ebebeb; border-radius: 12px;
    box-shadow: 0 12px 32px -10px rgba(10,10,10,0.22);
    padding: 6px; overflow: hidden;
  }
  .mob-filter-drop.open { display: block; }
  .mob-filter-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; text-align: left; font-size: 14px; color: #0a0a0a;
    padding: 10px 12px; border-radius: 8px;
    border: none; background: none; cursor: pointer; font-family: inherit;
    transition: background 0.13s;
  }
  .mob-filter-opt:active { background: #f5f5f5; }
  .mob-filter-opt.active::after { content: '✓'; color: #555; font-size: 13px; }

  /* Footer */
  .site-footer { padding: 44px 20px 56px; }
  .footer-statement { font-size: 28px; }
  .footer-inner { flex-direction: column; gap: 0; }
  .footer-right { width: 100%; padding-top: 0; min-width: unset; flex-shrink: unset; margin-top: 24px; }
  .footer-link { font-size: 14px; color: rgba(255,255,255,0.7); padding: 13px 0; border-bottom: 0.5px solid rgba(255,255,255,0.12); gap: 0; }
  .footer-link:first-child { border-top: 0.5px solid rgba(255,255,255,0.12); }
  .footer-bottom { margin-top: 28px; font-size: 13px; }

  /* Lede */
  .lede { font-size: 22px; padding: 28px 0 34px; }
  .section-label { font-size: 13px; letter-spacing: 0.09em; }

  /* Project title wrap — not sticky on mobile (overflow-x:clip breaks sticky in iOS Safari) */
  .proj-title-wrap {
    position: static;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: none !important;
  }

  /* Project back button */
  .mob-proj-back {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; color: #555; margin-bottom: 10px; text-decoration: none;
  }

  /* More section */
  .more-inner { padding-top: 40px; }

  /* Images */
  .col-2, .col-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { padding-top: 20px; padding-bottom: 20px; }
  .proj-title { font-size: 40px; }
  .lb-handle { display: none; }
  .about-notion { padding: 32px 0 60px; }
  .about-notion h2 { margin: 32px 0 16px; padding-top: 20px; }
  .ds-type-row { flex-direction: column; gap: 8px; }
  .ds-type-meta { text-align: left; align-items: flex-start; }
  .ds-swatches { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .proj-title { font-size: 32px; }
}
