/* ============================================================
   PORTFOLIO — STYLES
   Theme: Broadsheet Newspaper / Editorial Print
   Sections: Reset · Tokens · Base · Nav · Drawer
             Work/Feed · About · Contact · Footer
             Lightbox · Toast · Back-to-top · Responsive
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════
   TOKENS
══════════════════════════════ */
:root {
  --bg:            #e8e4da;
  --bg2:           #dedad0;
  --bg3:           #ccc8be;
  --surface:       #f2eee4;
  --surface2:      #e8e4da;
  --border:        rgba(10,8,4,0.18);
  --border2:       rgba(10,8,4,0.52);
  --text:          #080604;
  --text2:         #2a2520;
  --text3:         #7a7468;
  --accent:        #080604;
  --accent-soft:   #dedad0;
  --tag-bg:        #080604;
  --tag:           #f2eee4;
  --nav-blur:      rgba(232,228,218,0.95);
  --shadow:        3px 3px 0px rgba(8,6,4,0.28);
  --shadow-hover:  5px 5px 0px rgba(8,6,4,0.42);
  --skeleton:      #d4d0c6;
  --skeleton-shine:#e0dcd2;
  --like:          #1a1614;
  --ease:          cubic-bezier(0.4,0,0.2,1);
  --spring:        cubic-bezier(0.34,1.56,0.64,1);
  --t:             0.22s;
  --nav-h:         54px;
}

[data-theme="dark"] {
  --bg:            #0c0a06;
  --bg2:           #121008;
  --bg3:           #1a1810;
  --surface:       #100e08;
  --surface2:      #181610;
  --border:        rgba(220,210,190,0.12);
  --border2:       rgba(220,210,190,0.38);
  --text:          #e8e0cc;
  --text2:         #a89e88;
  --text3:         #4e4a40;
  --accent:        #e8e0cc;
  --accent-soft:   #1a1810;
  --tag-bg:        #e8e0cc;
  --tag:           #0c0a06;
  --nav-blur:      rgba(12,10,6,0.97);
  --shadow:        3px 3px 0px rgba(220,210,190,0.10);
  --shadow-hover:  5px 5px 0px rgba(220,210,190,0.18);
  --skeleton:      #181610;
  --skeleton-shine:#20201a;
  --like:          #e8e0cc;
}

/* ══════════════════════════════
   BASE
══════════════════════════════ */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  overflow-x: hidden;
}

/* Halftone press texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 9999; pointer-events: none;
  opacity: 0.022;
  background-image: radial-gradient(circle, var(--text) 1px, transparent 1px);
  background-size: 5px 5px;
}
[data-theme="dark"] body::before { opacity: 0.05; }

/* Shared section wrapper */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Section rule — thick+thin double rule */
.section-rule {
  display: flex; flex-direction: column; gap: 2px;
  padding: 56px 0 40px;
}
.section-rule span:nth-child(1) { display: block; height: 4px; background: var(--text); transition: background var(--t) var(--ease); }
.section-rule span:nth-child(2) { display: block; height: 1px; background: var(--border2); transition: background var(--t) var(--ease); }

.about-section-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
  transition: color var(--t) var(--ease);
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
#nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nav-blur);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 3px solid var(--text);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
#nav::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--text);
}

.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.nav-avatar {
  width: 30px; height: 30px; border-radius: 0;
  background: var(--bg3); overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--text);
}
.nav-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  filter: grayscale(25%);
}
.nav-name {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); transition: color var(--t) var(--ease);
}

.nav-right { display: flex; align-items: center; gap: 22px; }

.nav-link {
  font-size: 10px; font-weight: 600;
  color: var(--text3); text-decoration: none;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--text); border-bottom-color: var(--text); }

/* Square ink-stamp theme toggle */
.theme-toggle {
  position: relative; width: 42px; height: 22px;
  background: transparent; border: 2px solid var(--text);
  border-radius: 0; cursor: pointer; flex-shrink: 0;
  transition: border-color var(--t) var(--ease);
}
.theme-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; background: var(--text); border-radius: 0;
  transition: transform var(--t) var(--ease);
}
[data-theme="dark"] .theme-toggle::after { transform: translateX(20px); }
.toggle-icon {
  position: absolute; font-size: 8px; top: 50%; transform: translateY(-50%);
  pointer-events: none; line-height: 1; color: var(--text3);
}
.icon-sun { left: 4px; }
.icon-moon { right: 4px; }

/* Hamburger — mobile only */
.nav-menu-btn {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nav-menu-btn span {
  display: block; height: 2px; width: 100%;
  background: var(--text);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════
   MOBILE NAV DRAWER
══════════════════════════════ */
.nav-drawer {
  position: fixed; top: var(--nav-h); right: 0;
  width: 240px; height: calc(100vh - var(--nav-h));
  background: var(--surface);
  border-left: 2px solid var(--text);
  z-index: 190;
  display: flex; flex-direction: column;
  padding: 32px 24px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer.open ~ .nav-overlay { opacity: 1; pointer-events: all; }

.drawer-link {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text3); text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t) var(--ease);
}
.drawer-link:hover { color: var(--text); }

.nav-overlay {
  position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(8,6,4,0.5);
  z-index: 180; opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

/* ══════════════════════════════
   SECTION 1 — WORK / FEED
══════════════════════════════ */
#work { padding-bottom: 0; }
#work .section-wrapper { padding-top: 0; }

.feed-header {
  padding: 36px 0 26px;
  border-bottom: 1px solid var(--border2);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.feed-header h1 {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: clamp(46px, 8.5vw, 96px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--t) var(--ease);
}
.feed-header h1 em {
  font-style: italic;
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

.feed-header-meta { text-align: right; padding-bottom: 4px; }
.edition {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text3); display: block; margin-bottom: 6px;
  transition: color var(--t) var(--ease);
}
.feed-header p {
  font-size: 12px; color: var(--text3); line-height: 1.6;
  max-width: 220px; margin-left: auto;
  transition: color var(--t) var(--ease);
}

.feed-masthead-rules {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 28px; padding-top: 6px;
}
.feed-masthead-rules span:nth-child(1) { display: block; height: 4px; background: var(--text); }
.feed-masthead-rules span:nth-child(2) { display: block; height: 1px; background: var(--border2); }

.feed-divider {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  color: var(--text3); font-size: 9px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  transition: color var(--t) var(--ease);
}
.feed-divider::before, .feed-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border2);
}

/* ══════════════════════════════
   MASONRY GRID
══════════════════════════════ */
#feed { column-count: 3; column-gap: 1px; }

/* ══════════════════════════════
   POST CARD
══════════════════════════════ */
article.post {
  display: inline-block; width: 100%;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0; margin-bottom: 1px;
  box-shadow: none; overflow: hidden; vertical-align: top; position: relative;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease),
              background var(--t) var(--ease), border-color var(--t) var(--ease);
}
article.post:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(-2px, -2px);
  border-color: var(--border2);
  z-index: 2;
}

.post-header {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px 9px; border-bottom: 1px solid var(--border);
}
.post-avatar {
  width: 26px; height: 26px; border-radius: 0;
  background: var(--bg3); overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--border2);
}
.post-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  filter: grayscale(20%);
}
.post-meta { flex: 1; min-width: 0; }
.post-author-row { display: flex; align-items: center; gap: 5px; }
.post-author {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--t) var(--ease);
}
.verified-badge {
  width: 12px; height: 12px; border-radius: 0;
  background: var(--text);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.verified-badge svg { width: 7px; height: 7px; }
.post-date-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.post-date {
  font-size: 9px; color: var(--text3);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color var(--t) var(--ease);
}
.post-tag {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tag); background: var(--tag-bg);
  padding: 2px 5px; border-radius: 0; white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.post-image-wrap {
  position: relative; overflow: hidden; cursor: zoom-in;
  background: var(--skeleton); border-bottom: 1px solid var(--border);
}
.post-image-wrap img {
  display: block; width: 100%; height: auto; opacity: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
  filter: grayscale(8%);
}
.post-image-wrap img.loaded { opacity: 1; }
.post-image-wrap:hover img { filter: grayscale(0%); }

.skeleton-img {
  position: absolute; inset: 0; min-height: 180px;
  background: var(--skeleton);
  background-image: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-shine) 50%, var(--skeleton) 100%);
  background-size: 200% 100%; animation: shimmer 1.6s infinite; transition: opacity 0.4s ease;
}
.skeleton-img.hidden { opacity: 0; pointer-events: none; }
@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

.image-overlay {
  position: absolute; inset: 0; background: rgba(8,6,4,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.post-image-wrap:hover .image-overlay { background: rgba(8,6,4,0.10); }

.zoom-icon {
  width: 36px; height: 36px; border-radius: 0;
  background: var(--surface); border: 2px solid var(--text);
  box-shadow: 2px 2px 0 var(--text);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.75);
  transition: opacity 0.18s ease, transform 0.2s var(--spring);
}
.post-image-wrap:hover .zoom-icon { opacity: 1; transform: scale(1); }
.zoom-icon svg { width: 14px; height: 14px; color: var(--text); }

.post-body { padding: 11px 12px 2px; }
.post-caption { font-size: 12.5px; line-height: 1.7; color: var(--text2); transition: color var(--t) var(--ease); }
.post-caption strong { color: var(--text); font-weight: 600; }

.post-actions {
  display: flex; align-items: center; gap: 0;
  padding: 7px 10px 9px; border-top: 1px solid var(--border); margin-top: 10px;
}
.action-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text3); padding: 5px 8px; border-radius: 0; white-space: nowrap;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  min-height: 28px; /* touch target */
}
.action-btn:hover { color: var(--text); background: var(--bg2); }
.action-btn:active { opacity: 0.7; }
.action-btn svg { width: 12px; height: 12px; flex-shrink: 0; }

.like-btn.liked     { color: var(--like); font-weight: 700; }
.like-btn.liked svg { fill: var(--like); stroke: var(--like); }
.share-btn.copied   { color: var(--text); }
.action-spacer      { flex: 1; }

/* ══════════════════════════════
   SECTION 2 — ABOUT
══════════════════════════════ */
#about { background: var(--surface2); border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2); transition: background var(--t) var(--ease), border-color var(--t) var(--ease); }

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  padding-bottom: 64px;
}

/* Photo column */
.about-photo-col { display: flex; flex-direction: column; gap: 28px; }

.about-photo-frame {
  position: relative;
  border: 2px solid var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-photo {
  display: block; width: 100%; height: 340px;
  object-fit: cover; object-position: center top;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}
.about-photo-frame:hover .about-photo { filter: grayscale(0%); }
.about-photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--text); color: var(--surface);
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 12px;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border2);
}
.about-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px; text-align: center;
  border-right: 1px solid var(--border2);
}
.about-stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 24px; letter-spacing: 0.02em;
  color: var(--text); line-height: 1;
  transition: color var(--t) var(--ease);
}
.stat-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text3); margin-top: 5px;
  transition: color var(--t) var(--ease);
}

/* Text column */
.about-text-col { padding-top: 0; }

.about-headline {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400; letter-spacing: 0.01em;
  line-height: 0.95; text-transform: uppercase;
  color: var(--text); margin-bottom: 28px;
  transition: color var(--t) var(--ease);
}
.about-headline em {
  font-style: italic;
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}

.about-body {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.about-body p {
  font-size: 14px; line-height: 1.75; color: var(--text2);
  transition: color var(--t) var(--ease);
}
.about-body p strong { color: var(--text); font-weight: 600; }

.about-skills { display: flex; flex-direction: column; gap: 20px; }
.skill-group { display: flex; flex-direction: column; gap: 10px; }
.skill-group-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text3);
  transition: color var(--t) var(--ease);
}
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.skill-tags span {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text2);
  border: 1px solid var(--border2);
  padding: 5px 10px;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  cursor: default;
}
.skill-tags span:hover { background: var(--text); color: var(--surface); }

/* ══════════════════════════════
   SECTION 3 — CONTACT (centered)
══════════════════════════════ */
.contact-centered {
  text-align: center;
  padding-bottom: 72px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-headline {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400; letter-spacing: 0.01em;
  line-height: 0.95; text-transform: uppercase;
  color: var(--text); margin-bottom: 16px;
  transition: color var(--t) var(--ease);
}
.contact-headline em {
  font-style: italic;
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}
.contact-sub {
  font-size: 13px; line-height: 1.7; color: var(--text3);
  margin-bottom: 48px;
  transition: color var(--t) var(--ease);
}

/* Cards row */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 2px solid var(--text);
  box-shadow: var(--shadow);
}

.contact-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  padding: 28px 20px 24px;
  background: var(--surface);
  border: none;
  border-right: 1px solid var(--border2);
  cursor: pointer;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
  position: relative;
}
.contact-card:last-child { border-right: none; }
.contact-card:not(.no-copy):hover { background: var(--text); transform: translateY(-2px); }
.contact-card.no-copy { cursor: default; }

/* Icon circle */
.contact-card-icon {
  width: 44px; height: 44px;
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.contact-card-icon svg {
  width: 20px; height: 20px; color: var(--text);
  transition: color var(--t) var(--ease);
}
.contact-card:not(.no-copy):hover .contact-card-icon {
  border-color: var(--surface);
  background: rgba(242,238,228,0.12);
}
.contact-card:not(.no-copy):hover .contact-card-icon svg { color: var(--surface); }

.contact-card-body { display: flex; flex-direction: column; gap: 4px; }
.contact-card-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text3);
  transition: color var(--t) var(--ease);
}
.contact-card:not(.no-copy):hover .contact-card-label { color: rgba(242,238,228,0.55); }

.contact-card-value {
  font-size: 13px; font-weight: 500; color: var(--text);
  word-break: break-all;
  transition: color var(--t) var(--ease);
}
.contact-card:not(.no-copy):hover .contact-card-value { color: var(--surface); }

/* Copy action area */
.contact-card-action {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
}
.copy-hint {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text3);
  transition: color var(--t) var(--ease);
}
.contact-card:not(.no-copy):hover .copy-hint { color: rgba(242,238,228,0.55); }

.copy-icon {
  width: 13px; height: 13px; color: var(--text3);
  transition: color var(--t) var(--ease);
  flex-shrink: 0;
}
.contact-card:not(.no-copy):hover .copy-icon { color: rgba(242,238,228,0.55); }

/* Copied state */
.contact-card.copied { background: var(--text) !important; }
.contact-card.copied .contact-card-value,
.contact-card.copied .copy-hint,
.contact-card.copied .copy-icon,
.contact-card.copied .contact-card-icon svg { color: var(--surface) !important; }
.contact-card.copied .copy-hint::before { content: 'Copied! '; }

/* Availability dot */
.avail-dot {
  display: inline-block; width: 7px; height: 7px;
  background: #3a8c3a; border-radius: 50%;
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--text);
  border-top: 3px solid var(--text);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 24px 28px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
}
.footer-left { display: flex; flex-direction: column; gap: 3px; }
.footer-name {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bg); transition: color var(--t) var(--ease);
}
.footer-role {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text3); transition: color var(--t) var(--ease);
}
.footer-center {
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text3); text-align: center;
  transition: color var(--t) var(--ease);
}
.footer-right { text-align: right; }
.footer-link {
  font-size: 11px; font-weight: 500; color: var(--bg);
  text-decoration: none; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(232,228,218,0.3);
  padding-bottom: 1px;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.footer-link:hover { border-bottom-color: var(--bg); }

/* ══════════════════════════════
   LIGHTBOX
══════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(4,3,2,0.97); }
.lightbox-inner {
  position: relative; z-index: 1;
  max-width: min(92vw, 920px); max-height: 92vh;
  transform: translateY(14px); transition: transform 0.32s var(--spring);
  border: 2px solid rgba(220,210,190,0.22);
  box-shadow: 6px 6px 0 rgba(220,210,190,0.06);
}
.lightbox.open .lightbox-inner { transform: translateY(0); }
.lightbox-inner img { display: block; max-width: 100%; max-height: 84vh; border-radius: 0; object-fit: contain; }
.lightbox-caption {
  background: rgba(8,6,4,0.96); border-top: 1px solid rgba(220,210,190,0.14);
  color: rgba(220,210,190,0.5);
  font-size: 9px; font-weight: 700; text-align: center;
  padding: 9px 16px; letter-spacing: 0.16em; text-transform: uppercase;
}
.lightbox-close {
  position: absolute; top: -13px; right: -13px;
  width: 30px; height: 30px; border-radius: 0;
  background: var(--text); border: 2px solid var(--text);
  color: var(--bg); font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  transition: opacity 0.15s ease;
}
.lightbox-close:hover { opacity: 0.75; }

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text); color: var(--bg);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 0;
  border-left: 3px solid var(--text3);
  z-index: 400; opacity: 0; pointer-events: none; white-space: nowrap;
  transition: transform 0.32s var(--spring), opacity 0.25s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ══════════════════════════════
   BACK TO TOP
══════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 38px; height: 38px;
  background: var(--text); color: var(--bg);
  border: 2px solid var(--text); border-radius: 0;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { box-shadow: var(--shadow-hover); transform: translate(-1px, -2px); }

/* ══════════════════════════════
   RESPONSIVE — TABLET 960px
══════════════════════════════ */
@media (max-width: 960px) {
  .section-wrapper { padding: 0 20px; }
  #feed { column-count: 2; column-gap: 1px; }

  /* Work header — stack but keep both visible */
  .feed-header { grid-template-columns: 1fr; gap: 8px; padding: 28px 0 20px; }
  .feed-header-meta { text-align: left; }
  .feed-header p { margin-left: 0; max-width: 100%; }
  .feed-header h1 { font-size: clamp(42px, 7vw, 80px); }

  .about-grid { grid-template-columns: 220px 1fr; gap: 36px; }
}

/* ══════════════════════════════
   RESPONSIVE — MOBILE 680px
══════════════════════════════ */
@media (max-width: 680px) {
  :root { --nav-h: 52px; }
  .section-wrapper { padding: 0 14px; }

  /* Nav */
  #nav { padding: 0 14px; }
  .nav-link { display: none; }
  .nav-menu-btn { display: flex; }
  .nav-name { font-size: 13px; }

  /* ── WORK SECTION ── */
  #feed { column-count: 2; column-gap: 1px; }

  /* Work masthead — tighter on mobile */
  .feed-header {
    grid-template-columns: 1fr;
    padding: 20px 0 16px;
    gap: 6px;
    border-bottom-width: 1px;
  }
  .feed-header h1 { font-size: clamp(34px, 11vw, 52px); line-height: 0.9; }
  .feed-header-meta { display: flex; align-items: center; gap: 10px; }
  .feed-header-meta .edition { margin-bottom: 0; }
  .feed-header p { max-width: 100%; font-size: 11px; }

  /* Thinner rule strip on mobile */
  .feed-masthead-rules { margin-bottom: 16px; padding-top: 4px; }
  .feed-masthead-rules span:nth-child(1) { height: 3px; }
  .feed-divider { margin-bottom: 14px; }

  /* Post cards — tighter padding on mobile */
  .post-header { padding: 8px 10px 7px; gap: 7px; }
  .post-avatar { width: 22px; height: 22px; }
  .post-author { font-size: 10px; }
  .post-date { font-size: 8px; }
  .post-tag { font-size: 7px; padding: 1px 4px; }
  .post-body { padding: 8px 10px 2px; }
  .post-caption { font-size: 11.5px; line-height: 1.6; }
  .post-actions { padding: 5px 8px 7px; }
  .action-btn { font-size: 8px; padding: 4px 6px; gap: 3px; }
  .action-btn svg { width: 10px; height: 10px; }

  /* ── SECTION RULES ── */
  .section-rule { padding: 36px 0 24px; }

  /* ── ABOUT SECTION ── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 40px;
  }

  /* Photo — side by side with stats on mobile */
  .about-photo-col { flex-direction: row; align-items: flex-start; gap: 16px; }
  .about-photo-frame { flex: 0 0 120px; }
  .about-photo { height: 150px; }
  .about-photo-label { font-size: 9px; padding: 5px 8px; }
  .about-stats {
    flex: 1;
    display: flex; flex-direction: column;
    border: 1px solid var(--border2);
    height: 100%;
  }
  .about-stat {
    flex: 1;
    border-right: none;
    border-bottom: 1px solid var(--border2);
    padding: 10px 8px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .about-stat:last-child { border-bottom: none; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 8px; text-align: right; }

  .about-headline { font-size: clamp(26px, 8.5vw, 40px); margin-bottom: 16px; }
  .about-body p { font-size: 13px; }
  .about-body { margin-bottom: 24px; padding-bottom: 24px; gap: 12px; }
  .skill-tags span { font-size: 9px; padding: 4px 8px; }

  /* ── CONTACT SECTION ── */
  .contact-centered { padding-bottom: 40px; }
  .contact-headline { font-size: clamp(28px, 9.5vw, 44px); margin-bottom: 12px; }
  .contact-sub { font-size: 12px; margin-bottom: 28px; }

  /* Contact cards — 2 col on mobile (not full stack) */
  .contact-cards { grid-template-columns: 1fr 1fr; }
  /* Location card spans full width at bottom */
  .contact-card:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid var(--border2);
  }
  .contact-card:nth-child(1) { border-bottom: 1px solid var(--border2); }
  .contact-card:nth-child(2) { border-right: none; border-bottom: 1px solid var(--border2); }
  .contact-card { padding: 20px 14px 18px; gap: 8px; }
  .contact-card-icon { width: 36px; height: 36px; }
  .contact-card-icon svg { width: 16px; height: 16px; }
  .contact-card-value { font-size: 11px; word-break: break-all; }
  .copy-hint { font-size: 8px; }
  .copy-icon { width: 11px; height: 11px; }

  /* ── FOOTER ── */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 18px 14px;
  }
  .footer-left { grid-column: 1 / -1; }
  .footer-center { text-align: left; }
  .footer-right { text-align: right; }

  .lightbox-inner { max-width: 96vw; }
  .back-to-top { bottom: 18px; right: 14px; width: 34px; height: 34px; font-size: 14px; }
}

/* ══════════════════════════════
   RESPONSIVE — SMALL 420px
   Truly narrow phones — one column
   everything, no compromises
══════════════════════════════ */
@media (max-width: 420px) {
  /* Feed back to 1 col on very small */
  #feed { column-count: 1; }

  /* Work header even tighter */
  .feed-header h1 { font-size: clamp(30px, 13vw, 44px); }
  .feed-header-meta { flex-direction: column; align-items: flex-start; gap: 2px; }

  /* About photo col — stack vertically again at very small */
  .about-photo-col { flex-direction: column; }
  .about-photo-frame { flex: none; width: 100%; }
  .about-photo { height: 200px; }
  .about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    flex-direction: unset; height: auto;
  }
  .about-stat {
    flex-direction: column; border-right: 1px solid var(--border2);
    border-bottom: none; justify-content: center;
    text-align: center; padding: 12px 6px;
  }
  .about-stat:last-child { border-right: none; }
  .stat-label { text-align: center; }

  /* Contact cards — full stack */
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card:last-child { grid-column: auto; border-top: none; }
  .contact-card:nth-child(1),
  .contact-card:nth-child(2) { border-bottom: 1px solid var(--border2); }
  .contact-card { border-right: none; }

  /* Nav name hidden on tiny screens */
  .nav-name { display: none; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
}