/* Results and personal story. All rules are scoped to these two sections. */
.stats-section {
  padding: 36px clamp(24px, 6vw, 96px) 44px;
  background: #fff;
  color: #24262b;
}
.stats-shell { max-width: 1280px; margin: 0 auto; }
.stats-section h2 {
  margin: 0 0 25px;
  color: #76787c;
  font: 400 12px/1.4 'Inter', sans-serif;
  letter-spacing: .015em;
  opacity: 1;
  transform: none;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { padding: 0 30px; border-left: 1px solid #e6e7e8; opacity: 1; transform: none; }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-value { display: block; color: #23262d; font: 500 clamp(32px, 3.4vw, 49px)/1.1 'Inter', sans-serif; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.stat-value > span { color: #8b8e99; font-size: .7em; letter-spacing: -.04em; }
.stat-label { display: block; margin-top: 9px; color: #76787e; font: 400 12px/1.45 'Inter', sans-serif; }

.memory-story { color: #25262c; background: #fff; font-family: 'Inter', sans-serif; scroll-margin-top: 28px; }
.memory-scene { position: relative; height: 172svh; }
.memory-scene-mentor { height: 142svh; }
.memory-stage { position: sticky; top: 0; width: 100%; height: 100svh; min-height: 660px; isolation: isolate; overflow: clip; }
.memory-atmosphere { position: absolute; z-index: -2; inset: 0; background: radial-gradient(ellipse at 74% 53%, #eeedf7 0, #f6f6fa 26%, #fff 65%); }
.memory-atmosphere::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 70%, #e0e9f433, transparent 45%); }
.memory-year { position: absolute; z-index: -1; top: 18%; right: 4%; color: #dedfea; opacity: .5; font: 500 clamp(150px, 22vw, 370px)/1 'Inter', sans-serif; letter-spacing: -.09em; user-select: none; transform: translateY(var(--year-y, 0px)); }
.memory-copy { position: absolute; left: max(5%, calc((100vw - 1360px)/2)); top: 50%; width: 28%; max-width: 385px; transform: translateY(-50%); z-index: 4; }
.memory-location { display: flex; align-items: center; gap: 9px; margin: 0 0 26px; color: #777b87; font: 400 12px/1.5 'Inter', sans-serif; }
.memory-location > span { display: block; width: 16px; height: 1px; background: #9099bb; }
.memory-copy h2 { font: 500 clamp(44px, 4.7vw, 70px)/1.03 'Inter', sans-serif; letter-spacing: -.065em; margin: 0 0 28px; color: #252731; text-wrap: balance; }
.memory-copy > p:not(.memory-location) { color: #71747e; font: 400 clamp(13px, 1.02vw, 15px)/1.85 'Inter', sans-serif; margin: 0 0 17px; }
.memory-scroll { display: flex; align-items: center; gap: 11px; margin-top: 34px; color: #858996; font: 400 10px/1 'Inter', sans-serif; letter-spacing: .025em; }
.memory-scroll i { height: 29px; width: 17px; border: 1px solid #c6c9d3; border-radius: 10px; position: relative; }
.memory-scroll i::after { content: ''; position: absolute; width: 2px; height: 6px; border-radius: 2px; background: #8c91a5; top: 6px; left: 6px; }
.memory-gallery { position: absolute; width: min(60%, 880px); right: max(4%, calc((100vw - 1460px)/2)); height: 76%; top: 11%; perspective: 1600px; }
.memory-photo { position: absolute; margin: 0; transform: translate3d(var(--photo-x, 0px), var(--photo-y, 0px), 0) rotate(var(--photo-angle, 0deg)); transform-origin: 50% 55%; }
.memory-photo-button { position: relative; display: block; width: 100%; padding: 6px; border: 0; border-radius: 5px; background: #fff; box-shadow: 0 3px 7px #30304b0a, 0 18px 35px -18px #32335355; cursor: zoom-in; transition: box-shadow .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); -webkit-tap-highlight-color: transparent; }
.memory-photo-button:hover, .memory-photo-button:focus-visible { transform: translateY(-8px) rotate(1deg); box-shadow: 0 7px 15px #30304b0b, 0 27px 48px -17px #32335366; }
.memory-photo-button:focus-visible { outline: 2px solid #6d77a8; outline-offset: 5px; }
.memory-photo-surface { display: block; position: relative; width: 100%; border-radius: 2px; overflow: hidden; background: #f7f7fa; }
.memory-photo img { display: block; width: 100%; height: auto; max-width: none; object-fit: contain; }
.memory-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.memory-photo figcaption { padding: 14px 4px 0; font: 400 10px/1.5 'Inter', sans-serif; color: #8b8d97; letter-spacing: .015em; }
.memory-expand { position: absolute; bottom: 15px; right: 15px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #ffffffdf; backdrop-filter: blur(10px); color: #3c3f4c; font: 400 15px/1 'Inter', sans-serif; opacity: 0; transition: opacity .25s; }
.memory-photo-button:hover .memory-expand, .memory-photo-button:focus-visible .memory-expand { opacity: 1; }
.photo-closeup { width: 42%; left: 0; top: 20%; z-index: 3; --photo-angle: -5deg; }
.photo-audience { width: 48%; right: 0; top: 0; z-index: 2; --photo-angle: 4deg; }
.photo-stage { width: 32%; right: 3%; bottom: -2%; z-index: 4; --photo-angle: 6deg; }
.memory-thread { position: absolute; bottom: 22px; left: 5%; right: 5%; height: 1px; background: #e9eaf0; opacity: .7; }
.memory-thread span { display: block; width: 100%; height: 100%; background: #9a9fb8; transform: scaleX(var(--memory-progress, 0)); transform-origin: left; }
.memory-scene-mentor .memory-atmosphere { background: radial-gradient(ellipse at 26% 50%, #f2ece833, #fff 65%); }
.mentor-visual { position: absolute; width: min(51%, 740px); left: max(5%, calc((100vw - 1360px)/2)); top: 50%; transform: translateY(-50%); }
.photo-mentor { position: relative; width: 100%; --photo-angle: -2deg; }
.mentor-outline { position: absolute; inset: -22px 22px 30px -20px; border: 1px solid #e7e5e3; transform: rotate(3deg); border-radius: 4px; }
.mentor-copy { width: 30%; max-width: 420px; left: auto; right: max(6%, calc((100vw - 1360px)/2)); }
.mentor-copy h2 { font-size: clamp(39px, 4.1vw, 62px); }
.memory-copy > .memory-conclusion { color: #303540 !important; margin-top: 26px !important; }

.memory-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; background: #f8f9fbf7; padding: 20px 30px; color: #292c36; }
.memory-lightbox::backdrop { background: #f8f9fb; }
.memory-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; }
.memory-lightbox-toolbar, .memory-lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.memory-lightbox-toolbar, .memory-lightbox-bottom p { color: #727582; font: 400 12px/1.5 'Inter', sans-serif; }
.memory-lightbox button { padding: 9px 15px; border: 1px solid #dfe1e7; border-radius: 30px; background: #fff; color: #373c49; cursor: pointer; font: 400 12px/1.4 'Inter', sans-serif; }
.memory-lightbox button:focus-visible { outline: 2px solid #6d77a8; outline-offset: 3px; }
.memory-lightbox-close span { font-size: 20px; padding-left: 12px; vertical-align: -1px; }
.memory-lightbox-image { height: 100%; width: 100%; min-height: 0; object-fit: contain; }
.memory-lightbox-bottom p { text-align: center; }

@media (min-width: 901px) and (max-height: 740px) {
  .memory-stage { min-height: 580px; }
  .memory-gallery { width: 52%; right: 5%; height: 78%; top: 9%; }
  .photo-closeup { width: 37%; left: 3%; top: 19%; }
  .photo-audience { width: 44%; }
  .photo-stage { width: 28%; bottom: 0; }
  .memory-copy { width: 31%; }
  .mentor-visual { width: 46%; }
}
@media (max-width: 900px) {
  .stats-section { padding: 30px 25px 38px; }
  .stat-item { padding-inline: 17px; }
  .stat-label { font-size: 10px; }
  .memory-scene, .memory-scene-mentor { height: auto; }
  .memory-stage { position: relative; height: auto; min-height: 0; overflow: clip; padding: 60px 28px 70px; }
  .memory-copy, .mentor-copy { position: relative; inset: auto; width: 100%; max-width: 560px; transform: none; margin: 0 auto; }
  .memory-copy h2 { font-size: clamp(42px, 7.8vw, 65px); margin-bottom: 22px; }
  .memory-copy > p:not(.memory-location) { font-size: 14px; line-height: 1.8; }
  .memory-scroll { display: none; }
  .memory-year { top: 34%; right: 5%; font-size: 33vw; }
  .memory-gallery { position: relative; inset: auto; width: 100%; max-width: 650px; height: 640px; margin: 45px auto 0; }
  .photo-closeup { width: 46%; top: 13%; left: 0; }
  .photo-audience { width: 47%; top: 0; }
  .photo-stage { width: 38%; bottom: 2%; right: 2%; }
  .memory-thread { display: none; }
  .memory-scene-mentor .memory-stage { display: flex; flex-direction: column; gap: 48px; padding-top: 38px; }
  .mentor-copy { order: 0; }
  .mentor-visual { position: relative; inset: auto; width: 100%; max-width: 620px; transform: none; margin: 0 auto; order: 1; }
  .mentor-outline { inset: -12px 15px 22px -10px; }
  .memory-expand { opacity: 1; }
}
@media (max-width: 560px) {
  .stats-section { padding: 27px 24px 32px; }
  .stats-section h2 { margin-bottom: 20px; font-size: 11px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .stat-item { padding: 0 0 0 24px; }
  .stat-item:nth-child(odd) { border: 0; padding: 0; }
  .stat-value { font-size: 34px; }
  .stat-label { font-size: 10px; margin-top: 5px; }
  .memory-stage { padding: 64px 24px 30px; }
  .memory-copy h2 { font-size: 47px; }
  .memory-location { margin-bottom: 18px; font-size: 11px; }
  .memory-gallery { height: 116vw; margin-top: 34px; }
  .photo-closeup { top: 13%; width: 48%; }
  .photo-audience { width: 46%; top: 0; }
  .photo-stage { width: 42%; right: 0; bottom: 4%; }
  .memory-photo-button { padding: 4px; }
  .memory-photo figcaption { font-size: 8px; padding-top: 9px; }
  .memory-expand { width: 20px; height: 20px; right: 10px; bottom: 10px; font-size: 12px; }
  .memory-year { top: 44%; }
  .memory-scene-mentor .memory-stage { padding-block: 55px 50px; gap: 36px; }
  .mentor-copy h2 { font-size: 43px; }
  .memory-lightbox { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .memory-scene, .memory-scene-mentor { height: auto; }
  .memory-stage { position: relative; }
  .memory-photo { transform: rotate(var(--photo-rest-angle, 0deg)) !important; }
  .memory-photo canvas { display: none; }
  .memory-photo-button { transition: none; }
}
