/* ─────────────────────────────────────────────────────────────────────────────
   timeline: milky daylight ground with a soft, sunken lake along the bottom.
   the layout model is untouched — years on the right, photographs in the middle,
   the copy on the left. only the light changes, plus the water.
   ───────────────────────────────────────────────────────────────────────────── */

/* NOTE: never paint a background on <main> — it stacks above #herosky and would
   cover the hero reel. each light section carries its own background instead. */

.timeline-stage{
  /* overlap the previous section by a hair: no gap can ever open up */
  margin-block-start:-1px;
  background:#f8f4ee;
  color:#191510;
  isolation:isolate;
  box-shadow:none;
  border:0;
  /* the section is exactly one screen: the water sits inside it, not below it */
  min-block-size:100vh;
  padding-block-end:0;
}
/* cancel the night layout's extra 100vh content box and its bottom padding */
.timeline-stage .tl-content{
  min-block-size:100vh;
  padding-block:clamp(3.6rem,9vh,6rem) clamp(5rem,12vh,9rem)!important;
}
/* the old night layers are gone */
.timeline-stage .tl-veil,
.timeline-stage .rays-layer{display:none!important}

/* ── the lake: a full-width band of liquid fluid along the bottom ────────── */
.tl-lake{
  position:absolute; inset-inline:0; inset-block-end:0;
  block-size:clamp(280px,46vh,520px);
  z-index:0; pointer-events:none;
  overflow:hidden;
  /* fallback if WebGL is unavailable */
  background:linear-gradient(180deg,#f6efe2 0%,#eee1cd 55%,#e6d4ba 100%);
}
.tl-lake__water{
  position:absolute; inset:0; display:block;
  inline-size:100%; block-size:100%;
}
/* ripples now live in the shader */
.tl-lake__dip{display:none}

/* ── type on a light ground ──────────────────────────────────────────────── */
.hist-title{color:#17130e!important}
.hist-sub{color:#5f5749!important}
.hist-points li{color:#6b6355!important}
.hist-points li::before{background:#c0a884!important}
.hist-years button{color:#a2937d!important}
.hist-years button:hover{color:#6b6255!important}
.hist-years button[aria-selected="true"]{color:#231d15!important;font-weight:600}
.hist-years button:focus-visible{outline:1px solid #8a7a62!important}
.hy-base{stroke:#a8875c!important}
.hist-num svg{filter:drop-shadow(0 6px 18px rgba(120,120,120,.16))}

/* ── the photographs, half in the water ──────────────────────────────────── */
.hist-stage{position:relative}
.depth-carousel__card{
  overflow:hidden;background:#ecebe9;
  /* the night theme cast a black shadow; on cream it read as a black slab */
  box-shadow:
    0 26px 54px -26px rgba(104,104,104,.34),
    0 8px 18px -10px rgba(104,104,104,.24)!important;
}
.depth-carousel__img{
  filter:grayscale(1) contrast(1.04) brightness(1.02)!important;
  transition:filter .55s ease!important;
}
.depth-carousel__card:hover .depth-carousel__img,
.depth-carousel__card:focus-within .depth-carousel__img{
  filter:grayscale(0) contrast(1) brightness(1)!important;
}
/* the submerged band: mocha tint, a bright waterline and a little refraction */
.depth-carousel__card::after{
  content:""; position:absolute; inset-inline:0; inset-block-end:0;
  block-size:36%; z-index:3; pointer-events:none;
  /* strictly neutral AND opaque enough that the warm sea behind it cannot
     tint the photograph — no backdrop sampling, no hue */
  background:
    linear-gradient(180deg,rgba(255,255,255,.22) 0 1px,rgba(255,255,255,0) 1px),
    linear-gradient(180deg,rgba(236,236,236,0) 0%,rgba(196,196,196,.55) 26%,
      rgba(150,150,150,.86) 62%,rgba(118,118,118,.97) 100%);
  -webkit-backdrop-filter:blur(3px) grayscale(1);
  backdrop-filter:blur(3px) grayscale(1);
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,0) 0%,#000 34%,#000 100%);
  mask-image:linear-gradient(180deg,rgba(0,0,0,0) 0%,#000 34%,#000 100%);
  border-start-start-radius:0;
}
/* a faint reflection of the picture hanging in the water under the card */
.depth-carousel__card::before{
  content:""; position:absolute; inset-inline:6%; inset-block-end:-30%;
  block-size:30%; z-index:2; pointer-events:none;
  background:linear-gradient(180deg,rgba(140,140,140,.45),rgba(140,140,140,0));
  filter:blur(10px);
  border-radius:0 0 50% 50%/0 0 100% 100%;
}

/* nothing extra: the cards are centred and the lake rises to meet their base */

/* ── the splash canvas ───────────────────────────────────────────────────── */
.tl-splash{
  position:absolute; inset:0; z-index:4; pointer-events:none;
  inline-size:100%; block-size:100%;
}

@media (max-width:999px){
  /* stacked layout: the sea rises to just under the year row */
  .tl-lake{block-size:clamp(300px,52vh,520px)}
  .tl-lake__water{filter:blur(1px)}
}

@media (prefers-reduced-motion:reduce){
  .depth-carousel__card::after{backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* on cream the depth tint has to wash the card out, not multiply it darker */
.depth-carousel__tint{mix-blend-mode:normal!important}
