/* All rules belong exclusively to the Fantasy Realms document. */
.fr {
  --ink:#383a31;
  --muted:#626252;
  --accent:#90713c;
  --line:#9b88664d;
  --paper:#f2efe6;
  --veil:242,239,230;
  --serif:Georgia,'Yu Mincho','Hiragino Mincho ProN',serif;
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;
  font-size:14px;
  line-height:1.8;
  transition:color .7s,background-color .7s;
  color-scheme:light;
  isolation:isolate;
}
.fr[data-world=temple] {
  --ink:#303f48;
  --muted:#586d78;
  --accent:#607e90;
  --line:#7c96a34d;
  --paper:#e8eef0;
  --veil:232,238,240;
}
.fr[data-world=forest] {
  --ink:#e6ecdf;
  --muted:#b4c5b5;
  --accent:#c2d1a1;
  --line:#a5c6ac40;
  --paper:#101f19;
  --veil:16,31,25;
  color-scheme:dark;
}
.fr[data-world=inferno] {
  --ink:#f3e2d1;
  --muted:#d3b4a2;
  --accent:#e3a275;
  --line:#c786634f;
  --paper:#251614;
  --veil:37,22,20;
  color-scheme:dark;
}
.fr * {
  box-sizing:border-box;
}
.fr button,.fr input {
  font:inherit;
}
.fr button,.fr a,.fr input {
  -webkit-tap-highlight-color:transparent;
}
.fr button {
  color:inherit;
  cursor:pointer;
}
.fr a {
  color:inherit;
  text-decoration:none;
}
.fr button:focus-visible,.fr a:focus-visible,.fr input:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:7px;
}
.fr h1,.fr h2,.fr p,.fr figure {
  margin:0;
}
.fr button {
  border:0;
}
.fr [hidden] {
  display:none!important;
}
.fr ::selection {
  background:var(--accent);
  color:var(--paper);
}
.fr-sr {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.fr-skip {
  position:fixed;
  top:12px;
  left:12px;
  padding:12px 20px;
  background:var(--paper);
  z-index:30;
  transform:translateY(-160%);
}
.fr-skip:focus {
  transform:none;
}
.fr-backdrop {
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:var(--paper);
}
.fr-backdrop__layer {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:62% center;
  opacity:0;
  transition:opacity 1.1s ease;
}
.fr-backdrop__layer[data-scene=sky] {
  background-image:url('./assets/sky.webp');
}
.fr-backdrop__layer[data-scene=temple] {
  background-image:url('./assets/temple.webp');
}
.fr-backdrop__layer[data-scene=forest] {
  background-image:url('./assets/forest.webp');
}
.fr-backdrop__layer[data-scene=inferno] {
  background-image:url('./assets/inferno.webp');
}
.fr-backdrop__layer.is-visible {
  opacity:1;
}
.fr-backdrop:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(var(--veil),.94),rgba(var(--veil),.74) 28%,rgba(var(--veil),.07) 61%),linear-gradient(0deg,rgba(var(--veil),.9),transparent 42%);
  transition:background .7s;
}
.fr-header {
  height:108px;
  margin:0 5.5%;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.fr-brand {
  display:flex;
  gap:13px;
  align-items:center;
  font:19px/1.25 var(--serif);
  letter-spacing:2px;
}
.fr-brand>span>span {
  display:block;
  font-size:12px;
  letter-spacing:4px;
  margin-top:5px;
}
.fr-brand img {
  width:35px;
  height:44px;
}
.fr-header nav {
  display:flex;
  gap:35px;
  font-size:12px;
  letter-spacing:.08em;
}
.fr-header nav a {
  border-bottom:1px solid transparent;
  padding:6px 0;
}
.fr-header nav a:hover {
  border-color:var(--accent);
}
.fr-header__note {
  font-size:9px;
  letter-spacing:2px;
  color:var(--muted);
}
.fr-hero {
  position:relative;
  min-height:850px;
  padding:65px 7.5% 35px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:55px;
}
.fr-eyebrow {
  font-size:10px;
  font-weight:500;
  letter-spacing:2.5px;
  color:var(--accent);
  display:flex;
  align-items:center;
  gap:14px;
}
.fr-line {
  width:35px;
  height:1px;
  background:var(--accent);
}
.fr-hero__content {
  max-width:560px;
}
.fr-hero__english {
  font-family:var(--serif);
  font-size:clamp(56px,5.6vw,86px);
  font-weight:400;
  line-height:1.04;
  letter-spacing:-3px;
  margin:27px 0 21px!important;
}
.fr h1 {
  font-family:var(--serif);
  font-size:clamp(23px,2.1vw,31px);
  font-weight:400;
  letter-spacing:.16em;
  line-height:1.65;
}
.fr-hero__description {
  font-size:12px;
  line-height:2.1;
  letter-spacing:.06em;
  color:var(--muted);
  margin-top:19px!important;
  max-width:390px;
}
.fr-coordinate {
  position:absolute;
  right:4%;
  top:80px;
  writing-mode:vertical-rl;
  display:flex;
  gap:25px;
  font-size:9px;
  letter-spacing:3px;
  color:var(--ink);
  opacity:.7;
}
.fr-worlds {
  width:492px;
  max-width:100%;
  scroll-margin-top:25px;
}
.fr-worlds__heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:9px;
  letter-spacing:1.8px;
  color:var(--muted);
  margin-bottom:25px;
}
.fr-worlds__heading span:last-child {
  font-size:10px;
  letter-spacing:.06em;
}
.fr-worlds__list {
  display:flex;
  justify-content:space-between;
  gap:20px;
}
.fr-world {
  padding:0;
  background:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:0;
  flex:1;
}
.fr-world__image {
  width:76px;
  height:76px;
  position:relative;
  border-radius:50%;
  background-size:auto 100%;
  background-position:66% center;
  display:block;
  box-shadow:0 0 0 5px rgba(var(--veil),.55);
  transition:transform .3s;
}
.fr-world__image:before {
  content:'';
  position:absolute;
  inset:-8px;
  border:1px solid var(--line);
  border-radius:50%;
  transition:border-color .3s;
}
.fr-world__image:after {
  content:'';
  position:absolute;
  inset:0;
  border-radius:50%;
  background:linear-gradient(0deg,#0008,transparent 70%);
}
.fr-world__image--sky {
  background-image:url('./assets/sky-thumb.webp');
}
.fr-world__image--temple {
  background-image:url('./assets/temple-thumb.webp');
}
.fr-world__image--forest {
  background-image:url('./assets/forest-thumb.webp');
}
.fr-world__image--inferno {
  background-image:url('./assets/inferno-thumb.webp');
}
.fr-world__image>span {
  position:absolute;
  bottom:2px;
  left:0;
  right:0;
  font:12px var(--serif);
  color:#fff;
  z-index:1;
}
.fr-world.is-active .fr-world__image:before {
  border-color:var(--accent);
  border-width:2px;
}
.fr-world.is-active .fr-world__name {
  color:var(--accent);
}
.fr-world:hover .fr-world__image {
  transform:translateY(-4px);
}
.fr-world__name {
  margin-top:18px;
  font-size:11px;
  white-space:nowrap;
}
.fr-world__english {
  font-size:8px;
  letter-spacing:1.6px;
  color:var(--muted);
  margin-top:2px;
}
.fr-scroll {
  position:absolute;
  bottom:42px;
  right:5.5%;
  display:flex;
  gap:20px;
  align-items:center;
  font-size:8px;
  letter-spacing:2px;
}
.fr-scroll>span:last-child {
  font-size:30px;
  font-weight:200;
}
.fr-story {
  background:rgba(var(--veil),.94);
  padding:75px 7.5% 42px;
  scroll-margin-top:0;
  border-top:1px solid var(--line);
  transition:background .7s;
}
.fr-story__heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:23px;
  margin-bottom:48px;
}
.fr-chapter {
  font-size:10px;
  letter-spacing:2px;
  color:var(--muted);
}
.fr-story__grid {
  display:grid;
  grid-template-columns:1fr 1.05fr;
  gap:8%;
  align-items:center;
}
.fr-kicker {
  color:var(--accent);
  font-size:11px;
  letter-spacing:.08em;
}
.fr-story h2 {
  font:400 clamp(24px,2.5vw,35px)/1.75 var(--serif);
  letter-spacing:.08em;
  margin-top:18px;
}
.fr-story__copy>p:not(.fr-kicker) {
  font-size:12px;
  line-height:2.4;
  color:var(--muted);
  margin-top:22px;
  max-width:440px;
}
.fr-story__quote {
  font-family:var(--serif);
}
.fr-facts {
  display:flex;
  gap:30px;
  border-top:1px solid var(--line);
  padding-top:24px;
  margin:30px 0 0;
}
.fr-facts dt {
  font-size:8px;
  letter-spacing:1.5px;
  color:var(--accent);
}
.fr-facts dd {
  margin:8px 0 0;
  font-size:11px;
}
.fr-landscape img {
  display:block;
  width:100%;
  height:340px;
  object-fit:cover;
  object-position:65% center;
  border-radius:48% 48% 0 0;
}
.fr-landscape figcaption {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:15px 0;
  font-size:8px;
  letter-spacing:1.3px;
  color:var(--muted);
}
.fr-landscape figcaption>span:last-child {
  font-size:18px;
  color:var(--accent);
}
.fr-realm-banner {
  margin:0;
  padding:0;
  background:rgba(var(--veil),.88);
}
.fr-realm-banner img {
  display:block;
  width:100%;
  height:clamp(80px,10vw,144px);
  object-fit:cover;
  object-position:center;
  border-block:1px solid var(--line);
}
.fr-footer {
  padding:45px 5.5% 20px;
  background:var(--paper);
  border-top:1px solid var(--line);
}
.fr-footer__top {
  display:flex;
  justify-content:space-between;
  gap:30px;
  padding-bottom:38px;
}
.fr-footer__brand {
  font:20px var(--serif);
  letter-spacing:1px;
}
.fr-footer__brand span {
  display:block;
  font:11px sans-serif;
  letter-spacing:2px;
  margin-top:14px;
  color:var(--muted);
}
.fr-preferences {
  font-size:11px;
  color:var(--muted);
  display:grid;
  gap:12px;
}
.fr-preferences label {
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  min-height:28px;
}
.fr-preferences input {
  accent-color:var(--accent);
  width:16px;
  height:16px;
  margin:0;
}
.fr-preferences button {
  padding:2px 0;
  background:none;
  text-align:left;
  min-height:28px;
}
.fr-preferences button:hover {
  text-decoration:underline;
}
.fr-preferences button span {
  margin-left:20px;
}
.fr-storage:empty {
  display:none;
}
.fr-storage {
  max-width:300px;
}
.fr-footer__bottom {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding-top:20px;
  font-size:8px;
  letter-spacing:1px;
  color:var(--muted);
}
.fr-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 28px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  transition: border-color .2s, color .2s;
}
.fr-footer__back:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.fr-motion-paused * {
  scroll-behavior:auto!important;
}
/* The architectural photograph stays still while its two door leaves rotate.
   Crop coordinates correspond to the 1536 x 1024 portal.webp master. */
.fr-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: #e5dac6;
  z-index: 100;
}
.fr-intro::backdrop { background: transparent; }
.fr-intro:focus { outline: none; }
.fr-intro.is-ready:not(.is-opening) { cursor: pointer; }
.fr-intro__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #060707;
  opacity: 0;
  animation: fr-veil 1.6s 1.35s ease-in forwards;
}
.fr-fog {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.fr-intro.is-arriving .fr-fog { animation: fr-fog-dissolve 1.6s 3s ease-in-out forwards; }
.fr-fog__bank {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 145vmax;
  height: 125vmax;
  background: url('./assets/fog.svg') center / 100% 100% no-repeat;
  opacity: 0;
}
.fr-intro.is-arriving .fr-fog__bank { animation: fr-fog-gather 3.5s var(--delay, 0s) cubic-bezier(.22,.45,.3,1) both; }
.fr-fog__bank--left { --from-x: -78vw; --from-y: 12vh; --to-x: -8vw; --to-y: 0vh; --turn: -18deg; }
.fr-fog__bank--right { --from-x: 80vw; --from-y: -18vh; --to-x: 9vw; --to-y: -5vh; --turn: 155deg; --delay: .18s; }
.fr-fog__bank--top { --from-x: -12vw; --from-y: -80vh; --to-x: 0vw; --to-y: -8vh; --turn: 64deg; --delay: .12s; }
.fr-fog__bank--bottom { --from-x: 20vw; --from-y: 85vh; --to-x: 0vw; --to-y: 12vh; --turn: 235deg; --delay: .32s; }
.fr-intro__scene {
  position: absolute;
  top: 43%;
  left: 50%;
  width: min(1320px, 130vh, 230vw);
  aspect-ratio: 3 / 2;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.76);
  transform-origin: center;
}
.fr-intro.is-arriving .fr-intro__scene {
  animation: fr-approach 4.6s 1.8s cubic-bezier(.18,.5,.28,1) forwards;
}
.fr-portal {
  position: relative;
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: transform 4.6s cubic-bezier(.46,0,.5,1);
  /* Keep both existing masks on the scaled artwork. A mask on the unscaled
     scene clips the expanding floor at the scene's original bottom edge. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #0002 5%, #000a 12%, #000 21%), radial-gradient(ellipse 70% 72% at 50% 48%, #000 48%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #0002 5%, #000a 12%, #000 21%), radial-gradient(ellipse 70% 72% at 50% 48%, #000 48%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.fr-portal__architecture { display: block; width: 100%; height: 100%; }
.fr-door-frame {
  position: absolute;
  left: calc(100% * 478 / 1536);
  top: calc(100% * 205 / 1024);
  width: calc(100% * 586 / 1536);
  height: calc(100% * 709 / 1024);
  perspective: 1100px;
  perspective-origin: 50% 48%;
  isolation: isolate;
}
.fr-door-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(#7c623b33, #ecd7a37a), url('./assets/sky.webp') 65% center / cover;
  box-shadow: inset 0 0 45px 20px #090907;
  filter: brightness(.42) saturate(.5);
  transition: filter 3.5s .4s ease, box-shadow 3.5s .4s ease;
}
.fr-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 4.3s cubic-bezier(.38,.05,.38,1), filter 3.4s;
  will-change: transform;
  background: #211e17;
  box-shadow: 0 0 1px #090907;
}
.fr-door img {
  position: absolute;
  display: block;
  max-width: none;
  width: calc(100% * 1536 / 293);
  height: calc(100% * 1024 / 709);
  top: calc(-100% * 205 / 709);
  object-fit: fill;
  pointer-events: none;
}
.fr-door--left { left: 0; transform-origin: left center; }
.fr-door--right { right: 0; transform-origin: right center; }
.fr-door--left img { left: calc(-100% * 478 / 293); }
.fr-door--right img { left: calc(-100% * 771 / 293); }
.fr-door::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0009, transparent 18%, transparent 82%, #0009);
  opacity: 0;
  transition: opacity 3s;
}
.fr-door__seam {
  position: absolute;
  left: 50%;
  top: 2%;
  bottom: 1%;
  width: 1px;
  background: #e7c38a;
  box-shadow: 0 0 14px 2px #e3ae5930;
  opacity: .45;
  transition: opacity 1.2s;
  pointer-events: none;
}
.fr-door__seam::before {
  content: '';
  position: absolute;
  top: -4%;
  bottom: -4%;
  left: 50%;
  width: clamp(100px, 13vw, 190px);
  background: radial-gradient(ellipse at center, #fffbeed9 0%, #ffdf9cb3 23%, #e4a8494d 48%, transparent 72%);
  filter: blur(12px);
  transform: translateX(-50%) scaleX(.08);
  opacity: 0;
}
.fr-portal__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 95%, #d9bf8d0a, transparent 40%), linear-gradient(0deg, #060707 0%, transparent 13%, transparent 85%, #06070780);
}
.fr-intro__copy {
  position: absolute;
  inset: auto 20px 6%;
  text-align: center;
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s, transform 1.4s;
}
.fr-intro__copy .fr-eyebrow {
  justify-content: center;
  color: #a5977c;
  font-size: 8px;
  letter-spacing: 3.5px;
}
.fr-intro__copy h2 {
  font: 400 clamp(18px, 1.8vw, 25px)/1.7 var(--serif);
  letter-spacing: .2em;
  margin: 15px 0 5px;
  text-shadow: 0 2px 20px #000;
}
.fr-intro__copy > p:not(.fr-eyebrow) {
  font-size: 10px;
  letter-spacing: .15em;
  color: #a8a194;
}
.fr-intro__copy button {
  position: relative;
  background: transparent;
  color: #ded0b5;
  letter-spacing: 5px;
  font: 11px/2.5 var(--serif);
  padding: 14px 26px;
  margin-top: 14px;
  min-height: 48px;
}
.fr-intro__copy button::before,
.fr-intro__copy button::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ab90675e);
  transition: width .3s;
}
.fr-intro__copy button::before { right: 100%; }
.fr-intro__copy button::after { left: 100%; transform: scaleX(-1); }
.fr-intro__copy button:hover { color: #fff2d6; }
.fr-intro__copy button:hover::before,
.fr-intro__copy button:hover::after { width: 48px; }
.fr-intro__brand {
  position: absolute;
  top: 32px;
  left: 35px;
  font: 10px var(--serif);
  letter-spacing: 3.5px;
  color: #aaa18f;
  z-index: 4;
  opacity: 0;
}
.fr-intro.is-arriving .fr-intro__brand { animation: fr-veil 1s 1.6s forwards; }
.fr-intro__skip {
  position: absolute;
  right: 25px;
  top: 20px;
  background: none;
  padding: 12px;
  color: #bbb3a2;
  font-size: 10px;
  letter-spacing: .15em;
  opacity: .5;
  transition: opacity .25s;
  z-index: 4;
}
.fr-intro__skip:hover,
.fr-intro__skip:focus-visible { opacity: 1; }
.fr .fr-intro button:focus-visible { outline: 1px solid #b4a17c; outline-offset: 3px; }
.fr-intro.is-ready .fr-intro__copy { opacity: 1; transform: none; }
.fr-intro.is-opening .fr-door--left { transform: rotateY(-100deg); filter: brightness(.55); }
.fr-intro.is-opening .fr-door--right { transform: rotateY(100deg); filter: brightness(.55); }
.fr-intro.is-opening .fr-door::after { opacity: 1; }
.fr-intro.is-opening .fr-door-light {
  filter: brightness(1.8) saturate(.65);
  box-shadow: inset 0 0 25px #ddba7d60;
  transition: filter 1.8s .05s ease, box-shadow 2.5s .05s ease;
}
.fr-intro.is-opening .fr-door__seam {
  animation: fr-seam-ignite 2.8s ease-out forwards;
}
.fr-intro.is-opening .fr-door__seam::before {
  animation: fr-seam-spill 2.8s ease-out forwards;
}
.fr-intro.is-opening .fr-intro__copy { opacity: 0; }
.fr-intro.is-opening .fr-portal { transform: scale(1.14); }
.fr-intro__light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 43%, #f6e9c9, #cdb484);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}
.fr-intro.is-opening .fr-intro__light { animation: fr-bloom 3s 1.4s ease-in forwards; }
.fr-intro.is-leaving { opacity: 0; transition: opacity 1.1s ease; }
.fr-intro-open { overflow: hidden; }
/* Entry continues the source page's blackout directly into the door approach.
   Keep black inside the modal so it fades out together with the final light. */
.fr-intro.is-entry .fr-intro__veil { opacity: 1; animation: none; }
.fr-intro.is-entry .fr-fog { display: none; }
.fr-intro.is-entry.is-arriving .fr-intro__scene,
.fr-intro.is-entry.is-arriving .fr-intro__brand { animation-delay: 0s; }
.fr-intro.is-static .fr-fog { display: none; }
.fr-intro.is-static .fr-intro__veil { animation: none; opacity: 1; }
.fr-intro.is-static .fr-intro__scene { animation: none; transform: translate(-50%, -50%); opacity: 1; }
.fr-intro.is-static .fr-intro__copy { transition: none; }
.fr-intro.is-static .fr-intro__brand { opacity: 1; animation: none; }
/* One continuous bloom: a white-hot seam, then warm light spilling outward. */
@keyframes fr-seam-ignite {
  0% {
    opacity: .45;
    background: #e7c38a;
    box-shadow: 0 0 14px 2px #e3ae5930;
  }
  12%, 32% {
    opacity: 1;
    background: #fffef7;
    box-shadow: 0 0 5px 2px #fffef7, 0 0 22px 8px #ffe5a9, 0 0 70px 22px #efbb6ca6;
  }
  65% {
    opacity: .8;
    background: #fff8df;
    box-shadow: 0 0 14px 6px #fff3cc, 0 0 60px 24px #ffdf9ccc, 0 0 120px 40px #efbb6c59;
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 24px 12px #fff3cc, 0 0 100px 40px #ffdf9c80;
  }
}
@keyframes fr-seam-spill {
  0% { opacity: 0; transform: translateX(-50%) scaleX(.08); }
  18% { opacity: .85; transform: translateX(-50%) scaleX(.3); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleX(2); }
}
.fr-noscript {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:20;
  background:var(--paper);
  padding:12px;
  text-align:center;
  font-size:12px;
}
@keyframes fr-fog-gather {
  0% { opacity: 0; transform: translate(calc(-50% + var(--from-x)), calc(-50% + var(--from-y))) rotate(var(--turn)) scale(.9); }
  25% { opacity: .7; }
  65% { opacity: .98; }
  100% { opacity: 1; transform: translate(calc(-50% + var(--to-x)), calc(-50% + var(--to-y))) rotate(calc(var(--turn) + 12deg)) scale(1.15); }
}
@keyframes fr-fog-dissolve {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}
@keyframes fr-veil {
  to {
    opacity:1;
  }
}
@keyframes fr-approach {
  0% {
    opacity:0;
    transform:translate(-50%, -50%) scale(.76);
  }
  30% {
    opacity:1;
  }
  100% {
    opacity:1;
    transform:translate(-50%, -50%) scale(1);
  }
}
@keyframes fr-bloom {
  0% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}
@media(min-width:1600px) {
  .fr-hero {
    min-height:calc(100svh - 108px);
    padding-top:8vh;
  }
  .fr-hero__english {
    font-size:96px;
  }
  .fr-story__grid {
    max-width:1400px;
    margin:auto;
  }
}
@media(max-width:900px) {
  .fr-header__note {
    display:none;
  }
  .fr-header {
    height:90px;
  }
  .fr-hero {
    padding-left:6%;
    padding-right:6%;
    min-height:830px;
  }
  .fr-hero__english {
    font-size:65px;
  }
  .fr-story {
    padding:55px 6% 28px;
  }
  .fr-story__grid {
    gap:5%;
  }
  .fr-landscape img {
    height:340px;
  }
  .fr-facts {
    gap:18px;
  }
  .fr-footer__bottom>span:last-child {
    display:none;
  }
  .fr-scroll {
    display:none;
  }
}
@media(max-width:600px) {
  .fr-header {
    height:82px;
    margin:0 6%;
    gap:10px;
  }
  .fr-brand {
    font-size:15px;
    gap:9px;
    letter-spacing:1.4px;
  }
  .fr-brand img {
    width:27px;
    height:35px;
  }
  .fr-brand>span>span {
    font-size:9px;
    letter-spacing:3px;
  }
  .fr-header nav {
    gap:16px;
    font-size:10px;
  }
  .fr-header nav a:last-child {
    display:none;
  }
  .fr-backdrop__layer {
    background-position:65% center;
  }
  .fr-backdrop:after {
    background:linear-gradient(90deg,rgba(var(--veil),.79),rgba(var(--veil),.25)),linear-gradient(0deg,rgba(var(--veil),.98) 0%,rgba(var(--veil),.7) 24%,transparent 58%);
  }
  .fr-hero {
    min-height:860px;
    padding:48px 7% 36px;
    gap:42px;
  }
  .fr-hero__content {
    max-width:100%;
  }
  .fr-eyebrow {
    font-size:8px;
    letter-spacing:2px;
  }
  .fr-hero__english {
    font-size:62px;
    letter-spacing:-2.7px;
    margin-top:24px!important;
    text-shadow:0 1px 30px rgba(var(--veil),.65);
  }
  .fr h1 {
    font-size:24px;
    letter-spacing:.12em;
  }
  .fr-hero__description {
    font-size:11px;
    max-width:290px;
    line-height:2.1;
    background:rgba(var(--veil),.28);
  }
  .fr-coordinate {
    right:3%;
    top:45px;
    font-size:7px;
    gap:15px;
  }
  .fr-worlds__heading {
    margin-bottom:27px;
    font-size:8px;
    letter-spacing:1.3px;
  }
  .fr-worlds__heading span:last-child {
    font-size:9px;
  }
  .fr-worlds__list {
    gap:12px;
  }
  .fr-world__image {
    width:57px;
    height:57px;
  }
  .fr-world__image:before {
    inset:-6px;
  }
  .fr-world__name {
    font-size:9px;
    margin-top:15px;
  }
  .fr-world__english {
    font-size:7px;
    letter-spacing:.7px;
  }
  .fr-story {
    padding:42px 7% 24px;
  }
  .fr-story__heading {
    margin-bottom:32px;
    padding-bottom:18px;
  }
  .fr-chapter {
    font-size:8px;
    letter-spacing:1px;
  }
  .fr-story__grid {
    grid-template-columns:1fr;
    gap:35px;
  }
  .fr-story h2 {
    font-size:27px;
  }
  .fr-facts {
    justify-content:space-between;
    gap:10px;
  }
  .fr-landscape {
    max-width:420px;
    width:100%;
    margin:auto!important;
  }
  .fr-landscape img {
    height:310px;
  }
  .fr-footer {
    padding:32px 7% 20px;
  }
  .fr-footer__top {
    flex-direction:column;
    gap:30px;
  }
  .fr-footer__brand {
    font-size:18px;
  }
  .fr-footer__bottom {
    flex-direction:column;
    gap:8px;
    font-size:8px;
  }
  .fr-intro__scene {
    top:42%;
  }
  .fr-intro__copy {
    bottom:5%;
  }
  .fr-intro__brand {
    font-size:8px;
    letter-spacing:2px;
    left:20px;
    top:35px;
  }
  .fr-intro__skip {
    right:12px;
    top:20px;
    font-size:9px;
  }
  .fr-intro__copy .fr-eyebrow {
    font-size:6px;
    letter-spacing:1.6px;
  }

}
@media(max-width:360px) {
  .fr-world__image {
    width:48px;
    height:48px;
  }
  .fr-world__name {
    font-size:8px;
  }
  .fr-hero__english {
    font-size:56px;
  }
  .fr-worlds__heading span:last-child {
    font-size:8px;
  }
}
@media(max-height:580px) and (min-width:601px) {
  .fr-intro__scene {
    top:48%;
    left:27%;
    width:130vh;
  }
  .fr-intro__copy {
    left:50%;
    right:5%;
    bottom:24%;
  }
  .fr-intro__copy h2 {
    font-size:19px;
  }

  .fr-intro__copy .fr-eyebrow {
    font-size:6px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .fr *,.fr *:before,.fr *:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
  .fr-intro__veil { opacity:1; }
  .fr-intro__brand { opacity:1; }
  .fr-intro__scene { opacity:1; transform:translate(-50%, -50%); }
  .fr-fog { display:none; }
}

@media(max-height:700px) and (max-width:600px) {
  .fr-intro__scene { width: min(105vh, 230vw); top:40%; }
  .fr-intro__copy { bottom:3%; }
  .fr-intro__copy h2 { margin-top:10px; }
}
