@font-face {
  font-family: Bodoni;
  src: url('/fonts/editorial-bodoni.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

.time {
  --gold: #dfbd78;
  --rule: #eee5d56b;
  --serif: "Songti SC", STSong, Editorial, SimSun, serif;
  background: var(--blue);
  color: var(--paper);
  font-family: var(--serif);
}
.time-stage {
  position: relative;
  max-width: 1920px;
  margin: auto;
  padding: 2rem 6% 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.age {
  width: max-content;
  margin: 0 auto .12em;
  padding-right: .075em;
  color: var(--gold);
  font: 400 clamp(125px, 34vw, 430px)/.86 Bodoni, Georgia, serif;
  font-variation-settings: "opsz" 18;
  letter-spacing: -.075em;
  white-space: nowrap;
}
.age small {
  display: inline-block;
  margin-left: .18em;
  font: 400 .085em/1 var(--serif);
  letter-spacing: 0;
}
.hourglass-frame {
  width: min(66%, 430px);
  margin: 0;
  aspect-ratio: 1190 / 1322;
}
.hourglass { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hourglass > img { display: block; width: 100%; height: auto; }
.hourglass-motion { position: absolute; inset: 0 0 auto; aspect-ratio: 1190 / 1155; }
/* The frozen still supplies the lower edge below the top-aligned R2 crop. */
.hourglass:has(.living-portrait) > img { clip-path: inset(calc(100% * 1155 / 1322 - 1px) 0 0); }
.time-opening { margin: 22px 0 0; font-size: clamp(39px, 6.2vw, 90px); }
.time-opening h2 { font-size: inherit; font-weight: 500; line-height: 1.25; }
.time-lead { display: block; font-size: .53em; font-weight: 400; letter-spacing: .22em; }
.time-opening strong { display: block; white-space: nowrap; }
.time-question {
  margin-top: .8em;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  color: var(--gold);
  font: 400 clamp(16px, 1.7vw, 25px)/1.6 var(--serif);
}
.time-cue { display: none; }
.time-reading { margin-top: 65px; }
.time-eyebrow { margin-bottom: 15px; color: var(--gold); font: 12px var(--sans); letter-spacing: .2em; }
.time-reading h2 { font-size: clamp(26px, 3.5vw, 52px); font-weight: 500; line-height: 1.35; letter-spacing: .02em; }
.time-reading em { color: var(--gold); font-style: normal; }
.time-essay { max-width: 36em; margin-top: 22px; font-size: clamp(16px, 1.55vw, 23px); line-height: 1.85; }
.time-facts { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px 5%; margin-top: 34px; border-top: 1px solid var(--rule); padding-top: 20px; }
.time-metric { --metric-size: clamp(60px, 9.4vw, 135px); }
.time-metric .near { display: block; margin-bottom: 7px; color: var(--gold); font-size: clamp(13px, 1.1vw, 16px); }
.time-metric strong { color: var(--gold); font: 400 var(--metric-size)/.9 Bodoni, Georgia, serif; font-variation-settings: "opsz" 18; letter-spacing: -.065em; white-space: nowrap; }
.time-metric strong span { margin-left: .32em; color: var(--paper); font: 400 clamp(17px, 2vw, 30px) var(--serif); letter-spacing: 0; }
.time-metric p { margin-top: 8px; font-size: clamp(13px, 1.2vw, 17px); line-height: 1.5; }
.time-followers { margin-top: 48px; --metric-size: clamp(48px, 6.9vw, 99px); }
.time-event { grid-column: 1 / -1; margin-top: 12px; border-top: 1px solid #eee5d54d; padding-top: 14px; font-size: clamp(14px, 1.28vw, 19px); line-height: 1.7; }
.time-exit {
  margin: 45px -6.82% 0;
  padding: 26px 6vw;
  background: var(--red);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: .12em;
  text-align: right;
}

@media (min-width: 768px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  .scroll-stage .mast-shell { position: sticky; top: 0; }
  .scroll-stage .mast {
    height: calc(max(760px, 100svh) * .11 - var(--mast-lift, 0px));
    opacity: calc(1 - var(--closing-mast, 0));
    --mast-light: color-mix(in srgb, var(--paper), #f2e6d2 var(--thought-mast, 0%));
    --mast-light-rule: color-mix(in srgb, #eee5d56b, #ad8292 var(--thought-mast, 0%));
    --mast-ink-base: color-mix(in srgb, color-mix(in srgb, var(--ink), var(--mast-light) var(--mast-blue, 0%)), var(--ink) var(--method-mast-olive, 0%));
    --mast-accent-base: color-mix(in srgb, color-mix(in srgb, var(--red), var(--mast-light) var(--mast-blue, 0%)), var(--ink) var(--method-mast-olive, 0%));
    --mast-rule-base: color-mix(in srgb, color-mix(in srgb, #25252555, var(--mast-light-rule) var(--mast-blue, 0%)), #25252555 var(--method-mast-olive, 0%));
    --mast-ink: color-mix(in srgb, color-mix(in srgb, var(--mast-ink-base), #4d342b var(--coffee-mast, 0%)), #29251f var(--off-mast, 0%));
    --mast-accent: color-mix(in srgb, color-mix(in srgb, var(--mast-accent-base), #80552f var(--coffee-mast, 0%)), #4d342b var(--off-mast, 0%));
    --mast-rule: color-mix(in srgb, color-mix(in srgb, var(--mast-rule-base), #bca88d var(--coffee-mast, 0%)), #29251f55 var(--off-mast, 0%));
  }
  .scroll-stage .time { height: calc(100svh + var(--chapter-travel, 145svh)); }
  .scroll-stage .time-stage { position: sticky; top: 0; max-width: none; height: 100svh; padding: 0; overflow: clip; isolation: isolate; container-type: size; }
  .scroll-stage .age {
    position: absolute;
    left: 36.6%;
    top: 12.4%;
    margin: 0;
    font-size: min(34.8cqw, 60cqh);
    transform-origin: top left;
    transform: translate(calc(-28.6cqw * var(--shift)), calc(9.8cqh * var(--shift))) scale(calc(1 - .64 * var(--shift)));
  }
  .scroll-stage .hourglass-frame {
    position: absolute;
    z-index: 1;
    left: 7%;
    bottom: 0;
    width: min(28cqw, 49cqh);
    opacity: var(--portrait-in);
    transform-origin: bottom left;
    transform: translate(calc(1.2cqw * var(--shift)), calc(28px * (1 - var(--portrait-in)))) scale(calc(1 - .22 * var(--shift)));
  }
  .scroll-stage .hourglass-frame[data-inactive] .hourglass { display: none; }
  .scroll-stage .time-opening { position: absolute; z-index: 2; left: 48%; right: 5%; bottom: 13%; margin: 0; font-size: min(6.2cqw, 10cqh); }
  .scroll-stage .time-question { font-size: min(1.7cqw, 2.8cqh); }
  .scroll-stage .time-cue { display: block; position: absolute; bottom: 4%; right: 5.5%; opacity: var(--cue); font: 12px var(--sans); letter-spacing: .15em; }
  .scroll-stage .time-reading { position: absolute; z-index: 3; left: 38%; right: 6%; top: 16%; margin: 0; }
  .scroll-stage .time-eyebrow { margin-bottom: 1.5cqh; }
  .scroll-stage .time-reading h2 { font-size: min(3.4cqw, 5.5cqh); }
  .scroll-stage .time-essay { margin-top: 2cqh; font-size: min(1.55cqw, 2.5cqh); line-height: 1.75; }
  .scroll-stage .time-facts { margin-top: 3.6cqh; padding-top: 2cqh; row-gap: 1.6cqh; }
  .scroll-stage .time-brands { --metric-size: min(9.4cqw, 15cqh); }
  .scroll-stage .time-followers { margin-top: 5.2cqh; --metric-size: min(6.9cqw, 11cqh); }
  .scroll-stage .time-metric strong span { font-size: min(2cqw, 3.2cqh); }
  .scroll-stage .time-metric p { font-size: clamp(12px, min(1.2cqw, 1.95cqh), 19px); }
  .scroll-stage .time-event { margin-top: 1cqh; padding-top: 1.6cqh; font-size: clamp(13px, min(1.28cqw, 2.1cqh), 20px); }
  .scroll-stage .time-exit {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin: 0;
    padding: 4cqh 5.5cqw;
    transform: translateY(calc(100% * (1 - var(--exit))));
  }
}

@media (max-width: 767px) {
  .age { font-size: clamp(125px, 60vw, 290px); }
  .hourglass-frame { max-width: 300px; }
  .time-opening { font-size: clamp(39px, 10vw, 65px); }
  .time-lead { font-size: .62em; }
  .time-essay { font-size: 17px; }
  .time-facts { grid-template-columns: 1fr; gap: 24px; }
  .time-followers { margin-top: 0; margin-left: 20%; }
  .time-event { margin-top: 0; }
}
