.section.milestone-page {
  padding: 0;
  background: #0d101e;
}

body:has(.milestone-page) {
  --milestone-sans: 'Segoe UI', Arial, sans-serif;
}

.milestone-page > .wrap {
  width: 100%;
  max-width: none;
}

body:has(.milestone-page) .quiet-header {
  background: #0d101e;
  border-color: #ffffff20;
  color: #f4f0fd;
}

body:has(.milestone-page) :is(.quiet-header, .quiet-footer, #zoomer),
body:has(.milestone-page) .quiet-header :is(.brand, button),
body:has(.milestone-page) #zoomer button {
  font-family: var(--milestone-sans);
}

body:has(.milestone-page) .quiet-footer {
  background: #0e0c19;
  border-color: #ffffff20;
  color: #ece0f3;
}

body:has(.milestone-page) .quiet-footer :is(.small, a) { color: #e1cde9; }

body:has(.milestone-page) .quiet-header :is(.brand, nav a, .search-link, .mobile-menu) {
  color: #f4f0fd;
}

body:has(.milestone-page) .quiet-header nav a.active {
  color: #d2a9ff;
  border-color: #bd7bff;
}

.milestones {
  --flow-depth: clamp(106px, 14vw, 210px);
  --flow-hero-origins: linear-gradient(90deg, #171024, #362047 44%, #402638 75%, #291827);
  --flow-origins-regal: linear-gradient(90deg, #211931, #282244 42%, #222143 74%, #171b33);
  --flow-regal-prizes: linear-gradient(90deg, #152c43, #18383f 50%, #214044 77%, #14242e);
  --flow-prizes-people: linear-gradient(90deg, #19323c, #253742 42%, #35283e 76%, #2b1b33);
  --flow-people-end: linear-gradient(90deg, #241323, #39203b 52%, #3a1a33 76%, #221223);
  --milestone-serif: Cambria, 'Times New Roman', serif;
  --violet: #cc9dff;
  --amber: #ffbc7b;
  --blue: #91ceff;
  --rose: #ffa6ce;
  --teal: #98ebce;
  background: #0b0c17;
  color: #fbf6ff;
  font-family: var(--milestone-sans);
  isolation: isolate;
  text-align: left;
}

.milestones [hidden] { display: none !important; }
.milestones button { font-family: inherit; }
.milestones :is(button, a):focus-visible {
  outline: 2px solid #ffe4a4;
  outline-offset: 5px;
}

.milestone-inner {
  width: min(1272px, calc(100% - clamp(40px, 10vw, 164px)));
  margin-inline: auto;
}

.milestone-progress {
  position: fixed;
  z-index: 19;
  inset: 0 0 auto;
  pointer-events: none;
  height: 3px;
}

.milestone-progress i {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--violet);
  transition: background-color 550ms ease;
}

.milestone-progress[data-tone="amber"] i { background: var(--amber); }
.milestone-progress[data-tone="blue"] i { background: var(--blue); }
.milestone-progress[data-tone="rose"] i { background: var(--rose); }
.milestone-progress[data-tone="teal"] i { background: var(--teal); }

.milestone-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  min-height: clamp(560px, 78svh, 770px);
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 45%, #251746, transparent 58%), #090917;
}

.milestone-hero-image {
  position: relative;
  grid-area: 1 / 2;
  min-width: 0;
  margin: 34px max(clamp(20px, 5vw, 82px), calc((100vw - 1272px)/2)) 34px 0;
  box-shadow: 0 20px 60px #090913a0;
  border-radius: clamp(7px, 1.2vw, 17px);
}

.milestone-hero-glow {
  position: absolute;
  z-index: -2;
  width: min(61vw, 900px);
  height: 96%;
  left: -18%;
  top: 20%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #8d307660, #38168f4d 39%, transparent 68%);
  opacity: .85;
}

.milestone-animated .milestone-hero-glow { animation: milestone-glow 11s ease-in-out infinite alternate; }

@keyframes milestone-glow {
  from { transform: translate3d(-6%, 6%, 0) scale(.92); opacity: .65; }
  to { transform: translate3d(12%, -10%, 0) scale(1.17); opacity: 1; }
}

.milestone-hero-copy {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 58px 22px 61px max(clamp(20px, 5vw, 82px), calc((100vw - 1272px) / 2));
}

.milestones .milestone-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 23px;
  color: var(--chapter-accent, var(--violet));
  font: 700 clamp(12px, 1.1vw, 15px)/1.5 var(--milestone-sans);
  letter-spacing: .15em;
}

.milestone-label span {
  flex: 0 0 23px;
  height: 2px;
  background: currentColor;
}

.milestones h1,
.milestones h2 {
  margin: 0;
  color: #fff9ff;
  font-family: var(--milestone-sans);
  line-height: 1.13;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -.027em;
  overflow-wrap: normal;
}

.milestones h1 {
  max-width: 7em;
  font-size: clamp(56px, 9.4vw, 145px);
}

.milestones :is(h1, h2) em {
  color: var(--chapter-accent, var(--violet));
  font-family: var(--milestone-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.025em;
}

.milestones h1 em {
  display: block;
  margin-block: .03em .06em;
  color: #edbcff;
  font-size: .81em;
}

.milestone-hero-intro {
  max-width: 37ch;
  color: #ebe0f6;
  margin: 25px 0 21px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.62;
}

.milestones .milestone-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px 5px 4px 0;
  pointer-events: auto;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #fbf1ff;
  font-size: 13px;
  font-weight: 600;
}

.milestone-scroll span {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #dfb6ff88;
  border-radius: 50%;
  font-size: 19px;
  color: #f0d1ff;
  transition: background-color 240ms ease, color 240ms ease;
}

.milestone-scroll:hover span { background: #dfb6ff; color: #20113b; }

.milestone-hero-bar {
  position: relative;
  grid-area: 2 / 1 / auto / -1;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 55px;
  border-top: 1px solid #ffffff35;
  color: #f1e5f5;
  pointer-events: none;
}

.milestone-hero-bar p {
  margin: 0;
  font-size: 11px;
  text-align: right;
  line-height: 1.35;
}

.milestones .milestone-motion {
  min-height: 44px;
  padding: 6px 7px 6px 0;
  background: none;
  border: 0;
  pointer-events: auto;
  color: #ead3fa;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: left;
}

.milestone-chapter {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(83px, 10vw, 156px);
}

.milestone-chapter::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: -22% 33% 20% -28%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--chapter-light), transparent 68%);
  opacity: .62;
}

.milestone-animated .milestone-chapter::before {
  animation: milestone-glow 14s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.milestone-animated .milestone-chapter.milestone-in-view::before { animation-play-state: running; }

.milestone-animated[data-motion-paused] .milestone-chapter::before,
.milestone-animated[data-motion-paused] .milestone-hero-glow { animation-play-state: paused; }

/* Each pair shares the same color across the boundary.
   Overlapping soft masks carry the color into both sections. */
:is(.milestone-hero, .milestone-chapter, .milestone-end)::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: var(--flow-in, none), var(--flow-out, none);
  background-size: 100% var(--flow-depth);
  background-position: top, bottom;
  background-repeat: no-repeat;
  mask-image:
    radial-gradient(ellipse 78% 112% at 16% 0%, #000 12%, #000b 38%, #0004 59%, transparent 82%),
    radial-gradient(ellipse 69% 112% at 83% 0%, #000 10%, #000a 40%, #0003 61%, transparent 84%),
    linear-gradient(to bottom, #000 0%, #000 4%, #0009 24%, #0003 57%, transparent 91%),
    radial-gradient(ellipse 71% 110% at 22% 100%, #000 11%, #000a 37%, #0003 62%, transparent 84%),
    radial-gradient(ellipse 80% 114% at 83% 100%, #000 12%, #000b 37%, #0004 61%, transparent 84%),
    linear-gradient(to top, #000 0%, #000 4%, #0009 24%, #0003 57%, transparent 91%);
  mask-size: 100% var(--flow-depth);
  mask-position: top, top, top, bottom, bottom, bottom;
  mask-repeat: no-repeat;
}

.milestone-hero { --flow-out: var(--flow-hero-origins); }
.milestone-origins { --flow-in: var(--flow-hero-origins); --flow-out: var(--flow-origins-regal); }
.milestone-regal { --flow-in: var(--flow-origins-regal); --flow-out: var(--flow-regal-prizes); }
.milestone-prizes { --flow-in: var(--flow-regal-prizes); --flow-out: var(--flow-prizes-people); }
.milestone-people { --flow-in: var(--flow-prizes-people); --flow-out: var(--flow-people-end); }
.milestone-end { --flow-in: var(--flow-people-end); --flow-depth: min(100%, 145px); }

.milestone-end::after {
  mask-image: linear-gradient(to bottom, #000 4%, #0009 28%, #0003 60%, transparent);
  mask-position: top;
}

.milestone-chapter-heading {
  margin-bottom: clamp(36px, 6vw, 82px);
}

.milestones h2 {
  max-width: 14ch;
  font-size: clamp(45px, 8.3vw, 121px);
  line-height: 1.14;
}

.milestones h2 em { display: block; }

.milestone-origins {
  --chapter-accent: var(--amber);
  --chapter-light: #c95e493b;
  background: radial-gradient(ellipse at 82% 35%, #793c39a0, transparent 63%),
    linear-gradient(157deg, #170e25, #352042 48%, #160f24);
}

.milestone-years {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 4vw, 52px);
  margin: 0 0 clamp(35px, 6.4vw, 84px);
  padding: 0;
  list-style: none;
}

.milestone-years li {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid #ffcc9a7a;
  color: #fae3de;
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.45;
}

.milestone-years time {
  color: var(--amber);
  font: 400 clamp(32px, 5vw, 74px)/1.09 var(--milestone-serif);
  font-variant-numeric: lining-nums;
  letter-spacing: -.03em;
}

.milestone-origins-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.16fr);
  gap: clamp(18px, 5vw, 78px);
  align-items: start;
}

.milestone-figure { min-width: 0; margin: 0; }
.milestone-dat-xanh { margin-top: clamp(30px, 9vw, 132px); }

.milestones .milestone-photo {
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: clamp(7px, 1.2vw, 17px);
  background: #251d38;
  overflow: hidden;
  cursor: zoom-in;
  color: #fff;
}

.milestone-photo img {
  display: block;
  position: absolute;
  top: -5%;
  width: 100%;
  height: 110%;
  max-width: none;
  object-fit: cover;
  object-position: var(--photo-focus, 50% 50%);
}

.milestone-animated .milestone-photo img { transform: translateY(var(--photo-shift, 0%)); }

.milestone-zoom {
  position: absolute;
  display: grid;
  place-items: center;
  z-index: 1;
  right: 12px;
  top: 12px;
  width: 43px;
  height: 43px;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid #fff7;
  background: #0b0b21b8;
  color: #fff;
  font: 22px/1 'Segoe UI Symbol', sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.milestone-photo:is(:hover, :focus-visible) .milestone-zoom { opacity: 1; }

.milestones .milestone-photo[data-full-frame] { aspect-ratio: auto; }

.milestones .milestone-photo[data-full-frame] img {
  position: static;
  height: auto;
  object-fit: contain;
  transform: none;
}

.milestone-photo[data-full-frame] .milestone-zoom {
  top: auto;
  bottom: 12px;
}

.milestone-figure figcaption {
  display: grid;
  margin: 0;
  color: #f8edf5;
  gap: 5px;
  line-height: 1.42;
  padding: clamp(12px, 1.7vw, 23px) 0 0;
}

.milestone-figure figcaption strong {
  font-size: clamp(17px, 2vw, 31px);
  line-height: 1.35;
  letter-spacing: -.014em;
}

.milestone-figure figcaption span {
  color: #e3d1e5;
  font-size: clamp(12px, 1.15vw, 15px);
}

.milestone-dat-xanh .milestone-photo { aspect-ratio: 1.22; --photo-focus: 52% 60%; }

.milestone-regal {
  --chapter-accent: var(--blue);
  --chapter-light: #3165ce57;
  background: radial-gradient(ellipse at 12% 36%, #19346f 0%, transparent 60%),
    linear-gradient(158deg, #160f24, #11162e 45%, #132635);
}

.milestone-kicker {
  margin: 23px 0 0;
  color: #dce7f9;
  max-width: 47ch;
}

.milestone-awards {
  display: grid;
  gap: clamp(44px, 8vw, 108px);
}

.milestone-awards .milestone-figure {
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(165px, 28%);
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.milestone-awards .milestone-photo {
  grid-column: 1;
  grid-row: 1;
  background: #182841;
}

.milestone-awards .milestone-lead-award {
  justify-self: end;
  grid-template-columns: minmax(165px, 28%) minmax(0, 1fr);
}

.milestone-lead-award .milestone-photo { grid-column: 2; }

.milestone-awards figcaption {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(14px, 2.2vw, 28px);
  border: 1px solid #d8edff58;
  border-radius: 12px;
  background: #111e37ed;
}

.milestone-awards .milestone-lead-award figcaption {
  grid-column: 1;
  background: #281835ed;
}

.milestone-awards figcaption time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  margin-bottom: 4px;
}

.milestone-lead-award figcaption time { color: #f3bdff; }

.milestone-prizes {
  --chapter-accent: var(--teal);
  --chapter-light: #2bba9750;
  background: radial-gradient(ellipse at 72% 28%, #2551498a, transparent 57%),
    linear-gradient(153deg, #132635, #10262b 55%, #24172e);
}

.milestone-people {
  --chapter-accent: var(--rose);
  --chapter-light: #d84d9960;
  background: radial-gradient(ellipse at 87% 28%, #752b597a, transparent 58%),
    linear-gradient(165deg, #132635, #24172e 49%, #271124);
}

.milestone-event-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 55px);
  align-items: start;
  margin-bottom: clamp(36px, 6vw, 90px);
}

.milestone-office { margin-top: clamp(20px, 5vw, 68px); }

.milestone-event-grid.milestone-prize-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.milestone-wellness {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 980px);
}

.milestone-people-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3.5vw, 55px);
  align-items: start;
}

.milestone-share { grid-column: 1 / 6; grid-row: 1; }
.milestone-team { grid-column: 6 / -1; grid-row: 1 / 3; margin-top: clamp(40px, 7vw, 107px); }
.milestone-meet { grid-column: 2 / 6; grid-row: 2; }
.milestone-panorama { grid-column: 1 / -1; grid-row: 3; }
.milestone-team .milestone-photo { aspect-ratio: 1.49; --photo-focus: 51% 57%; }

.milestone-end {
  position: relative;
  isolation: isolate;
  background: #160e20;
}

.milestone-end .milestone-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(30px, 6vw, 78px);
}

.milestone-end a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: clamp(17px, 2.2vw, 30px);
  font-weight: 650;
  color: #ffdef1;
  text-underline-offset: 5px;
}

.milestone-end button {
  min-height: 44px;
  padding: 8px 13px;
  color: #f7ddeb;
  background: none;
  border: 1px solid #ecc8e56e;
  border-radius: 6px;
  font-size: 13px;
}

.milestone-reveal [data-reveal] {
  transition: opacity 760ms cubic-bezier(.22, .6, .36, 1), transform 930ms cubic-bezier(.22, .6, .36, 1);
}

.milestone-reveal [data-reveal]:not(.is-revealed):not(:focus-within) {
  opacity: 0;
  transform: translateY(35px);
}

.milestone-reveal :is(.milestone-indochine, .milestone-team) { transition-delay: 105ms; }

@media (min-width: 701px) {
  .milestone-reveal :is(.milestone-dat-xanh, .milestone-share):not(.is-revealed):not(:focus-within) {
    transform: translate(-20px, 24px);
  }
  .milestone-reveal :is(.milestone-indochine, .milestone-team):not(.is-revealed):not(:focus-within) {
    transform: translate(20px, 30px);
  }
  .milestone-reveal .milestone-awards [data-reveal]:not(.is-revealed):not(:focus-within) {
    transform: translateY(30px) scale(.975);
  }
}

@media (max-width: 700px) {
  .milestones { --flow-depth: clamp(74px, 21vw, 125px); }
  .milestone-inner { width: calc(100% - 38px); }
  .milestone-hero {
    display: block;
    min-height: 0;
    background: radial-gradient(ellipse at 15% 75%, #431e58, transparent 78%), #0a0919;
  }
  .milestone-hero-image { margin: 0; box-shadow: none; }
  .milestones .milestone-hero-image .milestone-photo { border-radius: 0; }
  .milestone-hero-glow { width: 120vw; top: 42%; height: 56%; left: -34%; }
  .milestone-hero-copy { padding: 19px 19px 21px; }
  .milestones .milestone-label { margin-bottom: 12px; }
  .milestones h1 { font-size: clamp(59px, 13vw, 89px); }
  .milestone-hero-intro { margin-block: 15px 12px; }
  .milestone-hero-bar { min-height: 54px; gap: 9px; }
  .milestone-hero-bar p { max-width: 26ch; }
  .milestone-chapter { padding-block: 66px; }
  .milestones h2 { font-size: clamp(42px, 9.3vw, 65px); }
  .milestone-years { gap: 12px; }
  .milestone-years time { font-size: clamp(30px, 9.5vw, 52px); }
  .milestone-origins-grid { gap: 24px; grid-template-columns: minmax(0, 1fr); }
  .milestone-dat-xanh { margin-top: 0; }
  .milestone-awards .milestone-figure { display: block; }
  .milestone-awards .milestone-figure figcaption {
    padding: 14px 0 0;
    background: transparent;
    border: 0;
  }
  .milestone-event-grid, .milestone-event-grid.milestone-prize-grid, .milestone-people-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .milestone-office { margin-top: 0; }
  .milestone-people-grid .milestone-figure { grid-area: auto; margin: 0; }
  .milestone-end .milestone-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .milestones *, .milestones *::before, .milestones *::after {
    animation: none !important;
    transition: none !important;
  }
}
