/* Fonts are loaded via <link> in the page <head> (DM Serif Display, DM Mono, DM Sans). */

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

:root {
  --ink: #1a1a18;
  --ink-light: #555550;
  --rule: #d8d4cc;
  --cream: #f5f2ec;
  --white: #fefefe;
  --accent: #c8502a;   /* warm terracotta — engineering, handmade */
  --accent-2: #2a5c8a; /* deep blueprint blue */
  --card-radius: 3px;
  --mono: 'DM Mono', monospace;
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* The [hidden] attribute must win over display:flex/grid on cards & sections */
[hidden] { display: none !important; }

/* ─── ACCESSIBILITY ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 200;
  background: var(--accent);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  border-radius: 2px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; }

/* Visible keyboard focus everywhere, without affecting mouse users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  color: var(--white);
}
.filter-search:focus-visible { outline: none; } /* border already signals focus */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--ink);
  color: var(--cream);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 56px;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.header-left {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 0.1rem;
}

.header-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.header-id { min-width: 0; }

.header-nameline {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.about-link {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ccc;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  transition: color 0.14s, border-color 0.14s, background 0.14s;
}
.about-link:hover {
  color: var(--white);
  border-color: var(--accent);
  background: rgba(200, 80, 42, 0.15);
}

.site-subtitle {
  font-size: 0.72rem;
  color: #aaa;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.header-contact {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.contact-link {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--accent-2-light, #8fb8d8);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: color 0.14s, text-decoration-color 0.14s;
}
.contact-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* nav holds the category tabs on top and the filter controls directly beneath */
.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex: 1 1 520px;
  min-width: 0;
}

.nav-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.nav-tab {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ccc;
  padding: 0.3rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover,
.nav-tab:hover {
  color: var(--white);
  border-color: var(--accent);
}

.nav-tab--active {
  color: var(--white) !important;
  border-color: var(--accent) !important;
  background: rgba(200, 80, 42, 0.15);
}

.nav-tab--star {
  color: #cba135 !important;
}

.nav-tab--star:hover {
  border-color: #cba135 !important;
  color: #e8c060 !important;
}

.nav-tab--star.nav-tab--active {
  background: rgba(203, 161, 53, 0.2) !important;
  border-color: #cba135 !important;
}

/* ─── MAIN ────────────────────────────────────────────────── */
.site-main {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
  width: 100%;
}

/* Small intro shown on the All view */
.all-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.all-intro p {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.6;
  max-width: 760px;
  margin: 0;
}
.all-intro[hidden] { display: none; }

/* ─── GRID ────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ─── CARD ────────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--accent);
}

.card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card-image {
  aspect-ratio: 258 / 153;
  overflow: hidden;
  background: #e8e5df;
  position: relative;
}

.card-image img,
.card-image .card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.card:hover .card-image img,
.card:hover .card-image .card-video {
  transform: scale(1.04);
}

.card-image .card-video { cursor: pointer; }

/* play indicator shown only when the video thumbnail is paused */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  padding-left: 3px;            /* optical centering of the ▶ glyph */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.card-image.video-paused .video-play-icon { opacity: 1; }

.card-image.no-image::after {
  content: '◈';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--rule);
}

.card-body {
  padding: 1rem 1.1rem 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-category {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card-blurb {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.5;
  flex: 1;
  margin-top: 0.15rem;
}

/* footer holds the year + link buttons, outside the main clickable link */
.card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1.1rem 1rem;
  margin-top: auto;
}

.card-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #999;
}

.card-links {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.card-link-btn {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border: 1px solid var(--accent-2);
  border-radius: 4px;
  color: var(--white);
  background: var(--accent-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.14s, transform 0.1s, box-shadow 0.14s;
  white-space: nowrap;
}
.card-link-btn:hover {
  background: #1f4a72;
  transform: translateY(-1px);
  box-shadow: 0 3px 7px rgba(42, 92, 138, 0.4);
}
.card-link-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ─── CATEGORY PAGE ──────────────────────────────────────── */
.category-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.category-header h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

/* ─── HOMEPAGE CATEGORY SECTIONS ────────────────────────── */
.cat-section {
  margin-bottom: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.cat-section:first-child { border-top: none; padding-top: 0.25rem; }

.cat-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.cat-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.1;
  flex-shrink: 0;
}

.cat-count {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  white-space: nowrap;
  margin-left: auto;
}

.cat-desc {
  font-size: 0.78rem;
  color: var(--ink-light);
  font-style: italic;
  line-height: 1.35;
  margin: 0;
  flex: 1 1 320px;
  min-width: 0;
}

/* Permalink anchor on category titles */
.cat-permalink {
  color: inherit;
  text-decoration: none;
  scroll-margin-top: 140px; /* offset for sticky header when jumping to anchor */
}
.cat-permalink:hover { color: var(--accent); }
.permalink-icon {
  display: inline-block;
  margin-left: 0.3em;
  font-family: var(--mono);
  font-size: 0.7em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.14s;
}
.cat-permalink:hover .permalink-icon,
.cat-permalink:focus-visible .permalink-icon { opacity: 1; }
.cat-section:target .cat-title { color: var(--accent); }
.cat-section { scroll-margin-top: 140px; }

/* Remove card-category label since category is now the section heading */
.cat-row .card-category { display: none; }

/* ─── NETFLIX-STYLE HORIZONTAL ROWS ──────────────────────── */
.cat-row-wrap {
  position: relative;
  /* let cards bleed to the page edge on the right for a "more" feel */
  margin-right: -2rem;
}

.cat-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 258px;
  grid-template-rows: 1fr;          /* enforce a SINGLE row */
  align-items: start;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 2rem 0.5rem 0.25rem;  /* room for hover lift + edge fade */
  margin: 0 -0.25rem;
  scroll-snap-type: x proximity;
  scroll-padding-left: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

/* fixed-width cards in a row; clamp blurb so heights stay tidy */
.cat-row .card { scroll-snap-align: start; }
.cat-row .card-blurb {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-row::-webkit-scrollbar { height: 8px; }
.cat-row::-webkit-scrollbar-track { background: transparent; }
.cat-row::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 4px;
}
.cat-row:hover::-webkit-scrollbar-thumb { background: #c2bdb2; }

.cat-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--card-radius);
}

/* Scroll arrows */
.row-nav {
  position: absolute;
  top: calc(50% - 0.6rem);
  transform: translateY(-50%);
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  transition: background 0.15s, transform 0.15s;
}
.row-nav:hover { background: var(--accent); transform: translateY(-50%) scale(1.06); }
.row-nav--prev { left: -0.6rem; }
.row-nav--next { right: 1.4rem; }
.row-nav[hidden] { display: none; }

/* ─── GRID MODE (single category selected): show all cards at once ─── */
.mode-grid .cat-row-wrap {
  margin-right: 0;
}
.mode-grid .cat-row {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-columns: auto;
  grid-template-rows: none;
  overflow: visible;
  scroll-snap-type: none;
  padding: 0.25rem;
  margin: 0;
}
.mode-grid .row-nav { display: none !important; }

@media (max-width: 640px) {
  .cat-row-wrap { margin-right: -1rem; }
  .cat-row {
    grid-auto-columns: 80vw;
    scroll-snap-type: x mandatory;
    padding-right: 1rem;
  }
  .row-nav { display: none !important; }  /* touch users swipe */
}

/* ─── POST ───────────────────────────────────────────────── */
.post {
  max-width: 780px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.post-category {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.post-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #999;
}

.post-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.post-blurb {
  font-size: 1.05rem;
  color: var(--ink-light);
  font-style: italic;
  line-height: 1.55;
}

/* Links bar at the top of a project page */
.post-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.post-link-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--accent-2);
  border-radius: 5px;
  color: var(--white);
  background: var(--accent-2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.14s, transform 0.1s, box-shadow 0.14s;
}
.post-link-btn:hover {
  background: #1f4a72;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(42, 92, 138, 0.4);
}
.post-link-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.post-hero {
  margin: 0 0 2rem;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #e8e5df;
}

/* hero moved below the content gets a top margin + separating rule */
.post-hero--bottom {
  margin: 2.5rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}
.post-hero--bottom img {
  border-radius: var(--card-radius);
}

.post-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ─── POST CONTENT ───────────────────────────────────────── */
.post-content {
  font-size: 0.97rem;
  line-height: 1.75;
}

.post-content h1,
.post-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 2.2rem 0 0.75rem;
  line-height: 1.2;
}

.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.35rem; }
.post-content h3 { font-size: 1rem; font-weight: 500; margin: 1.5rem 0 0.5rem; }

.post-content p { margin: 0 0 1rem; }

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: var(--card-radius);
  border: 1px solid var(--rule);
}

.post-content video {
  max-width: 100%;
  display: block;
  margin: 1.5rem auto;
  border-radius: var(--card-radius);
}

.post-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.post-content a:hover { color: var(--accent); }

.post-content ul,
.post-content ol {
  margin: 0 0 1rem 1.5rem;
}

.post-content li { margin: 0.25rem 0; }

.post-content code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: #eee;
  padding: 0.15em 0.35em;
  border-radius: 2px;
}

.post-content pre {
  background: var(--ink);
  color: var(--cream);
  padding: 1.25rem 1.5rem;
  border-radius: var(--card-radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--ink-light);
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.post-content iframe {
  max-width: 100%;
  display: block;
  margin: 1.5rem auto;
}

/* ─── POST FOOTER ────────────────────────────────────────── */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.back-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-light);
  transition: color 0.15s;
}

.back-link:hover { color: var(--accent); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #999;
  border-top: 1px solid var(--rule);
  margin-top: auto;
}

.site-footer a { color: var(--accent-2); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-main { padding: 1.25rem 1rem 2rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 1.8rem; }
  .header-inner { gap: 0.6rem; }
  .site-nav { align-items: stretch; }
  .nav-tabs { justify-content: flex-start; }
  .header-filters { justify-content: flex-start; }
}

/* ─── HEADER FILTER BAR (search + year ranges, in dark header) ─── */
.header-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 0.6rem;
  width: 100%;
  padding: 0;
}

.filter-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 280px;
}

.search-icon {
  position: absolute;
  left: 0.55rem;
  width: 13px;
  height: 13px;
  color: #888;
  pointer-events: none;
  flex-shrink: 0;
}

.filter-search {
  width: 100%;
  padding: 0.3rem 1.7rem 0.3rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.filter-search:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.filter-search::placeholder { color: #888; }

/* clear × button */
.filter-clear {
  position: absolute;
  right: 0.4rem;
  background: none;
  border: none;
  font-size: 0.68rem;
  color: #999;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  line-height: 1;
  border-radius: 2px;
}
.filter-clear:hover { color: var(--accent); }

.filter-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--white);
}

.chip--active {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* Starred chip */
.chip--star {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-color: #cba135;
  color: #e0bd5e;
}

.chip--star:hover {
  background: rgba(203, 161, 53, 0.15);
  border-color: #cba135;
  color: #f0d27a;
}

.chip--star-active {
  background: #cba135;
  color: var(--ink);
  border-color: #cba135;
}
.chip--star-active:hover {
  background: #d8b243;
  color: var(--ink);
}

.star-icon { font-size: 0.85em; line-height: 1; }

/* Clear-all button */
.clear-all {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #bbb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: color 0.14s;
}
.clear-all:hover { color: var(--accent); text-decoration-color: var(--accent); }
.clear-all[hidden] { display: none; }

.filter-count {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: #888;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ─── CARD STAR BADGE ─────────────────────────────────── */
.card-star {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(203, 161, 53, 0.92);
  color: #fff;
  font-size: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  z-index: 1;
}

/* ─── NO RESULTS ──────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .header-filters { gap: 0.5rem 0.75rem; }
  .filter-count { margin-left: 0; }
}

/* ─── ABOUT PAGE ─────────────────────────────────────────── */
.about-intro {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.about-bio {
  font-size: 0.97rem;
  line-height: 1.75;
}

.about-bio h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.about-tagline {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.about-links a:hover { color: var(--accent); }

.about-bio a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* ─── SKILLS GRID ────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.7rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.skill-tag:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.skill-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .about-intro { flex-direction: column; text-align: center; align-items: center; }
  .about-photo { width: 90px; height: 90px; }
  .about-links { justify-content: center; }
}
