/* ═══════════════════════════════════════════
   LIFE PAGES (Travel, Photography, Art)
   Photos in white frames on dark gray, thrown onto the page one after another as you scroll,
   each drifting at its own speed (parallax). life.js builds the columns and runs the motion.
═══════════════════════════════════════════ */
body.life {
  --life-bg: #2a2a2a;
  background: var(--life-bg);
  background-image: radial-gradient(120% 80% at 50% 0%, #353535 0%, var(--life-bg) 55%, #1f1f1f 100%);
  background-attachment: fixed;
  color: #fff;
}
html, body.life { overflow-x: clip; }

/* Title */
.life-head { max-width: 1240px; margin: 0 auto; padding: clamp(8rem, 14vw, 11rem) 2.5rem clamp(1.5rem, 3vw, 2.5rem); }
.life-kicker { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.life-title { font-size: clamp(3.6rem, 11vw, 9.5rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.04em; margin: 0; color: #fff; }
.life-lede { max-width: 34rem; margin: 1.6rem 0 0; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; color: rgba(255,255,255,0.72); }

/* The pile. Without JS it is a plain grid; life.js adds .is-cols and deals the photos into columns. */
.toss { max-width: 1240px; margin: 0 auto; padding: clamp(2rem, 4vw, 3.5rem) 2.5rem clamp(6rem, 10vw, 9rem);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.toss.is-cols { display: flex; align-items: flex-start; gap: clamp(1.5rem, 3vw, 3rem); }
.toss-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.toss-col:nth-child(2) { padding-top: clamp(5rem, 9vw, 8rem); }
.toss-col:nth-child(3) { padding-top: clamp(2rem, 4vw, 3.5rem); }

/* Outer box moves with scroll (parallax); inner card does the throw and the tilt */
.toss-item { position: relative; margin-bottom: calc(var(--ov, 2.25rem) * -1); transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.toss-col .toss-item:last-child { margin-bottom: 0; }
.toss-item:hover, .toss-item:focus-within { z-index: 60 !important; }
.toss-card {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #fff; padding: clamp(8px, 0.85vw, 13px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.42), 0 4px 10px rgba(0,0,0,0.3);
  transform: translate3d(var(--x, 0px), 0, 0) rotate(var(--r, 0deg));
  transition: transform 0.45s var(--ease-out, cubic-bezier(.16,1,.3,1)), box-shadow 0.45s ease;
}
.toss-card img, .toss-card video { display: block; width: 100%; height: auto; background: #ddd; }
.toss-card.is-video { cursor: default; }
.toss-item:hover .toss-card, .toss-card:focus-visible {
  transform: translate3d(var(--x, 0px), -8px, 0) rotate(calc(var(--r, 0deg) * 0.35)) scale(1.025);
  box-shadow: 0 32px 60px rgba(0,0,0,0.5), 0 6px 14px rgba(0,0,0,0.32);
}
.toss-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Thrown in: starts low and spun, lands at its angle */
.toss.is-cols .toss-card.is-waiting {
  opacity: 0;
  transform: translate3d(calc(var(--x, 0px) + var(--fx, 0px)), 46vh, 0) rotate(calc(var(--r, 0deg) + var(--fr, 0deg))) scale(1.06);
  transition: none;
}
.toss.is-cols .toss-card.is-landing {
  transition: transform 1.15s cubic-bezier(.17,.84,.32,1.06), opacity 0.4s ease, box-shadow 0.45s ease;
}

/* More from Life */
.life-more { max-width: 1240px; margin: 0 auto; padding: 0 2.5rem clamp(5rem, 9vw, 8rem); text-align: center; }
.life-more h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 0 0 2.5rem; }
/* Same slanted strips and black labels as the home Life section (style.css); here two strips, a little shorter */
.life-more .culture-grid.life-more-grid { display: flex; max-width: 900px; margin: 0 auto; height: clamp(320px, 30vw, 440px); padding: 0 4rem; gap: clamp(0.75rem, 1.4vw, 1.25rem); text-align: left; }
.life-more-grid .culture-item { flex: 1 1 0; min-width: 0; }
.life-back { display: table; margin: 3rem auto 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.life-back:hover { color: #fff; }

/* Lightbox */
.life-lb { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(10,10,10,0.92); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; cursor: zoom-out; }
.life-lb.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.life-lb figure { margin: 0; background: #fff; padding: clamp(8px, 1vw, 14px); box-shadow: 0 30px 80px rgba(0,0,0,0.6); transform: scale(0.96) rotate(-1deg); transition: transform 0.4s var(--ease-out, ease); }
.life-lb.open figure { transform: none; }
.life-lb img { display: block; max-width: 88vw; max-height: 84vh; width: auto; height: auto; }
.life-lb button { position: absolute; background: none; border: 0; color: rgba(255,255,255,0.7); font: inherit; font-size: 2rem; line-height: 1; padding: 1rem; cursor: pointer; }
.life-lb button:hover { color: #fff; }
.life-lb .lb-close { top: 0.75rem; right: 1rem; font-size: 1.6rem; }
.life-lb .lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.life-lb .lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* Nav: current page link */
.life .cs-jump a.is-current { color: #fff; }

@media (max-width: 640px) {
  .life-head { padding-left: 1.5rem; padding-right: 1.5rem; }
  .toss { padding-left: 1.5rem; padding-right: 1.5rem; }
  .toss-col .toss-item { width: 86%; }
  .toss-col .toss-item:nth-child(even) { margin-left: auto; }
  .life-more { padding-left: 1.5rem; padding-right: 1.5rem; }
  .life-lb .lb-prev, .life-lb .lb-next { top: auto; bottom: 1rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .toss-item { transform: none !important; }
  .toss.is-cols .toss-card.is-waiting { opacity: 1; transform: translate3d(var(--x, 0px), 0, 0) rotate(var(--r, 0deg)); }
}

@media (max-width: 900px) {
  .life-more .culture-grid.life-more-grid { height: clamp(260px, 62vw, 360px); padding: 0 2.75rem; }
  .life-more-grid .culture-item .culture-caption { left: 1.6rem; right: auto; bottom: 0.9rem; padding: 0.6rem 0.75rem; }
  .life-more-grid .culture-item .culture-text { display: none; }
}
