:root {
  --dps-green-primary: #193229;
  --dps-green-deep: #08150f;
  --dps-green-surface: #26493d;
  --dps-gold-accent: #e9bc6d;
  --dps-gold-soft: #ffe0a8;
  --dps-gold-muted: #c18a3b;
  --dps-ivory: #f8f2e4;
  --dps-ivory-soft: #f2e7ce;
  --cinema-shadow-heavy: rgba(0, 0, 0, 0.56);
  --declaration-surface-base: rgba(9, 32, 26, 0.92);
  --declaration-surface-deep: rgba(24, 66, 54, 0.9);
  --declaration-border: rgba(222, 197, 137, 0.44);
  --focus-ring: rgba(255, 216, 146, 0.62);
  --india-saffron: #ff671f;
  --india-saffron-rgb: 255, 103, 31;
  --india-saffron-deep-rgb: 255, 103, 31;
  --india-saffron-premium-rgb: 222, 108, 34;
  --india-saffron-shadow-rgb: 124, 55, 15;
  --hall-shell-tilt-x: 0deg;
  --hall-shell-tilt-y: 0deg;
  --hall-shell-shift-x: 0px;
  --hall-shell-shift-y: 0px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--dps-ivory);
  font-family: "Work Sans", sans-serif;
  background:
    radial-gradient(circle at 16% 6%, rgba(224, 198, 130, 0.3), transparent 42%),
    radial-gradient(circle at 86% 14%, rgba(88, 164, 132, 0.2), transparent 42%),
    radial-gradient(circle at 52% 112%, rgba(157, 205, 178, 0.22), transparent 48%),
    linear-gradient(154deg, #07150f 0%, #102b22 40%, #1f4d3e 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.46;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 233, 183, 0.2), transparent 40%),
    radial-gradient(circle at 78% 64%, rgba(153, 222, 188, 0.12), transparent 35%);
  mix-blend-mode: screen;
  animation: atmospherePulse 18s ease-in-out infinite;
}

body::after {
  z-index: 0;
  opacity: 0.1;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 239, 213, 0.1) 0,
      rgba(255, 239, 213, 0.1) 1px,
      transparent 1px,
      transparent 6px
    );
  animation: filmFlicker 3.6s steps(12) infinite;
}

.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  padding: 0.45rem 0.7rem;
  background: var(--dps-gold-accent);
  color: #10211c;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0.8rem;
}

main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  perspective: 1800px;
  transform-style: preserve-3d;
  padding: clamp(1.3rem, 3vw, 2.8rem) clamp(0.85rem, 2.4vw, 2rem);
}

main::before {
  content: "";
  position: absolute;
  inset: -24% -14% auto;
  height: 84%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 220, 152, 0.42), transparent 56%),
    linear-gradient(180deg, rgba(255, 224, 161, 0.15), rgba(255, 224, 161, 0));
}

main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    radial-gradient(rgba(255, 242, 216, 0.9) 0.42px, transparent 0.42px),
    radial-gradient(rgba(255, 214, 134, 0.84) 0.3px, transparent 0.3px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 1px;
  animation: grainShift 9s steps(10) infinite;
  mix-blend-mode: soft-light;
}

#ambientCanvas {
  position: absolute;
  inset: -12% -8%;
  width: 116%;
  height: 124%;
  z-index: 1;
  opacity: 0.64;
  mix-blend-mode: screen;
  filter: blur(0.35px) saturate(1.16);
}

.cinematic-overlay {
  position: absolute;
  inset: -24% -12%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.92;
}

.cinematic-beam {
  position: absolute;
  top: -32%;
  width: min(44vw, 36rem);
  height: 196%;
  filter: blur(1px);
  transform-origin: top center;
}

.cinematic-beam--one {
  left: -2%;
  background: linear-gradient(
    186deg,
    rgba(255, 247, 218, 0) 0%,
    rgba(255, 230, 172, 0.24) 22%,
    rgba(255, 194, 112, 0.16) 46%,
    rgba(146, 224, 182, 0.06) 64%,
    rgba(255, 232, 182, 0) 100%
  );
  animation: beamSweepOne 13s ease-in-out infinite;
}

.cinematic-beam--two {
  right: -7%;
  background: linear-gradient(
    173deg,
    rgba(255, 245, 214, 0) 0%,
    rgba(255, 212, 139, 0.2) 26%,
    rgba(255, 176, 96, 0.14) 48%,
    rgba(139, 216, 177, 0.06) 66%,
    rgba(255, 231, 178, 0) 100%
  );
  animation: beamSweepTwo 15.8s ease-in-out infinite;
}

.cinematic-aura {
  position: absolute;
  inset: 16% 8% 10%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 223, 158, 0.2), rgba(255, 223, 158, 0) 54%),
    radial-gradient(circle at 50% 62%, rgba(197, 151, 92, 0.12), rgba(197, 151, 92, 0) 62%);
  filter: blur(2px);
  animation: auraPulse 9s ease-in-out infinite;
}

.declaration-hall-shell {
  position: relative;
  z-index: 3;
  width: min(940px, 95vw);
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    translate3d(var(--hall-shell-shift-x), var(--hall-shell-shift-y), 0)
    rotateX(var(--hall-shell-tilt-y))
    rotateY(var(--hall-shell-tilt-x));
  transition: transform 420ms cubic-bezier(0.18, 0.72, 0.21, 0.98);
}

.cinematic-curtain {
  position: absolute;
  inset: 0.26rem;
  z-index: 4;
  overflow: hidden;
  border-radius: 1.06rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1600ms ease;
}

.cinematic-curtain::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 238, 211, 0.06) 0,
      rgba(255, 238, 211, 0.06) 1px,
      rgba(76, 32, 8, 0.08) 1px,
      rgba(76, 32, 8, 0.08) 6px
    );
  mix-blend-mode: multiply;
}

.curtain-panel {
  position: absolute;
  top: -3%;
  bottom: -3%;
  width: 56%;
  transition:
    transform 9400ms cubic-bezier(0.11, 0.84, 0.14, 1),
    filter 420ms ease,
    opacity 420ms ease;
  background: linear-gradient(
    176deg,
    rgba(var(--india-saffron-shadow-rgb), 0.95),
    rgba(var(--india-saffron-premium-rgb), 0.92) 52%,
    rgba(var(--india-saffron-rgb), 0.86)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 227, 180, 0.22),
    inset 0 0 24px rgba(90, 38, 10, 0.22),
    0 0 28px rgba(0, 0, 0, 0.32);
}

.curtain-panel--left {
  left: -6%;
  transform: translateX(0);
}

.curtain-panel--right {
  right: -6%;
  transform: translateX(0);
}

.curtain-glow {
  display: none;
}

.declaration-hall {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--declaration-border);
  border-radius: 1.28rem;
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(0.98rem, 2.8vw, 2.2rem) clamp(1.25rem, 2.8vw, 2.1rem);
  text-align: center;
  display: grid;
  gap: clamp(0.7rem, 1.35vw, 1.08rem);
  background:
    linear-gradient(150deg, var(--declaration-surface-base), var(--declaration-surface-deep)),
    radial-gradient(circle at 15% 11%, rgba(248, 205, 120, 0.26), transparent 42%),
    radial-gradient(circle at 92% 97%, rgba(72, 146, 112, 0.14), transparent 46%);
  backdrop-filter: blur(10px) saturate(128%);
  box-shadow:
    0 28px 56px var(--cinema-shadow-heavy),
    0 0 0 1px rgba(248, 205, 120, 0.16) inset,
    0 0 74px rgba(236, 172, 84, 0.24),
    0 14px 28px rgba(12, 21, 15, 0.35);
  transform: translateZ(20px);
  animation: hallIntro 920ms cubic-bezier(0.16, 0.7, 0.24, 1) both, hallFloat 12s ease-in-out 920ms infinite;
}

.declaration-hall::before {
  content: "";
  position: absolute;
  top: -130%;
  left: -35%;
  width: 35%;
  height: 320%;
  transform: rotate(15deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 236, 184, 0.28),
    rgba(255, 255, 255, 0)
  );
  animation: hallSweep 12s linear infinite;
  pointer-events: none;
}

.declaration-hall::after {
  content: "";
  position: absolute;
  inset: 0.48rem;
  border: 1px solid rgba(245, 202, 120, 0.28);
  border-radius: 0.96rem;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 220, 152, 0.08) inset,
    0 0 36px rgba(238, 191, 116, 0.12) inset;
  animation: innerFramePulse 6s ease-in-out infinite;
}

.declaration-kicker {
  margin: 0;
  color: var(--dps-gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.27em;
  font-size: 0.72rem;
  text-shadow: 0 0 14px rgba(233, 188, 109, 0.35);
}

.declaration-hall h1 {
  margin: 0.15rem 0 0;
  color: #fff1cc;
  font-family: "Alegreya SC", serif;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  letter-spacing: 0.07em;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.42), 0 0 24px rgba(233, 188, 109, 0.24);
  animation: titleGlint 8.2s ease-in-out infinite;
}

.declaration-subtitle {
  margin: 0;
  color: rgba(255, 229, 177, 0.9);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
}

.attestation-rule {
  width: min(34rem, 100%);
  margin: 0.14rem auto 0.12rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.attestation-rule > span {
  display: block;
}

.attestation-rule > span:not(.attestation-rule-dot) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 226, 167, 0), rgba(255, 226, 167, 0.7), rgba(255, 226, 167, 0));
}

.attestation-rule-dot {
  flex: 0 0 auto;
  min-width: 2.4rem;
  border: 1px solid rgba(241, 201, 120, 0.52);
  border-radius: 999px;
  padding: 0.14rem 0.58rem;
  color: #ffeabf;
  font-family: "Alegreya SC", serif;
  font-size: 0.64rem;
  letter-spacing: 0.21em;
  text-indent: 0.18em;
  background: rgba(12, 42, 35, 0.56);
}

.declaration-statement {
  position: relative;
  margin: 0;
  border: 1px solid rgba(233, 188, 109, 0.45);
  border-radius: 0.95rem;
  padding: clamp(1rem, 2.8vw, 1.58rem) clamp(1rem, 3vw, 1.9rem);
  min-height: 11.1rem;
  line-height: 1.88;
  font-size: clamp(1.03rem, 2.16vw, 1.22rem);
  color: var(--dps-ivory-soft);
  background:
    linear-gradient(162deg, rgba(21, 58, 47, 0.62), rgba(16, 43, 36, 0.56)),
    radial-gradient(circle at 15% 16%, rgba(248, 205, 120, 0.22), transparent 44%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.26), 0 0 14px rgba(233, 188, 109, 0.14);
}

.declaration-statement::before,
.declaration-statement::after {
  position: absolute;
  color: rgba(233, 188, 109, 0.56);
  font-family: "Alegreya SC", serif;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1;
}

.declaration-statement::before {
  content: "\201C";
  top: 0.15rem;
  left: 0.46rem;
}

.declaration-statement::after {
  content: "\201D";
  right: 0.46rem;
  bottom: -0.4rem;
}

#declarationText {
  position: relative;
  isolation: isolate;
  display: block;
  max-width: 62ch;
  margin: 0 auto;
  font-weight: 500;
  letter-spacing: 0.012em;
}

#declarationText::after {
  content: "";
  position: absolute;
  inset: -9% -6%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-30%);
  background: linear-gradient(
    100deg,
    rgba(255, 228, 168, 0) 20%,
    rgba(255, 228, 168, 0.22) 52%,
    rgba(255, 228, 168, 0) 82%
  );
}

#declarationText.cine-reveal::after {
  animation: textSweep 1280ms ease 1;
}

.word {
  opacity: 0;
  display: inline-block;
  margin-right: 0.34em;
  transform: translateY(14px) scale(0.96) rotateX(14deg);
  filter: blur(5px);
  color: rgba(246, 232, 202, 0.24);
  text-shadow: 0 0 0 rgba(233, 188, 109, 0);
  transition:
    opacity 1600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 1600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    color 1460ms ease,
    text-shadow 1460ms ease;
}

.word.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  filter: blur(0);
  color: #fff2d3;
  text-shadow: 0 0 14px rgba(233, 188, 109, 0.26);
  animation: wordCinematic 980ms ease both;
}

.seal-zone {
  position: relative;
  width: min(340px, 100%);
  margin: 0.22rem auto 0;
  padding: 0.84rem 0.9rem 0.9rem;
  border: 1px solid rgba(222, 197, 137, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(14, 49, 40, 0.9), rgba(10, 31, 25, 0.92)),
    radial-gradient(circle at 15% 20%, rgba(245, 202, 120, 0.2), transparent 44%);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 620ms ease, transform 620ms ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.seal-zone::before {
  content: "";
  position: absolute;
  inset: 0.34rem;
  border: 1px dashed rgba(241, 201, 120, 0.44);
  border-radius: 999px;
  pointer-events: none;
}

.seal-zone.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.seal-zone.stamp {
  animation: sealStamp 760ms ease both;
}

.seal-kicker {
  display: block;
  color: rgba(222, 197, 137, 0.94);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.64rem;
}

.seal-mark {
  margin: 0.24rem 0 0;
  color: #fff2cf;
  font-family: "Alegreya SC", serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.88rem, 2vw, 1.1rem);
}

.declaration-meta {
  margin-top: 0.12rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.meta-card {
  position: relative;
  margin: 0;
  border: 1px solid rgba(228, 196, 126, 0.33);
  border-radius: 0.78rem;
  padding: 0.72rem 0.62rem;
  background:
    linear-gradient(162deg, rgba(18, 53, 43, 0.68), rgba(13, 38, 31, 0.62)),
    radial-gradient(circle at 20% 12%, rgba(248, 205, 120, 0.12), transparent 46%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  transition: border-color 260ms ease, transform 260ms ease, background 260ms ease;
}

.meta-card:hover,
.meta-card:focus-within {
  border-color: rgba(245, 210, 136, 0.66);
  transform: translateY(-1px);
}

.meta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 246, 218, 0), rgba(255, 246, 218, 0.2), rgba(255, 246, 218, 0));
  transform: translateX(-120%);
  transition: opacity 240ms ease;
}

.meta-card:hover::after,
.meta-card:focus-within::after {
  opacity: 1;
  animation: cardSweep 720ms ease 1;
}

.meta-label {
  margin: 0;
  color: rgba(247, 223, 174, 0.94);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.62rem;
}

.meta-value {
  margin: 0.33rem 0 0;
  color: #fff4db;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 500;
}

.attestation-signature {
  position: relative;
  margin: 0.06rem auto 0;
  width: min(34rem, 100%);
  border-top: 1px solid rgba(241, 204, 128, 0.36);
  padding-top: 0.8rem;
}

.signature-kicker {
  margin: 0;
  color: rgba(245, 209, 136, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
}

.signature-line {
  margin: 0.32rem 0 0;
  color: #fff0cf;
  font-family: "Alegreya SC", serif;
  font-size: clamp(0.92rem, 2.12vw, 1.17rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signature-date {
  margin: 0.28rem 0 0;
  color: rgba(245, 223, 179, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

#declarationIssuedOn {
  color: #fff5e0;
  font-weight: 600;
}

body.declaration-scripted .meta-card,
body.declaration-scripted .attestation-signature {
  opacity: 0;
  transform: translateY(10px);
}

body.declaration-scripted.declaration-ready .meta-card,
body.declaration-scripted.declaration-ready .attestation-signature {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

body.declaration-scripted.declaration-ready .meta-card[data-meta-order="1"] {
  transition-delay: 100ms;
}

body.declaration-scripted.declaration-ready .meta-card[data-meta-order="2"] {
  transition-delay: 180ms;
}

body.declaration-scripted.declaration-ready .attestation-signature {
  transition-delay: 240ms;
}

.declaration-actions {
  margin-top: 0.16rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.declaration-actions button,
.declaration-actions a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.9rem;
  border: 1px solid rgba(var(--india-saffron-rgb), 0.46);
  border-radius: 0.72rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(155deg, rgba(var(--india-saffron-shadow-rgb), 0.94), rgba(var(--india-saffron-premium-rgb), 0.9));
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 220ms ease, color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.declaration-actions button::after,
.declaration-actions a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 54%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255, 241, 214, 0), rgba(255, 241, 214, 0.4), rgba(255, 241, 214, 0));
  transition: left 520ms ease;
}

.declaration-actions button:hover,
.declaration-actions button:focus-visible,
.declaration-actions a:hover,
.declaration-actions a:focus-visible {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(var(--india-saffron-rgb), 0.78);
  background: linear-gradient(155deg, rgba(241, 170, 97, 0.72), rgba(var(--india-saffron-premium-rgb), 0.94));
}

.declaration-actions button:hover::after,
.declaration-actions button:focus-visible::after,
.declaration-actions a:hover::after,
.declaration-actions a:focus-visible::after {
  left: 136%;
}

.declaration-actions button:focus-visible,
.declaration-actions a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.reduced-motion * {
  transition: none !important;
  animation: none !important;
}

.reduced-motion .declaration-hall-shell {
  transform: none !important;
}

.reduced-motion .cinematic-curtain {
  display: none !important;
}

body.declaration-mobile-lite {
  background-attachment: scroll;
}

body.declaration-mobile-lite::before,
body.declaration-mobile-lite::after {
  animation: none;
}

body.declaration-mobile-lite #ambientCanvas {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  filter: blur(0.2px) saturate(1.08);
}

body.declaration-mobile-lite .cinematic-overlay {
  inset: -8% -10%;
  opacity: 0.64;
}

body.declaration-mobile-lite .cinematic-beam {
  top: -16%;
  width: min(54vw, 18rem);
  height: 156%;
}

body.declaration-mobile-lite .cinematic-aura {
  inset: 18% 6% 12%;
  filter: blur(1.2px);
}

body.declaration-mobile-lite main::before {
  inset: -8% -4% auto;
  height: 62%;
}

body.declaration-mobile-lite main::after {
  opacity: 0.09;
}

body.declaration-mobile-lite .cinematic-curtain {
  inset: 0.2rem;
  border-radius: 0.86rem;
}

body.declaration-mobile-lite .curtain-panel {
  width: 58%;
}

body.declaration-mobile-lite .declaration-hall::before {
  top: -94%;
  left: -24%;
  width: 28%;
  height: 260%;
  opacity: 0.3;
}

body.declaration-scripted .cinematic-overlay {
  opacity: 0.78;
}

body.declaration-scripted .cinematic-curtain {
  opacity: 1;
}

body.declaration-scripted .curtain-panel {
  filter: saturate(0.93) brightness(0.9);
}

body.declaration-scripted.curtain-open .curtain-panel--left {
  transform: translateX(-112%);
}

body.declaration-scripted.curtain-open .curtain-panel--right {
  transform: translateX(112%);
}

body.declaration-scripted.curtain-open .curtain-glow {
  opacity: 0;
  transform: translateX(-50%) scaleX(1.7);
}

body.declaration-scripted.curtain-open .cinematic-curtain {
  opacity: 0;
  transition-delay: 7000ms;
}

body.declaration-scripted.curtain-opening .curtain-panel {
  animation: none;
}

body.declaration-scripted.declaration-ready .cinematic-overlay {
  opacity: 1;
}

@keyframes atmospherePulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(1);
  }

  50% {
    opacity: 0.56;
    transform: scale(1.04);
  }
}

@keyframes filmFlicker {
  0%,
  100% {
    opacity: 0.08;
  }

  32% {
    opacity: 0.11;
  }

  35% {
    opacity: 0.06;
  }

  66% {
    opacity: 0.13;
  }

  73% {
    opacity: 0.08;
  }
}

@keyframes beamSweepOne {
  0%,
  100% {
    opacity: 0.18;
    transform: translateX(0) rotate(-8deg) scale(1);
  }

  45% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.36;
    transform: translateX(7%) rotate(-13deg) scale(1.05);
  }
}

@keyframes beamSweepTwo {
  0%,
  100% {
    opacity: 0.16;
    transform: translateX(0) rotate(11deg) scale(1);
  }

  42% {
    opacity: 0.32;
  }

  50% {
    opacity: 0.28;
    transform: translateX(-8%) rotate(18deg) scale(1.04);
  }
}

@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.66;
    transform: scale(1);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.02);
  }
}

@keyframes hallIntro {
  from {
    opacity: 0;
    filter: blur(8px) saturate(0.8);
  }

  to {
    opacity: 1;
    filter: blur(0) saturate(1);
  }
}

@keyframes innerFramePulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 220, 152, 0.08) inset,
      0 0 36px rgba(238, 191, 116, 0.12) inset;
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 220, 152, 0.14) inset,
      0 0 52px rgba(238, 191, 116, 0.2) inset;
  }
}

@keyframes titleGlint {
  0%,
  100% {
    text-shadow:
      0 8px 18px rgba(0, 0, 0, 0.42),
      0 0 24px rgba(233, 188, 109, 0.24);
  }

  45%,
  55% {
    text-shadow:
      0 8px 18px rgba(0, 0, 0, 0.42),
      0 0 34px rgba(255, 210, 126, 0.36);
  }
}

@keyframes cardSweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes curtainPulse {
  0% {
    filter: saturate(0.9) brightness(0.88);
  }

  45% {
    filter: saturate(1.22) brightness(1.08);
  }

  100% {
    filter: saturate(1) brightness(0.96);
  }
}

@keyframes hallFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 20px);
  }

  50% {
    transform: translate3d(0, -4px, 20px);
  }
}

@keyframes hallSweep {
  from {
    transform: translateX(0) rotate(15deg);
  }

  to {
    transform: translateX(420%) rotate(15deg);
  }
}

@keyframes grainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(1.2%, -1.8%, 0);
  }

  50% {
    transform: translate3d(-1.4%, 1.2%, 0);
  }

  75% {
    transform: translate3d(1%, 1.4%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes textSweep {
  0% {
    opacity: 0;
    transform: translateX(-30%);
  }

  22% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(30%);
  }
}

@keyframes wordCinematic {
  0% {
    text-shadow: 0 0 0 rgba(233, 188, 109, 0);
    filter: brightness(0.95);
  }

  36% {
    text-shadow: 0 0 18px rgba(233, 188, 109, 0.4);
    filter: brightness(1.12);
  }

  100% {
    text-shadow: 0 0 10px rgba(233, 188, 109, 0.2);
    filter: brightness(1);
  }
}

@keyframes sealStamp {
  0% {
    transform: translateY(0) scale(1.12) rotate(-1.6deg);
    box-shadow: 0 0 0 rgba(222, 197, 137, 0);
  }

  60% {
    transform: translateY(0) scale(1) rotate(0deg);
    box-shadow: 0 0 44px rgba(222, 197, 137, 0.2);
  }

  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    box-shadow: 0 0 24px rgba(222, 197, 137, 0.14);
  }
}

@media (max-width: 920px) {
  .declaration-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  main {
    padding: 1rem;
  }

  .cinematic-overlay {
    inset: -18% -20%;
    opacity: 0.8;
  }

  .declaration-hall-shell {
    width: 100%;
    transform: none;
  }

  .cinematic-curtain {
    inset: 0.2rem;
    border-radius: 0.86rem;
  }

  .curtain-panel {
    width: 60%;
  }

  .declaration-hall {
    border-radius: 1rem;
    padding: 1.35rem 0.9rem 1.55rem;
    gap: 0.84rem;
  }

  .declaration-hall::after {
    inset: 0.38rem;
    border-radius: 0.76rem;
  }

  .declaration-kicker {
    letter-spacing: 0.2em;
  }

  .declaration-subtitle {
    letter-spacing: 0.14em;
  }

  .declaration-statement {
    min-height: 10rem;
    line-height: 1.76;
  }

  .attestation-signature {
    width: 100%;
  }

  .declaration-actions button,
  .declaration-actions a {
    flex: 1 1 44%;
    min-width: 7rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  main {
    padding: 0.9rem 0.75rem 1.3rem;
  }

  .cinematic-overlay {
    inset: -10% -22%;
  }

  .declaration-hall {
    padding: 1.2rem 0.85rem 1.35rem;
  }

  .declaration-meta {
    grid-template-columns: 1fr;
    gap: 0.52rem;
  }

  .meta-card:last-child {
    grid-column: auto;
  }

  .meta-label {
    font-size: 0.6rem;
  }

  .meta-value {
    font-size: 0.84rem;
  }

  .declaration-statement {
    min-height: auto;
    padding: 0.95rem 0.85rem 1.1rem;
    font-size: 1rem;
    line-height: 1.72;
  }

  #declarationText {
    max-width: none;
  }

  .seal-zone {
    width: 100%;
    border-radius: 1.1rem;
  }

  .signature-line {
    letter-spacing: 0.05em;
  }
}

@media (max-width: 480px) {
  .declaration-kicker,
  .declaration-subtitle,
  .seal-kicker,
  .signature-kicker {
    letter-spacing: 0.12em;
  }

  .attestation-rule {
    gap: 0.35rem;
  }

  .attestation-rule-dot {
    min-width: 2rem;
    padding: 0.12rem 0.45rem;
    letter-spacing: 0.14em;
    text-indent: 0.12em;
  }

  .declaration-actions {
    flex-direction: column;
  }

  .declaration-actions button,
  .declaration-actions a {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 auto;
  }
}

@media print {
  .top-nav,
  #ambientCanvas,
  .cinematic-overlay,
  .cinematic-curtain,
  .declaration-actions,
  main::before,
  main::after,
  body::before,
  body::after {
    display: none !important;
  }

  body,
  main,
  .declaration-hall-shell,
  .declaration-hall {
    background: #fff;
    color: #000;
    box-shadow: none;
    border: none;
  }

  .declaration-hall::before,
  .declaration-hall::after {
    display: none;
  }

  .declaration-hall-shell {
    transform: none !important;
  }

  .declaration-statement,
  .seal-zone,
  .meta-card {
    color: #000;
    background: #fff;
    border: 1px solid #000;
    box-shadow: none;
  }

  .seal-zone::before {
    border-color: #000;
  }

  .declaration-kicker,
  .declaration-subtitle,
  .seal-kicker,
  .meta-label,
  .signature-kicker,
  .signature-date {
    color: #000;
  }

  .meta-value,
  .signature-line,
  #declarationIssuedOn {
    color: #000;
  }
}
