/* The story reads like a record: a visible cue track, a moving score and open prose. */
.life {
  isolation: isolate
}

.life-opening {
  max-width: 910px
}

.life-opening h2 {
  background: linear-gradient(95deg,#fff6df,#f6c186 50%,#e88d65);
  background-clip: text;
  -webkit-background-clip: text
}

.timeline-cues {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #b55d3d transparent;
  scrollbar-width: thin;
  margin: 0 0 44px;
  padding: 14px 2px 18px;
  border-block: 1px solid #e5c79b5c
}

.timeline-cues a {
  position: relative;
  flex: 0 0 clamp(125px,14vw,166px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  scroll-snap-align: start;
  min-height: 65px;
  padding: 14px 18px 8px;
  text-decoration: none;
  border-left: 1px solid #efd0a34c;
  transition: background .3s,color .3s
}

.timeline-cues a:first-child {
  border-left: 0
}

.timeline-cues a:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d98d59;
  box-shadow: 0 0 0 3px #2e1a12,0 0 15px #de864d;
  transition: transform .3s,background .3s
}

.timeline-cues a:hover,.timeline-cues a[aria-current=location] {
  background: linear-gradient(110deg,#ba593124,transparent 75%)
}

.timeline-cues a:hover:before,.timeline-cues a[aria-current=location]:before {
  background: #ffe0a8;
  transform: scale(1.65)
}

.cue-year {
  color: #f6dab5;
  font: 600 27px/1.12 Georgia,serif
}

.cue-name {
  color: #cbb7a2;
  font-size: 12px;
  letter-spacing: .04em
}

.timeline-cues a[aria-current=location] .cue-year {
  color: #fff6df
}

.life-prelude {
  scroll-margin-top: 80px
}

.life-journey {
  --story-progress: 0
}

.life-score {
  position: sticky;
  top: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 60px;
  margin: 0 0 -60px;
  padding: 9px 19px;
  border-top: 1px solid #f1d4b56b;
  background: linear-gradient(180deg,#18120ff2,#1b1612e6);
  backdrop-filter: blur(15px);
  box-shadow: 0 13px 35px #0004
}

.score-label,.score-years {
  color: #f3d0a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap
}

.score-years b {
  color: #b8462a;
  padding-inline: 7px
}

.score-bars {
  height: 30px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  mask-image: linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)
}

.score-bars i {
  display: block;
  flex: 0 0 3px;
  height: 18px;
  border-radius: 20px;
  background: linear-gradient(#f5d5a0,#c45131);
  transform-origin: center;
  animation: scoreBreathe 2.2s ease-in-out infinite alternate
}

.score-bars i:nth-child(4n+1) {
  height: 24px;
  animation-delay: -.1s
}

.score-bars i:nth-child(4n+2) {
  height: 12px;
  animation-delay: -.7s
}

.score-bars i:nth-child(4n+3) {
  height: 20px;
  animation-delay: -1.1s
}

.score-bars i:nth-child(4n) {
  height: 27px;
  animation-delay: -.4s
}

@keyframes scoreBreathe {
  from {
    transform: scaleY(.34);
    opacity: .55
  }
  to {
    transform: scaleY(1);
    opacity: 1
  }
}

.life-journey .journey-progress {
  left: -13px;
  top: 95px;
  bottom: 100px;
  width: 3px;
  background: #edcb9a40
}

.life-journey .journey-progress span {
  background: linear-gradient(180deg,#ffd5a0,#b93b2b 40%,#e8ae71 75%,#fff0cf);
  box-shadow: 0 0 12px #e79c5c
}

.life-chapter {
  scroll-margin-top: 76px
}

.life-chapter .chapter-copy:before {
  background: linear-gradient(90deg,var(--accent),#f5d3a4,transparent);
  width: 100px
}

.life-chapter.in-view .chapter-year {
  text-shadow: 0 0 35px #db835b50
}

.chapter-image {
  transition: clip-path .95s cubic-bezier(.2,.7,.15,1),transform .95s cubic-bezier(.2,.7,.15,1),opacity .8s,filter .8s
}

.life-chapter.in-view .chapter-image {
  filter: saturate(1.12)
}

.giving-line {
  position: relative;
  padding: 90px 4% 105px;
  margin: 0;
  border-bottom: 1px solid #f0d3ad39;
  background: radial-gradient(ellipse at 82% 38%,#ad4d2830,transparent 55%)
}

.giving-heading {
  max-width: 750px;
  margin: 0 auto 54px;
  text-align: center
}

.giving-kicker,.giving-topic {
  display: block;
  color: #efaa78;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em
}

.giving-heading h3 {
  font: 500 clamp(42px,6vw,75px)/1.06 Georgia,serif;
  letter-spacing: -.055em;
  color: #f9ead3;
  margin: 13px 0 20px
}

.giving-heading p {
  color: #d7c6ae;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 auto
}

.giving-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(90px,.23fr) minmax(0,1fr) 55px;
  align-items: start;
  gap: clamp(15px,5vw,70px);
  padding: 34px 0 38px;
  border-top: 1px solid #e4c6a258;
  scroll-margin-top: 90px;
  transition: opacity .7s,transform .7s
}

.giving-story:before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 65px;
  height: 4px;
  background: #bd5737;
  transform: scaleX(.3);
  transform-origin: left;
  transition: transform .6s
}

.giving-story.is-visible:before,.giving-story:hover:before {
  transform: scaleX(1)
}

.giving-date {
  font: 500 clamp(37px,5.2vw,68px)/1 Georgia,serif;
  letter-spacing: -.07em;
  color: #e9bd8a
}

.giving-copy {
  max-width: 650px
}

.giving-copy h4 {
  font: 500 clamp(25px,3.2vw,39px)/1.17 Georgia,serif;
  letter-spacing: -.04em;
  color: #fff1dc;
  margin: 9px 0 14px
}

.giving-copy p {
  font-size: 16px;
  line-height: 1.72;
  color: #d5c2af;
  margin: 0 0 13px
}

.giving-copy a {
  font-size: 14px;
  color: #f6c58e;
  text-underline-offset: 5px
}

.giving-copy a:hover {
  color: #fff
}

.giving-count {
  font: italic 28px Georgia,serif;
  color: #aa684c7c;
  text-align: right
}

.giving-story:nth-of-type(even) {
  margin-left: 9%
}

.giving-story:nth-of-type(odd) {
  margin-right: 7%
}

.motion-ready .giving-story:not(.is-visible) {
  opacity: .28;
  transform: translateY(23px)
}

.philosophy .thoughts {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 26px 40px
}

.philosophy .thought p {
  color: #ddcbb6
}

.philosophy .thought a {
  color: #f5c28c;
  text-underline-offset: 4px
}

/* A readable, welcoming quiz with clear selected states. */
.quiz-section {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid #ecd0a475
}

.quiz-section:before {
  content: "";
  position: absolute;
  inset: 0 -4% 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 55% 50%,#d79b5928,transparent 75%)
}

.quiz-section .feature-heading .section-tag {
  color: #f4c085
}

.quiz-section .feature-heading h2 {
  color: #fff4df;
  text-shadow: 0 10px 35px #ba62453d
}

.quiz-section .feature-heading>p:last-child {
  color: #e5d1b8;
  font-size: 16px
}

.quiz-section .quiz-panel {
  position: relative;
  border: 1px solid #f7ddb4;
  border-radius: 31px 31px 16px 16px;
  background: linear-gradient(135deg,#fff4e4 0%,#f5dfbc 62%,#e5c69d 100%);
  box-shadow: 0 29px 78px #0007;
  color: #2c1c14
}

.quiz-section .quiz-panel:before {
  height: 27px;
  border-radius: 31px 31px 0 0;
  background: #f2e0c7 url('gamusa-border.webp') center 43%/auto 120px repeat-x
}

.quiz-lead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(22px,5vw,60px) 4px
}

.quiz-lead-symbol {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #a93629;
  color: #fff2df;
  font-size: 28px;
  box-shadow: 0 7px 20px #9e422c4d
}

.quiz-lead strong {
  font-size: 12px;
  letter-spacing: .2em;
  color: #8c3425
}

.quiz-lead p {
  font-size: 14px;
  color: #543b2c;
  margin: 4px 0 0
}

.quiz-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 35px;
  margin-left: auto
}

.quiz-wave i {
  width: 3px;
  height: 18px;
  border-radius: 20px;
  background: #b2452d;
  animation: scoreBreathe 1.8s ease-in-out infinite alternate
}

.quiz-wave i:nth-child(3n) {
  height: 31px;
  animation-delay: -.6s
}

.quiz-wave i:nth-child(3n+1) {
  height: 11px;
  animation-delay: -1.1s
}

.quiz-section .quiz-progress {
  color: #6f3020;
  font-size: 14px;
  padding-top: 20px
}

.quiz-section .quiz-progress-track {
  height: 7px;
  background: #ba9b7e
}

.quiz-section .quiz-progress-track span {
  background: linear-gradient(90deg,#ad3727,#dc8051)
}

.quiz-section #quizQuestionArea h3,.quiz-section .quiz-result h3 {
  color: #271913
}

.quiz-section #quizQuestionArea h3 {
  max-width: 720px
}

.quiz-section .quiz-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 79px;
  padding: 16px 18px;
  border: 1px solid #b89072;
  border-radius: 16px;
  background: #fffaf2;
  color: #2c1b14;
  box-shadow: 0 4px 14px #864d2915;
  font-size: 16px
}

.quiz-section .quiz-choice:hover,.quiz-section .quiz-choice:focus-visible {
  background: #fffefb;
  border-color: #9f3b29;
  transform: translateY(-2px)
}

.quiz-section .quiz-choice[aria-pressed=true] {
  border-color: #8a2a20;
  background: #a73527;
  color: #fff7e8;
  box-shadow: 0 9px 26px #7d352647
}

.quiz-choice-index {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0d6b8;
  color: #8b3927;
  font-size: 13px
}

.quiz-choice[aria-pressed=true] .quiz-choice-index {
  background: #f9dbad;
  color: #67221c
}

.quiz-section .quiz-controls button,.quiz-section .quiz-result button {
  border: 1px solid #953726;
  border-radius: 100px;
  color: #74261b;
  background: transparent;
  font-size: 14px
}

.quiz-section .quiz-controls button:last-child,.quiz-section .quiz-result .quiz-primary {
  background: #a73527;
  color: #fff7ea;
  border-color: #a73527
}

.quiz-section .quiz-controls button:hover:not(:disabled),.quiz-section .quiz-result button:hover {
  background: #76291d;
  color: #fff9ed
}

.quiz-section .quiz-controls button:disabled {
  opacity: .72;
  color: #59493f;
  border-color: #9f8b7d;
  cursor: not-allowed
}

.quiz-section .result-song {
  background: #fffaf1;
  border: 1px solid #be9479;
  border-radius: 18px;
  color: #2c1b14
}

.quiz-section .result-song strong {
  color: #2c1b14
}

.quiz-section .result-song p {
  color: #4c382b
}

.quiz-section .quiz-result>p {
  color: #463328
}

.quiz-section .quiz-result .result-eyebrow {
  color: #8b3022
}

@media(max-width:820px) {
  .giving-story:nth-of-type(n) {
    margin-inline: 0
  }
  .giving-story {
    grid-template-columns: 95px minmax(0,1fr) 25px
  }
  .philosophy .thoughts {
    gap: 16px 30px
  }
}

@media(max-width:800px) {
  .life-journey .journey-progress {
    display: block;
    left: 5px;
    top: 80px;
    bottom: 70px
  }
  .life-chapter {
    padding-left: 28px;
    padding-right: 4px
  }
  .giving-line {
    padding-left: 28px;
    padding-right: 4px
  }
  .life-score {
    padding-inline: 18px
  }
}

@media(max-width:600px) {
  .timeline-cues {
    margin-bottom: 24px
  }
  .timeline-cues a {
    flex-basis: 118px;
    padding-inline: 11px
  }
  .timeline-cues a:before {
    left: 11px
  }
  .cue-year {
    font-size: 23px
  }
  .life-score {
    min-height: 52px;
    margin-bottom: -52px;
    padding: 7px 10px
  }
  .score-label {
    display: none
  }
  .score-bars {
    justify-content: flex-start
  }
  .score-years {
    font-size: 10px;
    letter-spacing: .08em
  }
  .score-bars i:nth-child(n+14) {
    display: none
  }
  .life-journey .journey-progress {
    top: 65px;
    left: 3px
  }
  .giving-line {
    padding-top: 80px;
    padding-bottom: 55px;
    padding-left: 25px
  }
  .giving-heading {
    text-align: left;
    margin-bottom: 32px
  }
  .giving-heading h3 {
    font-size: 43px
  }
  .giving-heading p {
    font-size: 16px
  }
  .giving-story {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 27px 0 29px
  }
  .giving-date {
    font-size: 39px
  }
  .giving-copy h4 {
    font-size: 30px
  }
  .giving-count {
    position: absolute;
    right: 2px;
    top: 29px
  }
  .life-chapter {
    padding-left: 25px
  }
  .philosophy .thoughts {
    grid-template-columns: 1fr
  }
  .quiz-section .feature-heading h2 {
    font-size: clamp(39px,10vw,58px)
  }
  .quiz-section .quiz-panel {
    border-radius: 24px 24px 13px 13px
  }
  .quiz-section .quiz-panel:before {
    border-radius: 24px 24px 0 0
  }
  .quiz-lead {
    padding: 19px 20px 0;
    gap: 12px
  }
  .quiz-lead-symbol {
    width: 44px;
    height: 44px;
    font-size: 23px
  }
  .quiz-lead strong {
    font-size: 11px
  }
  .quiz-wave {
    display: none
  }
  .quiz-section .quiz-choice {
    min-height: 67px
  }
  .quiz-section .quiz-controls button {
    padding: 10px 13px
  }
  .quiz-section .quiz-progress {
    font-size: 13px
  }
}

@media(prefers-reduced-motion:reduce) {
  .score-bars i,.quiz-wave i {
    animation: none;
    transform: none
  }
  .giving-story,.giving-story:before,.timeline-cues a:before {
    transition: none
  }
  .life-score {
    backdrop-filter: none
  }
}

/* A shared lamp and an Assamese canopy around the remembrance. */
.philosophy {
  position: relative;
  isolation: isolate
}

.philosophy .legacy-layout {
  position: relative;
  z-index: 1
}

.nature-sprig {
  position: absolute;
  z-index: 0;
  width: min(37vw,440px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 22px 35px #020d0780);
  transform-origin: 50% 5%
}

.nature-sprig-legacy {
  top: -140px;
  right: -8%;
  opacity: .57;
  transform: rotate(-14deg)
}

.nature-sprig-memory {
  top: -160px;
  right: -135px;
  width: min(38vw,415px);
  opacity: .57;
  transform: rotate(18deg)
}

.remembrance {
  background: radial-gradient(ellipse at 65% 65%,#a04c2a3b,transparent 63%),radial-gradient(ellipse at 94% 8%,#31574058,transparent 58%)
}

.remembrance-portrait,.remembrance-copy {
  position: relative;
  z-index: 1
}

.remembrance-copy {
  padding: 20px 0
}

.diya-ritual {
  display: flex;
  align-items: center;
  gap: clamp(14px,2vw,34px);
  margin-top: 10px;
  min-height: 258px;
  border-top: 1px solid #d9b68657;
  border-bottom: 1px solid #d9b68657;
  background: radial-gradient(ellipse at 20% 58%,#d8933f20,transparent 52%)
}

.diya-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  gap: 0;
  width: min(54%,275px);
  margin: 0;
  padding: 0 0 13px;
  border: 0!important;
  border-radius: 0!important;
  background: transparent!important;
  box-shadow: none!important;
  color: #ffe4b7;
  cursor: pointer;
  font-family: 'DM Sans',sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  transition: none
}

.diya-button:hover,.remembrance.is-lit .diya-button {
  box-shadow: none!important;
  transform: none
}

.diya-button:disabled {
  cursor: default;
  opacity: 1
}

.diya-vessel {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.15;
  isolation: isolate;
  filter: drop-shadow(0 16px 14px #0009);
  transition: transform .5s cubic-bezier(.2,.75,.2,1)
}

.diya-vessel:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 5% 4%;
  background: radial-gradient(ellipse at 65% 34%,#ffc46cbb,transparent 62%);
  filter: blur(28px);
  opacity: 0;
  transition: opacity 1s
}

.diya-vessel img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
  transition: opacity .8s ease,filter .8s ease
}

.diya-vessel .diya-lit {
  opacity: 0;
  filter: brightness(.7)
}

.remembrance.is-lit .diya-vessel .diya-lit {
  opacity: 1;
  filter: brightness(1.08) drop-shadow(0 0 24px #e1a44b9e);
  animation: diya-shimmer 3.2s ease-in-out infinite alternate
}

.remembrance.is-lit .diya-vessel .diya-unlit {
  opacity: 0
}

.remembrance.is-lit .diya-vessel:before {
  opacity: 1
}

.diya-button:hover:not(:disabled) .diya-vessel {
  transform: translateY(-6px) rotate(-2deg)
}

.diya-button:focus-visible {
  outline: 2px solid #f6c777;
  outline-offset: 5px
}

.diya-action {
  font: 600 16px/1.3 'DM Sans',sans-serif;
  letter-spacing: .02em;
  border-bottom: 1px solid #f4c58db0;
  padding-bottom: 7px
}

.diya-button:hover:not(:disabled) .diya-action {
  color: #fff9ec;
  border-bottom-color: #fff9ec
}

.diya-counter {
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0
}

.diya-counter strong {
  font: 500 clamp(49px,7vw,91px)/1 Georgia,serif;
  letter-spacing: -.06em;
  color: #ffdc9d;
  text-shadow: 0 0 40px #d9793970
}

.diya-counter span {
  font: 600 clamp(15px,1.7vw,19px)/1.3 'DM Sans',sans-serif;
  color: #fff0d6;
  margin-top: 6px
}

.diya-counter small {
  font-size: 12px;
  color: #d0bba4;
  margin-top: 10px
}

.remembrance .diya-note {
  margin: 15px 0 0;
  color: #f3d5aa;
  font-size: 13px
}

@keyframes diya-shimmer {
  from {
    filter: brightness(.92) drop-shadow(0 0 18px #d88b45aa)
  }
  to {
    filter: brightness(1.15) drop-shadow(0 0 34px #f7b05da8)
  }
}

@media(prefers-reduced-motion:no-preference) {
  .nature-sprig {
    animation: leaf-breathe 9s ease-in-out infinite alternate
  }
  @keyframes leaf-breathe {
    from {
      translate: 0 0
    }
    to {
      translate: 8px 12px
    }
  }
}

@media(max-width:760px) {
  .nature-sprig-legacy {
    width: 210px;
    right: -45px;
    top: -78px;
    opacity: .34
  }
  .nature-sprig-memory {
    width: 220px;
    right: -65px;
    top: 240px;
    opacity: .46
  }
  .remembrance-copy {
    padding: 0
  }
  .diya-ritual {
    min-height: 225px
  }
  .diya-button {
    width: 52%;
    max-width: 245px
  }
}

@media(max-width:540px) {
  .diya-ritual {
    gap: 8px;
    min-height: 205px
  }
  .diya-button {
    width: 55%
  }
  .diya-vessel {
    aspect-ratio: 1.15
  }
  .diya-counter strong {
    font-size: clamp(44px,12vw,65px)
  }
  .diya-counter span {
    font-size: 14px
  }
  .diya-counter small {
    font-size: 10px
  }
  .diya-action {
    font-size: 13px
  }
  .nature-sprig-memory {
    top: 280px;
    right: -90px;
    width: 220px;
    opacity: .32
  }
}

@media(prefers-reduced-motion:reduce) {
  .nature-sprig,.remembrance.is-lit .diya-vessel .diya-lit {
    animation: none
  }
}
