/* ==========================================================================
   CHAPTERS III–V: SHARED PUBLIC PLACEHOLDER (WORKING EXPERIENCE)
   Visual Authority: Chapter 01 Red Dwarf Hero Asymmetric Composition
   Dark Astronomical Space (#040508), Amber Accretion (#ffaa40), Ivory (#f4efe8)
   ========================================================================== */

/* Full-Viewport Shared Working Experience Section */
.chapter-working-experience {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--hero-bg, #040508);
  background-image:
    radial-gradient(circle at 20% 40%, rgba(20, 26, 42, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 75% 50%, rgba(55, 24, 14, 0.3) 0%, transparent 65%);
  color: #f8fafc;
  overflow: hidden;
  padding: 80px 0 40px;
  box-sizing: border-box;
}

/* Seamless Soft Transition from Chapter II (#040508) to Chapter III Atmosphere */
.chapter-working-experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  background: linear-gradient(
    180deg,
    #040508 0%,
    rgba(4, 5, 8, 0.98) 70px,
    rgba(4, 5, 8, 0.85) 150px,
    rgba(4, 5, 8, 0.55) 230px,
    rgba(4, 5, 8, 0.20) 310px,
    transparent 380px
  );
  pointer-events: none;
  z-index: 2;
}

/* Route Anchor Spans for Chapters IV & V */
.shared-chapter-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Asymmetric Grid Inner: Left Copy / Right Celestial Field */
.working-experience__inner {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

/* Left Editorial Column */
.working-experience__copy {
  max-width: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.working-experience__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-amber, #ffaa40);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.working-experience__eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--signal-amber, #ffaa40);
  opacity: 0.6;
}

.working-experience__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: var(--hero-text, #f4efe8);
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.working-experience__sentence {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 232, 0.7);
  margin: 22px 0 0 0;
  max-width: 480px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.working-experience__metadata {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.working-experience__metadata-item span {
  color: #94a3b8;
}

/* Right Column: Spatial Dimension Anchor */
.working-experience__field {
  position: relative;
  width: 100%;
  height: min(72vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Full-Viewport Shared Background Accretion Canvas */
canvas.working-experience__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* Continuity Carrier Vectors */
.chapter-carrier,
.ch02-to-ch03-carrier {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 32px auto 0;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 20;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.chapter-carrier.is-ready,
.ch02-to-ch03-carrier.is-ready {
  opacity: 0.7;
  pointer-events: auto;
}

.chapter-carrier__line,
.ch02-to-ch03-carrier__line {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.75) 0%, rgba(245, 158, 11, 0.15) 100%);
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.chapter-carrier:hover .chapter-carrier__line,
.ch02-to-ch03-carrier:hover .ch02-to-ch03-carrier__line,
.chapter-carrier:focus-visible .chapter-carrier__line,
.ch02-to-ch03-carrier:focus-visible .ch02-to-ch03-carrier__line {
  background: linear-gradient(180deg, rgba(251, 191, 36, 1.0) 0%, rgba(56, 189, 248, 0.4) 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
  height: 58px;
}

/* Portfolio Closing Colophon */
.portfolio-colophon {
  width: 100%;
  max-width: 780px;
  margin: 40px auto 64px;
  padding: 32px 24px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.portfolio-colophon__rule {
  width: 80px;
  height: 1px;
  background: rgba(148, 163, 184, 0.16);
  margin-bottom: 24px;
}

.portfolio-colophon__brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.portfolio-colophon__brand span {
  color: var(--signal-warm, #ff6b35);
}

.portfolio-colophon__identity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.portfolio-colophon__location {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}

.portfolio-colophon__top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 158, 11, 0.85);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.04);
  transition: all 0.25s ease;
}

.portfolio-colophon__top-link:hover,
.portfolio-colophon__top-link:focus-visible {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .working-experience__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .working-experience__copy {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .working-experience__sentence {
    text-align: center;
    margin: 18px auto 0;
    max-width: 440px;
  }
  .working-experience__field {
    height: 480px;
  }
}

@media (max-width: 520px) {
  .chapter-working-experience {
    min-height: 100vh;
    padding: 104px 20px 48px;
  }
  .working-experience__title {
    font-size: clamp(20px, 5.6vw, 24px);
    white-space: nowrap;
    text-align: center;
  }
  .working-experience__sentence {
    font-size: 13px;
    line-height: 1.55;
    margin: 14px auto 0;
    max-width: 310px;
  }
  .working-experience__field {
    height: 360px;
  }
  .working-experience__metadata {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-carrier__line,
  .ch02-to-ch03-carrier__line,
  .portfolio-colophon__top-link {
    transition: none !important;
  }
}

/* ==========================================================================
   VISUAL EDITOR DURABLE OVERRIDES (Merged from visual-editor-overrides.css)
   ========================================================================== */

#chapter-03 .chapter-placeholder__title {
  font-size: 38px;
  text-align: center;
}

#chapter-03 .chapter-placeholder__subtitle {
  letter-spacing: 0.04em;
  text-align: center;
}
