/* ==========================================================================
   LAMEIRO.Design — My Life (Editorial Collage Journey)
   Shares Swiss Editorial System from styles.css (#FFFFFF / #111111 / #1B56A8)
   ========================================================================== */

.life-page .site-header {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.life-page .header-brand-btn,
.life-page .header-kinetic-logo {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.header-nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  padding: 6px 10px;
  transition: color 0.16s ease;
  white-space: nowrap;
}

.header-nav-link:hover,
.header-nav-link.is-current {
  color: var(--cobalt);
}

.header-nav-link.is-current {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

/* Opening Editorial Intro */
.life-hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) 40px clamp(48px, 8vh, 84px);
}

.life-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 18px;
}

.life-hero-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 18ch;
}

.life-hero-title span {
  color: var(--cobalt);
}

.life-hero-lead {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 56ch;
}

.life-hero-scroll-hint {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.life-hero-scroll-line {
  width: 36px;
  height: 1px;
  background-color: var(--cobalt);
}

/* Winding Editorial Timeline Canvas */
.life-journey-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 40px 120px;
}

.life-winding-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.life-winding-path-bg {
  fill: none;
  stroke: rgba(27, 86, 168, 0.12);
  stroke-width: 2;
  stroke-dasharray: 5 7;
}

.life-winding-path {
  fill: none;
  stroke: #1b56a8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.life-stages {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(96px, 14vh, 152px);
}

/* Individual Alternating Collage Row */
.life-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  gap: 24px;
}

.life-stage.is-reversed .life-visual-col {
  order: 3;
}

.life-stage.is-reversed .life-node-col {
  order: 2;
}

.life-stage.is-reversed .life-copy-col {
  order: 1;
  text-align: left;
}

.life-node-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.life-node-anchor {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--cobalt);
  box-shadow: 0 0 0 6px #ffffff;
  position: relative;
  z-index: 4;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.life-stage.is-in-view .life-node-anchor {
  background-color: var(--cobalt);
  transform: scale(1.15);
}

/* Collage Visual Cluster */
.life-visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 310px;
}

.collage-cluster {
  position: relative;
  width: min(380px, 100%);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-geo-block {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.collage-geo-block.accent-cobalt {
  background-color: #1b56a8;
}

.collage-geo-block.accent-stone {
  background-color: #f3f4f6;
}

.collage-geo-block.geo-rect-tl {
  width: 156px;
  height: 196px;
  top: 14px;
  left: 24px;
  border-radius: 6px;
}

.collage-geo-block.geo-pill-br {
  width: 148px;
  height: 184px;
  bottom: 12px;
  right: 26px;
  border-radius: 999px;
}

.collage-geo-block.geo-circle-tr {
  width: 150px;
  height: 150px;
  top: 18px;
  right: 28px;
  border-radius: 50%;
}

.collage-geo-block.geo-block-bl {
  width: 176px;
  height: 132px;
  bottom: 18px;
  left: 20px;
  border-radius: 12px;
}

.collage-geo-block.geo-arch-tl {
  width: 150px;
  height: 190px;
  top: 16px;
  left: 34px;
  border-radius: 75px 75px 12px 12px;
}

/* Photographic Cutouts */
.collage-photo-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background-color: #f3f4f6;
  border: 5px solid #ffffff;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
}

.collage-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-photo-frame.shape-circle {
  width: 224px;
  height: 224px;
  border-radius: 50%;
}

.collage-photo-frame.shape-capsule {
  width: 196px;
  height: 266px;
  border-radius: 999px;
}

.collage-photo-frame.shape-rounded {
  width: 256px;
  height: 196px;
  border-radius: 18px;
}

/* Floating Studio-Sketch Micro-Illustration (1.2px linear SVG) */
.collage-sketch {
  position: absolute;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.05);
  color: var(--text-primary);
}

.collage-sketch.pos-br {
  right: 6px;
  bottom: 8px;
}

.collage-sketch.pos-bl {
  left: 6px;
  bottom: 10px;
}

.collage-sketch.pos-tr {
  right: 8px;
  top: 10px;
}

.collage-sketch.pos-tl {
  left: 6px;
  top: 10px;
}

.collage-sketch svg {
  display: block;
}

/* Editorial Stage Copy */
.life-copy-col {
  max-width: 480px;
  justify-self: center;
}

.life-stage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.life-stage-sep {
  color: #c5c7cc;
}

.life-stage-city {
  color: var(--text-secondary);
}

.life-stage-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.life-stage-desc {
  margin: 0 0 20px;
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.life-takeaway-card {
  border-left: 2px solid var(--cobalt);
  background-color: #f8fafd;
  padding: 14px 16px;
}

.life-takeaway-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 4px;
}

.life-takeaway-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 500;
}

/* Closing Editorial CTA */
.life-closing {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 40px 96px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.life-closing h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
}

.life-closing p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.life-back-portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background-color: var(--cobalt);
  color: #ffffff;
  border: 1px solid var(--cobalt);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.life-back-portfolio-btn:hover {
  background-color: #ffffff;
  color: var(--cobalt);
}

/* ==========================================================================
   Mobile Adaptation (@media (max-width: 768px))
   Clean vertical cobalt line on the left connecting all 5 stages
   ========================================================================== */
@media (max-width: 768px) {
  .life-page .header-nav-link {
    display: none;
  }

  .life-hero {
    padding: 36px 20px 32px;
  }

  .life-journey-wrap {
    padding: 16px 20px 80px 44px;
    overflow-x: hidden;
  }

  .life-winding-svg {
    display: none;
  }

  /* Continuous clean vertical cobalt line on the left */
  .life-stages::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 12px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, #1b56a8 0%, rgba(27, 86, 168, 0.35) 100%);
  }

  .life-stages {
    gap: 56px;
  }

  .life-stage,
  .life-stage.is-reversed {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .life-stage.is-reversed .life-visual-col,
  .life-stage.is-reversed .life-copy-col,
  .life-stage.is-reversed .life-node-col {
    order: initial;
  }

  .life-node-col {
    position: absolute;
    left: -31px;
    top: 6px;
    width: 16px;
    height: 16px;
  }

  .life-visual-col {
    min-height: 230px;
    justify-content: flex-start;
  }

  .collage-cluster {
    width: 100%;
    max-width: 310px;
    height: 240px;
  }

  .collage-photo-frame.shape-circle {
    width: 184px;
    height: 184px;
  }

  .collage-photo-frame.shape-capsule {
    width: 162px;
    height: 218px;
  }

  .collage-photo-frame.shape-rounded {
    width: 218px;
    height: 168px;
  }

  .collage-geo-block.geo-rect-tl {
    width: 124px;
    height: 152px;
    left: 10px;
  }

  .collage-geo-block.geo-pill-br {
    width: 118px;
    height: 146px;
    right: 12px;
  }

  .collage-geo-block.geo-circle-tr {
    width: 120px;
    height: 120px;
    right: 12px;
  }

  .collage-geo-block.geo-block-bl {
    width: 140px;
    height: 104px;
    left: 8px;
  }

  .collage-geo-block.geo-arch-tl {
    width: 124px;
    height: 154px;
    left: 14px;
  }

  .collage-sketch {
    padding: 7px 9px;
    transform: scale(0.9);
  }

  .life-copy-col {
    max-width: 100%;
    justify-self: stretch;
  }

  .life-closing {
    padding: 36px 20px 64px;
  }

  .life-back-portfolio-btn {
    width: 100%;
    justify-content: center;
  }
}
