@font-face {
  font-family: "Product Sans";
  src: url("fonts/ProductSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Product Sans";
  src: url("fonts/ProductSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Product Sans";
  src: url("fonts/ProductSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Coolvetica";
  src: url("fonts/Coolvetica Rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --muted: #2d2d2d;
  --border: #e6e6e6;
  --bg: #ffffff;
  --chip: #f4f4f4;
  --shadow: 0 24px 40px rgba(15, 15, 15, 0.08);
  --accent: #c7f02d;
  --accent-light: #d8f86a;
  --accent-border: #111111;
  --accent-dark: #111111;
  --cta: #f6f7f9;
  --cta-hover: #edf1f5;
  --cta-border: #d9dee4;
  --cta-text: #1f2937;
  --nav-bg: #282217;
  --nav-line: #3a3124;
  --nav-ink: #f3ede4;
  --nav-muted: #c8beb0;
  --nav-button-bg: #f4efe7;
  --nav-button-ink: #241d14;
}

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

body {
  font-family: "Product Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  position: relative;
}

body.theme-transition,
body.theme-transition * {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-transition,
  body.theme-transition * {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab-panels,
  .tab-panel.is-visible,
  .tab-panel.is-leaving {
    transition: none !important;
  }
}

body.theme-graphite {
  --bg: #18130d;
  --ink: #f3ede4;
  --muted: #c8beb0;
  --border: #3a3124;
  --chip: #241d14;
  --shadow: 0 26px 46px rgba(0, 0, 0, 0.45);
}

.pixel-burst {
  position: absolute;
  top: 110px;
  right: 0;
  width: 220px;
  height: 520px;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 26px;
  gap: 8px;
  opacity: 0.9;
}

.pixel {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #6f4cff, #b179ff);
  opacity: 0.45;
}

.pixel.v1 { opacity: 0.25; }
.pixel.v2 { opacity: 0.35; }
.pixel.v3 { opacity: 0.5; }
.pixel.v4 { opacity: 0.7; }

.pixel.g1 { background: linear-gradient(135deg, #5b3bff, #a074ff); }
.pixel.g2 { background: linear-gradient(135deg, #7a5cff, #c08bff); }
.pixel.g3 { background: linear-gradient(135deg, #8f6bff, #d7b0ff); }

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.announcement {
  display: none;
}

.top-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.top-nav .container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  justify-self: start;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: var(--nav-ink);
  letter-spacing: -0.02em;
}

.logo img {
  height: 320px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  justify-content: center;
  justify-self: center;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--nav-muted);
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav-links a {
  padding: 0;
  border-radius: 0;
  border: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--nav-muted);
  transition: color 0.2s ease;
}

.nav-links a.active {
  color: var(--nav-ink);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--nav-ink);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(36, 29, 20, 0.12);
  background: var(--nav-button-bg);
  color: var(--nav-button-ink);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(36, 29, 20, 0.18);
  background: #ffffff;
}

.icon-button,
.icon-search {
  display: none;
}

body.theme-graphite .top-nav {
  background: #15110c;
  border-bottom-color: #2b2318;
}

body.theme-graphite .nav-links {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.theme-graphite .nav-links a {
  color: var(--nav-muted);
}

body.theme-graphite .nav-links a.active {
  color: var(--nav-ink);
  text-decoration: none;
}

body.theme-graphite .theme-toggle {
  background: var(--nav-button-bg);
  border-color: rgba(36, 29, 20, 0.12);
  color: var(--nav-button-ink);
}

body.theme-graphite .theme-toggle-icon {
  border-color: rgba(36, 29, 20, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #2b241a 50%, #2b241a 100%);
}

body.theme-graphite .icon-button {
  background: #1a1f29;
  border-color: #2a2f3a;
}

body.theme-graphite .icon-search {
  border-color: #f2f3f7;
}

body.theme-graphite .icon-search::after {
  background: #f2f3f7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(36, 29, 20, 0.14);
  background: var(--nav-button-bg);
  color: var(--nav-button-ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  background: #fbf7f1;
}

.btn-primary {
  background: var(--nav-button-bg);
  border-color: rgba(36, 29, 20, 0.14);
  color: var(--nav-button-ink);
}

.btn-outline {
  background: var(--nav-button-bg);
  color: var(--nav-button-ink);
  border-color: rgba(36, 29, 20, 0.14);
}

.btn-outline:hover {
  color: var(--nav-button-ink);
}

.hero {
  padding: 90px 0 40px;
}

body.theme-graphite .hero-light {
  color: #f2f3f7;
}

body.theme-graphite .subhead {
  color: #b0b6c6;
}

body.theme-graphite .hero-highlight {
  color: #f2f3f7;
}

.hero-inner {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.hero h1 {
  font-family: "Product Sans", system-ui, -apple-system, sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 920px;
  text-wrap: balance;
}

.hero-light {
  font-weight: 300;
  opacity: 1;
  color: #111111;
}

.hero-bold {
  font-weight: 700;
}

.hero-highlight {
  font-weight: 700;
  color: #111111;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-decoration-break: initial;
  -webkit-box-decoration-break: initial;
}

.typewriter {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cursor {
  display: inline-block;
  width: 1ch;
  color: var(--accent);
  animation: blink 0.9s steps(2, start) infinite;
}

.subhead {
  color: #3b3b3b;
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.6;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-bar {
  position: fixed;
  top: 180px;
  right: 24px;
  z-index: 40;
  background: transparent;
  padding: 0;
  border-bottom: none;
  width: fit-content;
  display: inline-flex;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.show-filter-bar .filter-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.filter-bar .container {
  width: fit-content;
  margin: 0;
}

.filter-wrap {
  display: flex;
  justify-content: flex-end;
  width: fit-content;
  margin-top: 0;
}

.filter-shell {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  scrollbar-width: none;
  width: fit-content;
}

.filter-shell::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  position: relative;
  border: 1px solid #dfe3eb;
  background: #ffffff;
  padding: 12px 18px 12px 46px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #1f2933;
  font-weight: 500;
  letter-spacing: normal;
  font-family: "Product Sans", system-ui, -apple-system, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  width: 220px;
  text-align: left;
  box-shadow: 0 10px 18px rgba(17, 17, 17, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.filter-pill::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 6px;
  border: 1px solid #d7dbe7;
  background: #ffffff;
  box-shadow: 0 3px 6px rgba(17, 17, 17, 0.08);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 8.6a3.4 3.4 0 1 0 0 6.8a3.4 3.4 0 0 0 0-6.8Zm9 3.4a7.9 7.9 0 0 0-.1-1.1l2-1.5l-2-3.4l-2.4 1a8.4 8.4 0 0 0-2-1.1l-.4-2.6H9.9l-.4 2.6c-.7.2-1.4.6-2 1.1l-2.4-1l-2 3.4l2 1.5a7.9 7.9 0 0 0 0 2.2l-2 1.5l2 3.4l2.4-1c.6.5 1.3.9 2 1.1l.4 2.6h4.2l.4-2.6c.7-.2 1.4-.6 2-1.1l2.4 1l2-3.4l-2-1.5c.1-.4.1-.8.1-1.1Z'/></svg>") center / 12px 12px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 8.6a3.4 3.4 0 1 0 0 6.8a3.4 3.4 0 0 0 0-6.8Zm9 3.4a7.9 7.9 0 0 0-.1-1.1l2-1.5l-2-3.4l-2.4 1a8.4 8.4 0 0 0-2-1.1l-.4-2.6H9.9l-.4 2.6c-.7.2-1.4.6-2 1.1l-2.4-1l-2 3.4l2 1.5a7.9 7.9 0 0 0 0 2.2l-2 1.5l2 3.4l2.4-1c.6.5 1.3.9 2 1.1l.4 2.6h4.2l.4-2.6c.7-.2 1.4-.6 2-1.1l2.4 1l2-3.4l-2-1.5c.1-.4.1-.8.1-1.1Z'/></svg>") center / 12px 12px no-repeat;
  background-color: #6a6f7a;
}

.filter-pill.active {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: var(--accent-dark);
  border-color: var(--accent-border);
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.16);
}

body.theme-graphite .filter-pill {
  background: #f6f7fb;
  border-color: #e2e6f2;
  color: #111111;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

body.theme-graphite .filter-pill::before {
  border-color: #d7dbe7;
  background: #ffffff;
  background-color: #ffffff;
}

body.theme-graphite .filter-pill.active {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: var(--accent-dark);
  border-color: var(--accent-border);
}

body.theme-graphite .card-link h3 {
  color: #e8ebf2;
}

body.theme-graphite .card-external {
  background: #241d14;
  border-color: #3a3124;
  color: #f3ede4;
}

body.theme-graphite .card-external:hover {
  background: #2c2419;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

body.theme-graphite .favorites-empty,
body.theme-graphite .empty-panel {
  background: #201911;
  border-color: #3a3124;
  color: #f3ede4;
}

body.theme-graphite .favorites-head p,
body.theme-graphite .empty-panel p {
  color: #b0b6c6;
}

body.theme-graphite .explore-more {
  background: #241d14;
  border-color: #3a3124;
  color: #f3ede4;
}

body.theme-graphite .explore-more:hover {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
}

.gallery {
  padding: 30px 0 90px;
}

.favorites {
  padding: 40px 0 10px;
}


.favorites-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.favorites-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.favorites-head p {
  color: var(--muted);
  margin-top: 6px;
}

.favorites-empty {
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 24px;
  color: #2f2f2f;
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.favorites-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
}

.favorite-card {
  position: relative;
  width: 200px;
  flex: 0 0 200px;
}

.favorite-card .card-media {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
}

.favorite-card .card-image {
  object-fit: cover;
}

.favorite-card .card-link h3 {
  font-size: 0.92rem;
}

.favorite-meta span {
  font-size: 0.75rem;
}

.favorite-meta {
  display: grid;
  gap: 4px;
}

.favorite-meta span {
  font-size: 0.82rem;
  color: var(--muted);
}

.favorite-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  cursor: pointer;
}

.btn.saved {
  background: #0f172a;
  color: #ffffff;
}

.tab-panels {
  position: relative;
  transition: height 0.25s ease;
}

.tab-frame {
  position: relative;
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 16px;
  padding: 40px 26px 26px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);
}

body.theme-graphite .tab-frame {
  background: #201911;
  border-color: #3a3124;
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.5);
}

.tab-strip {
  --tab-width: 150px;
  --tab-height: 26px;
  position: absolute;
  top: calc(-1 * (var(--tab-height) - 2px));
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  width: auto;
  display: flex;
  justify-content: center;
  gap: 0;
  z-index: 2;
  height: var(--tab-height);
}

.tab-frame .filter-shell {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
}

.tab-frame .filter-pill {
  width: var(--tab-width);
  flex: 0 0 var(--tab-width);
  text-align: center;
  padding: 0;
  height: var(--tab-height);
  border: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 151 25' fill='none'><path d='M7.8252 0.5H125.693C127.766 0.5 129.736 1.37746 131.12 2.90332L131.389 3.2168L139.567 13.3232L139.573 13.3311L139.58 13.3379L149.354 24.5H0.5V7.82617C0.5 3.90661 3.57761 0.706178 7.44824 0.509766L7.8252 0.5Z' fill='%23F0F0F0' stroke='%23000000'/></svg>") no-repeat center/100% 100%;
  color: #666666;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  margin-left: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  z-index: 1;
}

.tab-frame .filter-pill:first-child {
  margin-left: 0;
}

.tab-frame .filter-pill:last-child {
  margin-right: 0;
}

.tab-frame .filter-pill::before {
  display: none;
}

.tab-frame .filter-pill.active {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 151 25' fill='none'><path d='M7.8252 0.5H125.693C127.766 0.5 129.736 1.37746 131.12 2.90332L131.389 3.2168L139.567 13.3232L139.573 13.3311L139.58 13.3379L149.354 24.5H0.5V7.82617C0.5 3.90661 3.57761 0.706178 7.44824 0.509766L7.8252 0.5Z' fill='%23FFFFFF' stroke='%23000000'/></svg>") no-repeat center/100% 100%;
  color: #111111;
  box-shadow: none;
  z-index: 6;
}

body.theme-graphite .tab-frame .filter-pill {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 151 25' fill='none'><path d='M7.8252 0.5H125.693C127.766 0.5 129.736 1.37746 131.12 2.90332L131.389 3.2168L139.567 13.3232L139.573 13.3311L139.58 13.3379L149.354 24.5H0.5V7.82617C0.5 3.90661 3.57761 0.706178 7.44824 0.509766L7.8252 0.5Z' fill='%231A1F29' stroke='%23D7DBE7'/></svg>") no-repeat center/100% 100%;
  color: #c8cdd9;
}

body.theme-graphite .tab-frame .filter-pill.active {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 151 25' fill='none'><path d='M7.8252 0.5H125.693C127.766 0.5 129.736 1.37746 131.12 2.90332L131.389 3.2168L139.567 13.3232L139.573 13.3311L139.58 13.3379L149.354 24.5H0.5V7.82617C0.5 3.90661 3.57761 0.706178 7.44824 0.509766L7.8252 0.5Z' fill='%23F5F6FB' stroke='%23D7DBE7'/></svg>") no-repeat center/100% 100%;
  color: #111111;
}


.tab-frame .tab-panels {
  padding-top: 6px;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tab-panel.is-visible,
.tab-panel.is-leaving {
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tab-panel.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.cards-group {
  display: none;
  margin-bottom: 32px;
}

.cards-group.active {
  display: block;
}

.explore-more {
  margin: 26px auto 0;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #1b1f26;
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.explore-more.hidden {
  display: none;
}

.card {
  display: block;
  position: relative;
}

.card-link {
  display: grid;
  gap: 12px;
  color: inherit;
}

.card-link:hover .card-media {
  transform: translateY(-4px);
}

.card-link h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #2d2d2d;
}

.card-external {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d9dee4;
  background: #f6f7f9;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
}

.card-external:hover {
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.card-media {
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-screen {
  width: 78%;
  height: 68%;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-grid {
  width: 85%;
  height: 70%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.card-grid span {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
}

.card-media.dark {
  background: linear-gradient(180deg, #0f1216, #1b222a);
}

.card-media.blue {
  background: linear-gradient(180deg, #191c3b, #1e45c4);
}

.card-media.grid {
  background: linear-gradient(180deg, #1f242c, #2d3741);
}

.card-media.warm {
  background: linear-gradient(180deg, #251f2b, #cf4b4b);
}

.card-media.lavender {
  background: linear-gradient(180deg, #24213f, #6865f1);
}

.card-media.teal {
  background: linear-gradient(180deg, #17222a, #3fd1b7);
}

.detail-page {
  background: #f6f7fb;
  color: var(--ink);
}

body.theme-graphite.detail-page {
  background: #18130d;
}

.detail-nav-actions {
  display: flex;
  gap: 12px;
}

.detail-hero {
  position: relative;
  padding: 76px 0 48px;
  background:
    linear-gradient(135deg, #f3f5ff 0%, #ffffff 60%),
    repeating-linear-gradient(90deg, rgba(47, 91, 255, 0.04) 0, rgba(47, 91, 255, 0.04) 1px, transparent 1px, transparent 70px),
    repeating-linear-gradient(0deg, rgba(47, 91, 255, 0.03) 0, rgba(47, 91, 255, 0.03) 1px, transparent 1px, transparent 70px);
  border-bottom: 1px solid #e7ebf6;
  overflow: hidden;
}

body.theme-graphite.detail-page .detail-hero {
  background:
    linear-gradient(135deg, #221b12 0%, #18130d 60%),
    repeating-linear-gradient(90deg, rgba(122, 92, 255, 0.08) 0, rgba(122, 92, 255, 0.08) 1px, transparent 1px, transparent 70px),
    repeating-linear-gradient(0deg, rgba(122, 92, 255, 0.06) 0, rgba(122, 92, 255, 0.06) 1px, transparent 1px, transparent 70px);
  border-bottom-color: #3a3124;
}

body.theme-graphite.detail-page .detail-hero::before {
  background: radial-gradient(circle, rgba(122, 92, 255, 0.18), rgba(24, 19, 13, 0));
}

body.theme-graphite.detail-page .detail-hero::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), rgba(24, 19, 13, 0));
}

body.theme-graphite .detail-subhead {
  color: #b0b6c6;
}

body.theme-graphite .detail-summary,
body.theme-graphite .detail-shot,
body.theme-graphite .panel-card,
body.theme-graphite .stat-card {
  background: #201911;
  border-color: #3a3124;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4);
}

body.theme-graphite .summary-block {
  background: #241d14;
  border-color: #3a3124;
}

body.theme-graphite .summary-value,
body.theme-graphite .panel-card h4,
body.theme-graphite .meta-list,
body.theme-graphite .stat-card strong {
  color: #f2f3f7;
}

body.theme-graphite .summary-label,
body.theme-graphite .summary-block span,
body.theme-graphite .stat-card span {
  color: #b0b6c6;
}

body.theme-graphite .meta-list div:first-child dd {
  background: #241d14;
  border-color: #3a3124;
  color: #f3ede4;
}

body.theme-graphite .badge {
  background: #241d14;
  border-color: #3a3124;
  color: #f3ede4;
}

body.theme-graphite .btn-outline {
  background: var(--nav-button-bg);
  border-color: rgba(36, 29, 20, 0.14);
  color: var(--nav-button-ink);
}

body.theme-graphite .btn-outline:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.detail-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.2), rgba(255, 255, 255, 0));
  top: -140px;
  right: -120px;
}

.detail-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(32, 36, 48, 0.14), rgba(255, 255, 255, 0));
  bottom: -220px;
  left: -160px;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.detail-hero-main {
  display: grid;
  gap: 18px;
}

.detail-hero-aside {
  display: grid;
  gap: 16px;
}

.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e8f3;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4b5163;
  width: fit-content;
}

.detail-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f5bff;
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.2);
}

.detail-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.detail-title {
  font-size: clamp(2.6rem, 3.8vw, 4rem);
  letter-spacing: -0.025em;
}

.detail-subhead {
  max-width: 520px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: #333333;
}

.detail-summary {
  display: grid;
  gap: 16px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e3e7f2;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(23, 28, 45, 0.12);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-block {
  background: #f7f8fd;
  border-radius: 14px;
  border: 1px solid #e3e7f2;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.summary-block span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.summary-block strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2f5bff;
  border: 1px solid #dbe3ff;
  font-size: 0.75rem;
  font-weight: 600;
}

.detail-stats {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e8f3;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(19, 24, 35, 0.06);
}

.stat-card span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stat-card strong {
  font-size: 1rem;
  font-weight: 600;
}

.summary-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.summary-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.detail-content {
  padding: 30px 0 90px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.detail-shot {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  cursor: zoom-in;
}

.zoom-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 24, 35, 0.86);
  color: #ffffff;
  font-size: 0.75rem;
  cursor: pointer;
  display: none;
}

.detail-shot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.detail-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.panel-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.panel-card.panel-secondary {
  background: #f8f9ff;
  border: 1px solid #e1e6ff;
}

.panel-card h4 {
  font-size: 1rem;
  font-weight: 600;
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-panel .panel-actions .btn-primary {
  display: none;
}

.meta-list {
  display: grid;
  gap: 0;
  font-size: 0.95rem;
  padding-top: 4px;
}

.meta-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: start;
}

.meta-list div:not(:first-child) {
  display: none;
}

.meta-list div:first-child {
  grid-template-columns: 1fr;
  gap: 8px;
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-list dd {
  margin: 0;
  color: #2d2d2d;
}

.meta-list div:first-child dd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f6f7f9;
  color: #111111;
  font-weight: 600;
}

.palette {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.swatch span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.swatch code {
  font-family: "Product Sans", system-ui, -apple-system, sans-serif;
  background: #f4f5f7;
  padding: 2px 6px;
  border-radius: 6px;
}

.palette-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.dna-list {
  display: grid;
  gap: 12px;
}

.dna-item {
  display: grid;
  gap: 6px;
}

.dna-label {
  font-size: 0.85rem;
  color: #2f2f2f;
}

.dna-bar {
  height: 8px;
  background: rgba(47, 91, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.dna-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f5bff, #7aa0ff);
  width: calc(var(--value, 0.6) * 100%);
}

.section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: #2d2d2d;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 18, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  width: min(1000px, 92vw);
  max-height: 90vh;
  background: #0f1118;
  border-radius: 20px;
  padding: 18px;
  overflow: auto;
  position: relative;
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.lightbox-close {
  position: sticky;
  top: 10px;
  margin-left: auto;
  border: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.75rem;
  cursor: pointer;
  display: block;
  margin-bottom: 12px;
}

.detail-page.lightbox-open {
  overflow: hidden;
}

.empty-panel {
  background: #fafafa;
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 48px;
  text-align: center;
  color: #2f2f2f;
  position: relative;
}

.empty-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.empty-panel p {
  color: var(--muted);
}

.back-btn {
  margin-top: 12px;
}

.empty-panel .back-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  margin-top: 0;
}

.static-panel {
  position: static;
  max-width: 820px;
  margin: 0 auto;
  border-style: solid;
}

.advertise-panel {
  display: grid;
  gap: 18px;
}

.advertise-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.advertise-email {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  font-size: 1rem;
  font-weight: 600;
}

.advertise-note {
  font-size: 0.95rem;
}

body.theme-graphite .advertise-email {
  background: #241d14;
  border-color: #3a3124;
  color: #f3ede4;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .filter-bar {
    position: sticky;
    top: 70px;
    right: auto;
    z-index: 30;
    background: #ffffff;
    padding: 12px 0 6px;
    border-bottom: 1px solid #ebeef5;
    width: 100%;
    display: block;
  }

  body.theme-graphite .filter-bar {
    background: #18130d;
    border-bottom-color: #3a3124;
  }

  .filter-bar .container {
    width: min(1180px, 92vw);
    margin: 0 auto;
  }

  .filter-wrap {
    justify-content: center;
    width: 100%;
  }

  .filter-shell {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 12px 26px rgba(18, 18, 18, 0.08);
    overflow-x: auto;
    width: auto;
  }

  body.theme-graphite .filter-shell {
    background: #241d14;
    border-color: #3a3124;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  }

  .filter-pill {
    width: auto;
    text-align: center;
    padding: 10px 16px;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
  }

  .filter-pill::before {
    display: none;
  }

  .filter-pill.active {
    background: #f0f2f7;
    box-shadow: inset 0 0 0 1px #e0e4ef;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 50px;
  }

  .filter-wrap {
    justify-content: flex-start;
  }

  .favorites-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .card-media {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .favorite-card {
    width: 100%;
    flex: 1 1 100%;
  }
}
