/* ============================================================
   THE PLATINUM ARCHIVE
   ActiveHTML Portfolio Lattice — PlatinumLogik Enterprises
   ============================================================ */

:root {
  --bg: #070708;
  --bg-elevated: #0f0f11;
  --bg-card: #121215;
  --bg-card-hover: #18181c;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(201, 184, 150, 0.35);
  --text: #e8e6e3;
  --text-muted: #8a8780;
  --text-dim: #5c5a56;
  --platinum: #c9b896;
  --platinum-bright: #e8d5a3;
  --gold: #d4af37;
  --accent: #c9b896;
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--platinum), #8a7a5c);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0a0a0b;
}

.logo-text span {
  color: var(--platinum);
}

.header-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ========== HERO ========== */
.hero {
  padding: 5rem 1.5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--platinum);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--platinum);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--platinum-bright);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ========== FILTERS ========== */
.filters-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-btn.active {
  background: var(--platinum);
  border-color: var(--platinum);
  color: #0a0a0b;
}

/* ========== GRID ========== */
.lattice {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--platinum), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.card:hover::before {
  opacity: 1;
}

.card.hidden {
  display: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-category {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--platinum);
  font-weight: 600;
  background: rgba(201, 184, 150, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.card-date {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card-blurb {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-domain {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--platinum);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.25s var(--ease);
}

.card:hover .card-link {
  gap: 0.55rem;
  color: var(--platinum-bright);
}

/* ========== PROCESS STRIP ========== */
.process {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 1.5rem;
}

.process-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.process-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--platinum);
  margin-bottom: 1rem;
  font-weight: 600;
}

.process h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 1.25rem;
  max-width: 22ch;
  line-height: 1.15;
}

.process p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.step {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.step-num {
  font-size: 0.7rem;
  color: var(--platinum);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 3rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand strong {
  color: var(--text);
  font-weight: 600;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 40ch;
  text-align: right;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }
  .hero-stats {
    gap: 1.5rem;
  }
  .lattice {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 4rem;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-note {
    text-align: center;
  }
}

/* ========== ANIMATION ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeUp 0.5s var(--ease) both;
}

.card:nth-child(1) { animation-delay: 0.03s; }
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.09s; }
.card:nth-child(4) { animation-delay: 0.12s; }
.card:nth-child(5) { animation-delay: 0.15s; }
.card:nth-child(6) { animation-delay: 0.18s; }
.card:nth-child(7) { animation-delay: 0.21s; }
.card:nth-child(8) { animation-delay: 0.24s; }
.card:nth-child(9) { animation-delay: 0.27s; }
.card:nth-child(10) { animation-delay: 0.30s; }
.card:nth-child(11) { animation-delay: 0.33s; }
.card:nth-child(12) { animation-delay: 0.36s; }
.card:nth-child(13) { animation-delay: 0.39s; }
.card:nth-child(14) { animation-delay: 0.42s; }
.card:nth-child(15) { animation-delay: 0.45s; }
.card:nth-child(16) { animation-delay: 0.48s; }
.card:nth-child(17) { animation-delay: 0.51s; }
.card:nth-child(18) { animation-delay: 0.54s; }

/* ========== IMAGE CARDS ========== */
.card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  background: #0a0a0b;
  transition: transform 0.4s var(--ease);
}

.card:hover .card-image {
  transform: scale(1.02);
}

.card.has-image {
  padding: 0.85rem;
}

.card.has-image .card-title {
  font-size: 1.25rem;
}

.card.has-image .card-blurb {
  font-size: 0.85rem;
}

/* Hero visual */
.hero-visual {
  margin: 2.5rem 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 100%;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}
