/* ============================================================
   PROJECTS PAGE — Lauren Hawkes Portfolio
   ============================================================ */


/* ------------------------------------------------------------
   PAGE WRAPPER
   ------------------------------------------------------------ */

.projects-page {
  position: relative;
  overflow-x: clip;
}


/* ------------------------------------------------------------
   CIRCLE ACCENTS
   ------------------------------------------------------------ */

.accent {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.5;
}

.accent--yellow-tr {
  top: -120px;
  right: -180px;
  width: 560px;
}

.accent--green-ml {
  top: 200px;
  left: -180px;
  width: 560px;
}

.accent--yellow-mr {
  top: 700px;
  right: -120px;
  width: 420px;
}

.accent--purple-tr2 {
  top: 1100px;
  left: -160px;
  width: 460px;
}

.accent--purple-bl {
  top: 1550px;
  right: -140px;
  width: 440px;
}

.accent--yellow-bl2 {
  top: 2000px;
  left: -120px;
  width: 400px;
}

/* Lift content above accents */
.projects-page .container {
  position: relative;
  z-index: 1;
  max-width: 1024px;
}


/* ------------------------------------------------------------
   PORTFOLIO HERO
   ------------------------------------------------------------ */

.portfolio-hero {
  position: relative;
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.portfolio-hero__name {
  font-family: var(--font-family);
  font-size: 52px;
  font-weight: var(--font-weight-bold);
  color: var(--colour-navy);
  line-height: 1.1;
  margin: 0 0 var(--space-3);
  text-align: center;
}

.portfolio-hero__wheel-wrap {
  width: 100%;
  text-align: center;
}

.portfolio-hero__wheel {
  display: inline-block;
  overflow: hidden;
  height: 1.25em;
  font-family: var(--font-family);
  font-size: 28px;
  font-weight: var(--font-weight-regular);
  color: var(--colour-navy);
  line-height: 1.25;
  vertical-align: bottom;
}

.portfolio-hero__wheel-track {
  display: flex;
  flex-direction: column;
  animation: ph-wheel 10.5s linear infinite;
}

.portfolio-hero__wheel-track span {
  display: block;
  height: 1.25em;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
}

@keyframes ph-wheel {
  0%        { transform: translateY(0);       animation-timing-function: linear; }
  9%        { transform: translateY(0);       animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  14.28%    { transform: translateY(-1.25em); animation-timing-function: linear; }
  23.28%    { transform: translateY(-1.25em); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  28.57%    { transform: translateY(-2.5em);  animation-timing-function: linear; }
  37.57%    { transform: translateY(-2.5em);  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  42.85%    { transform: translateY(-3.75em); animation-timing-function: linear; }
  51.85%    { transform: translateY(-3.75em); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  57.14%    { transform: translateY(-5em);    animation-timing-function: linear; }
  66.14%    { transform: translateY(-5em);    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  71.42%    { transform: translateY(-6.25em); animation-timing-function: linear; }
  80.42%    { transform: translateY(-6.25em); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  85.71%    { transform: translateY(-7.5em);  animation-timing-function: linear; }
  100%      { transform: translateY(-7.5em); }
}


/* ------------------------------------------------------------
   PAGE HEADER
   ------------------------------------------------------------ */

.projects-header {
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.projects-title {
  font-size: 2.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--colour-navy);
  margin: 0;
  line-height: 1.1;
}


/* ------------------------------------------------------------
   FILTER PILLS
   ------------------------------------------------------------ */

.projects-filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--colour-navy);
  background: transparent;
  color: var(--colour-navy);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(0, 24, 70, 0.06);
}

.filter-pill.active {
  background: var(--colour-navy);
  color: var(--colour-background);
}

.filter-pill.active::after {
  content: '×';
  margin-left: 6px;
  font-size: 1em;
  line-height: 1;
}


/* ------------------------------------------------------------
   12-COLUMN GRID
   ------------------------------------------------------------ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
  padding-bottom: var(--space-9);
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }


/* ------------------------------------------------------------
   PROJECT CARD
   ------------------------------------------------------------ */

.project-card {
  display: block;
  text-decoration: none;
}

.project-card__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: rgba(0, 24, 70, 0.05);
}

.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__img-wrap img {
  transform: scale(1.02);
}

/* Image heights — aspect-ratio scales proportionally, max-height caps at 384px */
.col-12 .project-card__img-wrap { aspect-ratio: 5 / 2; max-height: 384px; }
.col-8  .project-card__img-wrap { aspect-ratio: 5 / 3; max-height: 384px; }
.col-6  .project-card__img-wrap { aspect-ratio: 5 / 4; max-height: 384px; }
.col-4  .project-card__img-wrap { aspect-ratio: 4 / 5; max-height: 384px; }
.project-card--sm .project-card__img-wrap { aspect-ratio: 1 / 1; max-height: 280px; }


/* ------------------------------------------------------------
   CARD INFO
   ------------------------------------------------------------ */

.project-card__info {
  padding: var(--space-4) var(--space-1) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-card__badges {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--colour-navy);
  line-height: 1.2;
  margin: 0;
}

.project-card--sm .project-card__title {
  font-size: var(--text-base);
}

.project-card__description {
  font-size: var(--text-sm);
  color: var(--colour-navy);
  line-height: 1.5;
  margin: 0;
}


/* ------------------------------------------------------------
   BADGE VARIANTS
   ------------------------------------------------------------ */

.badge--filled {
  background-color: var(--colour-navy);
  color: var(--colour-background);
}

.badge--outlined {
  background-color: var(--colour-navy);
  color: var(--colour-background);
  border: none;
}

.badge--illustration {
  background-color: var(--colour-navy);
  color: var(--colour-background);
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

/* Tablet: 2-column grid */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .col-12 { grid-column: span 2; }
  .col-8  { grid-column: span 2; }
  .col-6  { grid-column: span 1; }
  .col-4  { grid-column: span 1; }

  .accent--yellow-tr  { width: 420px; right: -140px; top: -80px; }
  .accent--green-ml   { width: 420px; left: -140px; }
  .accent--yellow-mr  { width: 300px; }
  .accent--purple-tr2 { width: 340px; }
  .accent--purple-bl  { width: 320px; }
  .accent--yellow-bl2 { width: 300px; }
}

/* Mobile: single column */
@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .col-12, .col-8, .col-6, .col-4 { grid-column: span 1; }

  /* At mobile all cards are full-width — switch to 16:9 so they aren't too tall */
  .project-card__img-wrap {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  /* Ensure 20px padding from screen edge */
  .projects-page .container {
    padding-inline: 20px;
  }

  .projects-title { font-size: var(--text-2xl); }

  .accent--yellow-tr { width: 200px; right: -80px; }
  .accent--green-ml,
  .accent--yellow-mr,
  .accent--purple-tr2,
  .accent--purple-bl,
  .accent--yellow-bl2 { display: none; }
}
