/* Effects layer: veil, ambient and overlay layers, transitions, hover hooks, reveals, pattern utilities. */

:root {
  --fx-u-seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='40' height='20' viewBox='0 0 40 20'%3E%3Cdefs%3E%3Cg id='c' fill='%23000' stroke='%23fff' stroke-width='1.1'%3E%3Ccircle r='19.4'/%3E%3Ccircle r='13.6'/%3E%3Ccircle r='8'/%3E%3Ccircle r='2.6'/%3E%3C/g%3E%3Cmask id='m' maskUnits='userSpaceOnUse' x='0' y='0' width='40' height='20'%3E%3Cuse xlink:href='%23c' x='0' y='0'/%3E%3Cuse xlink:href='%23c' x='40' y='0'/%3E%3Cuse xlink:href='%23c' x='-20' y='10'/%3E%3Cuse xlink:href='%23c' x='20' y='10'/%3E%3Cuse xlink:href='%23c' x='60' y='10'/%3E%3Cuse xlink:href='%23c' x='0' y='20'/%3E%3Cuse xlink:href='%23c' x='40' y='20'/%3E%3Cuse xlink:href='%23c' x='20' y='30'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='40' height='20' mask='url(%23m)'/%3E%3C/svg%3E");
  --fx-u-asanoha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='51.96' viewBox='0 0 30 51.96'%3E%3Cpath fill='none' stroke='%23000' stroke-width='.9' d='M0,0H30M0,25.98H30M0,51.96H30M0,0L30,51.96M30,0L0,51.96M15,8.66L0,0M15,8.66L30,0M15,8.66V25.98M0,0V17.32L15,25.98M30,0V17.32L15,25.98M15,43.3L0,51.96M15,43.3L30,51.96M15,43.3V25.98M0,51.96V34.64L15,25.98M30,51.96V34.64L15,25.98'/%3E%3C/svg%3E");
  --fx-u-shippo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23000' stroke-width='1'%3E%3Ccircle cx='16' cy='16' r='16'/%3E%3Ccircle cx='0' cy='0' r='16'/%3E%3Ccircle cx='32' cy='0' r='16'/%3E%3Ccircle cx='0' cy='32' r='16'/%3E%3Ccircle cx='32' cy='32' r='16'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='1.5'/%3E%3Ccircle cx='0' cy='0' r='1.5'/%3E%3Ccircle cx='32' cy='0' r='1.5'/%3E%3Ccircle cx='0' cy='32' r='1.5'/%3E%3Ccircle cx='32' cy='32' r='1.5'/%3E%3C/svg%3E");
  --fx-u-kumo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100'%3E%3Crect x='30' y='14' width='70' height='9' rx='4.5'/%3E%3Crect x='8' y='21' width='116' height='9' rx='4.5'/%3E%3Crect x='46' y='28' width='60' height='9' rx='4.5'/%3E%3Crect x='118' y='62' width='74' height='9' rx='4.5'/%3E%3Crect x='96' y='69' width='70' height='9' rx='4.5'/%3E%3Crect x='134' y='76' width='44' height='9' rx='4.5'/%3E%3C/svg%3E");
  --fx-u-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6,36H58a10,10 0 1 0 -9.2,-13.9'/%3E%3Cpath d='M48.8,22.1a12,12 0 0 0 -23,-3.4'/%3E%3Cpath d='M25.8,18.7a9,9 0 0 0 -11.6,8.6a6.5,6.5 0 0 0 1.5,8.7'/%3E%3Cpath d='M58,30a4,4 0 1 1 4,-4'/%3E%3Cpath d='M74,36H92M20,44H70M2,44H10' stroke-width='2.4'/%3E%3C/g%3E%3C/svg%3E");
  --fx-u-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .56  0 0 0 0 .42  0 0 0 0 .38  0 0 0 .42 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fx-u-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62  0 0 0 0 .46  0 0 0 0 .42  1.3 0 0 0 -.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --fx-u-wear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  9 0 0 0 -1.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ veil + opening */

.fx-veil {
  --beam-h: clamp(12px, 1.9vh, 18px);
  --band-h: clamp(9px, 1.4vh, 13px);
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-cursor, 120) + 20);
  overflow: hidden;
  background: linear-gradient(180deg, var(--kasumi-top, #fdeef0) 0%, var(--kasumi-mid, #f8e1ea) 46%, var(--kasumi-low, #e9e0f4) 100%);
}
.fx-veil--live { background: transparent; }

/* two silk curtains in dawn-haze colours */
.fx-noren {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--kasumi-top, #fdeef0) 0%, var(--kasumi-mid, #f8e1ea) 46%, var(--kasumi-low, #e9e0f4) 100%);
  will-change: transform;
}
.fx-noren--l { left: 0; transform-origin: 0 0; box-shadow: inset -34px 0 46px -34px rgba(169, 155, 207, .34); }
.fx-noren--r { right: 0; transform-origin: 100% 0; box-shadow: inset 34px 0 46px -34px rgba(169, 155, 207, .34); }
.fx-noren::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(207, 174, 120, .15);
  -webkit-mask: var(--fx-u-shippo) 0 0 / 56px 56px repeat;
  mask: var(--fx-u-shippo) 0 0 / 56px 56px repeat;
}
/* the seam: one gold pixel on each half, so the line sits exactly on the centre */
.fx-noren::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(207, 174, 120, .9), rgba(207, 174, 120, .75) 70%, rgba(207, 174, 120, .25));
  box-shadow: 0 0 10px rgba(243, 227, 191, .9);
  /* the line rests behind the crest and the title */
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(50% - 250px), transparent calc(50% - 190px), transparent calc(50% + 170px), #000 calc(50% + 230px));
  mask-image: linear-gradient(180deg, #000 0, #000 calc(50% - 250px), transparent calc(50% - 190px), transparent calc(50% + 170px), #000 calc(50% + 230px));
}
.fx-noren--l::after { right: 0; }
.fx-noren--r::after { left: 0; }

/* pale wooden beam, then a champagne band chased with wave arcs and small rivets */
.fx-beam,
.fx-band {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
}
.fx-beam {
  top: 0;
  height: var(--beam-h);
  background:
    repeating-linear-gradient(90deg, rgba(165, 133, 79, 0) 0 46px, rgba(165, 133, 79, .1) 46px 47px, rgba(165, 133, 79, 0) 47px 118px),
    linear-gradient(180deg, #fffaf2 0%, var(--wood-pale, #f8efe2) 40%, var(--wood-mid, #ead9c2) 100%);
  box-shadow: inset 0 -1px 0 rgba(165, 133, 79, .45);
}
.fx-band {
  top: var(--beam-h);
  height: var(--band-h);
  background:
    radial-gradient(circle, #fffaf0 0 1.1px, #b8976a 1.6px 2.2px, rgba(184, 151, 106, 0) 2.7px) 9px 50% / 36px 100% repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9'%3E%3Cpath d='M0,9a9,9 0 0 1 18,0M4.5,9a4.5,4.5 0 0 1 9,0' fill='none' stroke='%23a5854f' stroke-opacity='.42' stroke-width='.7'/%3E%3C/svg%3E") 0 50% / 18px 9px repeat-x,
    linear-gradient(180deg, #fbefd3 0%, #ecd5a6 42%, #d6b684 78%, #c2a06c 100%);
  box-shadow: inset 0 -1px 0 rgba(165, 133, 79, .5), 0 3px 8px -2px rgba(120, 78, 96, .28);
}

.fx-veil-mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.4vmin, 34px);
}
.fx-veil-mid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 78vmin);
  aspect-ratio: 1;
  transform: translate(-50%, -54%);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 253, 249, .92), rgba(255, 253, 249, .5) 45%, rgba(255, 253, 249, 0) 100%);
}
.fx-veil-mid > * { position: relative; }
.fx-veil-crest { width: clamp(118px, 23vmin, 196px); }
.fx-veil-crest svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--kin-deep, #a5854f);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(243, 227, 191, .95));
}
.fx-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fx-veil-fill { fill: var(--kin, #cfae78); fill-opacity: 0; stroke: none; }
.fx-veil-leaf { fill: var(--wakakusa, #c3d8a8); }
.fx-veil-bell { fill: var(--kinari, #fffdf9); }
.fx-veil-title {
  max-width: 92vw;
  padding-left: .34em;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-latin, serif);
  font-size: clamp(19px, 3.5vmin, 33px);
  font-weight: 500;
  letter-spacing: .34em;
  line-height: 1.5;
  color: var(--kin-deep, #a5854f);
  opacity: 0;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fx-veil-title {
    background: var(--kin-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.fx-veil-rule {
  width: clamp(90px, 18vmin, 170px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--kin, #cfae78) 30%, var(--kin-deep, #a5854f) 50%, var(--kin, #cfae78) 70%, transparent);
  transform: scaleX(0);
}

/* ------------------------------------------------------------------ fixed layers */

.fx-ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-ambient, 1);
  pointer-events: none;
}
.fx-top {
  position: fixed;
  inset: 0;
  z-index: var(--z-cursor, 120);
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.fx-top-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-stage {
  position: fixed;
  inset: 0;
  z-index: var(--z-transition, 100);
  display: none;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.fx-stage--on { display: block; pointer-events: auto; }
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fx-fade { position: absolute; inset: 0; background: var(--washi, #faf5ee); opacity: 0; }

/* cursor ring */
.fx-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  opacity: 0;
  transition: opacity .25s ease;
  will-change: transform;
}
.fx-cursor--on { opacity: 1; }
.fx-cursor i {
  position: absolute;
  inset: 0;
  border: 1.5px solid #dba39a;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 253, 249, .5), 0 0 14px rgba(232, 142, 160, .3);
  transition: transform .4s var(--ease-brush, ease), background-color .4s ease, border-color .4s ease;
}
.fx-cursor--hot i { transform: scale(1.5); background-color: rgba(246, 217, 207, .22); border-color: var(--shu-bright, #e88ea0); }
.fx-cursor--down i { transform: scale(.76); }
.fx-water {
  position: absolute;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border: 1.5px solid #e2b29c;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(246, 217, 207, .22);
}

/* seal stamp impact */
.fx-stamp-flash,
.fx-stamp-ring { position: fixed; border-radius: 50%; pointer-events: none; opacity: 0; }
.fx-stamp-flash { background: radial-gradient(circle closest-side, rgba(232, 142, 160, .5), rgba(232, 142, 160, 0)); }
.fx-stamp-ring { border: 1.5px solid var(--shu-bright, #e88ea0); }

/* ------------------------------------------------------------------ transition caption */

.fx-cap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vmin, 26px);
  padding: 6vmin;
  text-align: center;
  pointer-events: none;
}
.fx-cap--tate { flex-direction: row; align-items: flex-end; gap: clamp(14px, 3vmin, 34px); }
.fx-cap-glyph {
  font-family: var(--font-brush, serif);
  font-size: clamp(96px, 34vmin, 340px);
  line-height: 1;
  color: var(--sumi, #3d3338);
  opacity: 0;
}
.fx-cap-label {
  padding: .6em 1em .6em 1.42em;
  border-radius: 7px 5px 8px 6px / 6px 8px 5px 7px;
  font-family: var(--font-heading, serif);
  font-size: clamp(13px, 2.1vmin, 21px);
  letter-spacing: .42em;
  line-height: 1.2;
  color: var(--kinari, #fffdf9);
  background: var(--shu, #d4687c);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 249, .6), inset 0 0 0 3px var(--shu, #d4687c), 0 12px 26px -14px rgba(120, 78, 96, .6);
  opacity: 0;
}
.fx-cap--tate .fx-cap-label {
  margin-bottom: 1.4em;
  padding: 1em .5em .7em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: .3em;
}

/* ------------------------------------------------------------------ scroll reveals */

html.fx-js [data-reveal]:not(.fx-done) {
  transition:
    opacity 1s var(--ease-brush, ease),
    transform 1.1s var(--ease-brush, ease),
    clip-path 1s var(--ease-fold, ease),
    filter .9s ease,
    -webkit-mask-position 1.1s var(--ease-brush, ease),
    mask-position 1.1s var(--ease-brush, ease);
}
html.fx-js [data-reveal]:not(.fx-in) { opacity: 0; }
html.fx-js [data-reveal="up"]:not(.fx-in) { transform: translateY(22px); }
html.fx-js [data-reveal="unroll"]:not(.fx-done) { clip-path: inset(-40px -40px -40px -40px); }
/* a sliver stays unclipped (and transparent) so the observer still sees the element arrive */
html.fx-js [data-reveal="unroll"]:not(.fx-in) { clip-path: inset(-40px -40px 94% -40px); transform: translateY(-10px); }
html.fx-js [data-reveal="ink"]:not(.fx-done) {
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 38%, rgba(0, 0, 0, .35) 46%, transparent 58%);
  mask-image: linear-gradient(100deg, #000 0%, #000 38%, rgba(0, 0, 0, .35) 46%, transparent 58%);
  -webkit-mask-size: 320% 100%;
  mask-size: 320% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0;
  mask-position: 0% 0;
}
html.fx-js [data-reveal="ink"]:not(.fx-in) {
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  filter: blur(5px);
}

/* ------------------------------------------------------------------ hover hooks */

:where([data-fx~="brush"], [data-fx~="ripple"], [data-fx~="tilt"], [data-fx~="lantern"]) { position: relative; }
:where([data-fx~="brush"], [data-fx~="lantern"]) { isolation: isolate; }

.fx-brush {
  position: absolute;
  left: -.5em;
  right: -.5em;
  top: 6%;
  bottom: 0;
  z-index: -1;
  background: var(--fx-brush-color, rgba(232, 142, 160, .2));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  transition: clip-path .36s var(--ease-fold, ease);
}
.fx-hover > .fx-brush { clip-path: inset(0 0 0 0); transition: clip-path .56s var(--ease-brush, ease); }

.fx-ripple {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.fx-ripple-ring {
  position: absolute;
  box-sizing: border-box;
  border: 1.5px solid var(--fx-ripple-color, currentColor);
  border-radius: 50%;
}
.fx-ripple-ink {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--fx-ripple-color, currentColor) 0%, transparent 100%);
  opacity: 0;
}

.fx-tilting {
  transform: perspective(900px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg));
  will-change: transform;
}
.fx-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.fx-tilting.fx-hover > .fx-sheen { opacity: 1; }
.fx-sheen i {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 253, 249, .55), rgba(248, 215, 222, .2) 42%, rgba(248, 215, 222, 0) 100%);
  will-change: transform;
}

.fx-lantern {
  position: absolute;
  inset: -40% -16%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse closest-side, rgba(255, 253, 249, .85), rgba(250, 223, 214, .38) 55%, rgba(250, 223, 214, 0) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}
.fx-hover > .fx-lantern { opacity: 1; animation: fx-breathe 3.2s var(--ease-float, ease-in-out) infinite alternate; }
[data-fx~="lantern"].fx-hover { animation: fx-sway 4.6s var(--ease-float, ease-in-out) infinite; }
@keyframes fx-breathe {
  from { transform: scale(.94); }
  to { transform: scale(1.06); }
}
@keyframes fx-sway {
  0%, 100% { rotate: 0deg; }
  25% { rotate: .4deg; }
  75% { rotate: -.4deg; }
}

/* ------------------------------------------------------------------ hero scene */

.fx-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--kasumi-top, #fdeef0), var(--kasumi-mid, #f8e1ea) 55%, var(--washi, #faf5ee));
  pointer-events: none;
}

/* ------------------------------------------------------------------ section banner */

.fx-banner {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--kasumi-mid, #f8e1ea);
  background-image: var(--fx-u-grain), var(--fx-u-fibre), linear-gradient(180deg, var(--kasumi-top, #fdeef0), var(--kasumi-mid, #f8e1ea) 55%, var(--kasumi-low, #e9e0f4));
  background-size: 240px 240px, 400px 400px, 100% 100%;
  pointer-events: none;
}
.fx-banner-art { position: absolute; inset: 0; }
.fx-banner-glyph {
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-brush, serif);
  font-size: clamp(110px, 15vw, 200px);
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  opacity: .5;
  mix-blend-mode: soft-light;
}
.fx-paused * { animation-play-state: paused !important; }
@keyframes fx-drift {
  from { transform: translateX(-14px); }
  to { transform: translateX(18px); }
}

/* ------------------------------------------------------------------ utilities */

.pat-seigaiha,
.pat-asanoha,
.pat-shippo,
.pat-kumo {
  background-color: var(--pat-color, currentColor);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  pointer-events: none;
}
.pat-seigaiha {
  -webkit-mask-image: var(--fx-u-seigaiha);
  mask-image: var(--fx-u-seigaiha);
  -webkit-mask-size: calc(40px * var(--pat-scale, 1)) calc(20px * var(--pat-scale, 1));
  mask-size: calc(40px * var(--pat-scale, 1)) calc(20px * var(--pat-scale, 1));
}
.pat-asanoha {
  -webkit-mask-image: var(--fx-u-asanoha);
  mask-image: var(--fx-u-asanoha);
  -webkit-mask-size: calc(30px * var(--pat-scale, 1)) calc(51.96px * var(--pat-scale, 1));
  mask-size: calc(30px * var(--pat-scale, 1)) calc(51.96px * var(--pat-scale, 1));
}
.pat-shippo {
  -webkit-mask-image: var(--fx-u-shippo);
  mask-image: var(--fx-u-shippo);
  -webkit-mask-size: calc(32px * var(--pat-scale, 1)) calc(32px * var(--pat-scale, 1));
  mask-size: calc(32px * var(--pat-scale, 1)) calc(32px * var(--pat-scale, 1));
}
.pat-kumo {
  -webkit-mask-image: var(--fx-u-kumo);
  mask-image: var(--fx-u-kumo);
  -webkit-mask-size: calc(200px * var(--pat-scale, 1)) calc(100px * var(--pat-scale, 1));
  mask-size: calc(200px * var(--pat-scale, 1)) calc(100px * var(--pat-scale, 1));
}

.washi {
  background-color: var(--washi, #faf5ee);
  background-image: var(--fx-u-grain), var(--fx-u-fibre), linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(248, 225, 234, .16));
  background-size: 240px 240px, 400px 400px, 100% 100%;
}

.kin-foil-text { color: var(--kin-deep, #a5854f); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .kin-foil-text {
    background: var(--kin-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hanko {
  display: inline-grid;
  place-items: center;
  min-width: 2.1em;
  min-height: 2.1em;
  padding: .24em .3em;
  border-radius: 7px 5px 8px 6px / 6px 8px 5px 7px;
  font-family: var(--font-brush, serif);
  font-size: 1.1em;
  line-height: 1.08;
  color: var(--kinari, #fffdf9);
  background-color: var(--shu, #d4687c);
  background-image: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .26), transparent 58%), radial-gradient(circle at 74% 82%, rgba(179, 77, 102, .34), transparent 60%);
  box-shadow: inset 0 0 0 2px var(--shu, #d4687c), inset 0 0 0 3.2px rgba(255, 253, 249, .8);
  -webkit-mask: var(--fx-u-wear) 0 0 / 96px 96px;
  mask: var(--fx-u-wear) 0 0 / 96px 96px;
}

.tategaki {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: .14em;
}

.divider-kumo {
  position: relative;
  display: block;
  height: 24px;
  margin: 2.2rem auto;
  overflow: visible;
  border: 0;
  color: var(--kin, #cfae78);
  background:
    linear-gradient(90deg, transparent, currentColor) left center / calc(50% - 34px) 1px no-repeat,
    linear-gradient(270deg, transparent, currentColor) right center / calc(50% - 34px) 1px no-repeat;
}
.divider-kumo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 24px;
  transform: translate(-50%, -50%);
  background-color: currentColor;
  -webkit-mask: var(--fx-u-cloud) center / contain no-repeat;
  mask: var(--fx-u-cloud) center / contain no-repeat;
}

/* ------------------------------------------------------------------ reduced motion, print */

@media (prefers-reduced-motion: reduce) {
  html.fx-js [data-reveal]:not(.fx-done) {
    transition: opacity .3s ease !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .fx-brush,
  .fx-hover > .fx-brush { transition-duration: .01s; }
  [data-fx~="lantern"].fx-hover,
  .fx-hover > .fx-lantern,
  .fx-cursor i { transition: none; }
}

@media print {
  .fx-veil,
  .fx-ambient,
  .fx-top,
  .fx-stage { display: none !important; }
  html.fx-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

/* ------------------------------------------------------------------ themed pages */

.fx-theme-art {
  position: absolute;
  left: -30px;
  top: -18px;
  display: block;
  width: calc(100% + 60px);
  height: calc(100% + 36px);
}
.fx-theme-art [data-depth] { will-change: transform; }
.fx-banner--dark .fx-banner-glyph { opacity: .3; }
.fx-banner--themed .fx-banner-glyph { z-index: 1; }
.fx-scene--themed { background: var(--washi, #f4ecdb); }

.view[data-theme] { --th: var(--shu, #d4687c); background-repeat: repeat; }
.view[data-theme] .sec-head__glyph,
.view[data-theme] .notice__glyph {
  background: var(--th);
  box-shadow: inset 0 0 0 3px rgba(251, 246, 234, .22), inset 0 0 0 4px var(--th), inset 0 0 0 5px rgba(251, 246, 234, .16), 0 22px 40px -20px rgba(120, 78, 96, .55);
}

/* moving parts inside a themed painting; distances come in as custom properties */
.fx-a { animation: 8s ease-in-out infinite alternate both; }
.fx-a-sway { animation-name: fx-a-sway; }
.fx-a-drift { animation-name: fx-a-drift; }
.fx-a-bob { animation-name: fx-a-bob; }
.fx-a-pulse { animation-name: fx-a-pulse; }
.fx-a-twinkle { animation-name: fx-a-twinkle; }
.fx-a-breathe { animation-name: fx-a-breathe; transform-box: fill-box; transform-origin: 50% 50%; }
.fx-a-slash { animation-name: fx-a-slash; animation-direction: normal; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
.fx-a-fall { animation-name: fx-a-fall; animation-direction: normal; animation-timing-function: linear; }
.fx-a-rise { animation-name: fx-a-rise; animation-direction: normal; animation-timing-function: ease-out; }
.fx-a-fly { animation-name: fx-a-fly; animation-direction: normal; animation-timing-function: linear; }
.fx-a-slide { animation-name: fx-a-slide; animation-direction: normal; animation-timing-function: linear; }
@keyframes fx-a-sway {
  from { transform: rotate(calc(var(--rot, 3deg) * -1)); }
  to { transform: rotate(var(--rot, 3deg)); }
}
@keyframes fx-a-drift {
  from { transform: translateX(calc(var(--dx, 20px) * -.5)); }
  to { transform: translateX(calc(var(--dx, 20px) * .5)); }
}
@keyframes fx-a-bob {
  from { transform: translateY(0); }
  to { transform: translateY(var(--dy, -6px)); }
}
@keyframes fx-a-pulse {
  from { opacity: .55; }
  to { opacity: 1; }
}
@keyframes fx-a-twinkle {
  from { opacity: .15; }
  to { opacity: 1; }
}
@keyframes fx-a-breathe {
  from { transform: scale(.86); opacity: .6; }
  to { transform: scale(1.12); opacity: 1; }
}
@keyframes fx-a-slash {
  0% { transform: translateX(-60%); opacity: 0; }
  12% { opacity: 1; }
  30%, 100% { transform: translateX(60%); opacity: 0; }
}
@keyframes fx-a-fall {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(var(--dx, -60px), var(--dy, 400px)) rotate(var(--rot, 300deg)); }
}
@keyframes fx-a-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translate(var(--dx, 0px), var(--dy, -200px)); opacity: 0; }
}
@keyframes fx-a-fly {
  from { transform: translateX(0); }
  to { transform: translateX(var(--dx, 1000px)); }
}
@keyframes fx-a-slide {
  from { transform: translateX(0); }
  to { transform: translateX(var(--dx, -40px)); }
}
.fx-a-spin { animation-name: fx-a-spin; animation-direction: normal; animation-timing-function: linear; transform-box: fill-box; transform-origin: 50% 50%; }
.fx-a-float { animation-name: fx-a-float; }
.fx-a-glow { animation-name: fx-a-glow; }
.fx-a-flow { animation-name: fx-a-flow; animation-direction: normal; animation-timing-function: linear; }
.fx-a-ripple { animation-name: fx-a-ripple; animation-direction: normal; animation-timing-function: cubic-bezier(.2, .6, .3, 1); transform-box: fill-box; transform-origin: 50% 50%; }
.fx-a-bloom { animation-name: fx-a-bloom; animation-direction: normal; animation-timing-function: cubic-bezier(.22, 1, .36, 1); transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes fx-a-spin {
  to { transform: rotate(var(--rot, 360deg)); }
}
@keyframes fx-a-float {
  from { transform: translate(calc(var(--dx, 8px) * -.5), calc(var(--dy, 6px) * -.5)); }
  to { transform: translate(calc(var(--dx, 8px) * .5), calc(var(--dy, 6px) * .5)); }
}
@keyframes fx-a-glow {
  from { opacity: var(--lo, .35); }
  to { opacity: var(--hi, 1); }
}
@keyframes fx-a-flow {
  from { stroke-dashoffset: var(--len, 200); }
  to { stroke-dashoffset: 0; }
}
@keyframes fx-a-ripple {
  0% { transform: scale(.15); opacity: 0; }
  18% { opacity: var(--hi, .8); }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes fx-a-bloom {
  0% { transform: scale(0); opacity: 0; }
  30% { transform: scale(1); opacity: 1; }
  78% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1.12); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-a { animation: none; }
}

/* ------------------------------------------------------------------ hanging charms */

.charm svg,
.fx-charm svg,
.sb-fuji { display: block; overflow: visible; }
.charm svg,
.fx-charm svg { width: 100%; height: 100%; }
.charm-bell,
.charm-tassel,
.fuji-raceme { transform-box: fill-box; transform-origin: 50% 0; }
/* the lower parts trail the cord by half a beat */
.charm-bell { animation: charm-wobble 2.3s ease-in-out -.5s infinite alternate; }
.charm-tassel { animation: charm-wobble 1.7s ease-in-out -.9s infinite alternate; }
.fuji-raceme { animation: charm-sway var(--d, 4s) ease-in-out var(--o, 0s) infinite alternate; }
.fx-charm {
  --cw: clamp(48px, 9.4vh, 88px);
  position: absolute;
  z-index: 2;
  top: calc(var(--beam-h) + var(--band-h) - 1px);
  width: var(--cw);
  height: calc(var(--cw) * 66 / 28);
  margin-left: calc(var(--cw) / -2);
  transform-origin: 50% 0;
  filter: drop-shadow(0 7px 7px rgba(120, 78, 96, .22));
  animation: charm-sway var(--d, 3.6s) ease-in-out var(--o, 0s) infinite alternate;
}
.fx-charm--tsuru { --cw: clamp(46px, 8.8vh, 82px); height: calc(var(--cw) * 92 / 28); }
@keyframes charm-sway {
  from { transform: rotate(-4.5deg); }
  to { transform: rotate(4.5deg); }
}
@keyframes charm-wobble {
  from { transform: rotate(5deg); }
  to { transform: rotate(-5deg); }
}
@keyframes charm-jingle {
  from { transform: rotate(-13deg); }
  to { transform: rotate(13deg); }
}
@media (max-width: 560px) {
  .fx-charm { --cw: clamp(34px, 5.6vh, 50px); }
  .fx-charm--tsuru { --cw: clamp(32px, 5.2vh, 46px); }
}
@media (prefers-reduced-motion: reduce) {
  .charm,
  .fx-charm,
  .charm-bell,
  .charm-tassel,
  .fuji-raceme { animation: none; }
}
