/* =========================================================
   MEDSIERRA — OCTOBER (GOLDEN FOREST HALLOWEEN)
   Consolidated replacement stylesheet.
   Palette taken from a golden autumn forest photo.
   Works with the existing medsierra-login.js unchanged:
   every class / id the script reads or writes is kept.
   ========================================================= */

/* LOCAL FONTS
   Absolute paths so they match the <link rel="preload"> URLs. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/legacy/wp-content/mu-plugins/medsierra-login/fonts/inter-medsierra.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/legacy/wp-content/mu-plugins/medsierra-login/fonts/playfair-med.woff2") format("woff2");
}

/* BASE */

:root {
  color-scheme: dark;

  /* Autumn forest palette */
  --ink: #fff4e2;
  --night: #2a0f05;
  --cream: #fbd8a9;
  --glow: #ffda89;
  --gold: #f2a04b;
  --amber: #e18c3e;
  --orange: #dc7a31;
  --burnt: #c36226;
  --rust: #a44c1c;
  --brown: #763d1a;
  --bark: #3e1104;

  --login-x: 0px;
  --login-y: 0px;
  --login-press: 1;
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background: var(--night);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--night);
  scrollbar-color: var(--burnt) var(--night);
  scrollbar-width: thin;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--night);
  overflow-x: hidden;
}

html.v34-scroll-shell {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
}

html.v34-scroll-shell body {
  overflow-y: visible;
  overscroll-behavior-y: none;
  touch-action: pan-y pinch-zoom;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 5px;
}

.journey {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 5200vh;
  overflow: visible;
  touch-action: pan-y pinch-zoom;
}

.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  perspective: none;
  transform-style: flat;
  transform-origin: 50% 50%;
  contain: layout paint style;
  backface-visibility: hidden;
  background: var(--night);
}

.scroll-track {
  display: none;
}

/* DAY SKY — golden light like the end of a forest path */

.sky {
  position: absolute;
  inset: -3%;
  z-index: -12;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 24% 30%,
      rgba(255, 230, 160, .55),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      #b85a22 0%,
      #d4732e 22%,
      #e69440 46%,
      #f3b562 70%,
      #ffd98e 100%
    );
  transform: translate3d(0, 0, 0) scale(1.14);
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 80% 20%,
      rgba(255, 220, 150, .22),
      transparent 40%
    ),
    radial-gradient(
      ellipse at 10% 72%,
      rgba(255, 214, 140, .28),
      transparent 48%
    );
  pointer-events: none;
}

.sky .sun-glow {
  position: absolute;
  left: 6%;
  top: 4%;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 200, .5),
    rgba(255, 210, 130, .16) 42%,
    transparent 68%
  );
}

/* Soft diagonal light shafts, like sun through the trees */
.sky .sun-shafts {
  position: absolute;
  left: -10%;
  top: -10%;
  width: 80%;
  height: 90%;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 70px,
    rgba(255, 236, 190, .13) 70px 110px,
    transparent 110px 170px
  );
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 65%);
  mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 65%);
}

.twilight-wash,
.night-sky,
.night-mountain-veil {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  backface-visibility: hidden;
}

/* Sunset: deep amber and rust */
.twilight-wash {
  z-index: -11;
  background:
    radial-gradient(
      ellipse at 78% 58%,
      rgba(255, 170, 70, .50),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 50% 36%,
      rgba(200, 90, 30, .22),
      transparent 50%
    ),
    linear-gradient(
      180deg,
      rgba(110, 40, 12, .30),
      rgba(190, 85, 30, .34) 58%,
      rgba(240, 150, 60, .34)
    );
}

/* Halloween night: dark bark brown with an ember glow on the horizon */
.night-sky {
  z-index: -10;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 68% 18%,
      rgba(255, 200, 120, .10),
      transparent 36%
    ),
    linear-gradient(180deg, #1a0904 0%, #2e1208 40%, #58230c 74%, #8e3c13 100%);
}

.night-sky::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 18%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 70%,
    rgba(240, 130, 50, .30),
    rgba(200, 90, 30, .10) 48%,
    transparent 72%
  );
  pointer-events: none;
}

/* Floating sky lanterns — night only, warm amber */
.sky-lanterns {
  position: absolute;
  inset: 0;
}

.sky-lanterns i {
  --x: 10%;
  --drift: 30px;
  --dur: 26s;
  --delay: 0s;
  --s: 1;
  position: absolute;
  left: var(--x);
  bottom: 42%;
  width: 14px;
  height: 18px;
  border-radius: 45% 45% 30% 30% / 35% 35% 25% 25%;
  background: linear-gradient(180deg, #fff1cf, #ffc66b 55%, #e2792e);
  box-shadow:
    0 0 10px 3px rgba(255, 190, 90, .6),
    0 0 26px 8px rgba(230, 120, 40, .25);
  opacity: 0;
  animation: lanternRise var(--dur) linear var(--delay) infinite;
}

.sky-lanterns i:nth-child(1) { --x: 7%;  --drift: 40px;  --dur: 24s; --delay: -2s;  --s: 1; }
.sky-lanterns i:nth-child(2) { --x: 17%; --drift: -24px; --dur: 30s; --delay: -14s; --s: .7; }
.sky-lanterns i:nth-child(3) { --x: 28%; --drift: 30px;  --dur: 27s; --delay: -8s;  --s: .85; }
.sky-lanterns i:nth-child(4) { --x: 72%; --drift: -18px; --dur: 33s; --delay: -21s; --s: .65; }
.sky-lanterns i:nth-child(5) { --x: 84%; --drift: 26px;  --dur: 29s; --delay: -5s;  --s: .9; }
.sky-lanterns i:nth-child(6) { --x: 93%; --drift: -30px; --dur: 25s; --delay: -17s; --s: .75; }

@keyframes lanternRise {
  0% {
    transform: translate3d(0, 0, 0) scale(var(--s));
    opacity: 0;
  }
  8% {
    opacity: .9;
  }
  70% {
    opacity: .8;
  }
  100% {
    transform: translate3d(var(--drift), -62vh, 0) scale(calc(var(--s) * .55));
    opacity: 0;
  }
}

/* At night the mountains sink into warm dark brown */
.night-mountain-veil {
  z-index: 3;
  background: linear-gradient(
    180deg,
    transparent 0 31%,
    rgba(40, 12, 3, .10) 42%,
    rgba(40, 12, 3, .32) 71%,
    rgba(30, 9, 2, .55) 100%
  );
}

.contours {
  position: absolute;
  inset: 0;
  z-index: -9;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 236, 200, .24);
  stroke-width: 1.2;
  stroke-dasharray: 2 7;
  pointer-events: none;
  transform: scale(1.08);
}

.contours path {
  vector-effect: non-scaling-stroke;
}

/* STAR FIELDS — warm candlelight tones */

.stars {
  position: absolute;
  inset: 0;
  z-index: -8;
  opacity: .04;
  pointer-events: none;
}

.stars::before,
.stars::after,
.star-dust,
.star-glints {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: #fff1d6;
  pointer-events: none;
}

.stars::before,
.stars::after {
  content: "";
}

.stars::before {
  width: 2px;
  height: 2px;
  opacity: .8;
  box-shadow:
    4vw 9vh #fff1d6,
    12vw 23vh #ffda89,
    17vw 7vh #fbd8a9,
    24vw 17vh #fff1d6,
    31vw 31vh #ffda89,
    35vw 6vh #fbd8a9,
    43vw 15vh #fff1d6,
    47vw 34vh #ffda89,
    55vw 8vh #fbd8a9,
    61vw 21vh #fff1d6,
    66vw 34vh #ffda89,
    73vw 6vh #fbd8a9,
    77vw 18vh #fff1d6,
    84vw 29vh #ffda89,
    89vw 10vh #fbd8a9,
    95vw 24vh #fff1d6,
    8vw 38vh #ffda89,
    22vw 42vh #fbd8a9,
    40vw 43vh #fff1d6,
    58vw 46vh #ffda89,
    71vw 41vh #fbd8a9,
    91vw 45vh #fff1d6;
}

.stars::after {
  opacity: .65;
  box-shadow:
    7vw 14vh #fff1d6,
    14vw 33vh #ffda89,
    20vw 11vh #fbd8a9,
    28vw 25vh #fff1d6,
    38vw 20vh #ffda89,
    49vw 9vh #fbd8a9,
    52vw 29vh #fff1d6,
    64vw 13vh #ffda89,
    70vw 27vh #fbd8a9,
    81vw 8vh #fff1d6,
    87vw 21vh #ffda89,
    97vw 14vh #fbd8a9,
    3vw 30vh #fff1d6,
    33vw 39vh #ffda89,
    46vw 39vh #fbd8a9,
    63vw 40vh #fff1d6,
    79vw 37vh #ffda89,
    94vw 36vh #fbd8a9;
}

.star-dust {
  opacity: .55;
  box-shadow:
    68vw 8vh #fff1d6,
    33vw 52vh #fbd8a9,
    42vw 48vh #ffda89,
    32vw 33vh #fff1d6,
    39vw 25vh #fbd8a9,
    31vw 40vh #ffda89,
    72vw 47vh #fff1d6,
    62vw 6vh #fbd8a9,
    37vw 5vh #ffda89,
    26vw 16vh #fff1d6,
    79vw 41vh #fbd8a9,
    52vw 5vh #ffda89,
    40vw 38vh #fff1d6,
    49vw 38vh #fbd8a9,
    19vw 47vh #ffda89,
    28vw 29vh #fff1d6,
    8vw 22vh #fbd8a9,
    7vw 46vh #ffda89,
    68vw 30vh #fff1d6,
    82vw 55vh #fbd8a9,
    62vw 27vh #ffda89,
    50vw 6vh #fff1d6,
    21vw 36vh #fbd8a9,
    14vw 53vh #ffda89,
    89vw 6vh #fff1d6,
    69vw 44vh #fbd8a9,
    13vw 24vh #ffda89,
    25vw 47vh #fff1d6,
    29vw 9vh #fbd8a9,
    94vw 35vh #ffda89,
    57vw 4vh #fff1d6,
    55vw 54vh #fbd8a9,
    66vw 31vh #ffda89,
    71vw 11vh #fff1d6,
    59vw 56vh #fbd8a9,
    20vw 22vh #ffda89,
    30vw 11vh #fff1d6,
    91vw 39vh #fbd8a9,
    75vw 17vh #ffda89,
    15vw 39vh #fff1d6;
}

.star-glints {
  width: 2px;
  height: 2px;
  opacity: .6;
  box-shadow:
    58vw 31vh 3px #ffda89,
    5vw 6vh 4px #fff1d6,
    80vw 41vh 4px #ffda89,
    90vw 16vh 4px #fff1d6,
    76vw 46vh 3px #ffda89,
    40vw 9vh 4px #fff1d6,
    39vw 33vh 4px #ffda89,
    87vw 18vh 4px #fff1d6,
    66vw 13vh 2px #ffda89,
    11vw 5vh 4px #fff1d6,
    23vw 22vh 4px #ffda89,
    69vw 38vh 3px #fff1d6;
}

.stars i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 240, 205, .85);
  box-shadow: 0 0 10px rgba(255, 190, 100, .6);
}

.stars i:nth-of-type(1) { left: 8%; top: 16%; }
.stars i:nth-of-type(2) { left: 19%; top: 31%; }
.stars i:nth-of-type(3) { left: 37%; top: 12%; }
.stars i:nth-of-type(4) { left: 52%; top: 24%; }
.stars i:nth-of-type(5) { left: 68%; top: 11%; }
.stars i:nth-of-type(6) { left: 79%; top: 28%; }
.stars i:nth-of-type(7) { left: 91%; top: 14%; }
.stars i:nth-of-type(8) { left: 59%; top: 39%; }
.stars i:nth-of-type(9) { left: 13%; top: 9%; }
.stars i:nth-of-type(10) { left: 27%; top: 27%; }
.stars i:nth-of-type(11) { left: 45%; top: 7%; }
.stars i:nth-of-type(12) { left: 63%; top: 31%; }
.stars i:nth-of-type(13) { left: 74%; top: 15%; }
.stars i:nth-of-type(14) { left: 86%; top: 37%; }

/* SKY PATH AND CLOUDS */

.sun-path {
  position: absolute;
  z-index: -7;
  inset: 3% 3% 13%;
  overflow: hidden;
  opacity: .28;
  pointer-events: none;
}

.sun-path::before,
.sun-path::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: -63%;
  height: 121%;
  border: 1px solid rgba(255, 236, 200, .35);
  border-radius: 50% 50% 0 0;
}

.sun-path::after {
  inset: auto 17% -50%;
  height: 96%;
  opacity: .45;
}

.sun-path span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    transparent,
    rgba(255, 236, 200, .2),
    transparent
  );
  transform: rotate(24deg);
}

/* Soft cream clouds */
.cloud {
  position: absolute;
  z-index: -5;
  height: clamp(20px, 2.4vw, 36px);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff3dc, #f9d39b);
  opacity: .5;
  pointer-events: none;
  animation: cloudDrift 26s ease-in-out infinite alternate;
}

.cloud-two { animation-duration: 32s; animation-delay: -9s; }
.cloud-three { animation-duration: 22s; animation-delay: -5s; }

@keyframes cloudDrift {
  from { transform: translate3d(-18px, 0, 0); }
  to { transform: translate3d(22px, -4px, 0); }
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 30%;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  left: 16%;
  width: 34%;
  aspect-ratio: 1;
}

.cloud::after {
  left: 42%;
  width: 26%;
  aspect-ratio: 1;
}

.cloud-one {
  width: clamp(110px, 13vw, 200px);
  left: 3vw;
  top: 30%;
}

.cloud-two {
  width: clamp(140px, 16vw, 250px);
  right: 4vw;
  top: 24%;
}

.cloud-three {
  width: clamp(80px, 9vw, 140px);
  left: 38vw;
  top: 7%;
  opacity: .4;
}

/* MOUNTAINS */

.world {
  position: absolute;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  transform-style: flat;
  backface-visibility: hidden;
}

.ridge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 1;
  transform-origin: 50% 100%;
  transform-box: fill-box;
  backface-visibility: hidden;
}

/* The ground is drawn wider than its box, so let it show past the
   edges. Fixes the empty gaps at the bottom corners on desktop. */
.ridge-foreground {
  overflow: visible;
}

.ridge-distant { transform: scale(1.18); }
.ridge-middle { transform: scale(1.08); }
.ridge-near { transform: scale(1.06); }
.ridge-foreground { transform: scale(.97); }

.mist-edge {
  fill: rgba(255, 232, 190, .2);
}

.snow {
  fill: #fff1d6;
}

.snow-mid {
  fill: rgba(255, 238, 205, .8);
}

.ridge-line,
.ground-line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.ridge-line {
  stroke: rgba(255, 230, 170, .55);
}

.ground-line {
  stroke: rgba(242, 160, 75, .35);
}

.ground-line-two {
  opacity: .6;
}

/* Trees in golden, amber and rust */
.pines path { fill: #f2a04b; }
.pines path:nth-child(2) { fill: #c36226; }
.pines path:nth-child(3) { fill: #e18c3e; }
.pines path:nth-child(4) { fill: #f1b56b; }
.pines path:nth-child(5) { fill: #a44c1c; }
.pines path:nth-child(6) { fill: #dc7a31; }

.leaf-litter use {
  opacity: .9;
}

.valley-mist {
  position: absolute;
  left: -10%;
  width: 120%;
  border-radius: 50%;
  pointer-events: none;
}

.mist-back {
  z-index: -3;
  top: 43%;
  height: 24%;
  opacity: .55;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255, 220, 160, .26),
      transparent 62%
    ),
    linear-gradient(
      to bottom,
      transparent,
      rgba(240, 170, 100, .14) 47%,
      transparent 78%
    );
}

.mist-front {
  z-index: -1;
  top: 57%;
  height: 19%;
  opacity: .45;
  background: radial-gradient(
    ellipse at 52% 46%,
    rgba(255, 210, 140, .24),
    rgba(200, 110, 50, .08) 48%,
    transparent 70%
  );
}

.light-ribbons {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.light-ribbons i {
  position: absolute;
  width: 72vw;
  height: 44vh;
  border: 1px solid transparent;
  border-top-color: rgba(255, 228, 175, .2);
  border-radius: 50%;
}

.light-ribbons i:nth-child(1) {
  left: -18vw;
  top: 17%;
  transform: rotate(11deg);
}

.light-ribbons i:nth-child(2) {
  right: -25vw;
  top: 28%;
  transform: rotate(-14deg);
  opacity: .74;
}

.light-ribbons i:nth-child(3) {
  left: 28vw;
  top: 63%;
  width: 46vw;
  height: 24vh;
  opacity: .52;
}

/* POOLED SUN / MOON / ROCKET / METEOR (created by the JS) */

.act-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
  user-select: none;
}

.act-stage-back { z-index: -6; }
.act-stage-front { z-index: 12; }

.act-object {
  pointer-events: none;
  backface-visibility: hidden;
}

.act-sun-group,
.act-followers {
  position: absolute;
  inset: 0;
}

.act-followers {
  overflow: hidden;
  contain: layout paint;
}

.sun,
.moon {
  position: absolute;
  left: 0;
  top: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.sun {
  width: clamp(92px, 11vw, 174px);
}

.moon {
  width: clamp(80px, 9.6vw, 146px);
}

.act-sun-disc,
.act-moon,
.act-rocket,
.act-meteor {
  will-change: transform, opacity;
}

.sun-halo,
.moon-halo {
  position: absolute;
  border-radius: 50%;
}

.sun-halo {
  inset: -96%;
  background:
    radial-gradient(
      circle,
      rgba(255, 228, 150, .55),
      rgba(240, 160, 70, .18) 38%,
      transparent 66%
    ),
    repeating-conic-gradient(
      rgba(255, 236, 180, .18) 0deg 10deg,
      transparent 10deg 24deg
    );
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  mask-image: radial-gradient(circle, #000 30%, transparent 68%);
}

/* Big harvest moon glow */
.moon-halo {
  inset: -110%;
  background: radial-gradient(
    circle,
    rgba(255, 200, 120, .38),
    rgba(220, 120, 50, .14) 40%,
    transparent 70%
  );
}

.sun-core,
.moon-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.sun-core {
  background:
    radial-gradient(
      circle at 36% 30%,
      #fffaf0 0 10%,
      transparent 24%
    ),
    linear-gradient(145deg, #fff3cf, #ffda89 52%, #f2a04b);
  box-shadow:
    0 0 0 2px rgba(255, 244, 215, .5),
    0 0 46px rgba(255, 200, 110, .6),
    inset -10px -12px 22px rgba(200, 100, 40, .25);
}

.moon-core {
  background:
    radial-gradient(
      circle at 34% 28%,
      rgba(255, 255, 240, .7) 0 5%,
      transparent 6%
    ),
    radial-gradient(
      circle at 62% 41%,
      rgba(190, 110, 50, .22) 0 8%,
      transparent 9%
    ),
    radial-gradient(
      circle at 43% 69%,
      rgba(190, 110, 50, .18) 0 6%,
      transparent 7%
    ),
    linear-gradient(145deg, #fff1d6, #f6c98a 56%, #d9934a);
  box-shadow:
    0 0 0 1px rgba(255, 236, 200, .5),
    0 0 50px rgba(255, 170, 80, .45),
    inset -12px -12px 22px rgba(150, 60, 20, .25);
}

.sun-core::after,
.moon-core::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 244, 215, .35);
  border-radius: 50%;
}

.moon-core::after {
  inset: 14%;
  opacity: .5;
}

.moon-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 142%;
  height: 142%;
  border: 1px solid rgba(255, 220, 170, .25);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.act-follower {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  opacity: 0;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.act-follower.streak {
  width: 42px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 218, 137, .85)
  );
  transform-origin: 100% 50%;
}

.act-follower.spark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffe6b0;
  box-shadow: 0 0 8px rgba(242, 160, 75, .7);
}

.act-follower.diamond {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 218, 137, .8);
}

/* ROCKET — cream with rust fins */

.act-rocket {
  position: absolute;
  left: 0;
  top: 0;
  width: 168px;
  height: 84px;
  opacity: 0;
  transform-origin: 50% 50%;
}

.rocket-fuselage {
  position: absolute;
  right: 9px;
  top: 23px;
  width: 108px;
  height: 38px;
  border: 1px solid rgba(255, 240, 215, .9);
  border-radius: 58% 86% 86% 58%;
  background: linear-gradient(
    180deg,
    #fff4e2,
    #f3d6ac 48%,
    #c99065
  );
  box-shadow:
    inset 0 1px rgba(255, 250, 235, .7),
    inset -13px -10px 18px rgba(118, 61, 26, .2),
    0 0 12px rgba(255, 210, 140, .2);
}

.rocket-fuselage::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 7px;
  width: 29px;
  height: 24px;
  border-radius: 48% 90% 90% 48%;
  background: linear-gradient(145deg, #e18c3e, #a44c1c);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 26% 50%);
}

.rocket-window {
  position: absolute;
  right: 28px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c36226;
  background: radial-gradient(
    circle at 35% 30%,
    #fff1cf,
    #f2a04b 55%,
    #763d1a
  );
}

.rocket-seam {
  position: absolute;
  left: 35px;
  top: 4px;
  width: 2px;
  height: 28px;
  background: rgba(164, 76, 28, .6);
}

.rocket-fin {
  position: absolute;
  left: 18px;
  width: 34px;
  height: 19px;
  background: linear-gradient(135deg, #dc7a31, #a44c1c);
  border: 1px solid rgba(255, 220, 170, .5);
  transform-origin: 90% 50%;
}

.rocket-fin-top {
  top: -15px;
  clip-path: polygon(15% 100%, 100% 100%, 76% 0);
}

.rocket-fin-bottom {
  bottom: -15px;
  clip-path: polygon(15% 0, 100% 0, 76% 100%);
}

.rocket-engine-ring {
  position: absolute;
  left: 47px;
  top: 30px;
  width: 14px;
  height: 24px;
  border: 1px solid rgba(255, 228, 185, .6);
  border-radius: 5px 0 0 5px;
  background: #763d1a;
}

.rocket-plume {
  position: absolute;
  left: 12px;
  top: 35px;
  width: 48px;
  height: 14px;
  transform-origin: 100% 50%;
  transform: scaleX(var(--rocket-plume-scale, 1));
}

.rocket-plume::before,
.rocket-plume::after,
.rocket-plume i {
  content: "";
  position: absolute;
  right: 0;
  border-radius: 999px 0 0 999px;
}

.rocket-plume::before {
  top: 2px;
  width: 45px;
  height: 10px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(220, 110, 40, .25) 20%,
    rgba(255, 180, 90, .85) 74%,
    #fff1cf
  );
}

.rocket-plume::after {
  top: 5px;
  width: 29px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff4dc);
}

.rocket-plume i:nth-child(1) {
  top: -2px;
  width: 27px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 200, 120, .5)
  );
}

.rocket-plume i:nth-child(2) {
  bottom: -1px;
  width: 35px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(230, 140, 70, .45)
  );
}

.rocket-trail-line {
  position: absolute;
  right: 112px;
  top: 41px;
  width: 230px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(240, 170, 100, .15) 35%,
    rgba(255, 218, 137, .7)
  );
}

/* METEOR — golden shooting star */

.act-meteor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  transform-origin: 0 0;
}

.meteor-head {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 35%,
    #fffaf0 0 18%,
    #ffda89 40%,
    #f2a04b 72%,
    #c36226
  );
  box-shadow:
    0 0 12px rgba(255, 200, 110, .7),
    0 0 24px rgba(230, 130, 60, .3);
}

.meteor-tail {
  position: absolute;
  right: 8px;
  top: 0;
  height: 1px;
  transform-origin: 100% 50%;
  transform: scaleX(var(--meteor-tail-scale, 1));
}

.meteor-tail-wide {
  width: 330px;
  height: 5px;
  margin-top: -2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 100, 40, .12) 42%,
    rgba(242, 160, 75, .4) 78%,
    rgba(255, 230, 175, .8)
  );
  clip-path: polygon(0 45%, 100% 0, 100% 100%);
}

.meteor-tail-core {
  width: 245px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 236, 190, .85)
  );
}

.meteor-fragment {
  position: absolute;
  right: 44px;
  top: -11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 218, 137, .9);
}

/* GEOMETRIC ORNAMENTS */

.journey-ornaments {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  opacity: .30;
  contain: layout paint;
  pointer-events: none;
  user-select: none;
}

.journey-rail {
  position: absolute;
  top: 18%;
  width: 38px;
  height: 62%;
  opacity: .72;
}

.journey-rail-left { left: clamp(18px, 5vw, 90px); }
.journey-rail-right { right: clamp(18px, 5vw, 90px); }

.journey-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    transparent,
    rgba(255, 228, 175, .3) 16%,
    rgba(255, 228, 175, .65) 50%,
    rgba(255, 228, 175, .25) 84%,
    transparent
  );
}

.journey-rail i {
  position: absolute;
  width: 15px;
  height: 1px;
  background: rgba(255, 228, 175, .65);
}

.journey-rail-left i { left: 18px; }
.journey-rail-right i { right: 19px; }
.journey-rail i:nth-child(1) { top: 8%; width: 9px; }
.journey-rail i:nth-child(2) { top: 26%; width: 17px; }
.journey-rail i:nth-child(3) { top: 44%; width: 11px; }
.journey-rail i:nth-child(4) { top: 63%; width: 21px; }
.journey-rail i:nth-child(5) { top: 81%; width: 13px; }
.journey-rail i:nth-child(6) { top: 94%; width: 7px; }

.journey-summit {
  position: absolute;
  width: 15px;
  height: 15px;
  opacity: .8;
}

.journey-summit::before,
.journey-summit::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 11px;
  height: 1px;
  background: rgba(255, 228, 175, .85);
}

.journey-summit::before {
  left: 0;
  transform: rotate(-42deg);
}

.journey-summit::after {
  right: 0;
  transform: rotate(42deg);
}

.journey-summit-a { left: 15%; top: 34%; }
.journey-summit-b { right: 16%; top: 48%; transform: scale(.82); }
.journey-summit-c { left: 26%; top: 72%; transform: scale(.72); }
.journey-summit-d { right: 27%; top: 27%; transform: scale(.62); }

.journey-arc {
  position: absolute;
  width: clamp(150px, 19vw, 310px);
  height: clamp(150px, 19vw, 310px);
  border: 1px solid rgba(255, 228, 175, .22);
  border-radius: 50%;
}

.journey-arc-left { left: -10vw; top: 35%; }
.journey-arc-right { right: -10vw; top: 17%; }

.journey-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 218, 137, .85);
}

.journey-dot-a { left: 11%; top: 23%; }
.journey-dot-b { left: 22%; top: 57%; width: 3px; height: 3px; }
.journey-dot-c { left: 37%; top: 79%; }
.journey-dot-d { right: 34%; top: 19%; width: 3px; height: 3px; }
.journey-dot-e { right: 19%; top: 62%; }
.journey-dot-f { right: 9%; top: 39%; width: 3px; height: 3px; }

.journey-chevron {
  position: absolute;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(255, 228, 175, .6);
  border-top: 1px solid rgba(255, 228, 175, .6);
}

.journey-chevron-a { left: 8%; top: 61%; transform: rotate(45deg); }
.journey-chevron-b { left: 31%; top: 40%; transform: rotate(45deg) scale(.75); }
.journey-chevron-c { right: 31%; top: 68%; transform: rotate(45deg) scale(.70); }
.journey-chevron-d { right: 8%; top: 31%; transform: rotate(45deg); }

.journey-path {
  position: absolute;
  width: clamp(190px, 28vw, 460px);
  height: clamp(80px, 10vw, 170px);
  border: 1px solid transparent;
  border-top-color: rgba(255, 228, 175, .18);
  border-radius: 50%;
}

.journey-path-a { left: 17%; top: 18%; transform: rotate(-8deg); }
.journey-path-b { right: 14%; top: 56%; transform: rotate(8deg); }

/* WORDMARK AND LOGIN */

.hero {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 43%;
  width: min(1120px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate3d(-50%, -50%, 0);
  isolation: isolate;
}

/* Warm brown halo keeps cream text readable on the golden scene */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -8%;
  width: min(1060px, 104vw);
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(62, 17, 4, .40),
    rgba(62, 17, 4, .15) 50%,
    transparent 72%
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-kicker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(14px, 2.2vh, 24px);
  text-shadow: 0 2px 12px rgba(62, 17, 4, .7);
}

/* Same plain style as the faculty line, just bigger */
.eyebrow {
  margin: 0;
  font-size: clamp(1.02rem, 1.45vw, 1.3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  color: #fff1dc;
}

.eyebrow span {
  font-weight: 600;
  opacity: .9;
}

.faculty {
  margin: 6px 0 0;
  font-size: clamp(.78rem, 1vw, .92rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  color: #fff1dc;
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.07em;
}

.med {
  position: relative;
  z-index: 2;
  margin-right: -.08em;
  padding-bottom: .05em;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7.4vw, 7.8rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.055em;
  color: #fff1d6;
  text-shadow:
    0 3px 0 rgba(164, 76, 28, .55),
    0 8px 26px rgba(62, 17, 4, .5);
  transform-origin: 100% 70%;
  backface-visibility: hidden;
}

.sierra-vector-shell {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: flex-end;
  width: min(43vw, 650px);
  aspect-ratio: 790 / 357;
  display: block;
  transform: translate3d(18px, 34px, 0) scale(.74);
  transform-origin: 50% 68%;
  pointer-events: none;
  user-select: none;
  backface-visibility: hidden;
  will-change: transform;
}

.sierra-vector-logo,
.sierra-vector-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  backface-visibility: hidden;
}

.sierra-vector-logo {
  z-index: 2;
  opacity: 1;
  filter:
    drop-shadow(0 3px 0 rgba(164, 76, 28, .55))
    drop-shadow(0 0 12px rgba(255, 218, 137, .3));
}

.sierra-vector-glow {
  z-index: 1;
  mix-blend-mode: screen;
  opacity: .055;
  transform: scale(1);
  transform-origin: 50% 50%;
  filter:
    blur(4px)
    drop-shadow(0 0 8px rgba(255, 228, 170, .5))
    drop-shadow(0 0 16px rgba(242, 160, 75, .25));
  will-change: transform, opacity;
}

.tagline {
  max-width: 820px;
  margin: clamp(64px, 8vh, 92px) auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  font-style: italic;
  line-height: 1.45;
  letter-spacing: .02em;
  color: #fff6e6;
  text-wrap: balance;
  text-shadow:
    0 1px 1px rgba(62, 17, 4, .8),
    0 2px 10px rgba(62, 17, 4, .7),
    0 3px 24px rgba(62, 17, 4, .55);
}

/* Warm amber login pill */
.login {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 0;
  width: clamp(196px, 18vw, 232px);
  height: 48px;
  min-height: 48px;
  margin-top: clamp(22px, 3.6vh, 38px);
  padding: 0 14px 0 4px;
  overflow: hidden;
  border: 2px solid rgba(255, 228, 185, .75);
  border-radius: 999px;
  color: #fff6e6;
  background: linear-gradient(
    100deg,
    #e18c3e,
    #c36226 52%,
    #7a2f0e
  );
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(.84rem, .9vw, .92rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(62, 17, 4, .5);
  cursor: pointer;
  isolation: isolate;
  contain: paint;
  box-shadow:
    0 10px 24px rgba(62, 17, 4, .40),
    0 0 0 5px rgba(255, 218, 137, .14),
    inset 0 2px rgba(255, 236, 200, .3);
  transform:
    translate3d(var(--login-x), var(--login-y), 0)
    scale(var(--login-press));
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.login:hover,
.login:focus-visible {
  border-color: #fff1d6;
  filter: brightness(1.08);
  box-shadow:
    0 14px 30px rgba(62, 17, 4, .48),
    0 0 0 7px rgba(255, 218, 137, .3),
    inset 0 2px rgba(255, 236, 200, .35);
}

.login:active {
  --login-press: .97;
}

.login .cmu-badge {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #a44c1c;
  background: linear-gradient(145deg, #fff8ec, #fbd8a9);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: none;
  box-shadow: 0 3px 10px rgba(62, 17, 4, .25);
}

.login .cmu-label {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  height: 24px;
  padding-left: 10px;
  white-space: nowrap;
}

.login::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: -65%;
  width: 42%;
  height: 100%;
  opacity: .35;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 244, 215, .8),
    transparent
  );
  pointer-events: none;
  animation: loginSheen 8s ease-in-out infinite;
}

@keyframes loginSheen {
  0%, 77% { left: -65%; }
  100% { left: 135%; }
}

/* HALLOWEEN DECOR */

.october-decor {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.october-decor * {
  pointer-events: none;
}

.october-bats,
.october-leaves {
  position: absolute;
  inset: 0;
}

/* Spider web in the top-left corner */
.spider-web {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(110px, 13vw, 190px);
  height: auto;
  fill: none;
  stroke: rgba(255, 240, 215, .6);
  stroke-width: 1.1;
  stroke-linecap: round;
}

/* Spider bobbing on its thread */
.hanging-spider {
  position: absolute;
  right: 27%;
  top: -34px;
  width: 26px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 3px rgba(255, 200, 120, .5));
  animation: spiderBob 4.5s ease-in-out infinite alternate;
}

.spider-thread {
  fill: none;
  stroke: rgba(255, 240, 215, .7);
  stroke-width: 1;
}

.spider-body {
  fill: #2a0e04;
  stroke: #2a0e04;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.spider-body path {
  fill: none;
}

.spider-eye {
  fill: #ffb43c;
  stroke: none;
}

@keyframes spiderBob {
  0% { transform: translate3d(0, 0, 0); }
  70% { transform: translate3d(0, 34px, 0); }
  100% { transform: translate3d(0, 30px, 0); }
}

/* Bats */
.bat-flight {
  position: absolute;
  display: block;
  filter: drop-shadow(0 0 3px rgba(255, 200, 120, .55));
  animation: batDrift 9s ease-in-out infinite alternate;
}

.october-bat {
  display: block;
  width: 46px;
  height: 22px;
  background: #2a0e04;
  clip-path: polygon(
    0% 10%, 18% 27%, 32% 48%,
    40% 25%, 45% 35%, 47% 5%,
    52% 24%, 57% 5%, 59% 36%,
    66% 48%, 82% 27%, 100% 10%,
    87% 67%, 72% 60%, 62% 85%,
    50% 100%, 38% 85%, 28% 60%, 13% 67%
  );
  transform-origin: 50% 45%;
  animation: batFlap .32s ease-in-out infinite alternate;
}

.bat-flight--one {
  top: 15%;
  right: 13%;
  opacity: .85;
}

.bat-flight--two {
  top: 22%;
  right: 6%;
  opacity: .7;
  animation-duration: 11s;
  animation-delay: -4s;
}

.bat-flight--two .october-bat {
  width: 30px;
  height: 15px;
  animation-duration: .26s;
}

.bat-flight--three {
  top: 11%;
  left: 19%;
  opacity: .75;
  animation-duration: 10s;
  animation-delay: -2s;
}

.bat-flight--three .october-bat {
  width: 28px;
  height: 14px;
  animation-duration: .28s;
}

.bat-flight--four {
  top: 26%;
  left: 31%;
  opacity: .6;
  animation-duration: 12s;
  animation-delay: -7s;
}

.bat-flight--four .october-bat {
  width: 22px;
  height: 11px;
  animation-duration: .24s;
}

@keyframes batFlap {
  from { transform: scaleY(1); }
  to { transform: scaleY(.4); }
}

@keyframes batDrift {
  0% { transform: translate3d(0, 0, 0) rotate(-6deg); }
  50% { transform: translate3d(-34px, -12px, 0) rotate(4deg); }
  100% { transform: translate3d(-12px, 10px, 0) rotate(-2deg); }
}

/* Friendly ghost */
.october-ghost {
  position: absolute;
  right: 15%;
  top: 34%;
  width: 46px;
  height: 54px;
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  background: rgba(255, 246, 232, .9);
  box-shadow: 0 0 22px rgba(255, 218, 137, .45);
  animation: ghostFloat 4.2s ease-in-out infinite alternate;
}

/* Wavy hem */
.october-ghost::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 8px;
  background: radial-gradient(
    circle at 50% 0,
    rgba(255, 246, 232, .9) 5.5px,
    transparent 6px
  );
  background-size: 11.5px 8px;
  background-repeat: repeat-x;
}

.ghost-eye {
  position: absolute;
  top: 34%;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #3e1104;
}

.ghost-eye--left { left: 28%; }
.ghost-eye--right { right: 28%; }

.ghost-mouth {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 8px;
  height: 7px;
  border-radius: 50%;
  background: #3e1104;
  transform: translateX(-50%);
}

@keyframes ghostFloat {
  0% { transform: translate3d(0, 0, 0) rotate(-3deg); opacity: .82; }
  100% { transform: translate3d(-8px, -14px, 0) rotate(3deg); opacity: 1; }
}

/* Falling leaves — autumn colors, kept to the sides */
.october-leaf {
  --leaf-x: 8%;
  --leaf-duration: 22s;
  --leaf-delay: -2s;
  --leaf-a: #c36226;
  --leaf-b: #f2a04b;
  position: absolute;
  top: -32px;
  left: var(--leaf-x);
  width: 14px;
  height: 24px;
  border-radius: 2px 85% 3px 85%;
  background: linear-gradient(
    65deg,
    var(--leaf-a) 46%,
    #ffd9a0 49%,
    #ffd9a0 51%,
    var(--leaf-b) 54%
  );
  opacity: 0;
  animation:
    octoberLeafFall
    var(--leaf-duration)
    linear
    var(--leaf-delay)
    infinite;
}

.october-leaf:nth-child(1)  { --leaf-x: 4%;  --leaf-duration: 22s; --leaf-delay: -3s; }
.october-leaf:nth-child(2)  { --leaf-x: 11%; --leaf-duration: 27s; --leaf-delay: -15s; --leaf-a: #a44c1c; --leaf-b: #dc7a31; }
.october-leaf:nth-child(3)  { --leaf-x: 18%; --leaf-duration: 25s; --leaf-delay: -8s;  --leaf-a: #e18c3e; --leaf-b: #f1b56b; width: 11px; height: 19px; }
.october-leaf:nth-child(4)  { --leaf-x: 24%; --leaf-duration: 30s; --leaf-delay: -20s; --leaf-a: #dc7a31; --leaf-b: #ffda89; width: 12px; height: 20px; }
.october-leaf:nth-child(5)  { --leaf-x: 9%;  --leaf-duration: 33s; --leaf-delay: -26s; --leaf-a: #763d1a; --leaf-b: #c36226; width: 10px; height: 17px; }
.october-leaf:nth-child(6)  { --leaf-x: 76%; --leaf-duration: 24s; --leaf-delay: -19s; --leaf-a: #c36226; --leaf-b: #e18c3e; }
.october-leaf:nth-child(7)  { --leaf-x: 83%; --leaf-duration: 29s; --leaf-delay: -11s; --leaf-a: #f2a04b; --leaf-b: #ffda89; width: 11px; height: 19px; }
.october-leaf:nth-child(8)  { --leaf-x: 90%; --leaf-duration: 26s; --leaf-delay: -22s; --leaf-a: #a44c1c; --leaf-b: #f2a04b; }
.october-leaf:nth-child(9)  { --leaf-x: 96%; --leaf-duration: 31s; --leaf-delay: -6s;  --leaf-a: #dc7a31; --leaf-b: #c36226; width: 12px; height: 20px; }
.october-leaf:nth-child(10) { --leaf-x: 71%; --leaf-duration: 35s; --leaf-delay: -29s; --leaf-a: #e18c3e; --leaf-b: #f1b56b; width: 10px; height: 17px; }

@keyframes octoberLeafFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: .85;
  }
  50% {
    transform: translate3d(30px, 56vh, 0) rotate(170deg);
    opacity: .75;
  }
  88% {
    opacity: .7;
  }
  100% {
    transform: translate3d(-18px, 112vh, 0) rotate(340deg);
    opacity: 0;
  }
}

/* Jack-o'-lantern + candle groups.
   Left group sits above the back-to-top button;
   right group sits above the "Use local account" button. */
.october-pumpkins,
.candle-cluster {
  position: absolute;
  bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 88px));
  display: flex;
  align-items: flex-end;
  gap: 8px;
  isolation: isolate;
}

.october-pumpkins {
  left: clamp(22px, 4vw, 64px);
  transform-origin: bottom left;
}

.candle-cluster {
  right: clamp(22px, 4vw, 64px);
  transform-origin: bottom right;
}

/* Warm light pooled on the ground, flickering with the flames */
.october-pumpkins::before,
.candle-cluster::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -30%;
  right: -30%;
  bottom: -26px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 180, 80, .55),
    rgba(240, 130, 50, .18) 50%,
    transparent 72%
  );
  animation: candleGlow 2.3s ease-in-out infinite;
}

.october-pumpkin {
  position: relative;
  display: block;
  width: 60px;
  height: 46px;
  border-radius: 44% 44% 42% 42%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 13px,
      rgba(118, 61, 26, .28) 14px 16px
    ),
    radial-gradient(
      ellipse at 38% 25%,
      #ffb85c,
      #e8792a 55%,
      #a8471a
    );
  box-shadow:
    inset 3px 2px 7px rgba(255, 220, 160, .35),
    inset -5px -6px 10px rgba(62, 17, 4, .35),
    0 0 22px rgba(255, 150, 50, .35),
    0 8px 14px rgba(30, 10, 3, .35);
}

/* Stem */
.october-pumpkin::before {
  content: "";
  position: absolute;
  top: -9px;
  left: calc(50% - 4px);
  width: 8px;
  height: 12px;
  border-radius: 3px 3px 0 0;
  background: #6b5428;
  transform: rotate(13deg);
}

/* Inner candle glow behind the carved face */
.october-pumpkin::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 18% 14% 12%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(255, 220, 120, .6),
    transparent 70%
  );
  animation: candleGlow 1.9s ease-in-out infinite;
}

.october-pumpkin--small {
  width: 40px;
  height: 32px;
  transform: rotate(-8deg);
}

/* Carved face, lit from inside */
.pumpkin-eye,
.pumpkin-mouth {
  position: absolute;
  z-index: 2;
  background: #ffe69a;
  animation: carveFlicker 2.1s steps(1, end) infinite;
}

.pumpkin-eye {
  top: 28%;
  width: 20%;
  height: 24%;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.pumpkin-eye--left {
  left: 20%;
  transform: rotate(-8deg);
}

.pumpkin-eye--right {
  right: 20%;
  transform: rotate(8deg);
}

.pumpkin-mouth {
  left: 24%;
  bottom: 17%;
  width: 52%;
  height: 20%;
  clip-path: polygon(
    0 0, 24% 22%, 24% 0,
    45% 0, 45% 24%, 68% 20%,
    68% 0, 100% 0,
    80% 100%, 23% 100%
  );
}

.candle-cluster .october-pumpkin .pumpkin-eye,
.candle-cluster .october-pumpkin .pumpkin-mouth {
  animation-delay: -.9s;
}

/* Candles */
.candle {
  position: relative;
  display: block;
  width: 14px;
  height: 40px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(
    90deg,
    #e9c391,
    #fff1d6 40%,
    #f3d6ac 70%,
    #d9a86d
  );
  box-shadow: 0 6px 10px rgba(30, 10, 3, .3);
}

.candle--tall { height: 46px; }
.candle--mid { height: 34px; }
.candle--short { height: 26px; width: 16px; }

/* Wick */
.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 2px;
  height: 7px;
  border-radius: 1px;
  background: #3e1104;
  transform: translateX(-50%);
}

/* Wax drip */
.candle::after {
  content: "";
  position: absolute;
  left: 2px;
  top: -1px;
  width: 5px;
  height: 11px;
  border-radius: 3px 3px 4px 4px;
  background: #fff6e6;
}

.candle-flame {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  width: 10px;
  height: 18px;
  margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(
    ellipse at 50% 76%,
    #fffaf0 0 20%,
    #ffe08a 38%,
    #ffa23a 66%,
    rgba(230, 110, 30, 0) 100%
  );
  transform-origin: 50% 100%;
  animation: flameFlicker 1.4s ease-in-out infinite alternate;
}

/* Flame halo */
.candle-flame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 205, 110, .65),
    rgba(255, 160, 60, .18) 45%,
    transparent 70%
  );
  animation: candleGlow 1.7s ease-in-out infinite;
}

.candle:nth-child(2n) .candle-flame {
  animation-duration: 1.1s;
  animation-delay: -.4s;
}

.candle:nth-child(3n) .candle-flame {
  animation-duration: 1.7s;
  animation-delay: -.8s;
}

.candle:nth-child(2n) .candle-flame::before {
  animation-duration: 2.2s;
  animation-delay: -.6s;
}

@keyframes flameFlicker {
  0%   { transform: scale(1, 1) rotate(-2deg); opacity: 1; }
  18%  { transform: scale(.9, 1.12) rotate(3deg); opacity: .92; }
  34%  { transform: scale(1.06, .9) rotate(-3deg); opacity: 1; }
  52%  { transform: scale(.94, 1.08) rotate(2deg); opacity: .75; }
  56%  { opacity: 1; }
  74%  { transform: scale(1.03, .95) rotate(-1deg); opacity: .95; }
  100% { transform: scale(.96, 1.06) rotate(2deg); opacity: 1; }
}

@keyframes candleGlow {
  0%   { opacity: .75; }
  12%  { opacity: 1; }
  26%  { opacity: .6; }
  31%  { opacity: .95; }
  55%  { opacity: .8; }
  70%  { opacity: 1; }
  84%  { opacity: .55; }
  90%  { opacity: .9; }
  100% { opacity: .75; }
}

@keyframes carveFlicker {
  0%   { opacity: 1; }
  22%  { opacity: .78; }
  30%  { opacity: 1; }
  58%  { opacity: .86; }
  64%  { opacity: .65; }
  70%  { opacity: 1; }
  100% { opacity: 1; }
}

/* Ground fog: two soft layers rolling slowly sideways (seamless loop) */
.ground-fog {
  position: absolute;
  left: 0;
  bottom: -2vh;
  width: 200vw;
  height: 30vh;
  opacity: .55;
  background:
    radial-gradient(ellipse 22vw 9vh at 12vw 70%, rgba(255, 236, 210, .30), transparent 70%),
    radial-gradient(ellipse 30vw 11vh at 45vw 78%, rgba(255, 228, 195, .26), transparent 70%),
    radial-gradient(ellipse 20vw 8vh at 78vw 66%, rgba(255, 236, 210, .24), transparent 70%);
  background-size: 100vw 100%;
  background-repeat: repeat-x;
  animation: fogRoll 60s linear infinite;
}

@keyframes fogRoll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100vw, 0, 0); }
}

/* Witch on a broom: crosses the sky, then rests off-screen */
.witch-flight {
  position: absolute;
  left: 0;
  top: 1%;
  width: clamp(84px, 8vw, 124px);
  transform: translate3d(-30vw, 0, 0);
  animation: witchCross 38s linear infinite;
  animation-delay: -6s;
}

.flying-witch {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: #2a0e04;
  filter: drop-shadow(0 0 4px rgba(255, 200, 120, .55));
  animation: witchBob 2.6s ease-in-out infinite alternate;
}

.witch-broom,
.witch-brim {
  fill: none;
  stroke: #2a0e04;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.witch-brim {
  stroke-width: 3;
}

@keyframes witchCross {
  0% { transform: translate3d(-30vw, 5vh, 0); }
  42% { transform: translate3d(118vw, 0, 0); }
  100% { transform: translate3d(118vw, 0, 0); }
}

@keyframes witchBob {
  from { transform: translate3d(0, 0, 0) rotate(-5deg); }
  to { transform: translate3d(0, -10px, 0) rotate(2deg); }
}

/* Glowing eyes that appear, blink, and vanish among the trees */
.glow-eyes {
  position: absolute;
  width: 26px;
  height: 8px;
  opacity: .9;
  animation: eyesPeek 9s ease-in-out infinite;
}

.glow-eyes::before,
.glow-eyes::after {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 7px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #ffd25a;
  box-shadow: 0 0 6px 2px rgba(255, 190, 70, .65);
}

.glow-eyes::before { left: 0; transform: rotate(10deg); }
.glow-eyes::after { right: 0; transform: rotate(-10deg); }

.glow-eyes--a { left: 11%; top: 63%; }
.glow-eyes--b { right: 9%; top: 59%; animation-delay: -3.5s; animation-duration: 11s; }
.glow-eyes--c { left: 27%; top: 71%; width: 20px; animation-delay: -6.5s; animation-duration: 13s; }

@keyframes eyesPeek {
  0%, 30% { opacity: 0; transform: scaleY(1); }
  36% { opacity: .95; transform: scaleY(1); }
  52% { opacity: .95; transform: scaleY(1); }
  54% { opacity: .95; transform: scaleY(.1); }
  57% { opacity: .95; transform: scaleY(1); }
  68% { opacity: .95; transform: scaleY(1); }
  70% { opacity: .95; transform: scaleY(.1); }
  72% { opacity: .95; transform: scaleY(1); }
  80%, 100% { opacity: 0; transform: scaleY(1); }
}

/* Embers floating up from the candles */
.embers {
  position: absolute;
  inset: 0;
}

.embers i {
  --x: 10%;
  --dx: 20px;
  --dur: 7s;
  --delay: 0s;
  position: absolute;
  left: var(--x);
  bottom: 120px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 6px 2px rgba(255, 160, 60, .7);
  opacity: 0;
  animation: emberRise var(--dur) ease-out var(--delay) infinite;
}

.embers i:nth-child(1)  { --x: 5%;  --dx: 18px;  --dur: 6s;  --delay: -1s; }
.embers i:nth-child(2)  { --x: 9%;  --dx: -14px; --dur: 8s;  --delay: -4s; }
.embers i:nth-child(3)  { --x: 13%; --dx: 26px;  --dur: 7s;  --delay: -2.5s; }
.embers i:nth-child(4)  { --x: 17%; --dx: -20px; --dur: 9s;  --delay: -6s; }
.embers i:nth-child(5)  { --x: 21%; --dx: 12px;  --dur: 6.5s; --delay: -3s; }
.embers i:nth-child(6)  { --x: 79%; --dx: -18px; --dur: 7.5s; --delay: -1.5s; }
.embers i:nth-child(7)  { --x: 83%; --dx: 22px;  --dur: 6s;  --delay: -5s; }
.embers i:nth-child(8)  { --x: 87%; --dx: -10px; --dur: 8.5s; --delay: -2s; }
.embers i:nth-child(9)  { --x: 91%; --dx: 16px;  --dur: 7s;  --delay: -6.5s; }
.embers i:nth-child(10) { --x: 95%; --dx: -22px; --dur: 9s;  --delay: -3.5s; }

@keyframes emberRise {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  60% { opacity: .7; }
  100% { transform: translate3d(var(--dx), -34vh, 0) scale(.3); opacity: 0; }
}

/* Black cats (shared parts) */
.sitting-cat,
.walking-cat svg {
  fill: #1c0803;
  overflow: visible;
}

.cat-tail {
  fill: none;
  stroke: #1c0803;
  stroke-width: 5;
  stroke-linecap: round;
}

.cat-eye {
  fill: #ffcf4a;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: catBlink 5s ease-in-out infinite;
}

@keyframes catBlink {
  0%, 44%, 50%, 100% { transform: scaleY(1); }
  47% { transform: scaleY(.1); }
}

/* Sitting cat: lives in the right-hand candle group */
.sitting-cat {
  display: block;
  width: 48px;
  height: auto;
  margin-right: 4px;
  filter: drop-shadow(0 0 3px rgba(255, 190, 100, .45));
}

.sitting-cat .cat-tail {
  stroke-width: 6;
  transform-box: view-box;
  transform-origin: 44px 76px;
  animation: tailSwish 2.8s ease-in-out infinite alternate;
}

.sitting-cat .cat-head {
  transform-box: view-box;
  transform-origin: 30px 40px;
  animation: headTilt 7s ease-in-out infinite;
}

@keyframes tailSwish {
  from { transform: rotate(-14deg); }
  to { transform: rotate(12deg); }
}

@keyframes headTilt {
  0%, 60%, 100% { transform: rotate(0deg); }
  66%, 80% { transform: rotate(-10deg); }
}

/* Walking cat: strolls right-to-left, then waits off-screen */
.walking-cat {
  position: absolute;
  left: 0;
  bottom: max(30px, calc(env(safe-area-inset-bottom, 0px) + 26px));
  width: clamp(70px, 6.5vw, 96px);
  transform: translate3d(110vw, 0, 0);
  animation: catStroll 34s linear infinite;
  animation-delay: -4s;
}

.walking-cat svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 3px rgba(255, 190, 100, .45));
  animation: catBob .5s ease-in-out infinite alternate;
}

.walking-cat .cat-tail {
  transform-box: view-box;
  transform-origin: 78px 28px;
  animation: tailSwish 1.6s ease-in-out infinite alternate;
}

.cat-leg {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: legStep .5s ease-in-out infinite alternate;
}

.cat-leg--front-far,
.cat-leg--back {
  animation-direction: alternate-reverse;
}

.cat-leg--front-far,
.cat-leg--back-far {
  opacity: .75;
}

@keyframes legStep {
  from { transform: rotate(-22deg); }
  to { transform: rotate(22deg); }
}

@keyframes catBob {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -2px, 0); }
}

@keyframes catStroll {
  0% { transform: translate3d(110vw, 0, 0); }
  62% { transform: translate3d(-20vw, 0, 0); }
  100% { transform: translate3d(-20vw, 0, 0); }
}

/* SCROLL CUE */

.scroll-mark {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  width: 88px;
  height: 82px;
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: none;
  contain: layout;
  overflow: visible;
}

.sierra-scroll-arrows {
  position: relative;
  width: 88px;
  height: 82px;
  overflow: visible;
}

.sierra-scroll-arrows i {
  position: absolute;
  left: 50%;
  width: 30px;
  height: 30px;
  border-left: 4px solid var(--gold);
  border-top: 4px solid var(--gold);
  opacity: 0;
  animation: sierraArrowRise 1.75s cubic-bezier(.22, .75, .28, 1) infinite;
  animation-play-state: paused;
}

.journey-start .sierra-scroll-arrows i {
  animation-play-state: running;
}

.sierra-scroll-arrows i:nth-child(1) { top: 44px; animation-delay: 0s; border-color: var(--orange); }
.sierra-scroll-arrows i:nth-child(2) { top: 25px; animation-delay: .16s; border-color: var(--gold); }
.sierra-scroll-arrows i:nth-child(3) { top: 6px; animation-delay: .32s; border-color: var(--glow); }

@keyframes sierraArrowRise {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 10px, 0) rotate(45deg) scale(.78);
  }
  26% { opacity: 1; }
  62% { opacity: .98; }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -14px, 0) rotate(45deg) scale(1);
  }
}

/* FINISHING LAYERS */

.vignette {
  position: absolute;
  z-index: 16;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(62, 17, 4, .16),
      transparent 26%,
      transparent 68%,
      rgba(42, 15, 5, .30)
    ),
    radial-gradient(
      circle at center,
      transparent 55%,
      rgba(42, 15, 5, .22) 120%
    );
}

.noise {
  position: absolute;
  z-index: 17;
  inset: 0;
  opacity: .014;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 236, 200, .28) 0 .45px,
    transparent .6px
  );
  background-size: 4px 4px;
}

/* SECONDARY CONTROLS */

.local-account {
  position: fixed;
  z-index: 70;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(38px, calc(env(safe-area-inset-bottom, 0px) + 34px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255, 236, 200, .8);
  border-radius: 999px;
  background: linear-gradient(110deg, #fff1d6, #f6c98a);
  color: #4a1a07;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  box-shadow: 0 8px 22px rgba(42, 15, 5, .35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(12px, 10px, 0) scale(.94);
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(.2, .75, .25, 1),
    visibility 260ms ease,
    filter 200ms ease;
}

.local-account::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #a44c1c;
  color: #fff4e2;
  font-size: 1rem;
  font-weight: 700;
}

.local-account.revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.local-account:hover,
.local-account:focus-visible {
  filter: brightness(1.05);
}

.site-disclaimer {
  position: fixed;
  z-index: 65;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  width: min(92vw, 760px);
  margin: 0;
  padding: 0 8px;
  transform: translateX(-50%);
  color: rgba(255, 240, 220, .9);
  font-size: clamp(.6rem, .7vw, .7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(30, 10, 3, .95);
  pointer-events: none;
}

/* Back-to-top button (created by the JS) */
.medsierra-back-to-top {
  position: fixed;
  z-index: 120;
  left: max(18px, env(safe-area-inset-left, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 228, 185, .7);
  border-radius: 999px;
  background: linear-gradient(140deg, #dc7a31, #7a2f0e);
  color: #fff4e2;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 8px 20px rgba(42, 15, 5, .4);
  transform: translate3d(0, 10px, 0) scale(.94);
  touch-action: manipulation;
  transition:
    opacity .28s ease,
    transform .28s ease,
    visibility .28s ease,
    filter .2s ease;
}

.medsierra-back-to-top.is-visible {
  opacity: .95;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.medsierra-back-to-top:active {
  transform: translate3d(0, 1px, 0) scale(.96);
}

@media (hover: hover) and (pointer: fine) {
  .medsierra-back-to-top:hover {
    opacity: 1;
    filter: brightness(1.1);
    transform: translate3d(0, -2px, 0) scale(1.04);
  }
}

.noscript-login {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 90px;
  width: min(90vw, 440px);
  padding: 16px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: #3e1104;
  color: #fff4e2;
  text-align: center;
  transform: translateX(-50%);
}

.noscript-login a {
  display: block;
  margin-top: 8px;
  color: var(--glow);
  font-weight: 700;
}

/* LOGIN TRANSITION */

.warp-ring {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 220px;
  height: 70px;
  border-radius: 999px;
  border: 2px solid rgba(255, 236, 200, .95);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
}

.warp-ring.go {
  animation: warpRingOut 610ms cubic-bezier(.2, .7, .3, 1) forwards;
}

@keyframes warpRingOut {
  0% {
    opacity: .95;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}

.warp-flash {
  position: fixed;
  z-index: 1100;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--flash-x, 50%) var(--flash-y, 54%),
    #fff8ec,
    #ffda89 24%,
    #e18c3e 56%,
    #7a2f0e
  );
}

.warp-flash.go {
  opacity: 1;
  transition: opacity 330ms ease 300ms;
}

.scene.warp-go {
  transition: transform 720ms cubic-bezier(.22, .68, .24, 1);
  transform: translate3d(0, 0, 0) scale(var(--warp-scale, 2.85));
  will-change: transform;
}

.login.warp-go {
  pointer-events: none;
  transition: transform 470ms ease, opacity 280ms ease 45ms;
  transform: scale(1.28);
  opacity: 0;
  box-shadow: none;
}

.hero.warp-go {
  opacity: 0;
  transition: opacity 300ms ease;
}

.vignette.warp-go,
.noise.warp-go,
.scroll-mark.warp-go {
  opacity: 0 !important;
  transition: opacity 220ms ease;
}

body.warping .noise,
body.warping .contours,
body.warping .light-ribbons,
body.warping .sun-path {
  opacity: 0 !important;
}

/* Pause every looping animation while warping or in a hidden tab */
body.warping .october-decor *,
body.warping .october-decor *::before,
body.warping .october-decor *::after,
body.warping .login::after,
body.warping .sierra-scroll-arrows i,
body.warping .sky-lanterns i,
html.page-hidden .october-decor *,
html.page-hidden .october-decor *::before,
html.page-hidden .october-decor *::after,
html.page-hidden .login::after,
html.page-hidden .sierra-scroll-arrows i,
html.page-hidden .sky-lanterns i {
  animation-play-state: paused !important;
}

/* RESPONSIVE */

@media (max-width: 900px), (pointer: coarse), (any-pointer: coarse) {
  .scene {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    bottom: auto;
  }

  .noise,
  .contours,
  .light-ribbons,
  .cloud-three {
    display: none;
  }
}

@media (max-width: 720px) {
  .journey {
    height: 4400vh;
  }

  .hero {
    top: 43%;
    width: 92vw;
  }

  .hero::before {
    top: -4%;
    width: 120vw;
    height: 96%;
    background: radial-gradient(
      ellipse,
      rgba(62, 17, 4, .48),
      rgba(62, 17, 4, .2) 50%,
      transparent 72%
    );
  }

  .hero-kicker {
    margin-bottom: 10px;
  }

  .eyebrow {
    font-size: .98rem;
  }

  .faculty {
    font-size: .74rem;
  }

  .wordmark {
    width: 100%;
    transform: scale(.9);
    transform-origin: center;
  }

  .med {
    font-size: clamp(2.2rem, 12vw, 4.1rem);
    margin-right: -.02em;
  }

  .sierra-vector-shell {
    width: 68vw;
    transform: translate3d(6px, 30px, 0) scale(.78);
  }

  .sierra-vector-glow {
    filter:
      blur(3px)
      drop-shadow(0 0 6px rgba(255, 228, 170, .45))
      drop-shadow(0 0 10px rgba(242, 160, 75, .2));
  }

  .tagline {
    width: min(330px, 88vw);
    margin-top: clamp(48px, 7vh, 68px);
    padding-inline: 4px;
    font-size: clamp(1rem, 4.4vw, 1.15rem);
  }

  .login {
    grid-template-columns: 38px 1fr;
    width: min(60vw, 214px);
    height: 46px;
    min-height: 46px;
    margin-top: 22px;
    padding-right: 12px;
    font-size: .84rem;
  }

  .login .cmu-badge {
    width: 36px;
    height: 36px;
    font-size: .58rem;
  }

  .login .cmu-label {
    height: 22px;
    padding-left: 8px;
  }

  .ridge-distant { transform: scale(1.12); }
  .ridge-middle { transform: scale(1.07); }
  .ridge-near { transform: scale(1.08); }
  .ridge-foreground { transform: scale(1); }

  .sun {
    width: clamp(82px, 24vw, 116px);
  }

  .cloud-one { display: none; }
  .cloud-two { width: 120px; top: 15%; right: -6vw; }

  .mist-back { top: 46%; height: 22%; }
  .mist-front { top: 59%; height: 18%; }

  .rocket-trail-line { width: 150px; }
  .meteor-tail-wide { width: 220px; }
  .meteor-tail-core { width: 165px; }

  .journey-rail { opacity: .48; }

  .journey-arc,
  .journey-path,
  .journey-summit-d,
  .journey-dot-e,
  .journey-dot-f,
  .journey-chevron-d {
    display: none;
  }

  .spider-web {
    width: 100px;
  }

  .hanging-spider {
    right: 16%;
    width: 22px;
  }

  .bat-flight--one { top: 12%; right: 30%; }
  .bat-flight--two { top: 17%; right: 6%; }
  .bat-flight--three { top: 8%; left: 30%; }

  .bat-flight--four {
    display: none;
  }

  .october-ghost {
    right: 7%;
    top: 69%;
    transform: scale(.8);
  }

  .sky-lanterns i:nth-child(2),
  .sky-lanterns i:nth-child(5) {
    display: none;
  }

  .october-leaf:nth-child(2),
  .october-leaf:nth-child(4),
  .october-leaf:nth-child(5),
  .october-leaf:nth-child(7),
  .october-leaf:nth-child(10) {
    display: none;
  }

  .october-pumpkins {
    left: 14px;
    transform: scale(.72);
  }

  .witch-flight {
    top: 2%;
    width: 72px;
  }

  .glow-eyes--a { left: 6%; top: 66%; }
  .glow-eyes--b { right: 8%; top: 60%; }
  .glow-eyes--c { display: none; }

  .embers i:nth-child(2),
  .embers i:nth-child(4),
  .embers i:nth-child(7),
  .embers i:nth-child(9) {
    display: none;
  }

  .embers i {
    bottom: 96px;
  }

  .walking-cat {
    width: 62px;
    bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  }

  .ground-fog {
    height: 24vh;
    opacity: .5;
  }

  .candle-cluster {
    right: 14px;
    transform: scale(.72);
  }

  .scroll-mark {
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    width: 92px;
    height: 86px;
  }

  .sierra-scroll-arrows {
    width: 92px;
    height: 86px;
  }

  .sierra-scroll-arrows i {
    width: 32px;
    height: 32px;
  }

  .sierra-scroll-arrows i:nth-child(1) { top: 46px; }
  .sierra-scroll-arrows i:nth-child(2) { top: 26px; }
  .sierra-scroll-arrows i:nth-child(3) { top: 6px; }

  .local-account {
    right: 10px;
    bottom: max(38px, calc(env(safe-area-inset-bottom, 0px) + 34px));
    font-size: .68rem;
  }

  .site-disclaimer {
    width: min(94vw, 520px);
    font-size: .58rem;
  }

  /* Was 36x46 (an oval); now a proper 44px round touch target */
  .medsierra-back-to-top {
    left: max(14px, env(safe-area-inset-left, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* Ghost keeps its mobile scale while floating */
@media (max-width: 720px) {
  @keyframes ghostFloat {
    0% { transform: scale(.8) translate3d(0, 0, 0) rotate(-3deg); opacity: .82; }
    100% { transform: scale(.8) translate3d(-8px, -14px, 0) rotate(3deg); opacity: 1; }
  }
}

@media (max-height: 650px) and (min-width: 721px) {
  .hero { top: 41%; }
  .wordmark { transform: scale(.8); margin-block: -30px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero { top: 46%; }
  .hero-kicker { margin-bottom: 5px; }
  .tagline { margin-top: 30px; font-size: .95rem; }

  .login {
    grid-template-columns: 34px 1fr;
    width: min(32vw, 196px);
    height: 40px;
    min-height: 40px;
    margin-top: 12px;
    padding-right: 10px;
    font-size: .76rem;
  }

  .login .cmu-badge {
    width: 32px;
    height: 32px;
    font-size: .52rem;
  }

  .login .cmu-label {
    height: 20px;
    padding-left: 6px;
  }

  .october-pumpkins,
  .candle-cluster {
    transform: scale(.6);
  }

  .october-ghost {
    top: 24%;
  }
}

@media (max-width: 720px) and (max-height: 640px) {
  .scroll-mark {
    left: auto;
    right: max(10px, env(safe-area-inset-right, 0px));
    width: 68px;
    height: 68px;
    transform: none;
  }

  .sierra-scroll-arrows {
    width: 68px;
    height: 72px;
  }

  .sierra-scroll-arrows i {
    width: 24px;
    height: 24px;
    border-left-width: 3px;
    border-top-width: 3px;
  }

  .sierra-scroll-arrows i:nth-child(1) { top: 36px; }
  .sierra-scroll-arrows i:nth-child(2) { top: 20px; }
  .sierra-scroll-arrows i:nth-child(3) { top: 4px; }
}

/* LOW-POWER / EMBEDDED BROWSERS (classes set by the JS) */

html.lite .noise,
html.lite .contours,
html.lite .light-ribbons,
html.lite .sun-path,
html.lite .cloud-three,
html.lite .moon-orbit,
html.lite .rocket-trail-line,
html.lite .meteor-fragment,
html.lite .journey-arc,
html.lite .journey-path,
html.lite .star-glints,
html.lite .mist-front,
html.lite .login::after,
html.lite .warp-ring,
html.lite .bat-flight--four,
html.lite .sky .sun-shafts {
  display: none;
}

html.lite .stars::after,
html.lite .stars i:nth-of-type(n+5) {
  display: none;
}

html.lite .embers i:nth-child(2n),
html.lite .glow-eyes--c,
html.lite .october-leaf:nth-child(n+5),
html.lite .sky-lanterns i:nth-child(n+4) {
  display: none;
}

html.lite .ground-fog,
html.lite .cloud {
  animation: none;
}

html.lite .scene.warp-go {
  transition-duration: 560ms;
}

html.ultra-lite .cloud,
html.ultra-lite .journey-ornaments,
html.ultra-lite .act-follower,
html.ultra-lite .october-leaves,
html.ultra-lite .sky-lanterns,
html.ultra-lite .bat-flight--three,
html.ultra-lite .embers,
html.ultra-lite .ground-fog,
html.ultra-lite .stars::before,
html.ultra-lite .stars i {
  display: none;
}

/* Ultra-lite keeps the candles lit, just without moving parts */
html.ultra-lite .october-decor *,
html.ultra-lite .october-decor *::before,
html.ultra-lite .october-decor *::after {
  animation: none !important;
}

html.ultra-lite .star-dust {
  opacity: .34;
}

html.ultra-lite .mist-back {
  opacity: .28;
}

html.ultra-lite .scene.warp-go {
  transition-duration: 430ms;
}

html.embedded-webview.lite .journey-ornaments,
html.embedded-webview.lite .mist-back,
html.embedded-webview.lite .cloud-two {
  display: none;
}

html.embedded-webview .sierra-vector-glow {
  filter:
    blur(2.5px)
    drop-shadow(0 0 5px rgba(255, 228, 170, .35))
    drop-shadow(0 0 8px rgba(242, 160, 75, .15));
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .journey {
    height: 180vh;
  }

  .october-leaves,
  .sky-lanterns,
  .login::after {
    display: none;
  }

  /* Candles, bats, ghost and spider stay put (still lit) */
  .october-decor *,
  .october-decor *::before,
  .october-decor *::after,
  .cloud {
    animation: none !important;
  }

  .sierra-scroll-arrows i {
    animation: none;
    opacity: .70;
    transform: translateX(-50%) rotate(45deg);
  }

  .login {
    transform: none;
  }

  .sierra-vector-shell,
  .sierra-vector-glow,
  .act-sun-disc,
  .act-moon,
  .act-rocket,
  .act-meteor {
    will-change: auto;
  }

  .medsierra-back-to-top,
  .local-account {
    transition: opacity .15s linear;
  }
}