/* Portfolio / work page */

.page-work {
  --ink: #07070a;
  --ink-soft: #121218;
  --paper: #f4f3f8;
  --paper-card: #ffffff;
  --muted: #64647a;
  --line: rgba(255, 255, 255, 0.12);
  --line-light: #e6e4ef;
  --accent: #f5a623;
  --accent-deep: #c47f2a;
  --accent-2: #8b5cf6;
  --radius: 14px;
  --nav-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  margin: 0;
}

.page-work a { color: inherit; }

/* .shell from site-chrome.css */

/* Hero */
.work-hero {
  position: relative;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.work-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 520px;
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(245, 166, 35, 0.12), transparent 50%);
  pointer-events: none;
}

.work-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 40px;
  align-items: center;
}

.work-hero-copy {
  min-width: 0;
}

.work-hero .kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 14px;
  max-width: 18ch;
}

.work-hero .lead {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.hero-stats {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats .stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-stats .stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Mosaic — in grid column, not absolute */
.work-mosaic-wrap {
  width: 100%;
  max-width: 400px;
  justify-self: end;
}

.work-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 72px);
  gap: 8px;
  width: 100%;
}

.work-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 960px) {
  .work-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-mosaic-wrap {
    max-width: 100%;
    justify-self: stretch;
  }

  .work-mosaic {
    grid-template-rows: repeat(3, 64px);
  }
}

@media (max-width: 768px) {
  .work-hero h1 {
    max-width: none;
  }
}

/* Grid */
.work-main {
  padding: 56px 0 80px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.work-card:hover {
  box-shadow: 0 16px 40px rgba(7, 7, 10, 0.1);
  transform: translateY(-3px);
}

.work-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: var(--ink-soft);
}

.work-card .body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card .badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.work-card h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.work-card .tagline {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 6px;
  flex: 1;
  line-height: 1.5;
}

.work-card .vertical {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

.work-card .stack {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}

.work-empty {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.work-empty.is-visible {
  display: block;
}

