:root::view-transition-group(*), :root::view-transition-new(*) { animation: none; }
:root::view-transition-old(*) { display: none; }
@media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  :root[data-home-transition]::view-transition-old(root) { display: block; animation: none; mix-blend-mode: normal; }
  :root[data-home-transition]::view-transition-new(root) { animation: feedback-fade-in 230ms ease-out both; mix-blend-mode: normal; }
  .home-arriving::before, .home-arriving > .home-welcome { animation: feedback-fade-in 230ms ease-out; }
}
.workshop-home {
  --city: url('assets/retail.webp');
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  background: #1c1510;
}
.workshop-home::before {
  position: absolute; inset: 0; opacity: 1;
  background:
    linear-gradient(0deg,#17100bf7,transparent 35%,transparent 85%,#1b111f4d),
    radial-gradient(ellipse 42% 50% at 50% 48%,#21150fd6 4%,#23161192 55%,transparent),
    linear-gradient(#1b10202e,#1d141337),
    var(--city) 57% center / cover no-repeat;
}
.workshop-home > .masthead { grid-row: 1; margin-bottom: 0; }
.workshop-home .nav-cursor { display: none; }
.workshop-home > .home-welcome {
  grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; text-align: center; padding-block: clamp(28px,6vh,86px);
}
.home-seal {
  width: clamp(142px,min(21vw,28vh),248px); aspect-ratio: 1;
  position: relative; isolation: isolate; display: grid; place-items: center;
  margin-bottom: clamp(18px,3vh,34px);
  background: radial-gradient(closest-side,#3828149c 56%,#d5973822 71%,transparent);
}
.home-seal img {
  grid-area: 1 / 1; position: relative; display: block; width: 69%; height: 69%; object-fit: contain;
}
.home-seal-logo {
  filter: drop-shadow(0 3px 12px #110a05c9);
}
.home-seal .home-seal-glint { display: none; }
@media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  .home-seal .home-seal-glint {
    display: block; pointer-events: none; mix-blend-mode: screen;
    filter: brightness(1.35) sepia(.24);
    mask: linear-gradient(112deg,transparent 42%,#0003 46%,#000 50%,#0006 52%,transparent 58%) 100% 50% / 300% 100% no-repeat;
    animation: home-seal-sweep 6.4s ease-in-out infinite;
  }
  @keyframes home-seal-sweep {
    0%, 7% { mask-position: 100% 50%; opacity: 0; }
    14%, 32% { opacity: .9; }
    39%, 100% { mask-position: 0% 50%; opacity: 0; }
  }
}
.home-dial {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.home-compass,.home-scale,.home-orbit {
  transform-box: view-box; transform-origin: center; transform: rotate(var(--start-angle));
}
.home-compass { --start-angle: 3deg; }
.home-scale { --start-angle: -8deg; }
.home-orbit { --start-angle: -28deg; }
@media (prefers-reduced-motion:no-preference) {
  .home-compass { animation: home-turn 120s linear infinite reverse; }
  .home-scale { animation: home-turn 68s linear infinite; }
  .home-orbit { animation: home-turn 29s linear infinite reverse; }
  @keyframes home-turn {
    from { transform: rotate(var(--start-angle)); }
    to { transform: rotate(calc(var(--start-angle) + 1turn)); }
  }
}
.home-welcome h1,.home-caption { max-width: 100%; overflow-wrap: anywhere; }
.home-welcome h1 {
  color: #ffedc5; font: 600 clamp(2.2rem,4.7vw,4.4rem)/1.24 var(--serif);
  letter-spacing: .08em; text-wrap: balance; text-shadow: 0 2px 18px #211308,0 1px 3px #211308;
}
.home-caption {
  display: grid; width: min(100%,44em); margin-top: clamp(14px,2vh,24px); color: #f4e8d3;
  font-size: clamp(.96rem,1.25vw,1.13rem); line-height: 1.8; white-space: pre-line;
  text-wrap: balance; text-shadow: 0 1px 4px #1d1108,0 2px 14px #201003;
}
.home-caption:has(> p:empty) { display: none; }
.home-caption > p, .home-caption::before { grid-area: 1 / 1; margin: 0; }
.home-caption:not([data-measure=""])::before { content: attr(data-measure); visibility: hidden; pointer-events: none; }

.workshop-home > .site-footer { grid-row: 3; margin-top: 0; }
@media(max-width:600px) {
  .workshop-home { --city: url('assets/retail-portrait.webp'); }
  .workshop-home::before {
    background: linear-gradient(0deg,#18110bf2,#1c15117d 23%,#21150e8c 63%,#19111c40),var(--city) 64% center / cover no-repeat;
  }
  .home-caption { width: min(100% - 24px,29em); }
}
@media (min-width:701px) and (max-width:1440px) and (max-height:480px) and (max-resolution:1dppx){
  .workshop-home{--city:url('assets/retail-1440.webp')}
}
.workshop-home.page-not-found {
  --city: url('assets/murloc-404.webp');
  background: #101b26;
}
.page-not-found::before {
  background: linear-gradient(0deg,#101822f5,transparent 35%,transparent 86%,#10182242),
    radial-gradient(ellipse 36% 44% at 50% 52%,#0a182ab8,transparent),
    var(--city) 65% center / cover no-repeat;
}
.page-not-found::after {
  content: ""; position: absolute; inset: auto 0 0; height: clamp(110px,22svh,240px);
  z-index: -1; pointer-events: none;
  background: linear-gradient(transparent,#10192375 62%,#101923b5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  mask-image: linear-gradient(transparent,#000b 48%,#000 82%);
}
@media (max-width: 360px) {
  .page-not-found .home-welcome h1 { font-size: clamp(1.85rem,9.2vw,2.2rem); }
}
@media (max-aspect-ratio: 1/1) {
  .page-not-found::before {
    background: linear-gradient(to bottom,transparent 34%,#101b2655 48%,#101b26 70%),
      var(--city) 82% top / auto 70% no-repeat;
  }
  .page-not-found > .home-welcome {
    justify-content: flex-end; padding-block: min(3vh,24px) clamp(14px,4vh,46px);
  }
  .page-not-found .home-seal { width: clamp(88px,14vh,160px); margin-bottom: min(2vh,18px); }
}
