/* ============================================================
   GloriART — Work / Portfolio Page Styles
   Styles unique to the work page (work.html)
   ============================================================ */

/* ============================================================
   SECTION HEADER REVERSAL (label right, title left)
   ============================================================ */
.work-competencies-section .section-header,
.work-technical-section .section-header,
.work-workflow-section .section-header,
.work-projects-section .section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

/* ============================================================
   WORK HERO
   ============================================================ */
.work-hero-section {
  position: relative;
  width: 100%;
  height: 750px;
  background: #000000;
  overflow: visible;
}

/* Match index hero spacing on work page */
.work-hero-section .hero-content {
  gap: 4px;
}

.work-hero-section .hero-content-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  z-index: -1;
  pointer-events: none;
}

.work-hero-section .hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding-top: 80px;
  padding-bottom: 30px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}


.work-hero__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  margin-top: 40px;
}

.work-hero__title {
  font-family: var(--font-heading-alt);
  font-size: clamp(2.9rem, 6vw, 4.55rem);
  line-height: 0.95;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  max-width: 470px;
}

.work-hero__title--large {
  font-size: clamp(3.5rem, 7.5vw, 5.5rem);
}

.work-hero__title .accent {
  background: linear-gradient(180deg, #FFFFFF, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-hero__title br {
  display: block;
  margin-bottom: 0;
  line-height: 0.9;
}

.work-hero__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
  margin-top: 20px;
}




/* Quick Stats */
/* ============================================================
   STATS BAR (outside hero, transparent bg)
   ============================================================ */
.work-stats-bar {
  background: transparent;
  padding: 55px 0;
}

.work-stats-bar-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

/* Stat item shared styles */
.work-stat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 180px;
}

.work-stat__value {
  font-family: var(--font-heading-alt);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.work-stat__value .accent {
  color: var(--accent);
}

.work-stat__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.3;
}

.work-stat__sublabel {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-top: 3px;
  line-height: 1.3;
}

.work-stat__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.work-stat__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.work-stat__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-stat__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ============================================================
   CORE COMPETENCIES
   ============================================================ */
.work-competencies-section {
  background: var(--bg-after-hero);
  padding: 80px 0;
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.competency-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}

.competency-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.competency-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.competency-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.competency-card__title {
  font-family: var(--font-heading-alt);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.competency-card__subtitle {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
}

.competency-card__desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.competency-card__arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform var(--transition);
}

.competency-card:hover .competency-card__arrow {
  transform: translateX(4px);
}

.competency-card__arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ============================================================
   TECHNICAL EXPERTISE
   ============================================================ */
.work-technical-section {
  background: var(--bg-primary);
  padding: 80px 0;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.technical-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  transition: border-color var(--transition);
}

.technical-card:hover {
  border-color: var(--border-accent);
}

.technical-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.technical-card__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.technical-card__number {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.technical-card__title {
  font-family: var(--font-heading-alt);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.technical-card__desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================
   WORKFLOW
   ============================================================ */
.work-workflow-section {
  background: var(--bg-after-hero);
  padding: 80px 0;
}

.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 120px;
  max-width: 160px;
}

.workflow-step__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
}

.workflow-step__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.workflow-step__number {
  position: absolute;
  top: -4px;
  right: -8px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-primary);
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1;
}

.workflow-step__title {
  font-family: var(--font-heading-alt);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.workflow-step__desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Arrow between workflow steps */
.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

/* ============================================================
   PRINT PRODUCTION IN ACTION (PROJECTS)
   ============================================================ */
.work-projects-section {
  background: var(--bg-primary);
  padding: 80px 0;
}

.work-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.work-project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.work-project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.work-project-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-section);
}

.work-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition);
}

.work-project-card:hover .work-project-card__image img {
  transform: scale(1.03);
}

.work-project-card__body {
  padding: 20px;
}

.work-project-card__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.work-project-card__title {
  font-family: var(--font-heading-alt);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.work-project-card__desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================
   CTA SECTION (BOTTOM)
   ============================================================ */
.work-cta-section {
  background: var(--bg-after-hero);
  padding: 80px 0;
}

.work-cta-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.work-cta__content {
  flex: 1;
  min-width: 280px;
}

.work-cta__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.work-cta__title {
  font-family: var(--font-heading-alt);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-cta__title .accent {
  color: var(--accent);
}

.work-cta__text {
  flex: 2;
  min-width: 280px;
}

.work-cta__text p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.work-cta__btn {
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE — WORK PAGE
   ============================================================ */
@media (max-width: 1024px) {
  .work-hero-section {
    height: auto;
  }

  .competencies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .technical-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .work-hero-section {
    height: auto;
    padding-top: 64px;
  }

  body.hero-page .site-header {
    position: fixed;
    background: rgba(1, 3, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.hero-page .site-header::before {
    background: var(--divider);
  }

  /* Section headers — stack vertically, align left on mobile */
  .work-competencies-section .section-header,
  .work-technical-section .section-header,
  .work-workflow-section .section-header,
  .work-projects-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .work-hero-section .hero-content {
    gap: 6px;
    padding-top: 48px;
  }

  .work-hero__label {
    margin-top: 8px;
  }

  .work-hero__title {
    width: 300px;
    font-size: 1.8rem;
  }

  .work-hero__title--large {
    font-size: 2.4rem;
  }

  .work-hero__desc {
    width: 300px;
    font-size: 0.85rem;
  }

  .work-stats-bar-inner {
    flex-direction: column;
    gap: 24px;
  }

  .work-stat {
    min-width: 100%;
  }

  .work-competencies-section,
  .work-technical-section,
  .work-workflow-section,
  .work-projects-section,
  .work-cta-section {
    padding: 48px 0;
  }

  .competencies-grid {
    grid-template-columns: 1fr;
  }

  .technical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .workflow-step {
    flex-direction: row;
    text-align: left;
    max-width: none;
    gap: 16px;
  }

  .workflow-step__number {
    position: static;
  }

  .workflow-step:not(:last-child)::after {
    display: none;
  }

  .work-project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .work-hero-section {
    padding-top: 56px;
  }

  .work-hero__title {
    font-size: 1.5rem;
    width: 300px;
  }

  .work-hero__desc {
    width: 300px;
    font-size: 0.8rem;
  }

  .technical-grid {
    grid-template-columns: 1fr;
  }
}
