/* Work Page Specific Styles */

.page {
  max-width: 1000px;
  padding: 32px 24px 64px;
}

/* Hero Section */
.page-hero {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: -120px;
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(47, 52, 50, 0.92) 0%, rgba(47, 52, 50, 0.85) 50%, rgba(90, 95, 92, 0.75) 100%),
              url('/photos/20251029_183601.jpg') center center / cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(170, 181, 161, 0.15), transparent 70%);
  pointer-events: none;
}

.page-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-hero-text h1 {
  margin: 0 0 24px;
  font-size: clamp(48px, 5.5vw, 68px);
  line-height: 1.1;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page-hero-text p {
  margin: 0 0 32px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.7;
}

.page-hero-panel {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
  border: 1px solid rgba(170, 181, 161, 0.2);
}

.page-hero-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.page-hero-panel::before {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at top right, rgba(170, 181, 161, 0.15), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.page-hero-panel-heading {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.page-hero-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.page-hero-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.page-hero-panel-list span.bullet {
  margin-top: 2px;
  font-size: 14px;
  color: var(--colour-accent);
  font-weight: bold;
}

p.lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--colour-text-muted);
  line-height: 1.7;
}

.section-card {
  position: relative;
  z-index: 2;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.project {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  transition: all var(--transition-medium);
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.project h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.project .tag {
  font-size: 11px;
  color: var(--colour-text-muted);
  margin-bottom: 6px;
  display: block;
}

.project p {
  margin: 0 0 6px;
  color: var(--colour-text-muted);
  line-height: 1.6;
}

.project strong {
  color: var(--colour-text-main);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
}

.step {
  border-radius: 14px;
  border: 1px solid rgba(47, 52, 50, 0.18);
  padding: 10px 12px 12px;
  background: rgba(245, 247, 244, 0.95);
  transition: all var(--transition-medium);
  position: relative;
}

.step:hover {
  border-color: var(--colour-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.step h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.step h3::before {
  content: "→ ";
  color: var(--colour-accent);
  margin-right: 6px;
  font-weight: bold;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.step:hover h3::before {
  transform: translateX(4px);
}

.cta {
  margin-top: 10px;
  font-size: 14px;
}

.cta a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  color: var(--colour-accent);
  font-weight: 500;
}

@media (max-width: 900px) {
  .page-hero {
    min-height: auto;
    padding: 60px 0;
    margin-bottom: -80px;
  }

  .page-hero-container {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 24px;
    gap: 40px;
  }

  .page-hero-text h1 {
    font-size: clamp(36px, 8vw, 48px);
  }

  .page-hero-text p {
    font-size: 16px;
  }

  .page-hero-panel {
    order: -1;
    padding: 28px 24px 24px;
  }

  .projects,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-card {
    padding: 32px 24px 28px;
  }
}
