/* Shuwen generator and the lights-page shuwen band. Loaded for .shuwen-v1 and .lights-v1. */
/* Shuwen generator */
.shuwen-v1 {
  --shuwen-paper: #f3d77b;
  --shuwen-paper-light: #fff0b6;
  --shuwen-red: #a9251d;
  --shuwen-deep-red: #6b2019;
  --shuwen-ink: #251812;
  --shuwen-green: #155f58;
  background:
    radial-gradient(circle at 12% 10%, rgba(21, 95, 88, 0.16), transparent 34%),
    linear-gradient(180deg, #fff4cf 0%, #f3d77b 46%, #efe2b9 100%);
  color: var(--shuwen-ink);
}

.shuwen-v1 #temple-sky {
  opacity: 0.12;
}

.shuwen-hero {
  position: relative;
  overflow: hidden;
  min-height: min(720px, 92vh);
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 6vw, 88px) 56px;
  background:
    linear-gradient(120deg, rgba(107, 32, 25, 0.92), rgba(169, 37, 29, 0.78)),
    url("/assets/about/about-hero-cyber-temple-night.webp") center / cover;
  color: #fff7df;
}

.shuwen-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  /* Keep the fade into the paper band inside the hero's bottom padding (56px /
     42px on mobile). At 42% it ran under the last lines and ghost buttons and
     cream text dropped to ~1.5-3.5:1. */
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 244, 207, 0.98));
  pointer-events: none;
}

.shuwen-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
  width: 100%;
  box-sizing: border-box;
}

.shuwen-hero-copy,
.shuwen-privacy-note {
  min-width: 0;
}

.shuwen-hero-copy h1 {
  margin: 0 0 18px;
  color: #fff0b6;
  font-family: var(--font-display);
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

.shuwen-line-copy {
  display: grid;
  gap: 0.12em;
}

.shuwen-line-copy .copy-row {
  display: block;
}

.shuwen-line-copy .copy-row > span {
  display: inline-block;
  margin-right: 0.36em;
  white-space: nowrap;
}

.shuwen-hero-copy .shuwen-line-copy {
  max-width: 720px;
  color: rgba(255, 248, 221, 0.92);
  font-size: 19px;
  line-height: 1.8;
}

.shuwen-hero-actions,
.shuwen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.shuwen-v1 .button.ember {
  color: #fff8df;
  border-color: rgba(255, 248, 223, 0.28);
  background: linear-gradient(135deg, #6b2019 0%, #a9251d 48%, #d97924 100%);
  box-shadow: 0 12px 24px rgba(107, 32, 25, 0.22);
}

.shuwen-v1 .button.ember:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.shuwen-privacy-note {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 240, 182, 0.48);
  border-radius: 8px;
  background: rgba(37, 24, 18, 0.58);
  box-shadow: 0 18px 42px rgba(20, 8, 6, 0.28);
}

.shuwen-privacy-note strong {
  color: #fff0b6;
  font-size: 24px;
}

.shuwen-privacy-note p {
  margin: 0;
  color: rgba(255, 248, 221, 0.88);
  line-height: 1.7;
}

.shuwen-hero-paper {
  position: absolute;
  right: min(8vw, 96px);
  top: 118px;
  z-index: 1;
  width: 170px;
  aspect-ratio: 0.68;
  display: grid;
  place-items: center;
  border: 8px solid rgba(255, 240, 182, 0.82);
  background: var(--shuwen-paper);
  color: var(--shuwen-red);
  box-shadow: 18px 18px 0 rgba(21, 95, 88, 0.48);
  transform: rotate(5deg);
}

.shuwen-hero-paper img {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 58px;
  border: 1px solid rgba(107, 32, 25, 0.18);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(107, 32, 25, 0.18);
}

.shuwen-hero-paper span {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 900;
}

.shuwen-tool-band {
  background: #fff4cf;
}

.shuwen-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.shuwen-form,
.shuwen-preview-panel,
.lights-shuwen-panel {
  border: 1px solid rgba(107, 32, 25, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 252, 239, 0.98), rgba(255, 240, 182, 0.9)),
    #fff6d8;
  box-shadow: 12px 12px 0 rgba(169, 37, 29, 0.16), 20px 20px 0 rgba(21, 95, 88, 0.11);
}

.shuwen-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.shuwen-purpose-field {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.shuwen-purpose-field legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--shuwen-deep-red);
  font-size: 14px;
  font-weight: 900;
}

.shuwen-purpose-field label {
  cursor: pointer;
}

.shuwen-purpose-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shuwen-purpose-field span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(107, 32, 25, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--shuwen-ink);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.shuwen-purpose-field input:checked + span {
  border-color: var(--shuwen-red);
  background: var(--shuwen-red);
  color: #fff8df;
  box-shadow: 0 10px 22px rgba(169, 37, 29, 0.22);
}

.shuwen-field-grid,
.shuwen-rename-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shuwen-rename-fields[hidden] {
  display: none;
}

.shuwen-field-grid .is-wide {
  grid-column: 1 / -1;
}

.shuwen-form label,
.shuwen-text-field {
  display: grid;
  gap: 7px;
  color: var(--shuwen-ink);
  font-weight: 900;
}

.shuwen-form label > span,
.shuwen-text-field > span {
  font-size: 14px;
}

.shuwen-form input,
.shuwen-form select,
.shuwen-form textarea {
  width: 100%;
  border: 1px solid rgba(107, 32, 25, 0.24);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--shuwen-ink);
  font: inherit;
  line-height: 1.45;
}

.shuwen-form .shuwen-purpose-field input[type="radio"] {
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
}

.shuwen-form textarea {
  min-height: 100px;
  resize: vertical;
}

.shuwen-form input:focus,
.shuwen-form select:focus,
.shuwen-form textarea:focus {
  outline: 3px solid rgba(21, 95, 88, 0.24);
  border-color: var(--shuwen-green);
}

.shuwen-form-note,
.shuwen-disclaimer {
  margin: 0;
  color: rgba(37, 24, 18, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.shuwen-status {
  min-height: 24px;
  margin: 0;
  color: var(--shuwen-deep-red);
  font-weight: 900;
}

.shuwen-status[data-tone="success"] {
  color: var(--shuwen-green);
}

.shuwen-status[data-tone="error"] {
  color: var(--shuwen-red);
}

.shuwen-preview-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.shuwen-preview-shell {
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107, 32, 25, 0.18);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(45deg, rgba(107, 32, 25, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(107, 32, 25, 0.08) 25%, transparent 25%),
    #e9dcc0;
  background-size: 18px 18px;
}

.shuwen-preview-shell svg {
  width: min(100%, 620px);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(52, 22, 12, 0.24));
}

.shuwen-preview-warning {
  max-width: 280px;
  color: var(--shuwen-red);
  font-weight: 900;
  line-height: 1.7;
  text-align: center;
}

body.shuwen-cremation-active {
  overflow: hidden;
}

.shuwen-cremation-overlay[hidden] {
  display: none;
}

.shuwen-cremation-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: start center;
  overflow: hidden;
  padding: clamp(12px, 3vw, 36px);
  background:
    linear-gradient(180deg, rgba(9, 6, 4, 0.18), rgba(39, 13, 9, 0.28)),
    url("/assets/shuwen/shuwen-cremation-stage-master-v03-bg.webp") center / cover no-repeat,
    #120a07;
  color: #fff0b6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.shuwen-cremation-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.shuwen-cremation-overlay::before,
.shuwen-cremation-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shuwen-cremation-overlay::before {
  background:
    url("/assets/shuwen/shuwen-cremation-stage-master-v03-light.webp") center / cover no-repeat,
    radial-gradient(ellipse at 50% 106%, rgba(235, 129, 35, 0.18), transparent 48%);
  z-index: 0;
  opacity: 0.86;
  mix-blend-mode: screen;
}

.shuwen-cremation-overlay::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.26)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 34%, rgba(0, 0, 0, 0.12));
  z-index: 1;
  opacity: 0.58;
}

.shuwen-cremation-altar {
  display: none;
}

.shuwen-cremation-ambient,
.shuwen-cremation-foreground {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shuwen-cremation-ambient {
  z-index: 1;
  inset: auto;
  left: 50%;
  top: 50%;
  width: min(82vw, 980px);
  aspect-ratio: 1 / 1;
  opacity: 0;
  background: url("/assets/shuwen/shuwen-cremation-incense-depth-v01.webp") 0 50% / 400% 100% no-repeat;
  mix-blend-mode: screen;
  transform: translate(-50%, -48%) scale(1.05);
}

.shuwen-cremation-foreground {
  z-index: 2;
  background: url("/assets/shuwen/shuwen-cremation-stage-master-v03-fg-brazier.webp") center / cover no-repeat;
  opacity: 0.92;
}

.shuwen-cremation-overlay.is-open .shuwen-cremation-ambient {
  animation:
    shuwenIncenseSprite 5200ms steps(4) infinite,
    shuwenIncenseDrift 6200ms ease-in-out infinite;
  opacity: 0.28;
}

.shuwen-cremation-stage {
  position: relative;
  z-index: 3;
  width: min(94vw, 1500px);
  min-height: min(86vh, 1000px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-items: center;
  justify-items: center;
  gap: 14px;
}

.shuwen-cremation-overlay.is-open:not(.is-review) .shuwen-cremation-stage {
  position: fixed;
  left: 50%;
  top: clamp(12px, 3vw, 36px);
  transform: translateX(-50%);
}

.shuwen-cremation-kicker,
.shuwen-cremation-status {
  position: relative;
  z-index: 4;
  margin: 0;
  border: 1px solid rgba(255, 240, 182, 0.24);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(37, 24, 18, 0.58);
  color: #fff0b6;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(8px);
}

.shuwen-cremation-kicker {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0;
}

.shuwen-cremation-status {
  min-width: min(320px, 82vw);
  color: rgba(255, 248, 223, 0.9);
  font-size: 15px;
}

.shuwen-cremation-actions {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(520px, 92vw);
  transition: opacity 220ms ease, transform 220ms ease;
}

.shuwen-cremation-actions .button {
  min-width: min(220px, 100%);
  border-radius: 999px;
  border-color: rgba(255, 240, 182, 0.32);
}

.shuwen-cremation-actions .button.ghost {
  color: #fff0b6;
  background: rgba(32, 21, 16, 0.62);
  backdrop-filter: blur(8px);
}

.shuwen-cremation-actions .button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.shuwen-cremation-paper-stack {
  position: relative;
  z-index: 2;
  width: min(94vw, calc(129vh - 276px), 1500px);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.42));
  transition: opacity 420ms ease, transform 520ms ease;
  transform-origin: center top;
  overflow: hidden;
  border-radius: 8px;
}

.shuwen-cremation-overlay.is-open .shuwen-cremation-paper-stack {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.shuwen-cremation-sheet {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  transform-origin: center top;
}

.shuwen-cremation-sheet svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
  border-radius: 8px;
}

.shuwen-cremation-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(46, 16, 10, 0.88), transparent 32%),
    repeating-linear-gradient(88deg, rgba(50, 18, 9, 0.18) 0 3px, transparent 3px 18px);
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.shuwen-cremation-overlay.is-burning .shuwen-cremation-sheet {
  animation: shuwenSheetBurn 3900ms 180ms cubic-bezier(0.46, 0, 0.28, 1) forwards;
}

.shuwen-cremation-overlay.is-burning .shuwen-cremation-sheet::after {
  animation: shuwenSheetChar 3900ms 180ms ease forwards;
}

.shuwen-cremation-overlay.is-burning .shuwen-cremation-actions,
.shuwen-cremation-overlay.is-ash .shuwen-cremation-actions,
.shuwen-cremation-overlay.is-done .shuwen-cremation-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
}

.shuwen-cremation-burn-mask,
.shuwen-cremation-char-edge,
.shuwen-cremation-ember-rim,
.shuwen-cremation-flame,
.shuwen-cremation-heat-shimmer,
.shuwen-cremation-embers,
.shuwen-cremation-ash-smoke {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: none;
  border-radius: 8px;
}

.shuwen-cremation-burn-mask {
  z-index: 4;
  background:
    linear-gradient(180deg, transparent 0 28%, rgba(255, 219, 128, 0.2) 44%, rgba(255, 112, 37, 0.36) 55%, rgba(72, 18, 8, 0.22) 68%, transparent 86%),
    radial-gradient(ellipse at 50% 62%, rgba(255, 180, 63, 0.24), transparent 56%);
  -webkit-mask-image: var(--shuwen-burn-mask-frame);
  mask-image: var(--shuwen-burn-mask-frame);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
  filter: blur(0.45px) saturate(1.08);
  mix-blend-mode: screen;
}

.shuwen-cremation-char-edge {
  z-index: 5;
  background: var(--shuwen-char-edge-frame) center / 100% 100% no-repeat;
  filter: blur(0.12px) contrast(1.04);
  mix-blend-mode: multiply;
}

.shuwen-cremation-ember-rim {
  z-index: 6;
  background: var(--shuwen-ember-rim-frame) center / 100% 100% no-repeat;
  filter: blur(0.15px) saturate(1.12);
  mix-blend-mode: screen;
}

.shuwen-cremation-flame {
  z-index: 7;
  background: var(--shuwen-flame-front-frame) center / 100% 100% no-repeat;
  filter: blur(0.16px) saturate(1.06);
  mix-blend-mode: screen;
}

.shuwen-cremation-heat-shimmer {
  z-index: 8;
  background: var(--shuwen-heat-shimmer-frame) center / 100% 100% no-repeat;
  filter: blur(0.18px) saturate(1.02);
  mix-blend-mode: screen;
}

.shuwen-cremation-overlay.is-burning .shuwen-cremation-burn-mask {
  animation: shuwenBurnLayerGlow 3900ms 120ms ease forwards;
}

.shuwen-cremation-overlay.is-burning .shuwen-cremation-char-edge {
  animation: shuwenCharLayerSettle 3900ms 160ms ease forwards;
}

.shuwen-cremation-overlay.is-burning .shuwen-cremation-ember-rim {
  animation: shuwenEmberRimPulse 3900ms 170ms ease forwards;
}

.shuwen-cremation-overlay.is-burning .shuwen-cremation-flame {
  animation: shuwenFlameLayerPulse 3900ms 180ms ease forwards;
}

.shuwen-cremation-overlay.is-burning .shuwen-cremation-heat-shimmer {
  animation: shuwenHeatLayerPulse 3900ms 80ms ease-in-out forwards;
}

.shuwen-cremation-embers {
  z-index: 4;
  background:
    radial-gradient(circle at 12% 82%, rgba(255, 216, 109, 0.92) 0 2px, transparent 5px),
    radial-gradient(circle at 24% 70%, rgba(255, 126, 43, 0.9) 0 2px, transparent 5px),
    radial-gradient(circle at 36% 62%, rgba(255, 216, 109, 0.86) 0 2px, transparent 6px),
    radial-gradient(circle at 48% 72%, rgba(255, 126, 43, 0.9) 0 2px, transparent 5px),
    radial-gradient(circle at 58% 58%, rgba(255, 216, 109, 0.86) 0 2px, transparent 5px),
    radial-gradient(circle at 68% 76%, rgba(255, 126, 43, 0.88) 0 2px, transparent 5px),
    radial-gradient(circle at 82% 64%, rgba(255, 216, 109, 0.9) 0 2px, transparent 5px),
    radial-gradient(circle at 91% 78%, rgba(255, 126, 43, 0.88) 0 2px, transparent 5px);
  filter: blur(0.4px);
  mix-blend-mode: screen;
}

.shuwen-cremation-overlay.is-burning .shuwen-cremation-embers {
  animation: shuwenEmbersRise 3900ms 240ms ease-out forwards;
}

.shuwen-cremation-ash-smoke {
  z-index: 9;
  inset: auto;
  left: 50%;
  top: 50%;
  width: 112%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: var(--shuwen-smoke-ash-frame) center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  transform: translate(-50%, -45%) scale(0.84);
}

.shuwen-cremation-overlay.is-ash .shuwen-cremation-ash-smoke {
  animation: shuwenAshSmokeRise 1500ms ease-out forwards;
}

.shuwen-cremation-overlay.is-done {
  animation: shuwenCremationFade 720ms ease forwards;
}

@keyframes shuwenSheetBurn {
  0%,
  8% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.42)) brightness(1);
  }

  34% {
    clip-path: polygon(0 0, 100% 0, 100% 74%, 94% 78%, 88% 73%, 82% 79%, 74% 75%, 66% 82%, 58% 76%, 49% 83%, 40% 77%, 31% 84%, 22% 78%, 12% 83%, 0 79%);
    filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.46)) brightness(0.92);
  }

  68% {
    clip-path: polygon(0 0, 100% 0, 100% 34%, 94% 39%, 86% 31%, 78% 38%, 70% 33%, 60% 41%, 51% 35%, 42% 42%, 33% 36%, 23% 43%, 13% 35%, 0 41%);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5)) brightness(0.72) saturate(0.86);
  }

  100% {
    clip-path: polygon(0 0, 100% 0, 100% 2%, 88% 0, 72% 3%, 54% 0, 38% 3%, 18% 0, 0 2%);
    opacity: 0.06;
    transform: translateY(-20px) scale(0.96);
    filter: blur(7px) brightness(0.38);
  }
}

@keyframes shuwenSheetChar {
  0% {
    opacity: 0;
  }

  22% {
    opacity: 0.5;
  }

  76% {
    opacity: 0.9;
  }

  100% {
    opacity: 1;
  }
}

@keyframes shuwenBurnLayerGlow {
  0% {
    opacity: 0;
    filter: blur(0.7px) saturate(1.02);
  }

  12%,
  76% {
    opacity: 0.58;
  }

  100% {
    opacity: 0;
    filter: blur(1px) saturate(0.86);
  }
}

@keyframes shuwenCharLayerSettle {
  0% {
    opacity: 0;
    filter: blur(0.34px) contrast(1);
  }

  18%,
  88% {
    opacity: 0.86;
  }

  100% {
    opacity: 0.18;
    filter: blur(0.6px) contrast(0.9);
  }
}

@keyframes shuwenEmberRimPulse {
  0% {
    opacity: 0;
    filter: blur(0.34px) saturate(1.08);
  }

  14%,
  84% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    filter: blur(0.8px) saturate(0.92);
  }
}

@keyframes shuwenFlameLayerPulse {
  0% {
    opacity: 0;
    transform: translateY(1.8%) scale(0.98);
  }

  10%,
  72% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateY(-1.6%) scale(1.01);
  }
}

@keyframes shuwenHeatLayerPulse {
  0% {
    opacity: 0;
    transform: translateY(1%) scale(1);
  }

  14%,
  82% {
    opacity: 0.34;
  }

  100% {
    opacity: 0;
    transform: translateY(-1%) scale(1.012);
  }
}

@keyframes shuwenAshSmokeRise {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.82);
  }

  20%,
  76% {
    opacity: 0.66;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -72%) scale(1.04);
  }
}

@keyframes shuwenEmbersRise {
  0% {
    opacity: 0;
    transform: translateY(12%) scale(0.96);
  }

  24% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateY(-46%) scale(1.08);
  }
}

@keyframes shuwenIncenseSprite {
  to {
    background-position: 100% 50%;
  }
}

@keyframes shuwenIncenseDrift {
  0%,
  100% {
    transform: translate(-50%, -48%) scale(1.04);
  }

  50% {
    transform: translate(-50%, -52%) scale(1.08);
  }
}

@keyframes shuwenCremationFade {
  to {
    opacity: 0;
  }
}

@keyframes shuwenSheetReduce {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    filter: blur(4px) brightness(0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shuwen-cremation-overlay {
    transition-duration: 1ms;
  }

  .shuwen-cremation-overlay.is-open .shuwen-cremation-ambient {
    animation: none;
  }

  .shuwen-cremation-overlay.is-burning .shuwen-cremation-sheet {
    animation: shuwenSheetReduce 600ms ease forwards;
  }

  .shuwen-cremation-overlay.is-burning .shuwen-cremation-sheet::after {
    animation-duration: 600ms;
  }

  .shuwen-cremation-overlay.is-burning .shuwen-cremation-burn-mask,
  .shuwen-cremation-overlay.is-burning .shuwen-cremation-char-edge,
  .shuwen-cremation-overlay.is-burning .shuwen-cremation-ember-rim,
  .shuwen-cremation-overlay.is-burning .shuwen-cremation-flame,
  .shuwen-cremation-overlay.is-burning .shuwen-cremation-heat-shimmer,
  .shuwen-cremation-overlay.is-burning .shuwen-cremation-embers {
    display: none;
  }

  .shuwen-cremation-overlay.is-ash .shuwen-cremation-ash-smoke {
    opacity: 0.58;
    animation: none;
    transform: translate(-50%, -52%) scale(0.9);
  }

  .shuwen-cremation-overlay.is-done {
    animation-duration: 240ms;
  }
}

.lights-shuwen-band {
  background: #fff4cf;
}

.lights-shuwen-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.lights-shuwen-panel p {
  margin: 0;
}

@media (max-width: 980px) {
  .shuwen-hero-grid,
  .shuwen-tool-grid,
  .lights-shuwen-panel {
    grid-template-columns: 1fr;
  }

  .shuwen-preview-panel {
    position: static;
  }

  .shuwen-hero-paper {
    opacity: 0.28;
    right: 28px;
    top: 112px;
  }
}

@media (max-width: 700px) {
  .shuwen-v1 {
    --mobile-header-clearance: 156px;
  }

  .shuwen-hero {
    min-height: auto;
    padding: var(--mobile-header-clearance) 18px 42px;
  }

  .shuwen-hero-copy h1 {
    max-width: min(100%, 5.5em);
    font-size: clamp(44px, 13vw, 64px);
    line-height: 1.02;
    white-space: nowrap;
  }

  .shuwen-hero-copy .shuwen-line-copy {
    font-size: 17px;
    line-height: 1.72;
  }

  .shuwen-line-copy .copy-row > span {
    overflow-wrap: break-word;
    white-space: normal;
    word-break: keep-all;
  }

  .shuwen-privacy-note {
    padding: 16px;
  }

  .shuwen-hero-paper {
    top: 154px;
    right: -12px;
    width: 136px;
    opacity: 0.18;
  }

  .shuwen-purpose-field,
  .shuwen-field-grid,
  .shuwen-rename-fields {
    grid-template-columns: 1fr;
  }

  .shuwen-form,
  .shuwen-preview-panel,
  .lights-shuwen-panel {
    padding: 18px;
    box-shadow: 7px 7px 0 rgba(169, 37, 29, 0.16);
  }

  .shuwen-actions .button,
  .shuwen-hero-actions .button,
  .lights-shuwen-panel .button {
    width: 100%;
  }

  .shuwen-preview-shell {
    min-height: 420px;
    padding: 10px;
  }

  .shuwen-cremation-overlay {
    padding: 10px;
    background:
      linear-gradient(180deg, rgba(9, 6, 4, 0.14), rgba(39, 13, 9, 0.24)),
      url("/assets/shuwen/shuwen-cremation-stage-mobile-v03.webp") center / cover no-repeat,
      #120a07;
  }

  .shuwen-cremation-overlay::before,
  .shuwen-cremation-foreground {
    display: none;
  }

  .shuwen-cremation-ambient {
    width: 96vw;
    top: 52%;
    opacity: 0.18;
  }

  .shuwen-cremation-stage {
    width: 96vw;
    min-height: min(84vh, 760px);
    gap: 10px;
  }

  .shuwen-cremation-paper-stack {
    width: min(96vw, calc(126vh - 252px));
  }

  .shuwen-cremation-sheet svg {
    max-height: 100%;
  }

  .shuwen-cremation-kicker,
  .shuwen-cremation-status {
    max-width: 92vw;
    padding: 7px 12px;
  }

  .shuwen-cremation-actions {
    width: 92vw;
    gap: 8px;
  }

  .shuwen-cremation-actions .button {
    flex: 1 1 152px;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
  }
}

@media (max-width: 899px) {
  .shuwen-hero {
    background:
      linear-gradient(120deg, rgba(107, 32, 25, 0.92), rgba(169, 37, 29, 0.78)),
      image-set(
        url("/assets/about/about-hero-cyber-temple-night-800.avif") type("image/avif"),
        url("/assets/about/about-hero-cyber-temple-night-800.webp") type("image/webp")
      ) center / cover;
  }
}
