/* Theme Tokens */

:root {
  color-scheme: light dark;
  --bg: #f7f2ea;
  --surface: #fffaf3;
  --surface-strong: #f0e2d2;
  --text: #211a15;
  --muted: #6e5f53;
  --primary: #7a4d00;
  --primary-soft: #f5d9a8;
  --outline: #d7c3ae;
  --shadow: 0 18px 50px rgb(77 52 24 / 12%);
  --interactive-transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
  --press-ripple: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--primary) 42%, white) 0%,
    color-mix(in srgb, var(--primary) 28%, transparent) 45%,
    transparent 72%
  );
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120e;
    --surface: #211a15;
    --surface-strong: #30251e;
    --text: #f2e8df;
    --muted: #cab9a9;
    --primary: #ffc46b;
    --primary-soft: #5b3a00;
    --outline: #554437;
    --shadow: 0 18px 50px rgb(0 0 0 / 35%);
  }
}

body.theme-remember {
  --bg: #f3f8ee;
  --surface: #fbfff5;
  --surface-strong: #ddebcf;
  --text: #172114;
  --muted: #53644c;
  --primary: #466b35;
  --primary-soft: #d7eac5;
  --outline: #b8c9aa;
  --shadow: 0 18px 50px rgb(49 74 37 / 13%);
}

body.theme-filepipe {
  --bg: #f3f5ff;
  --surface: #fbfbff;
  --surface-strong: #e2e6ff;
  --text: #171834;
  --muted: #5c6084;
  --primary: #4b4fd3;
  --primary-soft: #dfe5ff;
  --outline: #c3c8ef;
  --shadow: 0 18px 50px rgb(55 61 163 / 14%);
}

body.theme-obtainx {
  --bg: #f7f1ff;
  --surface: #fefaff;
  --surface-strong: #eadcff;
  --text: #211433;
  --muted: #67557e;
  --primary: #7441c9;
  --primary-soft: #eadcff;
  --outline: #d1bce9;
  --shadow: 0 18px 50px rgb(106 58 183 / 14%);
}

body.theme-awwsome {
  --bg: #fff8e8;
  --surface: #fffdf5;
  --surface-strong: #ffe4aa;
  --text: #251900;
  --muted: #6d5a34;
  --primary: #8a5a00;
  --primary-soft: #ffe0a1;
  --outline: #dec38a;
  --shadow: 0 18px 50px rgb(135 83 0 / 14%);
}

body.theme-archive {
  --bg: #edf2f3;
  --surface: #f9fbfa;
  --surface-strong: #cfd8d9;
  --text: #1b2122;
  --muted: #586568;
  --primary: #4b7181;
  --primary-soft: #d7e7eb;
  --outline: #aebfc3;
  --shadow: 0 18px 50px rgb(55 79 87 / 14%);
}

@media (prefers-color-scheme: dark) {
  body.theme-remember {
    --bg: #10170e;
    --surface: #182116;
    --surface-strong: #22321d;
    --text: #f0ead9;
    --muted: #c5d0b8;
    --primary: #b8d99b;
    --primary-soft: #2d441f;
    --outline: #4d6044;
    --shadow: 0 18px 50px rgb(0 0 0 / 35%);
  }

  body.theme-filepipe {
    --bg: #101227;
    --surface: #181a34;
    --surface-strong: #252a58;
    --text: #f0f1ff;
    --muted: #c3c7ef;
    --primary: #aeb8ff;
    --primary-soft: #2b3170;
    --outline: #555b96;
    --shadow: 0 18px 50px rgb(0 0 0 / 38%);
  }

  body.theme-obtainx {
    --bg: #170f24;
    --surface: #22172f;
    --surface-strong: #332149;
    --text: #f4eafe;
    --muted: #d0bde7;
    --primary: #c19cff;
    --primary-soft: #3b2361;
    --outline: #62497f;
    --shadow: 0 18px 50px rgb(0 0 0 / 38%);
  }

  body.theme-awwsome {
    --bg: #1a1305;
    --surface: #251b08;
    --surface-strong: #3a2a0d;
    --text: #fff1cd;
    --muted: #dcc99f;
    --primary: #ffc44d;
    --primary-soft: #5b3b00;
    --outline: #66512a;
    --shadow: 0 18px 50px rgb(0 0 0 / 36%);
  }

  body.theme-archive {
    --bg: #111719;
    --surface: #1a2225;
    --surface-strong: #293538;
    --text: #edf4f3;
    --muted: #b6c4c7;
    --primary: #9fc6d3;
    --primary-soft: #284653;
    --outline: #526268;
    --shadow: 0 18px 50px rgb(0 0 0 / 38%);
  }
}

/* Base */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--primary-soft), transparent 28rem),
    linear-gradient(135deg, var(--bg), var(--surface-strong));
}

a {
  color: var(--primary);
  text-decoration: none;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

/* Layout */

.site-shell {
  display: flex;
  flex-direction: column;
  width: min(68rem, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 0.625rem 4rem;
  view-transition-name: page-shell;
}

/* Construction Banner */

.construction-tape {
  position: fixed;
  bottom: clamp(3rem, 10vw, 7rem);
  left: clamp(-10rem, -12vw, -4rem);
  z-index: 20;
  display: flex;
  width: max(44rem, 130vw);
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: 0.55rem 2rem;
  border-block: 2px solid rgb(42 35 8 / 60%);
  color: #1f1a07;
  background:
    repeating-linear-gradient(
      135deg,
      rgb(255 206 52) 0 1.1rem,
      rgb(22 20 13) 1.1rem 2.2rem
    );
  box-shadow: 0 16px 40px rgb(0 0 0 / 22%);
  font-size: clamp(0.85rem, 2.4vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  pointer-events: none;
  text-transform: uppercase;
  transform: rotate(-9deg);
  transform-origin: left center;
}

.construction-tape span {
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: rgb(255 235 126 / 90%);
  box-shadow: 0 0 0 1px rgb(42 35 8 / 22%);
  white-space: nowrap;
}

/* Hero Layouts */

.hero {
  padding: 3rem 0 2rem;
}

.profile-hero {
  padding: 3.5rem 0 2.5rem;
}

.project-hero {
  padding: 4.5rem 0 3rem;
}

.profile-hero,
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: start;
}

.profile-hero > .hero-copy,
.project-hero > .hero-copy {
  order: 1;
}

.profile-hero > .hero-media,
.project-hero > .hero-media {
  order: 2;
}

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-media .nav {
  flex-direction: column;
  align-items: stretch;
  width: min(16rem, 100%);
  margin-top: 1.25rem;
}

.hero-media .pill {
  justify-content: center;
}

/* Media Assets */

.avatar {
  width: clamp(8rem, 22vw, 13rem);
  aspect-ratio: 1;
  border: 1px solid var(--outline);
  border-radius: 2rem;
  object-fit: cover;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-logo {
  width: clamp(6rem, 18vw, 10rem);
  aspect-ratio: 1;
  border-radius: 2rem;
  object-fit: cover;
}

.theme-obtainx .app-logo {
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Metadata Chips */

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 50%, transparent);
  font-size: 0.9rem;
  font-weight: 700;
}

a.meta-chip {
  text-decoration: none;
}

/* Feed Page */

.feed-action {
  position: relative;
  appearance: none;
  cursor: pointer;
  border-color: transparent;
  color: #1f1600;
  background: var(--primary);
  box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 16%);
  font: inherit;
  overflow: hidden;
}

.feed-action:hover,
.feed-action:focus-visible {
  border-color: var(--primary);
  background: var(--primary);
  color: #1f1600;
}

@media (prefers-color-scheme: dark) {
  .feed-action {
    color: #2b1b00;
  }
}

.feed-preview-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: right;
}

.feed-preview-box {
  margin-top: 1rem;
}

.feed-preview-list {
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--outline) 75%, transparent);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--primary-soft) 50%, var(--surface));
  list-style: none;
}

.feed-preview-list li {
  display: flex;
  min-width: 0;
  padding: 0.95rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
}

.feed-preview-list li span {
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-preview-list li + li {
  border-top: 1px solid color-mix(in srgb, var(--outline) 70%, transparent);
}

.feed-info-bar {
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 0.95rem;
}

.feed-info-bar:hover {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--outline));
  background: color-mix(in srgb, var(--surface) 95%, var(--primary-soft));
  box-shadow:
    0 0.65rem 1.6rem rgb(0 0 0 / 9%),
    0 0 1rem color-mix(in srgb, var(--primary) 8%, transparent);
  transform: translateY(-0.08rem);
}

.feed-info-bar strong {
  color: var(--text);
}

.feature-grid.feed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feed-action-row {
  display: flex;
  margin-top: 0.75rem;
}

.all-releases-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.all-releases-card h3 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.all-releases-card .feed-preview-box {
  margin-top: 0;
}

.feed-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.feed-footer-updated {
  text-align: right;
}

@media (max-width: 58rem) {
  .feature-grid.feed-grid,
  .all-releases-card {
    grid-template-columns: 1fr;
  }

  .feed-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-footer-updated {
    text-align: left;
  }
}

/* Typography */

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: -0.055em;
}

.profile-tagline {
  max-width: 44rem;
  margin: 0.8rem 0 0;
  color: var(--text);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h2 {
  margin: 1rem 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
}

hr {
  height: 0;
  margin: 0 0 1.25rem;
  border: 0;
  border-top: 1px solid var(--outline);
  background: transparent;
}

h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.2rem;
}

.lede {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

/* Navigation And Buttons */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.page-nav {
  margin: 0;
  padding-top: 0.5rem;
}

.mobile-site-menu {
  display: none;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  text-decoration: none;
  overflow: hidden;
}

.pill::after,
.feed-action::after,
.mobile-site-menu summary::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--press-ripple);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.45);
  transition:
    opacity 180ms ease,
    transform 260ms ease;
}

.pill:active::after,
.feed-action:active::after,
.mobile-site-menu summary:active::after {
  opacity: 0.28;
  transform: scale(1.8);
  transition-duration: 80ms;
}

.feed-info-bar,
.pill,
.mobile-site-menu summary,
.content-card,
.card,
.archive-card,
.feature-card,
.screenshot-card {
  transition: var(--interactive-transition);
}

.pill-icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.25rem;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 28%));
  object-fit: contain;
}

.pill:not(.primary) .pill-icon[src*="github.com/favicon.ico"],
.pill:not(.primary) .pill-icon[src*="fav_github.ico"] {
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 28%));
}

.pill.primary .pill-icon[src*="github.com/favicon.ico"],
.pill.primary .pill-icon[src*="fav_github.ico"] {
  filter: invert(1) drop-shadow(0 1px 1px rgb(0 0 0 / 35%));
}

.pill.primary {
  border-color: transparent;
  color: #fff;
  background: var(--primary);
  font-weight: 760;
}

.pill.secondary-strong {
  border-color: color-mix(in srgb, var(--primary) 68%, var(--outline));
  color: var(--text);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--surface) 82%, var(--primary-soft)),
      color-mix(in srgb, var(--surface) 96%, transparent)
    );
  box-shadow: 0 0.45rem 1.1rem rgb(0 0 0 / 9%);
  font-weight: 760;
}

.pill.archive-nav-link:not(.primary) {
  border-color: color-mix(in srgb, var(--outline) 58%, transparent);
  color: color-mix(in srgb, var(--muted) 82%, var(--text));
  background: color-mix(in srgb, var(--surface) 46%, transparent);
}

.pill:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 70%, white);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  a.pill:hover,
  button.pill:hover {
    border-color: color-mix(in srgb, var(--primary) 46%, var(--outline));
    background: color-mix(in srgb, var(--surface) 94%, var(--primary-soft));
    box-shadow:
      0 0.65rem 1.45rem rgb(0 0 0 / 10%),
      0 0 1rem color-mix(in srgb, var(--primary) 9%, transparent);
    transform: translateY(-0.12rem);
  }

  a.pill.archive-nav-link:not(.primary):hover {
    border-color: color-mix(in srgb, var(--outline) 76%, var(--primary));
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
  }

  a.pill.primary:hover,
  button.pill.primary:hover {
    border-color: transparent;
    background: color-mix(in srgb, var(--primary) 88%, white);
  }
}

@media (prefers-color-scheme: dark) {
  .pill.primary {
    color: #2b1b00;
  }

  .pill:not(.primary) .pill-icon[src*="github.com/favicon.ico"],
  .pill:not(.primary) .pill-icon[src*="fav_github.ico"] {
    filter: invert(1) drop-shadow(0 1px 1px rgb(0 0 0 / 35%));
  }

  .pill.primary .pill-icon[src*="github.com/favicon.ico"],
  .pill.primary .pill-icon[src*="fav_github.ico"] {
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / 28%));
  }
}

/* Cards And Project Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.projects-section {
  padding-top: 2rem;
}

.card,
.content-card {
  border: 1px solid var(--outline);
  border-radius: 1.5rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.content-card:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--outline));
  background: color-mix(in srgb, var(--surface) 96%, var(--primary-soft));
  box-shadow:
    0 0.8rem 2rem rgb(0 0 0 / 10%),
    0 0 1rem color-mix(in srgb, var(--primary) 8%, transparent);
  transform: translateY(-0.1rem);
}

a.content-card,
.projects-section .card {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary-soft) 32%, var(--surface)),
      color-mix(in srgb, var(--surface) 96%, transparent) 48%,
      color-mix(in srgb, var(--primary-soft) 16%, var(--surface))
    );
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 13rem;
  padding: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.card,
a.content-card,
.feature-card,
.screenshot-button {
  -webkit-tap-highlight-color: transparent;
}

.projects-section .card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3rem;
}

.projects-section .card-title-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
}

.projects-section .card {
  cursor: pointer;
}

.projects-section .card::after {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--primary);
  content: "Open project \2192";
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(0.35rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.projects-section .card:hover,
.projects-section .card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--outline));
  background: color-mix(in srgb, var(--surface) 96%, var(--primary-soft));
  box-shadow:
    0 1.35rem 3.5rem rgb(0 0 0 / 18%),
    0 0 2rem color-mix(in srgb, var(--primary) 16%, transparent);
  transform: translateY(-0.25rem);
}

.projects-section .card:hover::after,
.projects-section .card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.card-logo {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  margin: 0;
  border-radius: 0.9rem;
  object-fit: cover;
  background: var(--surface-strong);
  transition: transform 180ms ease;
}

.projects-section .card h3 {
  margin: 0;
}

.projects-section .card p {
  margin: 1rem 0 0;
}

.card-badge {
  position: static;
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, transparent);
  border-radius: 999px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 42%, transparent);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.projects-section .card:hover .card-logo,
.projects-section .card:focus-visible .card-logo {
  transform: translateY(-0.15rem) rotate(-2deg) scale(1.05);
}

.archive-section {
  padding-top: 3.25rem;
  padding-bottom: 4rem;
}

.archive-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 6vw, 4rem);
  align-items: center;
  width: min(100%, 49rem);
  margin-top: 1rem;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  border: 1px solid color-mix(in srgb, var(--outline) 82%, transparent);
  border-radius: 1.25rem;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: 0 0.7rem 1.8rem rgb(0 0 0 / 6%);
  text-decoration: none;
}

.archive-card:hover,
.archive-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--outline));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow:
    0 0.95rem 2.2rem rgb(0 0 0 / 9%),
    0 0 1rem color-mix(in srgb, var(--primary) 5%, transparent);
  transform: translateY(-0.1rem);
}

.archive-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.archive-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
}

.archive-link {
  display: inline-flex;
  margin-top: 1.15rem;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 750;
}

.archive-mosaic {
  width: clamp(9.5rem, 19vw, 12.5rem);
}

.archive-mosaic img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 180ms ease;
}

.archive-card:hover .archive-mosaic img,
.archive-card:focus-visible .archive-mosaic img {
  transform: translateY(-0.08rem) scale(1.025);
}

.card p,
.content-card p,
.content-card li {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  padding: 1.4rem;
  border: 1px solid var(--outline);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--outline));
  background: color-mix(in srgb, var(--surface) 95%, var(--primary-soft));
  box-shadow:
    0 0.9rem 2.2rem rgb(0 0 0 / 11%),
    0 0 1.1rem color-mix(in srgb, var(--primary) 9%, transparent);
  transform: translateY(-0.12rem);
}

.feature-card h3 {
  margin-bottom: 0.7rem;
}

.feature-card p {
  margin: 0;
}

.stat-card {
  padding: 1rem 1.25rem;
}

.stat-card h2 {
  margin: 0 0 0.55rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.compact-list {
  margin: 0;
  padding-left: 1.2rem;
}

.card .arrow {
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
}

.content-card {
  max-width: 48rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.hero .content-card {
  margin-top: 2rem;
  padding-block: clamp(1rem, 3vw, 1.5rem);
}

.content-card.wide {
  max-width: none;
}

.content-card + .content-card {
  margin-top: 1rem;
}

.pull-up-card {
  width: 100%;
  margin-top: -0.75rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.2rem, 3vw, 1.6rem);
}

.showcase-column {
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.6rem);
}

.showcase-card {
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 1.35rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  transition: var(--interactive-transition);
}

.showcase-card:hover,
.showcase-card:focus-within {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--outline));
  background: color-mix(in srgb, var(--surface) 94%, var(--primary-soft));
  box-shadow:
    0 1.1rem 2.8rem rgb(0 0 0 / 15%),
    0 0 1.6rem color-mix(in srgb, var(--primary) 12%, transparent);
  transform: translateY(-0.12rem);
}

.showcase-card.is-horizontal {
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) minmax(0, 1fr);
}

.showcase-card > button,
.showcase-media-strip > button {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface-strong);
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.showcase-media-strip > button,
.showcase-card.is-horizontal > button {
  height: 100%;
}

.showcase-media-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: color-mix(in srgb, var(--surface-strong) 55%, var(--surface));
}

.showcase-media-strip > button + button {
  border-left: 1px solid var(--outline);
}

.showcase-card > button > img,
.showcase-media-strip > button > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease;
}

.showcase-card > button > img {
  height: auto;
  aspect-ratio: auto;
}

.showcase-card.is-horizontal > button > img {
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
}

.showcase-card:hover > button > img,
.showcase-card:focus-within > button > img,
.showcase-card:hover .showcase-media-strip > button > img,
.showcase-card:focus-within .showcase-media-strip > button > img {
  transform: scale(1.018);
}

.showcase-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.showcase-card.is-horizontal .showcase-body {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--outline);
}

.showcase-card.is-horizontal .showcase-heading {
  grid-template-columns: auto minmax(0, 1fr);
}

.showcase-card.is-horizontal .showcase-action {
  align-self: flex-start;
  justify-self: start;
  margin-top: 0.75rem;
}

.showcase-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.showcase-heading img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  object-fit: cover;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.showcase-heading h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.showcase-heading p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
}

.showcase-tagline {
  margin: 0.75rem 0 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.showcase-body > p:not(.showcase-tagline) {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.showcase-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
  padding: 0.42rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--outline));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
}

.showcase-action img {
  width: 0.95rem;
  height: 0.95rem;
}

.showcase-action.is-muted {
  color: color-mix(in srgb, var(--muted) 78%, var(--text));
}

.showcase-action.is-muted::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0.7;
}

@media (max-width: 58rem) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 34rem) {
  .showcase-heading {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
  }

  .showcase-action {
    grid-column: auto;
    justify-self: end;
    padding-inline: 0.58rem;
    font-size: 0.72rem;
  }
}

.read-more-row {
  margin-top: -2.5rem;
  margin-bottom: 2rem;
  text-align: right;
}

.read-more-button {
  min-height: 2.45rem;
  padding: 0.5rem 0.85rem;
  border-color: color-mix(in srgb, var(--primary) 62%, var(--outline));
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--surface) 78%, var(--primary-soft)),
      color-mix(in srgb, var(--surface) 96%, transparent)
    );
  box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 7%);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 760;
}

/* Featured Mentions */

.featured-mention {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border-color: color-mix(in srgb, var(--primary) 34%, var(--outline));
  color: var(--text);
  box-shadow: 0 0.15rem 0.45rem rgb(0 0 0 / 4%);
  text-decoration: none;
}

a.featured-mention {
  cursor: pointer;
}

.featured-mention::before {
  flex: 0 0 0.35rem;
  align-self: stretch;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

a.featured-mention:hover,
a.featured-mention:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 60%, var(--outline));
  background: color-mix(in srgb, var(--surface) 94%, var(--primary-soft));
  box-shadow:
    0 1.35rem 3.4rem rgb(0 0 0 / 17%),
    0 0 2rem color-mix(in srgb, var(--primary) 16%, transparent);
  transform: translateY(-0.24rem);
}

.featured-mention-text {
  min-width: 0;
}

.featured-mention-text span,
.featured-mention strong {
  display: block;
}

.featured-mention-text span {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-mention strong {
  margin-top: 0.25rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.15;
}

.featured-mention-text .featured-mention-body {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.natural-media-section > .featured-mention {
  width: 100%;
  max-width: none;
  margin-bottom: 1.6rem;
}

.featured-mention-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--surface-strong) 75%, transparent);
  box-shadow: 0 0.6rem 1.4rem rgb(0 0 0 / 12%);
  transition: transform 180ms ease;
}

.featured-mention-logo svg {
  width: 1.9rem;
  height: auto;
}

a.featured-mention:hover .featured-mention-logo,
a.featured-mention:focus-visible .featured-mention-logo {
  transform: translateX(0.15rem) scale(1.04);
}

/* Legal Pages */

.page-nav + .content-card,
.page-nav + .mobile-site-menu + .content-card {
  width: 100%;
  max-width: none;
  margin: 2rem auto 0;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.page-nav + .content-card h1,
.page-nav + .mobile-site-menu + .content-card h1 {
  margin-bottom: 0.5rem;
}

.page-nav + .content-card h2,
.page-nav + .mobile-site-menu + .content-card h2 {
  margin: 3rem 0 0.85rem;
}

.page-nav + .content-card h3,
.page-nav + .mobile-site-menu + .content-card h3 {
  margin: 2rem 0 0.5rem;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

.page-nav + .content-card h2 + h3,
.page-nav + .mobile-site-menu + .content-card h2 + h3 {
  margin-top: 1.25rem;
}

.page-nav + .content-card p,
.page-nav + .mobile-site-menu + .content-card p {
  margin: 0 0 1.1rem;
}

.page-nav + .content-card ul,
.page-nav + .mobile-site-menu + .content-card ul {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.page-nav + .content-card li + li,
.page-nav + .mobile-site-menu + .content-card li + li {
  margin-top: 0.35rem;
}

.meta {
  margin: 0 0 2.25rem;
  color: var(--muted);
}

/* Media Layout Variants */

.section-intro {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.natural-media-section .screenshot-card figcaption,
.compact-media-section .screenshot-card figcaption {
  min-height: 0;
  padding-block: 0.75rem 0.9rem;
}

.compact-media-section .screenshot-grid.freeform {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr));
  gap: 0.65rem;
}

.compact-media-section .screenshot-grid.freeform .screenshot-button {
  height: auto;
  overflow: visible;
  aspect-ratio: 1;
  background: transparent;
}

.compact-media-section .screenshot-card {
  position: relative;
  border-radius: 1.25rem;
  background: transparent;
  box-shadow: none;
}

.compact-media-section .screenshot-grid.freeform .screenshot-button > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compact-media-section .screenshot-button {
  cursor: pointer;
}

/* Screenshots And Lightbox */

.screenshot-section {
  margin-top: -2rem;
  padding: 0.25rem 0 4rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  align-items: start;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.screenshot-card {
  align-self: start;
  margin: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
}

.screenshot-card:hover {
  box-shadow:
    0 1.1rem 2.75rem rgb(0 0 0 / 14%),
    0 0 1.6rem color-mix(in srgb, var(--primary) 12%, transparent);
  transform: translateY(-0.18rem);
}

.screenshot-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.screenshot-button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.screenshot-button > img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  transition: transform 180ms ease;
}

.screenshot-grid.natural-stack-grid .screenshot-button > img {
  aspect-ratio: 16 / 9;
}

.screenshot-grid.freeform {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.screenshot-grid.app-screenshot-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.screenshot-grid.freeform .screenshot-card {
  min-width: 0;
}

.screenshot-grid.freeform .screenshot-button {
  height: auto;
  overflow: visible;
  background: transparent;
}

.screenshot-grid.freeform .screenshot-button > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  transition: transform 180ms ease;
}

.screenshot-card:hover .screenshot-button > img {
  transform: scale(1.025);
}

.screenshot-action {
  display: block;
  padding: 0.75rem 1rem 0;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.screenshot-card figcaption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--outline);
  border-top: 0;
  border-radius: 0 0 1.5rem 1.5rem;
  color: var(--muted);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary-soft) 24%, var(--surface)),
      color-mix(in srgb, var(--surface) 96%, transparent) 52%,
      color-mix(in srgb, var(--primary-soft) 12%, var(--surface))
    );
  font-size: 0.95rem;
}

.image-dialog {
  width: var(--dialog-media-width, fit-content);
  max-width: 96vw;
  max-height: 94vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 1.5rem;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 80px rgb(0 0 0 / 35%);
}

.image-dialog:focus {
  outline: none;
}

.image-dialog::backdrop {
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(16px);
}

.image-dialog-inner {
  position: relative;
  display: grid;
  width: var(--dialog-media-width, fit-content);
  max-width: 96vw;
  max-height: 94vh;
  align-items: center;
  overflow: hidden;
  border-radius: inherit;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
}

.dialog-image {
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: calc(94vh - 8rem);
  aspect-ratio: auto;
  background: color-mix(in srgb, var(--surface-strong) 42%, transparent);
  object-fit: contain;
  object-position: top center;
  transition: opacity 140ms ease, transform 140ms ease;
}

.dialog-caption {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--surface);
  color: var(--muted);
  overflow-wrap: anywhere;
  transition: opacity 140ms ease, transform 140ms ease;
}

.dialog-image.is-switching,
.dialog-caption.is-switching {
  opacity: 0;
  transform: scale(0.985);
}

.dialog-action {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  margin: 0 1.25rem;
}

.dialog-action[hidden] {
  display: none;
}

.dialog-action .pill-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.site-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Page Transitions */

@view-transition {
  navigation: auto;
}

::view-transition-old(page-shell),
::view-transition-new(page-shell) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

::view-transition-old(screenshot-morph),
::view-transition-new(screenshot-morph) {
  animation-duration: 360ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

::view-transition-old(page-shell) {
  animation-name: page-shell-out;
}

::view-transition-new(page-shell) {
  animation-name: page-shell-in;
}

@keyframes page-shell-out {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.985);
  }
}

@keyframes page-shell-in {
  from {
    opacity: 0;
    transform: scale(1.015);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(page-shell),
  ::view-transition-new(page-shell),
  ::view-transition-old(screenshot-morph),
  ::view-transition-new(screenshot-morph) {
    animation-duration: 1ms;
  }
}

/* Mobile */

@media (max-width: 42rem) {
  .desktop-site-nav {
    display: none;
  }

  .mobile-site-menu {
    display: block;
    margin: 0 0 1rem;
  }

  .mobile-site-menu summary {
    position: relative;
    z-index: 50;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    border: 1px solid color-mix(in srgb, var(--outline) 80%, transparent);
    border-radius: 999px;
    place-items: center;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 0.45rem 1rem rgb(0 0 0 / 10%);
    cursor: pointer;
    list-style: none;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-site-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-site-menu summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 70%, white);
    outline-offset: 3px;
  }

  .menu-icon {
    display: grid;
    width: 1.15rem;
    gap: 0.22rem;
  }

  .menu-icon span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .mobile-site-menu[open] summary {
    position: fixed;
    top: 1rem;
    right: max(1rem, calc((100vw - 68rem) / 2 + 1rem));
    border-color: color-mix(in srgb, var(--primary) 38%, var(--outline));
    background: var(--surface);
  }

  .mobile-site-menu[open] .menu-icon span:nth-child(1) {
    transform: translateY(0.32rem) rotate(45deg);
  }

  .mobile-site-menu[open] .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .mobile-site-menu[open] .menu-icon span:nth-child(3) {
    transform: translateY(-0.32rem) rotate(-45deg);
  }

  .mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    align-content: start;
    padding: 5.25rem 1rem 1.5rem;
    background: color-mix(in srgb, var(--bg) 88%, rgb(0 0 0 / 28%));
    backdrop-filter: blur(18px);
  }

  .mobile-menu-links {
    display: grid;
    width: min(100%, 24rem);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--outline);
    border-radius: 1.5rem;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: var(--shadow);
  }

  .mobile-menu-links a,
  .mobile-menu-links span {
    display: flex;
    min-height: 3.7rem;
    align-items: center;
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid color-mix(in srgb, var(--outline) 70%, transparent);
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 760;
    text-decoration: none;
  }

  .mobile-menu-links a:last-child,
  .mobile-menu-links span:last-child {
    border-bottom: 0;
  }

  .mobile-menu-links [aria-current="page"] {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 44%, transparent);
  }

  .mobile-menu-links .archive-nav-link {
    color: color-mix(in srgb, var(--muted) 82%, var(--text));
  }

  .page-nav {
    flex-wrap: nowrap;
    margin-inline: -0.625rem;
    padding: 0.35rem 0.625rem 0.65rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .page-nav::-webkit-scrollbar {
    display: none;
  }

  .page-nav .pill {
    flex: 0 0 auto;
    min-height: 0;
    padding: 0.2rem 0.1rem 0.35rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    font-size: 0.9rem;
    font-weight: 750;
  }

  .page-nav .pill.archive-nav-link:not(.primary) {
    border: 0;
    border-bottom: 2px solid transparent;
    color: color-mix(in srgb, var(--muted) 85%, var(--text));
    background: transparent;
  }

  .page-nav .pill::after {
    display: none;
  }

  .page-nav .pill.primary,
  .page-nav .pill[aria-current="page"] {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
  }

  .profile-hero,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    padding-bottom: 1rem;
  }

  .projects-section {
    padding-top: 0.5rem;
  }

  .projects-section .grid {
    gap: 1.1rem;
  }

  .projects-section .card {
    display: block;
    min-height: 0;
    padding: 1.4rem;
  }

  .projects-section .card::after {
    display: none;
  }

  .projects-section .card-header {
    gap: 1rem;
    min-height: 3.65rem;
  }

  .projects-section .card-logo {
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 1rem;
  }

  .projects-section .card p {
    margin-top: 1.1rem;
    line-height: 1.5;
  }

  .archive-section {
    padding-top: 2.75rem;
  }

  .archive-card {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 1.25rem;
  }

  .archive-mosaic {
    width: min(100%, 11rem);
    justify-self: center;
  }

  .profile-hero > .hero-media {
    order: 1;
  }

  .profile-hero > .hero-copy {
    order: 2;
  }

  .profile-hero .avatar {
    width: clamp(8.5rem, 42vw, 10rem);
    border-radius: 1.75rem;
  }

  .profile-hero .hero-media .nav {
    width: min(14rem, 100%);
    margin-top: 1rem;
  }

  .profile-hero .hero-media .pill {
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
  }

  .project-hero {
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: 0.65rem 1rem;
    align-items: center;
    padding-top: 2rem;
  }

  .project-hero > .hero-media,
  .project-hero > .hero-copy {
    display: contents;
  }

  .project-hero .app-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    justify-self: start;
    width: 4.4rem;
    border-radius: 1.25rem;
  }

  .project-hero h1 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3.25rem);
  }

  .project-hero .chip-row {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
  }

  .project-hero .hero-media .nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    margin-top: 0.35rem;
    overflow: visible;
  }

  .project-hero .hero-media .pill {
    justify-content: center;
    min-width: 0;
    padding-inline: 0.85rem;
  }

  .theme-obtainx .project-hero .hero-media .pill.primary {
    grid-column: 1 / -1;
  }

  .project-hero .lede {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0.75rem;
  }

  .project-hero .hero-copy > .content-card:not(.featured-mention) {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    max-width: none;
    margin-top: 0.75rem;
  }

  .project-hero .featured-mention {
    grid-column: 1 / -1;
    grid-row: 6;
    width: 100%;
    max-width: none;
    margin-top: 0.5rem;
  }

  .screenshot-section {
    margin-top: -1rem;
    padding-bottom: 3rem;
  }

  .screenshot-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    margin-inline: -0.625rem;
    padding: 0 0.625rem 0.85rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0.625rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .screenshot-grid::-webkit-scrollbar,
  .screenshot-grid.freeform::-webkit-scrollbar {
    display: none;
  }

  .screenshot-card {
    flex: 0 0 min(78vw, 20rem);
    background: transparent;
    box-shadow: none;
    scroll-snap-align: center;
  }

  .screenshot-grid.freeform .screenshot-card {
    flex-basis: auto;
  }

  .screenshot-grid.freeform {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    gap: 1rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .screenshot-grid.app-screenshot-grid {
    display: flex;
    grid-template-columns: none;
    margin-inline: -0.625rem;
    padding: 0 0.625rem 0.85rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0.625rem;
    scroll-snap-type: x mandatory;
  }

  .screenshot-grid.app-screenshot-grid .screenshot-card {
    flex: 0 0 min(78vw, 20rem);
    scroll-snap-align: center;
  }

  .screenshot-grid.natural-stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .screenshot-grid.natural-stack-grid .screenshot-card {
    flex: none;
    width: 100%;
  }

  .screenshot-grid.natural-stack-grid .screenshot-button > img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .natural-media-section .screenshot-grid.freeform {
    grid-template-columns: 1fr;
  }

  .compact-media-section .screenshot-grid.freeform .screenshot-button {
    overflow: visible;
  }

  .compact-media-section .screenshot-grid.freeform {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.50rem), 1fr));
    gap: 0.55rem;
  }

  .compact-media-section .screenshot-grid.freeform .screenshot-button > img {
    height: 100%;
    object-fit: contain;
  }

  .screenshot-button {
    cursor: default;
  }

  .screenshot-card:hover {
    box-shadow: none;
    transform: none;
  }

  .screenshot-card:hover .screenshot-button > img {
    transform: none;
  }

  .screenshot-card figcaption {
    min-height: 0;
    line-height: 1.45;
  }
}
