/* ---------- base ---------- */
:root {
  --bg: #0a0a0a;
  --fg: #f5f1ea;
  --fg-dim: rgba(245, 241, 234, 0.55);
  --accent: #e8b96a;
  --tile-fill: rgba(255, 255, 255, 0.02);
  --tile-border: rgba(255, 255, 255, 0.08);
  --tile-border-hover: rgba(232, 185, 106, 0.35);
  --hand: "Caveat", "Gloria Hallelujah", cursive;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
}

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

html, body {
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- canvas ---------- */
#scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- viewport 1: hero + tiles + featured ---------- */
.viewport {
  min-height: 100vh;
  padding: 24px 24px 14px 24px; /* bottom padding matches grid gap so deck-section aligns */
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: 14px;
  position: relative;
}

.tile {
  background: var(--tile-fill);
  border: 1px solid var(--tile-border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  backdrop-filter: blur(2px);
}

.tile:hover {
  transform: translateY(-4px);
  border-color: var(--tile-border-hover);
  box-shadow: 0 20px 60px -20px rgba(232, 185, 106, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.tile:hover .arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.preview {
  font-family: var(--hand);
  font-size: 19px;
  line-height: 1.25;
  color: var(--fg);
  margin-top: 4px;
  overflow-wrap: break-word;
}

.arrow {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--hand);
  font-size: 26px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

/* ---------- specific tiles in viewport 1 ---------- */
.tile.hero {
  grid-column: 1 / span 6;
  grid-row: 1 / span 1;
  cursor: default;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}
.tile.hero:hover { transform: none; box-shadow: none; border-color: var(--tile-border); background: var(--tile-fill); }

/* portrait fills the right ~55% of the tile; falls back to plain dark on the left */
.tile.hero .portrait-bg {
  position: absolute;
  inset: 0 0 0 35%;
  background-image: url("/assets/hero-portrait.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* dark gradient on the left so the name sits readable */
.tile.hero .portrait-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10,10,10,1) 0%,
    rgba(10,10,10,0.92) 30%,
    rgba(10,10,10,0.55) 50%,
    rgba(10,10,10,0) 75%);
  z-index: 1;
}
.tile.hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  width: 100%;
}
.tile.hero .name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(46px, 6vw, 92px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.tile.hero .tagline {
  font-family: var(--hand);
  font-size: 28px;
  color: var(--accent);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.tile.hero .scribble {
  position: absolute;
  bottom: 42px;
  left: 32px;
  width: 220px;
  height: 12px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}
.tile.hero .pointer-doodle { display: none; }

.tile.hero    { grid-column: 1 / span 6; }
.tile.about   { grid-column: 7 / span 2;  grid-row: 1 / span 1; }
.tile.writing { grid-column: 9 / span 2; grid-row: 1 / span 1; }
.tile.media   { grid-column: 11 / span 2; grid-row: 1 / span 1; position: relative; overflow: hidden; }

/* media tile gets a faded screenshot of the linked article */
.tile.media .media-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.32;
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 0;
}
.tile.media:hover .media-bg { opacity: 0.5; transform: scale(1.02); }
.tile.media .media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.9) 100%);
  z-index: 0;
}
.tile.media > .label,
.tile.media > .preview,
.tile.media > .arrow,
.tile.media > .media-outlet { position: relative; z-index: 1; }
.tile.media .media-outlet {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

/* featured (current) project — spans full width, prominent */
.tile.featured {
  grid-column: 1 / span 12;
  grid-row: 2 / span 1;
  padding: 0;
  justify-content: flex-end;
  background: #181818;
  border: 1px solid rgba(232, 185, 106, 0.25);
}
.tile.featured:hover {
  border-color: rgba(232, 185, 106, 0.55);
  box-shadow: 0 30px 80px -20px rgba(232, 185, 106, 0.25);
}
.tile.featured .img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.45;
  transition: opacity 220ms ease, transform 220ms ease;
}
.tile.featured:hover .img-bg { opacity: 0.65; transform: scale(1.02); }
.tile.featured .img-bg.placeholder {
  background: linear-gradient(135deg, #2a2218 0%, #1a1a1a 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hand); color: var(--fg-dim); font-size: 28px; opacity: 1;
}
.tile.featured .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10,10,10,0.85) 100%);
}
.tile.featured .content {
  position: relative; padding: 28px 32px; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.tile.featured .left .pname {
  font-size: 30px; font-weight: 300; letter-spacing: -0.01em;
  margin-bottom: 6px; display: flex; align-items: center; gap: 12px;
}
.tile.featured .left .pblurb {
  font-size: 14px; color: var(--fg-dim); max-width: 580px; line-height: 1.5;
}
.tile.featured .left .ptags {
  font-size: 11px; color: var(--fg-dim); letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 8px;
}
.tile.featured .right {
  font-family: var(--hand); color: var(--accent); font-size: 22px;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.star {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.star svg { width: 28px; height: 28px; display: block; }
.current-flag {
  position: absolute; top: 18px; left: 22px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--hand); color: var(--accent); font-size: 20px;
}
.current-flag .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 185, 106, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232, 185, 106, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(232, 185, 106, 0.08); }
}

/* ---------- pitch deck tile (between current + past) ---------- */
.deck-section {
  padding: 0 24px; /* vertical gap to DistroCC above is handled by .viewport bottom padding (14px) */
  position: relative;
}
.deck-tile {
  display: block;
  position: relative;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #efe7d2;
  border: 1px solid rgba(232, 185, 106, 0.25);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.deck-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 185, 106, 0.55);
  box-shadow: 0 24px 60px -20px rgba(232, 185, 106, 0.22);
}
.deck-tile:hover .deck-bg { transform: scale(1.02); }
.deck-tile:hover .deck-cta { color: var(--accent); transform: translate(0, -50%); }

.deck-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 220ms ease;
}
.deck-bg.placeholder {
  background: linear-gradient(135deg, #2a2218 0%, #1a1a1a 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hand); color: var(--fg-dim); font-size: 26px;
}
.deck-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.5) 35%, rgba(10,10,10,0) 60%);
}
.deck-content {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
  max-width: 60%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.deck-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.85;
}
.deck-name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 6px;
}
.deck-blurb {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--fg-dim);
}
.deck-cta {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translate(-6px, -50%);
  font-family: var(--hand);
  font-size: 22px;
  color: var(--fg-dim);
  z-index: 1;
  transition: color 220ms ease, transform 220ms ease;
}

@media (max-width: 700px) {
  .deck-section { padding: 16px 16px 0 16px; }
  .deck-tile { height: auto; min-height: 200px; }
  .deck-content { max-width: 100%; padding: 22px; }
  .deck-overlay {
    background: linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.95) 100%);
  }
  .deck-cta { position: static; transform: none; padding: 0 22px 18px; display: block; }
}

/* ---------- past projects (scroll section) ---------- */
.past-section {
  padding: 80px 24px 60px 24px;
  position: relative;
}
.past-header {
  max-width: 1200px; margin: 0 auto 28px auto;
  display: flex; align-items: baseline; gap: 16px;
}
.past-header .lbl {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim);
}
.past-header .scrawl {
  font-family: var(--hand); color: var(--accent); font-size: 22px; opacity: 0.85;
}
.past-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.tile.project {
  position: relative; padding: 0;
  justify-content: flex-end; background: #181818;
  min-height: 240px;
}
.tile.project .img-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: 0.55; transition: opacity 220ms ease, transform 220ms ease;
}
.tile.project:hover .img-bg { opacity: 0.75; transform: scale(1.03); }
.tile.project .img-bg.placeholder {
  background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hand); color: var(--fg-dim); font-size: 22px; opacity: 1;
}
.tile.project .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.85) 100%);
}
.tile.project .content { position: relative; padding: 20px; z-index: 1; }
.tile.project .pname {
  font-size: 19px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 6px;
}
.tile.project .ptags {
  font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* shut-down badge: top-right corner, always visible */
.tile.project .status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.78);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 241, 234, 0.22);
  padding: 4px 9px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
/* slight monochrome wash on shut-down tiles so they read as "archived" without losing legibility */
.tile.project.is-shutdown .img-bg { filter: saturate(0.55) brightness(0.95); }
.tile.project.is-shutdown:hover .img-bg { filter: saturate(0.85) brightness(1); }
/* arrow moves to the LEFT of the badge on hover so they don't overlap */
.tile.project.is-shutdown .arrow { right: 90px; }

/* hover-reveal blurb */
.tile.project .phover {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245, 241, 234, 0.88);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 280ms ease, opacity 220ms ease, margin-top 280ms ease;
  pointer-events: none;
}
.tile.project:hover .phover {
  max-height: 180px;
  opacity: 1;
  margin-top: 12px;
}
/* on hover, darken overlay slightly more so the blurb stays readable */
.tile.project:hover .overlay {
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.95) 100%);
}

/* ---------- bookmarks moves into past section as last tile ---------- */
.tile.bookmarks {
  background: var(--tile-fill);
  min-height: 240px;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 10px;
}

/* ---------- ambient text ---------- */
.ambient {
  font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 24px 24px 40px;
}
.ambient .sep { margin: 0 12px; opacity: 0.4; }

/* social links in ambient footer */
.ambient .social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 200ms ease;
}
.ambient .social:hover { color: var(--accent); }
.ambient .social-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.ambient .social-icon svg { width: 14px; height: 14px; display: block; }
.ambient .social-label { font-size: 11px; letter-spacing: 0.04em; }

/* ---------- expanded view ---------- */
.expanded {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100; display: none;
  padding: 80px; overflow-y: auto;
}
.expanded.open { display: block; }
.expanded .inner { max-width: 720px; margin: 0 auto; color: var(--fg); }
.expanded h2 {
  font-family: var(--sans); font-weight: 200;
  font-size: 48px; letter-spacing: -0.02em; margin-bottom: 28px;
}
.expanded .body { font-size: 17px; line-height: 1.7; color: var(--fg); white-space: pre-wrap; }
.expanded .close {
  position: fixed; top: 28px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--tile-border); background: var(--tile-fill);
  color: var(--fg); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hand);
}
.expanded .close:hover { border-color: var(--accent); color: var(--accent); }
.expanded ul.items { list-style: none; padding: 0; }
.expanded ul.items li {
  padding: 18px 0; border-bottom: 1px solid var(--tile-border);
}
.expanded ul.items li:last-child { border-bottom: none; }
.expanded .empty {
  font-family: var(--hand); color: var(--fg-dim); font-size: 22px;
}
.expanded .outlet {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; opacity: 0.9;
}

/* ---------- about body ---------- */
.about-body p {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(245, 241, 234, 0.88);
  margin: 0 0 22px 0;
}
.about-media {
  margin: 32px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--tile-border);
}
.about-media img,
.about-media video {
  display: block;
  width: 100%;
  height: auto;
}
.about-media figcaption {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--fg-dim);
  padding: 10px 16px 14px;
  text-align: center;
}
.about-video { background: #000; }

/* ---------- blog post styling ---------- */
.post { margin-bottom: 40px; position: relative; }
.post .post-date {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); opacity: 0.85; margin-bottom: 10px;
}

/* "via {author}" sticker — sits above the title, slight rotation, sticker-like chip */
.author-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 185, 106, 0.13);
  border: 1px solid rgba(232, 185, 106, 0.4);
  color: var(--accent);
  padding: 6px 14px 7px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
  transform: rotate(-2.5deg);
  transform-origin: top left;
  box-shadow: 0 6px 14px -8px rgba(232, 185, 106, 0.4);
}
.author-sticker .sticker-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.author-sticker .sticker-name {
  font-family: var(--hand);
  font-size: 21px;
  line-height: 1;
  color: var(--accent);
}
.author-sticker .sticker-pub {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--fg-dim);
  opacity: 0.85;
}

/* bookmarked posts get a subtle visual distinction — a thin amber left edge */
.post.bookmarked {
  padding-left: 18px;
  border-left: 1px dashed rgba(232, 185, 106, 0.25);
}

/* section heading within a post */
.post .post-section {
  font-family: var(--sans);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: var(--fg);
  margin: 40px 0 16px 0;
  letter-spacing: -0.005em;
}

/* "read original" link at the bottom of a bookmarked post */
.post-source {
  display: inline-block;
  margin-top: 28px;
  color: var(--accent);
  font-family: var(--hand);
  font-size: 22px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  transition: opacity 200ms ease;
}
.post-source:hover { opacity: 0.75; }
.post .post-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg);
  margin: 0 0 28px 0;
}
.post .post-body p {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(245, 241, 234, 0.86);
  margin: 0 0 22px 0;
}
.post .pullquote {
  font-family: var(--hand);
  font-size: 28px;
  line-height: 1.35;
  color: var(--accent);
  margin: 36px 0 36px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-style: normal;
}
.post-sep {
  border: none;
  height: 1px;
  background: var(--tile-border);
  margin: 48px 0;
}

/* ---------- writing list (titles only) ---------- */
.writing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.writing-list-item {
  position: relative;
  padding: 28px 60px 28px 22px;
  border-top: 1px solid var(--tile-border);
  cursor: pointer;
  transition: background 200ms ease, padding 200ms ease;
}
.writing-list-item:last-child { border-bottom: 1px solid var(--tile-border); }
.writing-list-item:hover {
  background: rgba(255, 255, 255, 0.025);
  padding-left: 30px;
}
.writing-list-item:hover .wl-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}
.writing-list-item .wl-meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 8px;
}
.writing-list-item .wl-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}
.writing-list-item .wl-arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translate(-8px, -50%);
  font-family: var(--hand);
  font-size: 28px;
  color: var(--fg-dim);
  opacity: 0.4;
  transition: opacity 200ms ease, transform 200ms ease, color 200ms ease;
}

/* Sticker inside a list row sits smaller and above the title */
.author-sticker.sticker-sm {
  margin-bottom: 10px;
  padding: 4px 10px 5px 9px;
}
.author-sticker.sticker-sm .sticker-name { font-size: 17px; }
.author-sticker.sticker-sm .sticker-label { font-size: 9px; }

/* back button in writing detail */
.post-back {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  font-family: var(--hand);
  font-size: 20px;
  padding: 0;
  cursor: pointer;
  margin-bottom: 28px;
  transition: color 200ms ease;
}
.post-back:hover { color: var(--accent); }

/* ---------- media list cards ---------- */
.media-list { display: flex; flex-direction: column; gap: 18px; }
.media-item { padding: 0 !important; border-bottom: none !important; }
.media-item a {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 14px;
  border: 1px solid var(--tile-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
  align-items: stretch;
}
.media-item a:hover {
  border-color: var(--tile-border-hover);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}
.media-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center top;
  border-radius: 8px;
  border: 1px solid var(--tile-border);
}
.media-thumb.placeholder {
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
}
.media-text {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.media-text strong {
  font-weight: 400; font-size: 18px; line-height: 1.35; color: var(--fg);
}
.media-url {
  margin-top: 8px;
  font-size: 12px;
  color: var(--fg-dim);
  font-family: var(--hand);
  font-size: 16px;
}

@media (max-width: 700px) {
  .media-item a { grid-template-columns: 1fr; }
  .media-thumb { aspect-ratio: 16 / 10; }
}

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .viewport {
    display: flex; flex-direction: column; min-height: auto;
    padding: 16px 16px 24px 16px; gap: 12px;
  }
  .tile { grid-column: unset !important; grid-row: unset !important; min-height: 160px; }
  .tile.hero { min-height: 280px; }
  .tile.featured { min-height: 320px; }
  .past-grid { grid-template-columns: 1fr; }
}
