/* The characters overlap the elements they are building. */
.built-title{position:relative;display:inline-block;white-space:nowrap}
.built-period{
  position:relative;display:inline-block;width:.19em;height:.19em;margin-left:.025em;
  border-radius:50%;background:currentColor;
}
.built-period-text{position:absolute;opacity:0}
.built-period::after{
  content:"";position:absolute;right:12%;bottom:12%;width:27%;aspect-ratio:1;
  border-radius:50%;background:#192958;box-shadow:0 0 0 1px #fff4a8;
}
.headline-builder,.photo-builder{position:absolute;z-index:2;pointer-events:none;user-select:none}
.headline-builder img,.photo-build .photo-builder img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;filter:drop-shadow(0 5px 5px #10234b45)}
.students-hero .hero-copy{--hero-builder-width:clamp(55px,8vw,100px)}
.headline-builder{
  width:var(--hero-builder-width);left:81%;top:81%;
  translate:calc(-1 * var(--plug-x,23.08%)) calc(-1 * var(--plug-y,18.18%));
  transform-origin:var(--plug-x,23.08%) var(--plug-y,18.18%);
}
.students-hero .intro{position:relative;z-index:3;max-width:min(410px,var(--ladder-clearance,62%),100%)}
@media(max-width:760px){
  .students-hero .intro{
    max-width:100%;
    margin-block-start:calc(var(--hero-builder-width) * 1.42 + 12px);
  }
}
.builder-spark{position:absolute;width:29px;aspect-ratio:1;opacity:0;background:radial-gradient(circle,#fff9c9 0 12%,#ffd640 23%,#fdb81369 31%,transparent 66%);pointer-events:none}
.builder-spark::before,.builder-spark::after{content:"";position:absolute;inset:47% 4%;background:linear-gradient(90deg,transparent,#ffe772,#fff, #ffe772,transparent);border-radius:50%;transform:rotate(42deg)}
.builder-spark::after{transform:rotate(132deg) scaleX(.75)}
.headline-builder .builder-spark{left:var(--plug-x,23.08%);top:var(--plug-y,18.18%);translate:-50% -50%}
.builders-moving .headline-builder{animation:circuit-connect .82s cubic-bezier(.25,.6,.4,1) both}
.builders-moving .headline-builder .builder-spark{animation:builder-spark .35s .76s ease-out both}
.built-title.builders-moving{animation:sign-startup 1.65s linear both}
@keyframes circuit-connect{
  0%,35%{transform:translate(9px,6px) rotate(5deg)}
  100%{transform:none}
}
@keyframes sign-startup{
  0%,47%{color:var(--holiday-dim,#d7bd61);text-shadow:none}
  49%,54%{color:var(--holiday-sign,var(--yellow));text-shadow:0 0 .08em var(--holiday-glow,#ffdf6390)}
  56%,65%{color:var(--holiday-dim,#d7bd61);text-shadow:none}
  67%,73%{color:var(--holiday-sign,var(--yellow));text-shadow:0 0 .09em var(--holiday-glow,#ffdf6390)}
  75%,81%{color:var(--holiday-dim,#d7bd61);text-shadow:none}
  88%,100%{color:var(--holiday-sign,var(--yellow));text-shadow:0 0 .035em var(--holiday-glow,#ffdf6360)}
}
@keyframes builder-spark{0%,100%{opacity:0;transform:scale(.45)}28%{opacity:1;transform:scale(1.3)}}

.stat .stat-count-accessible{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
.stat .stat-count{font:inherit;font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:no-preference){
  .stat-powered .stat-count{animation:stat-power-on 1.8s ease-in-out}
}
@keyframes stat-power-on{
  0%,100%{text-shadow:none}
  45%{text-shadow:0 0 .19em #e2ab4794,0 0 .34em #e2ab475e}
}

.photo-build{overflow:visible}
.photo-build-stage{position:relative;isolation:isolate;aspect-ratio:1.48;background:#dce4ff;border-radius:6px 6px 0 0}
.photo-build-mat{position:absolute;inset:0;border-radius:inherit;overflow:hidden;transform-origin:50% 40%}
.photo-build .photo-build-mat img{width:100%;height:100%;object-fit:cover}
/* Each sprite is positioned by the point where its tool meets the photo. */
.photo-builder{width:clamp(54px,24%,100px)}
.photo-builder-clip{left:23%;top:0;translate:-93% -37%}
.builders-moving .photo-build-stage{animation:photo-settle 1.6s cubic-bezier(.2,.68,.27,1) both}
@keyframes photo-settle{
  0%,100%{transform:none}
  28%{transform:translateY(-4px) rotate(-1.2deg)}
  55%{transform:translateY(1px) rotate(.45deg)}
  72%{transform:rotate(-.16deg)}
}

.story-photo{position:relative}
.story-photo > img:first-child{display:block;width:100%}
.story-photo .story-builder{
  position:absolute;right:0;bottom:-15px;width:clamp(66px,23%,142px);height:auto;
  border-radius:0;box-shadow:none;object-fit:contain;pointer-events:none;
  filter:drop-shadow(0 5px 5px #10234b45);transform-origin:50% 100%;
}
.builders-moving .story-builder{animation:story-builder-pose .85s ease-out both}
@keyframes story-builder-pose{
  0%,100%{transform:none}
  40%{transform:rotate(-3deg) translateY(-3px)}
  68%{transform:rotate(1deg)}
}

@media(max-width:760px){
  .photo-build-stage{aspect-ratio:1.6}
}
@media(prefers-reduced-motion:reduce){.built-title.builders-moving{animation:none!important}[data-builders] *,[data-builders] *::before,[data-builders] *::after{animation:none!important}}

.built-title{color:var(--holiday-sign,var(--yellow))}
.headline-builder{
  appearance:none;background:none;border:0;padding:0;color:inherit;pointer-events:auto;cursor:pointer;
  border-radius:10px;
}
.holiday-preview-status{margin:-12px 0 12px;color:#c4d1f6;font-size:13px;font-weight:600}

.headline-builder:disabled{pointer-events:none}

.built-title[data-holiday-light="halloween"]{
  --holiday-glow:#ff751f91;
  --holiday-reflection-filter:brightness(1.22) sepia(.28) saturate(1.28);
  --holiday-wash:#ef72283a;
}
.built-title[data-holiday-light="thanksgiving"]{
  --holiday-glow:#e69a567a;
  --holiday-reflection-filter:brightness(1.18) sepia(.14);
  --holiday-wash:#d0814247;
}
.built-title[data-holiday-light="christmas"]{
  --holiday-glow:#ffe7b38a;
  --holiday-reflection-filter:brightness(1.24) sepia(.09);
  --holiday-wash:#5dbb8e49;
}
.built-title[data-holiday-light]{isolation:isolate}
.built-title[data-holiday-light]::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;inset:-66% -17% -70% -13%;
  background:radial-gradient(ellipse closest-side at 66% 54%,var(--holiday-wash),transparent 100%);
}
.headline-builder{--builder-lit-sprite:url("/assets/builder-circuit-side-pose.webp")}
.builder-reflection{
  position:absolute;inset:0;pointer-events:none;
  background:var(--builder-lit-sprite,none) center / 100% 100% no-repeat;
  filter:var(--holiday-reflection-filter,brightness(1.22) sepia(.16));
  -webkit-mask-image:radial-gradient(ellipse 68% 35% at 44% 17%,#000 21%,transparent 100%);
  mask-image:radial-gradient(ellipse 68% 35% at 44% 17%,#000 21%,transparent 100%);
}
.built-title[data-holiday-light].builders-moving::before,
.built-title.builders-moving .builder-reflection{
  animation:holiday-light-pool 1.65s linear both;
}
@keyframes holiday-light-pool{
  0%,47%,56%,65%,75%{opacity:0}
  49%,54%,67%,73%{opacity:.65}
  88%,100%{opacity:1}
}
@media(prefers-reduced-motion:reduce){
  .built-title[data-holiday-light].builders-moving::before{animation:none}
}

@property --christmas-hotspot{
  syntax:"<percentage>";
  inherits:false;
  initial-value:100%;
}
.christmas-bulbs > span{
  display:inline-block;vertical-align:baseline;color:var(--bulb);text-shadow:none;
  /* Keep the clipped background wide enough for the full glyph. */
  letter-spacing:0;margin-inline-end:-.086em;
  background:
    radial-gradient(ellipse .052em .074em at 26% 63%,color-mix(in srgb,#fff8d4 var(--christmas-hotspot),transparent) 0%,color-mix(in srgb,#fff0aa var(--christmas-hotspot),transparent) 14%,transparent 100%),
    radial-gradient(ellipse .037em .054em at 74% 45%,color-mix(in srgb,#fff5c8 var(--christmas-hotspot),transparent) 0%,color-mix(in srgb,#fff0aa80 var(--christmas-hotspot),transparent) 28%,transparent 100%),
    linear-gradient(155deg,var(--bulb-edge),var(--bulb) 51%,var(--bulb-edge));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 .008em color-mix(in srgb,var(--bulb) 48%,transparent));
}
.christmas-bulbs > :nth-child(6n + 1){--bulb:#47aaff;--bulb-edge:#206ec0}
.christmas-bulbs > :nth-child(6n + 2){--bulb:#43d891;--bulb-edge:#168e5a}
.christmas-bulbs > :nth-child(6n + 3){--bulb:#ffe370;--bulb-edge:#d3a82e}
.christmas-bulbs > :nth-child(6n + 4){--bulb:#ff6264;--bulb-edge:#bd253c}
.christmas-bulbs > :nth-child(6n + 5){--bulb:#c592ff;--bulb-edge:#814bbb}
.christmas-bulbs > :nth-child(6n),.built-title[data-holiday-light="christmas"] .built-period{
  --bulb:#ffb14c;--bulb-edge:#d97620;
}
.built-title[data-holiday-light="christmas"] .built-period{
  background:radial-gradient(circle at 36% 33%,color-mix(in srgb,#fff4c1 var(--christmas-hotspot),var(--bulb)) 0%,var(--bulb) 28%,var(--bulb-edge) 92%);
}
.built-title.builders-moving .christmas-bulbs > span{
  animation:christmas-bulb-startup 1.65s linear both;
}
@keyframes christmas-bulb-startup{
  0%,47%,56%,65%,75%{--christmas-hotspot:0%;filter:brightness(.64)}
  49%,54%,67%,73%{--christmas-hotspot:100%;filter:drop-shadow(0 0 .02em color-mix(in srgb,var(--bulb) 67%,transparent))}
  88%,100%{--christmas-hotspot:100%;filter:drop-shadow(0 0 .008em color-mix(in srgb,var(--bulb) 48%,transparent))}
}
@media(forced-colors:active){
  .christmas-bulbs > span{background:none;-webkit-text-fill-color:CanvasText;filter:none}
}

.built-title.builders-moving[data-holiday-light="christmas"] .built-period{
  animation:christmas-socket-startup 1.65s linear both;
}
@keyframes christmas-socket-startup{
  0%,47%,56%,65%,75%{--christmas-hotspot:0%}
  49%,54%,67%,73%,88%,100%{--christmas-hotspot:100%}
}

.built-title[data-holiday-light="dia-de-los-muertos"]{
  --holiday-glow:#ef6cba9e;
  --holiday-reflection-filter:brightness(1.22) sepia(.21) saturate(1.22);
  --holiday-wash:#c653994e;
}
.built-title[data-holiday-light="new-years"]{
  --holiday-glow:#f8cc7496;
  --holiday-reflection-filter:brightness(1.22) sepia(.12);
  --holiday-wash:#c6a75e3b;
}
