@font-face {
  font-family: Fraunces;
  src: url("./assets/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("./assets/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101a29;
  --snow: #fff5e8;
  --mist: #d3ddea;
  --raspberry: #f6b4c4;
  --paper: #ffe9cc;
  --body: "DM Sans", Arial, sans-serif;
  --display: Fraunces, Georgia, serif;
  --margin: clamp(1.25rem, 6.2vw, 7rem);
  --safe-top: max(env(safe-area-inset-top), 1rem);
  --safe-bottom: max(env(safe-area-inset-bottom), 1rem);
  font-family: var(--body);
  font-synthesis: none;
  color: var(--snow);
  background: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 0; margin: 0; }
button, a { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #fff0c8;
  outline-offset: 5px;
}
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-head {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(var(--safe-top) + .7rem) var(--margin) .5rem;
}

.wordmark {
  color: var(--snow);
  font: 570 clamp(1.5rem, 2.65vw, 2.2rem)/1 var(--display);
  letter-spacing: -.065em;
  text-decoration: none;
  text-shadow: 0 .1rem .8rem #0e17269a;
}

.wordmark span { color: var(--raspberry); }

.skip-link, .scroll-link, .scene-next {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
  color: var(--snow);
  font-size: .83rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .38rem;
  text-decoration-color: #fff5e88c;
}

.skip-link { text-shadow: 0 .1rem .8rem #0e1726cc; }
.skip-link:hover, .scroll-link:hover, .scene-next:hover { text-decoration-color: currentColor; }

.summit, .breath {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
}

.summit { background: #294458; }

.summit-photo, .summit-wash, .breath-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.summit-photo img, .breath-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summit-photo {
  inset-block: -4.5%;
  transform: translate3d(0, var(--summit-shift, 0px), 0);
}

.summit-photo img {
  object-position: 51% 47%;
  filter: saturate(.89) contrast(1.02);
}

.summit-wash {
  z-index: -1;
  background:
    linear-gradient(180deg, #0a152593 0%, #101a2a20 19%, transparent 43%, #0b142515 52%, #0a142887 76%, #0c1629f2 100%),
    linear-gradient(90deg, #12192cca, #0c15288a 31%, #0b142526 51%, transparent 69%);
}

.summit-wash::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse 48% 42% at var(--view-x, 59%) var(--view-y, 39%), #f6d8cf3b, transparent 82%);
  mix-blend-mode: screen;
}

.summit-copy {
  width: min(51rem, 63%);
  margin: 0 0 clamp(3.8rem, 10svh, 8rem) var(--margin);
  padding-top: 6rem;
}

.summit-copy h1, .breath-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 550;
  letter-spacing: -.065em;
  line-height: .9;
  text-wrap: balance;
}

.summit-copy h1 { font-size: clamp(4rem, min(9vw, 14svh), 9rem); }
.summit-copy h1 em, .breath-copy h2 em {
  color: var(--raspberry);
  font-weight: 420;
}

.summit-copy h1 em { white-space: normal; }

.summit-copy p, .breath-copy p {
  max-width: 37ch;
  margin: clamp(.85rem, 3.2vh, 1.65rem) 0 0;
  color: var(--mist);
  font-size: clamp(.92rem, 1.45vw, 1.15rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.summit-copy .scroll-link { margin-top: .75rem; }
.scroll-link::after {
  display: inline-block;
  width: .4rem;
  height: .4rem;
  margin-left: .7rem;
  border: 1px solid var(--raspberry);
  border-radius: 50%;
  content: "";
}

.achievement {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #101a2b;
}

.has-motion .achievement { min-height: 145svh; }

.achievement-stage {
  --digit: clamp(4.55rem, min(27vw, 32svh), 17.6rem);
  --figure-center: 43%;
  --caption-start: calc(var(--figure-center) + var(--digit) * .49 + clamp(.85rem, 3vw, 2rem));
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 28rem;
  overflow: clip;
  background:
    radial-gradient(ellipse 77% 68% at 50% 40%, #24364f 0%, #14243a 50%, transparent 92%),
    linear-gradient(167deg, #111b30, #0c1423);
}

.has-motion .achievement-stage { position: sticky; inset-block-start: 0; }

.achievement-stage::before {
  position: absolute;
  z-index: -1;
  inset: -10%;
  background: repeating-radial-gradient(ellipse 70% 42% at 50% 56%, transparent 0 2.45rem, #cbd6f42b 2.46rem, transparent 2.54rem 4.45rem);
  opacity: .21;
  pointer-events: none;
  content: "";
  -webkit-mask-image: linear-gradient(black, #0008 50%, transparent 90%);
  mask-image: linear-gradient(black, #0008 50%, transparent 90%);
}

.article-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.achievement-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: var(--caption-start) repeat(3, auto);
  align-content: start;
  justify-content: center;
  align-items: center;
  gap: .45rem .8rem;
  padding: 0 var(--margin) var(--safe-bottom);
  text-align: center;
  pointer-events: none;
}

.article-number {
  position: absolute;
  inset-block-start: var(--figure-center);
  inset-inline-start: 50%;
  width: max-content;
  max-width: 100%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--digit);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .82;
  white-space: nowrap;
}

.article-number > span:not(.sr-only) { font: inherit; letter-spacing: inherit; }
.achievement-stage.is-animated .article-number {
  color: transparent;
  -webkit-text-stroke: 1px #ffe7ca43;
}

.article-label, .article-line {
  grid-column: 1 / -1;
  margin: 0;
}

.article-label {
  grid-row: 2;
  color: #e7d6db;
  font-size: clamp(.72rem, 1.25vw, .87rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.article-line {
  grid-row: 3;
  margin: .25rem 0 .8rem;
  color: var(--snow);
  font: 520 clamp(1.3rem, 2.55vw, 2.2rem)/1.17 var(--display);
  letter-spacing: -.038em;
  text-wrap: balance;
}

.motion-button, .bloom-button {
  display: inline-flex;
  width: fit-content;
  min-height: 2.95rem;
  align-items: center;
  justify-content: center;
  padding: .56rem 1.1rem;
  border: 1px solid #f9c9d9;
  border-radius: 999px;
  color: #273247;
  background: #f9c9d9;
  font-weight: 750;
  font-size: .81rem;
  line-height: 1.2;
  transition: background-color 230ms ease, border-color 230ms ease, color 230ms ease, transform 230ms ease;
}

.motion-button:hover, .bloom-button:hover {
  transform: translateY(-2px);
  border-color: #ffdee6;
  background: #ffdee6;
}

.motion-button, .scene-next { pointer-events: auto; }
.motion-button { grid-area: 4 / 1; justify-self: end; }
.scene-next { grid-area: 4 / 2; justify-self: start; text-align: left; }
.motion-button[hidden] + .scene-next { grid-column: 1 / -1; justify-self: center; }

.breath {
  align-items: center;
  background: #111c37;
}

.breath-image {
  inset-block: -3%;
  transform: translate3d(0, var(--breath-shift, 0px), 0) scale(1);
  transition: transform 1.4s cubic-bezier(.2,.75,.25,1);
}

.breath-image img {
  object-position: 65% 53%;
  filter: saturate(.9) contrast(1.025);
  transition: filter 1.2s ease;
}

.breath::before, .breath::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
}

.breath::before {
  background:
    linear-gradient(90deg, #111a33f4, #121b37d6 26%, #15223763 54%, #1d2b470a 80%),
    linear-gradient(180deg, #0c1425b5 0%, transparent 26%, transparent 64%, #111c359e);
}

.breath::after {
  opacity: .46;
  background: radial-gradient(ellipse 54% 46% at var(--breath-x, 67%) var(--breath-y, 43%), #ffb5e44a 0%, #b394ff28 38%, transparent 85%);
  mix-blend-mode: screen;
  transition: opacity 1.35s ease;
}

.breath-copy {
  position: relative;
  width: min(42rem, 54%);
  margin: 4.5rem 0 5rem var(--margin);
  padding-bottom: var(--safe-bottom);
}

.breath-copy h2 { font-size: clamp(3.65rem, min(7.85vw, 12svh), 7.65rem); }
.breath-copy .bloom-button { margin-top: 1.4rem; }
.breath-copy .bloom-note { margin-top: 1.2rem; }

.bloom-note p { margin: .5rem 0 0; color: var(--snow); }
.bloom-note a { display: inline-flex; width: fit-content; align-items: center; min-height: 2.75rem; margin-top: .35rem; font-size: .83rem; font-weight: 650; text-underline-offset: .32rem; }
.bloom-signoff { display: flex; align-items: center; gap: 1.25rem; }
.sleeping-rabbit {
  position: relative;
  align-self: end;
  width: 2rem;
  height: 1.1rem;
  margin-bottom: .48rem;
  border-radius: 66% 52% 44% 38%;
  background: #f8e4ed;
  box-shadow: 3px 2px 0 -1px #e5b2c7;
  transform: rotate(-6deg);
}
.sleeping-rabbit::before {
  position: absolute;
  bottom: 45%;
  left: .5rem;
  width: .4rem;
  height: 1.03rem;
  border: 2px solid #f8e4ed;
  border-radius: 70% 70% 50% 50%;
  background: #e5a5c0;
  box-shadow: .39rem -.04rem 0 -.015rem #f8e4ed;
  content: "";
  transform: rotate(24deg);
  transform-origin: 25% 100%;
}
.sleeping-rabbit::after {
  position: absolute;
  right: -3px;
  bottom: 3px;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #fff1f7;
  content: "";
}
.sleeping-rabbit i {
  position: absolute;
  top: .45rem;
  left: .32rem;
  width: .3rem;
  height: .18rem;
  border-bottom: 1px solid #6d4a68;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .is-bloomed .sleeping-rabbit::before { animation: rabbit-ear 1s .45s ease-in-out both; }
  @keyframes rabbit-ear { 50% { transform: rotate(8deg); } }
}
.breath.is-bloomed .breath-image { transform: translate3d(0, var(--breath-shift, 0px), 0) scale(1.055); }
.breath.is-bloomed .breath-image img { filter: saturate(1.13) brightness(1.13); }
.breath.is-bloomed::after { opacity: .93; }
.breath.is-bloomed .bloom-note { animation: uncover 650ms cubic-bezier(.21,.74,.32,1) both; }

.bloom-petals {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  mix-blend-mode: screen;
}

.bloom-petal {
  position: absolute;
  top: var(--petal-y, 65%);
  left: var(--petal-x, 72%);
  width: var(--petal-size, 12px);
  aspect-ratio: 1.33;
  border-radius: 69% 31% 66% 34% / 63% 51% 49% 37%;
  background: radial-gradient(ellipse at 29% 30%, #ffefd8, #eda9c7 57%, #9b72b6 88%);
  box-shadow: 0 0 .55rem #fbcbe37a;
  opacity: 0;
  animation: petal-rise 1.65s var(--petal-wait, 0ms) cubic-bezier(.2,.69,.31,1) both;
}

@keyframes petal-rise {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-16deg) scale(.25); }
  23% { opacity: .9; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--petal-drift, 0px)), calc(-50% + var(--petal-rise, -95px))) rotate(var(--petal-tilt, 33deg)) scale(.53); }
}

@keyframes uncover {
  from { opacity: 0; transform: translateY(.55rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 56rem) {
  .summit-copy { width: min(46rem, 57%); }
  .summit-copy h1 { max-width: 8.2ch; }
}

@media (max-width: 45rem) {
  .summit-photo img { object-position: 53% 44%; }

  .summit-wash {
    background:
      linear-gradient(180deg, #0b172586 0%, #0b172521 24%, transparent 37%, #0b142530 49%, #0b1425a0 67%, #0b1429ef 94%),
      linear-gradient(90deg, #0e192e31, transparent 62%);
  }

  .summit-copy {
    width: auto;
    margin: 0 var(--margin) calc(var(--safe-bottom) + 2.1rem);
  }

  .summit-copy h1 { max-width: 11ch; font-size: clamp(3.1rem, 12.7vw, 5.65rem); }
  .summit-copy p, .breath-copy p { margin-top: .8rem; }
  .summit-copy .scroll-link { margin-top: .4rem; }
  .achievement-stage { --figure-center: 42%; }
  .achievement-copy { gap: .52rem .65rem; }
  .article-line { margin-bottom: .7rem; }

  .breath { align-items: end; }

  .breath-image img {
    object-position: 66% 36%;
  }

  .breath::before {
    background:
      linear-gradient(180deg, #121c35a9 0%, #111b311a 24%, #111b3422 42%, #111a36c4 68%, #10182efb 100%),
      linear-gradient(90deg, #111b3336, transparent 74%);
  }

  .breath-copy {
    width: auto;
    margin: 0 var(--margin) calc(var(--safe-bottom) + 2.2rem);
    padding-top: 40svh;
    padding-bottom: 0;
  }

  .breath-copy h2 { font-size: clamp(2.7rem, 11.4vw, 5.55rem); }
  .breath-copy .bloom-button { margin-top: 1rem; }
}

@media (max-width: 23rem) {
  .summit-copy h1 { font-size: clamp(2.85rem, 12.8vw, 3.5rem); }
  .achievement-copy { padding-inline: 1rem; }
  .motion-button { padding-inline: .8rem; }
  .scene-next { font-size: .76rem; }
}

@media (max-height: 37rem) and (orientation: landscape) {
  .summit, .achievement-stage, .breath { min-height: max(28rem, 100svh); }
  .has-motion .achievement { min-height: 0; }
  .has-motion .achievement-stage { position: relative; }
  .summit-copy { margin-bottom: 2.65rem; }
  .summit-copy h1, .breath-copy h2 { font-size: clamp(2.8rem, 8.5vw, 5.8rem); }
  .achievement-stage { --figure-center: 35%; --digit: clamp(4rem, 23svh, 9rem); }
  .breath-copy { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .summit-photo, .breath-image, .breath.is-bloomed .breath-image { transform: none; }
  .summit-wash::after { background-position: initial; }
  .has-motion .achievement { min-height: 100svh; }
  .has-motion .achievement-stage { position: relative; }
  .article-canvas { display: none; }
  .bloom-petals { display: none; }
  .achievement-stage.is-animated .article-number { color: var(--paper); -webkit-text-stroke: 0; }
  .motion-button, .bloom-button, .breath-image, .breath-image img, .breath::after { transition: none; }
  .breath.is-bloomed .bloom-note { animation: none; }
}
