/**
 * Careers Page Experience Stylesheet
 * Strictly adheres to Visual 25 (Careers Stage & Culture Manifesto)
 * and Technical Planning Brief 07 Career Page.
 */

/* =============================================================================
   01. PAGE FOUNDATION & HEADER ADAPTATION
   ============================================================================= */
.careers-page {
  width: 100%;
  background-color: var(--color-brand-white, #ffffff);
  color: var(--color-brand-black, #111111);
  overflow-x: hidden;
}

/* Ensure global header renders with pristine white surface per Visual 25 */
.site-header {
  background-color: var(--color-brand-white, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* =============================================================================
   02. MODULE 1: CINEMATIC CAREER HERO STAGE (Visual 25 - Upper)
   ============================================================================= */
.career-hero-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding-top: clamp(100px, 14vh, 160px);
  padding-bottom: clamp(40px, 6vh, 80px);
  background-color: #0b0c0e;
  --hero-headline-size: clamp(2.5rem, min(8.5vw, 10.5vh), 9.5rem);
}

/* Full-Bleed Hallway Silhouette Photography */
.career-hero-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.career-hero-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.career-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.05);
  transform-origin: center center;
  will-change: transform;
}

/* Soft Architectural Scrim for High-Contrast Display Typography */
.career-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.40) 45%,
    rgba(0, 0, 0, 0.20) 70%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

/* Content Container & Full-Width Viewport Adaptation */
.career-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: var(--container-padding, clamp(20px, 4vw, 64px));
  padding-right: var(--container-padding, clamp(20px, 4vw, 64px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* Full-Width Typographic Stack */
.career-hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(20px, 4vh, 60px);
  will-change: transform, opacity;
}

/* Category Eyebrow */
.career-hero-eyebrow {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  display: inline-block;
}

/* Massive White Display Type - Standardized to Home Hero Display */
.career-hero-title {
  font-family: var(--hero-headline-font-family, var(--font-display, "Vatech Sans", sans-serif));
  font-weight: var(--hero-headline-font-weight, 700);
  text-transform: none;
  font-size: var(--hero-headline-size, clamp(2.5rem, min(8.5vw, 10.5vh), 9.5rem));
  line-height: var(--hero-headline-line-height, 0.92);
  letter-spacing: var(--hero-headline-letter-spacing, -0.035em);
  color: #ffffff;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.career-hero-title-line {
  display: block;
  will-change: transform, opacity;
}

@media (max-height: 820px) {
  .career-hero-stage {
    padding-top: calc(var(--header-height, 80px) + 16px);
    padding-bottom: 24px;
  }
  .career-hero-text-block {
    margin-top: 10px;
  }
  .career-hero-eyebrow {
    margin-bottom: 12px;
  }
  .career-hero-bottom-row {
    margin-top: clamp(20px, 3vh, 40px);
    margin-bottom: 16px;
  }
}

@media (max-height: 700px) {
  .career-hero-stage {
    --hero-headline-size: clamp(2.25rem, min(8vw, 9.5vh), 8rem);
  }
  .career-hero-sublead {
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

/* Lower Mid-Row (Sublead + CTA Action - Mirrors Homepage Mid-Row) */
.career-hero-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(40px, 8vh, 100px);
  margin-bottom: 32px;
  width: 100%;
}

/* Sub-Lead Copy */
.career-hero-sublead {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  color: #ffffff;
  max-width: 480px;
  margin: 0;
}

/* Action Capsule Desktop Positioning (Visual 25 Lower-Right Channel) */
.career-hero-action-desktop {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-shrink: 0;
}

.career-hero-action-mobile {
  display: none;
}

/* =============================================================================
   03. RE-ENGINEERED PRIMARY ACTION PILL (Contact Routing)
   ============================================================================= */
.career-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--color-brand-white, #ffffff);
  color: var(--color-brand-black, #111111);
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 36px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transition: background-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
              color 300ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 250ms ease,
              box-shadow 250ms ease;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.career-cta-pill:hover {
  background-color: var(--color-brand-black, #111111);
  color: var(--color-brand-white, #ffffff);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.career-cta-pill:active {
  transform: translateY(0);
}

.career-cta-pill:focus-visible {
  outline: 2px solid var(--color-brand-red, #db072f);
  outline-offset: 4px;
}

.career-cta-pill .arrow-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  transition: transform 300ms ease;
}

.career-cta-pill:hover .arrow-icon {
  transform: translate(3px, -3px);
}

/* =============================================================================
   04. MODULE 2: CULTURE & PURPOSE EDITORIAL STATEMENT (Visual 25 - Lower)
   ============================================================================= */
.career-manifesto-section {
  position: relative;
  width: 100%;
  background-color: var(--color-brand-white, #ffffff);
  color: var(--color-brand-black, #111111);
  padding: clamp(96px, 12vw, 140px) 0;
}

.career-manifesto-container {
  max-width: var(--container-max-width, 1440px);
  margin: 0 auto;
  padding-left: var(--container-padding, clamp(20px, 4vw, 64px));
  padding-right: var(--container-padding, clamp(20px, 4vw, 64px));
}

/* Asymmetrical 12-Column Editorial Grid (Visual 25 Layout) */
.career-manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .career-manifesto-grid {
    grid-template-columns: 3.5fr 8.5fr;
    gap: 48px;
  }
}

@media (min-width: 1440px) {
  .career-manifesto-grid {
    grid-template-columns: 4fr 8fr;
    gap: 64px;
  }
}

.career-manifesto-offset {
  display: none;
}

@media (min-width: 992px) {
  .career-manifesto-offset {
    display: block;
  }
}

.career-manifesto-body {
  max-width: 820px;
}

/* Manifesto Narrative Typography */
.career-manifesto-text {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.5;
  color: #111111;
  letter-spacing: -0.015em;
  margin: 0;
  will-change: transform, opacity;
}

.career-manifesto-lead {
  margin-bottom: 36px;
}

/* =============================================================================
   05. RESPONSIVE BREAKPOINT ADAPTATIONS (Section 7)
   ============================================================================= */

/* Desktop XL (>= 1440px) */
@media (min-width: 1440px) {
  .career-hero-title {
    font-size: var(--hero-headline-size, clamp(2.5rem, min(8.5vw, 10.5vh), 9.5rem));
  }
}

/* Tablet / Compact Desktop (768px - 1023px) */
@media (max-width: 1023px) {
  .career-hero-stage {
    min-height: 620px;
    height: auto;
    padding-bottom: 64px;
  }

  .career-hero-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .career-hero-action-desktop {
    display: none;
  }

  .career-hero-action-mobile {
    display: block;
    margin-top: 36px;
  }

  .career-manifesto-lead {
    margin-bottom: 28px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .career-hero-stage {
    min-height: 560px;
    padding-top: calc(var(--header-height, 70px) + 24px);
    padding-bottom: 48px;
    --hero-headline-size: clamp(2.25rem, 11.5vw, 3.75rem);
  }

  .career-hero-scrim {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.70) 50%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }

  .career-hero-eyebrow {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .career-hero-title {
    font-size: var(--hero-headline-size, clamp(2.25rem, 11.5vw, 3.75rem));
    line-height: 0.94;
    margin-bottom: 24px;
  }

  .career-hero-sublead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .career-hero-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }

  .career-hero-action-desktop {
    width: 100%;
  }

  .career-cta-pill {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    padding: 14px 28px;
  }

  .career-manifesto-section {
    padding: 64px 0 80px 0;
  }

  .career-manifesto-text {
    font-size: clamp(1.125rem, 5vw, 1.35rem);
    line-height: 1.55;
  }
}
