/* ==========================================================================
   PORTFOLIO (terminal / IDE style) — content comes from content.js
   Colors & fonts are in :root below — tweak them there.
   ========================================================================== */

:root {
  --pf-bg: #0a0a0a;
  --pf-surface: #111111;
  --pf-surface-2: #171717;
  --pf-line: rgba(255, 255, 255, 0.08);
  --pf-line-strong: rgba(255, 255, 255, 0.16);
  --pf-text: #e9e6df;
  --pf-muted: rgba(233, 230, 223, 0.55);
  --pf-faint: rgba(233, 230, 223, 0.34);
  --pf-accent: #ff3b30;
  --pf-accent-soft: rgba(255, 59, 48, 0.12);
  --pf-green: #7ee787;
  --pf-blue: #79c0ff;
  --pf-yellow: #e3b341;
  --pf-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --pf-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pf-radius: 12px;
}

/* scroll lock while the viewer is open (position is restored in JS) */
html.pf-lock body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.pf {
  position: relative;
  min-height: 100vh;
  padding: 96px 32px 120px;
  background:
    radial-gradient(ellipse 70% 200px at 50% 100%, rgba(255, 59, 48, 0.08), transparent 100%),
    linear-gradient(180deg, #0a0a0a 0%, #0c0b0b 55%, #080808 100%);
  color: var(--pf-text);
  font-family: var(--pf-mono);
  overflow: hidden;
  isolation: isolate;
}

/* blueprint grid, fading out toward the edges */
.pf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}

/* faint CRT scanlines */
.pf::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.pf__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* ---------- header ---------- */

.pf__head {
  margin-bottom: 28px;
}

.pf__prompt {
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--pf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf__user { color: var(--pf-green); }
.pf__path { color: var(--pf-blue); }
.pf__dim { color: var(--pf-faint); }
.pf__cmd { color: var(--pf-text); margin-left: 6px; }

.pf__caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--pf-accent);
  animation: pf-blink 1.1s steps(1) infinite;
}

@keyframes pf-blink {
  50% { opacity: 0; }
}

.pf__title {
  font: 800 clamp(40px, 7vw, 84px)/0.95 var(--pf-mono);
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--pf-text);
}

.pf__title::before {
  content: "~/";
  color: var(--pf-accent);
}

/* ---------- links bar ---------- */

.pf-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 12px 14px;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pf-links[hidden] { display: none; }

.pf-links__cmd {
  padding-right: 6px;
  font-size: 13px;
  color: var(--pf-muted);
}

.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--pf-line-strong);
  border-radius: 8px;
  color: var(--pf-text);
  text-decoration: none;
  font-size: 13px;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.pf-link:hover,
.pf-link:focus-visible {
  border-color: var(--pf-accent);
  background: var(--pf-accent-soft);
  transform: translateY(-1px);
}

.pf-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.pf-link__label { font-weight: 700; }

.pf-link__handle {
  min-width: 0;
  color: var(--pf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-link__arrow {
  color: var(--pf-faint);
  transition: color 0.2s, transform 0.2s;
}

.pf-link:hover .pf-link__arrow {
  color: var(--pf-accent);
  transform: translate(2px, -2px);
}

/* ---------- toolbar: tabs + search ---------- */

.pf-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--pf-line);
}

.pf-tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pf-tabs::-webkit-scrollbar { display: none; }

.pf-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 8px 8px 0 0;
  color: var(--pf-muted);
  font: 500 14px/1 var(--pf-mono);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.pf-tab::before {
  content: "./";
  color: var(--pf-faint);
}

.pf-tab:hover {
  color: var(--pf-text);
  background: rgba(255, 255, 255, 0.03);
}

.pf-tab.is-active {
  color: var(--pf-text);
  background: var(--pf-surface);
}

.pf-tab.is-active::before { color: var(--pf-accent); }

.pf-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pf-accent);
}

.pf-tab__count {
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pf-faint);
  font-size: 11px;
}

.pf-tab.is-active .pf-tab__count {
  background: var(--pf-accent-soft);
  color: var(--pf-accent);
}

.pf-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.pf-view {
  display: flex;
  gap: 2px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--pf-line);
  border-radius: 8px;
  background: var(--pf-surface);
}

.pf-view__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  border: none;
  border-radius: 5px;
  background: none;
  color: var(--pf-faint);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.pf-view__btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pf-view__btn:hover { color: var(--pf-text); }

.pf-view__btn.is-active {
  background: var(--pf-accent-soft);
  color: var(--pf-accent);
}

.pf-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--pf-line);
  border-radius: 8px;
  background: var(--pf-surface);
  transition: border-color 0.2s;
}

.pf-search:focus-within { border-color: var(--pf-accent); }

.pf-search__label {
  font-size: 12px;
  color: var(--pf-accent);
}

.pf-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--pf-text);
  font: 400 14px var(--pf-mono);
}

.pf-search input::placeholder { color: var(--pf-faint); }

/* ---------- grid + cards ---------- */

.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.pf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  animation: pf-in 0.4s ease both;
  animation-delay: var(--d, 0ms);
  transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
}

@keyframes pf-in {
  from { opacity: 0; transform: translateY(10px); }
}

.pf-card:hover,
.pf-card:focus-visible {
  border-color: rgba(255, 59, 48, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 59, 48, 0.15);
}

.pf-card.is-featured { border-color: rgba(255, 59, 48, 0.3); }

.pf-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(255, 59, 48, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22px),
    var(--pf-surface-2);
  border-bottom: 1px solid var(--pf-line);
  overflow: hidden;
}

.pf-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.5s ease, filter 0.3s;
}

.pf-card:hover .pf-card__thumb img {
  transform: scale(1.04);
  filter: saturate(1);
}

.pf-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--pf-muted);
}

.pf-card__ph b {
  margin: 0 6px;
  font-size: 28px;
  font-weight: 400;
  color: var(--pf-accent);
}

.pf-card__badge,
.pf-card__star {
  position: absolute;
  top: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(10, 10, 10, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.pf-card__badge {
  right: 10px;
  color: var(--pf-text);
  border: 1px solid var(--pf-line-strong);
}

.pf-card__star {
  left: 10px;
  color: var(--pf-accent);
  border: 1px solid rgba(255, 59, 48, 0.4);
}

.pf-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.pf-card__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--pf-faint);
}

.pf-card__cat { color: var(--pf-accent); }

.pf-card__title {
  font: 700 17px/1.3 var(--pf-mono);
  letter-spacing: -0.01em;
  color: var(--pf-text);
}

.pf-card__org {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--pf-muted);
}

.pf-card__sum {
  display: -webkit-box;
  margin-top: 10px;
  font: 400 14px/1.55 var(--pf-sans);
  color: rgba(233, 230, 223, 0.72);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pf-tags li {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pf-line);
  font-size: 11.5px;
  color: var(--pf-yellow);
}

.pf-card__open {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
  color: var(--pf-faint);
  transition: color 0.2s;
}

.pf-card:hover .pf-card__open { color: var(--pf-accent); }

/* ---------- list view (ls -l) ---------- */

.pf-grid.is-list {
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius);
  overflow: hidden;
}

.pf-grid.is-list .pf-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--pf-line);
  border-radius: 0;
  overflow: visible;
}

.pf-grid.is-list .pf-card:last-child { border-bottom: none; }

.pf-grid.is-list .pf-card:hover,
.pf-grid.is-list .pf-card:focus-visible {
  transform: none;
  box-shadow: inset 2px 0 0 var(--pf-accent);
  background: rgba(255, 255, 255, 0.025);
}

.pf-grid.is-list .pf-card.is-featured { box-shadow: inset 2px 0 0 rgba(255, 59, 48, 0.5); }

.pf-grid.is-list .pf-card__thumb {
  flex-shrink: 0;
  width: 128px;
  border: 1px solid var(--pf-line);
  border-radius: 6px;
}

.pf-grid.is-list .pf-card__ph { font-size: 11px; }
.pf-grid.is-list .pf-card__ph b { font-size: 18px; margin: 0 3px; }

.pf-grid.is-list .pf-card__badge,
.pf-grid.is-list .pf-card__star {
  display: none;
}

.pf-grid.is-list .pf-card__body {
  flex: 1;
  min-width: 0;
  padding: 0 64px 0 0;
}

.pf-grid.is-list .pf-card__meta {
  margin-bottom: 4px;
}

.pf-grid.is-list .pf-card.is-featured .pf-card__meta::after {
  content: "★";
  color: var(--pf-accent);
}

.pf-grid.is-list .pf-card__title { font-size: 16px; }

.pf-grid.is-list .pf-card__sum {
  margin-top: 6px;
  -webkit-line-clamp: 1;
}

.pf-grid.is-list .pf-tags { margin-top: 8px; }

.pf-grid.is-list .pf-card__open {
  position: absolute;
  top: 50%;
  right: 16px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
}

.pf-empty {
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
  color: var(--pf-faint);
}

/* ---------- buttons ---------- */

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--pf-line-strong);
  border-radius: 8px;
  color: var(--pf-text);
  text-decoration: none;
  font: 600 13px/1 var(--pf-mono);
  transition: border-color 0.2s, background-color 0.2s;
}

.pf-btn:hover { border-color: var(--pf-accent); }

.pf-btn--primary {
  background: var(--pf-accent);
  border-color: var(--pf-accent);
  color: #fff;
}

.pf-btn--primary:hover { background: #ff5147; }

/* ---------- viewer (modal) ---------- */

.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  font-family: var(--pf-mono);
  color: var(--pf-text);
}

.pf-modal[hidden] { display: none; }

.pf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s;
}

.pf-modal__window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  max-height: 100%;
  background: var(--pf-surface);
  border: 1px solid var(--pf-line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.2s, transform 0.2s;
}

.pf-modal:not(.has-media) .pf-modal__window { width: min(640px, 100%); }

.pf-modal.is-open .pf-modal__backdrop,
.pf-modal.is-open .pf-modal__window {
  opacity: 1;
  transform: none;
}

.pf-modal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  height: 44px;
  padding: 0 8px 0 16px;
  background: var(--pf-surface-2);
  border-bottom: 1px solid var(--pf-line);
}

.pf-dots {
  display: flex;
  gap: 7px;
}

.pf-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a3a;
}

.pf-dots i:first-child { background: var(--pf-accent); }

.pf-modal__file {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--pf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--pf-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pf-modal__close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--pf-text);
}

.pf-modal__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.pf-modal__media {
  display: flex;
  flex-direction: column;
  flex: 1.6;
  min-width: 0;
  background: #070707;
  border-right: 1px solid var(--pf-line);
}

.pf-modal__media[hidden] { display: none; }

.pf-viewer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: min(70vh, 680px);
  min-height: 300px;
  padding: 16px;
}

.pf-viewer__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.pf-viewer.is-pdf { padding: 0; }

.pf-viewer__pdf {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.pf-viewer__pdf-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--pf-muted);
}

.pf-viewer__pdf-ico {
  padding: 18px 16px;
  border: 2px solid var(--pf-accent);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--pf-accent);
}

.pf-viewer__nav {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 1px solid var(--pf-line-strong);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.75);
  color: var(--pf-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.pf-viewer__nav:hover {
  border-color: var(--pf-accent);
  background: var(--pf-accent-soft);
}

.pf-viewer__nav--prev { left: 12px; }
.pf-viewer__nav--next { right: 12px; }

.pf-viewer__count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  color: var(--pf-muted);
}

.pf-thumbs {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  border-top: 1px solid var(--pf-line);
}

.pf-thumbs__item {
  flex-shrink: 0;
  width: 64px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--pf-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--pf-surface-2);
  color: var(--pf-accent);
  font: 700 11px var(--pf-mono);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}

.pf-thumbs__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-thumbs__item:hover { opacity: 0.85; }

.pf-thumbs__item.is-active {
  opacity: 1;
  border-color: var(--pf-accent);
}

.pf-modal__info {
  flex: 1;
  min-width: 280px;
  padding: 24px 24px 28px;
  overflow-y: auto;
}

.pf-info__meta {
  font-size: 12px;
  color: var(--pf-faint);
}

.pf-info__cat { color: var(--pf-accent); }

.pf-info__title {
  margin-top: 8px;
  font: 800 24px/1.2 var(--pf-mono);
  letter-spacing: -0.02em;
}

.pf-info__org {
  margin-top: 6px;
  font-size: 13px;
  color: var(--pf-muted);
}

.pf-info__text {
  margin-top: 18px;
  font: 400 15px/1.65 var(--pf-sans);
  color: rgba(233, 230, 223, 0.82);
}

.pf-info__text p + p { margin-top: 12px; }

.pf-info__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .pf {
    padding: 72px 20px 88px;
  }

  .pf-toolbar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }

  .pf-tools { margin-bottom: 0; }

  .pf-search {
    flex: 1;
    width: auto;
  }

  .pf-modal {
    padding: 16px;
  }

  .pf-modal__body {
    flex-direction: column;
    overflow-y: auto;
  }

  .pf-modal__media {
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--pf-line);
  }

  .pf-viewer {
    height: 52vh;
    min-height: 220px;
  }

  .pf-modal__info {
    flex: none;
    min-width: 0;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .pf {
    padding: 56px 16px 72px;
  }

  .pf__prompt { font-size: 12px; }

  .pf-links {
    gap: 8px;
    padding: 10px;
  }

  .pf-links__cmd { width: 100%; }

  .pf-link {
    flex: 1 1 100%;
    min-width: 0;
  }

  .pf-link__arrow { margin-left: auto; }

  .pf-tabs {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .pf-tab {
    padding: 12px;
    font-size: 13px;
  }

  .pf-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pf-grid.is-list .pf-card {
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
  }

  .pf-grid.is-list .pf-card__thumb { width: 84px; }
  .pf-grid.is-list .pf-card__body { padding-right: 0; }
  .pf-grid.is-list .pf-card__open { display: none; }
  .pf-grid.is-list .pf-card__title { font-size: 14.5px; }
  .pf-grid.is-list .pf-card__org { font-size: 11.5px; }
  .pf-grid.is-list .pf-card__sum { font-size: 13px; -webkit-line-clamp: 2; }
  .pf-grid.is-list .pf-tags li { font-size: 10.5px; padding: 3px 6px; }

  /* viewer becomes a full-screen sheet */
  .pf-modal {
    align-items: stretch;
    padding: 0;
  }

  .pf-modal__window,
  .pf-modal:not(.has-media) .pf-modal__window {
    width: 100%;
    border: none;
    border-radius: 0;
  }

  .pf-viewer {
    height: 46vh;
    padding: 10px;
  }

  .pf-viewer__nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .pf-modal__info { padding: 20px 16px 32px; }

  .pf-info__title { font-size: 21px; }

  .pf-info__links .pf-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card,
  .pf__caret { animation: none; }
}

/* ---------- footer ---------- */

.pf-footer {
  position: relative;
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  background: #080808;
  text-align: center;
  font: 400 12px/1 var(--pf-mono);
  letter-spacing: 0.08em;
  color: var(--pf-faint);
}

/* red top line; its glow spreads upward only, the footer itself stays unlit */
.pf-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--pf-accent);
  box-shadow: 0 -2px 12px 0 rgba(255, 59, 48, 0.3);
  clip-path: inset(-40px 0 0 0);
}

.pf-footer span { color: var(--pf-accent); }
