/* ============================================================
   HOME PAGE STYLES
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* large decorative text in background */
.hero::before {
  content: 'RSS';
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 20rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--fg-faint);
  position: absolute;
  right: -2vw;
  top: 14%;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr max-content;
  align-items: center;
  gap: 4rem;
  padding-top: 4rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 1;
}

/* ── Left ───────────────────────────────────────────────── */
.hero-eyebrow {
  margin-bottom: 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: fadeUp 0.7s 0.2s both ease;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.7s 0.35s both ease;
}

.hero-name em {
  display: block;
  color: var(--accent);
  font-style: italic;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.5s both ease;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.65s both ease;
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
  animation: fadeUp 0.7s 0.8s both ease;
}

/* ── Right ──────────────────────────────────────────────── */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  animation: fadeIn 1s 0.4s both ease;
}

.hero-photo-frame {
  position: relative;
  width: clamp(260px, 26vw, 380px);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-lg);
  display: block;
  filter: grayscale(15%);
}

/* Ruled border accent */
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--r-lg) + 4px);
  border: 1px solid var(--accent);
  opacity: 0.3;
  pointer-events: none;
}

/* Animated corner accent */
.hero-photo-frame::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 50px;
  height: 50px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 var(--r-md) 0;
}

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.8rem 1.1rem;
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.badge-role {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.15rem;
}

.badge-org {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Counters strip */
.hero-counters {
  width: clamp(260px, 26vw, 380px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.counter-item {
  flex: 1;
  text-align: center;
}

.counter-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}

.counter-label {
  display: block;
  font-size: 0.68rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.counter-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ── Scroll Nudge ───────────────────────────────────────── */
.scroll-nudge {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeIn 1s 1.5s both;
  z-index: 1;
}

.nudge-track {
  width: 1px;
  height: 48px;
  background: var(--fg-faint);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.nudge-dot {
  width: 1px;
  height: 14px;
  background: var(--accent);
  position: absolute;
  top: 0;
  border-radius: 1px;
  animation: nudgeScroll 1.6s ease-in-out infinite;
}

@keyframes nudgeScroll {
  0%   { top: 0;    opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Work Grid ──────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  transition-delay: var(--delay, 0s);
  text-decoration: none;
  color: inherit;
}

.work-card:hover {
  border-color: rgba(200, 147, 90, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.work-card--large {
  grid-row: 1 / 3;
}

.work-card-img {
  width: 100%;
  overflow: hidden;
  background: var(--bg-raised);
}

.work-card--large .work-card-img {
  height: 320px;
}

.work-card:not(.work-card--large) .work-card-img {
  height: 180px;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.work-card:hover .work-card-img img {
  transform: scale(1.04);
}

.work-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.work-card-body h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.work-card-body p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin: 0;
  flex: 1;
}

.all-work-cta {
  text-align: center;
}

/* ── About Strip ────────────────────────────────────────── */
.about-strip {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-strip-text h2 {
  margin: 0.75rem 0 1.25rem;
}

.about-strip-text p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 44ch;
  margin-bottom: 2rem;
}

.about-photo-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(20%);
}

.about-strip-quote {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.about-strip-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(to bottom right, var(--bg), var(--bg-raised));
}

.cta-inner {
  max-width: 680px;
}

.cta-inner .label {
  margin-bottom: 1rem;
  color: var(--accent);
}

.cta-inner h2 {
  margin-bottom: 1rem;
}

.cta-inner > p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-email {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .hero::before {
    right: -5vw;
    font-size: 16rem;
    opacity: 0.5;
  }

  .hero-right {
    display: none;
  }

  .hero-eyebrow,
  .hero-socials {
    justify-content: center;
  }

  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .about-strip-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card--large {
    grid-row: auto;
  }

  .work-card--large .work-card-img {
    height: 240px;
  }

  .hero::before { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: flex-start; }
}

/* ── Eyebrow label inside section ───────────────────────── */
.eyebrow-label {
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

/* break helpers */
.br-desk { display: block; }

@media (max-width: 768px) {
  .br-desk { display: none; }
}

/* ── Work card gradient placeholder ────────────────────── */
.work-card-img--gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.work-card-img--gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
}

.work-card-placeholder-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  backdrop-filter: blur(4px);
}

/* ── PM Stats Section ────────────────────────────────────── */
.pm-stats-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pm-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-surface);
  margin-top: 3rem;
}

.pm-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.pm-stat-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.pm-stat-item:hover::before { transform: scaleX(1); }

.pm-stat-item:hover {
  background: rgba(37, 18, 162, 0.025);
}

/* Remove right border on last in each row */
.pm-stat-item:nth-child(3n) { border-right: none; }
/* Remove bottom border on last row */
.pm-stat-item:nth-child(n+4) { border-bottom: none; }

.pm-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.pm-stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.pm-stat-desc {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .pm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pm-stat-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .pm-stat-item:nth-child(2n) { border-right: none; }
  .pm-stat-item:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .pm-stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 480px) {
  .pm-stats-grid {
    grid-template-columns: 1fr;
  }
  .pm-stat-item { border-right: none !important; }
  .pm-stat-item:last-child { border-bottom: none; }
  .pm-stat-item:nth-child(n+5) { border-bottom: none; }
  .pm-stat-item:not(:last-child) { border-bottom: 1px solid var(--border) !important; }
}