:root {
  color-scheme: dark;
  --background: #030406;
  --text-primary: rgba(255, 255, 255, 0.96);
  --text-muted: rgba(255, 255, 255, 0.48);
  --content-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--background);
}

body {
  color: var(--text-primary);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(69, 91, 126, 0.42), transparent 45%),
    radial-gradient(ellipse at 14% 86%, rgba(42, 67, 103, 0.34), transparent 39%),
    linear-gradient(145deg, #020305 0%, #07090d 48%, #030406 100%);
  background-position: 50% 50%;
  background-size: 175% 175%;
  animation: background-pan 8s ease-in-out infinite alternate;
}

.atmosphere::before,
.atmosphere::after {
  position: absolute;
  inset: -18%;
  content: "";
  will-change: transform, opacity;
}

.atmosphere::before {
  background:
    radial-gradient(circle at 22% 25%, rgba(116, 153, 204, 0.36), transparent 24%),
    radial-gradient(circle at 76% 70%, rgba(71, 111, 164, 0.34), transparent 30%);
  filter: blur(48px);
  mix-blend-mode: screen;
  animation: atmosphere-breathe 7s ease-in-out infinite alternate;
}

.atmosphere::after {
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 22%, rgba(0, 0, 0, 0.48) 100%);
}

.atmosphere__aurora {
  position: absolute;
  inset: -42%;
  border-radius: 50%;
  filter: blur(105px);
  mix-blend-mode: screen;
  opacity: 0.36;
  will-change: transform, opacity;
}

.atmosphere__aurora--one {
  background: conic-gradient(
    from 20deg,
    transparent 0 12%,
    rgba(50, 92, 148, 0.56) 18%,
    transparent 30% 47%,
    rgba(82, 122, 172, 0.42) 58%,
    transparent 70% 100%
  );
  animation: aurora-orbit-one 18s linear infinite;
}

.atmosphere__aurora--two {
  inset: -34%;
  background: conic-gradient(
    from 210deg,
    transparent 0 20%,
    rgba(30, 73, 130, 0.5) 30%,
    transparent 42% 61%,
    rgba(106, 139, 178, 0.34) 70%,
    transparent 82% 100%
  );
  opacity: 0.28;
  animation: aurora-orbit-two 24s linear infinite;
}

.atmosphere__waves {
  position: absolute;
  inset: -26%;
  background: repeating-radial-gradient(
    ellipse at 50% 56%,
    transparent 0 10%,
    rgba(112, 157, 207, 0.075) 11%,
    transparent 12.2% 18%
  );
  filter: blur(7px);
  opacity: 0.52;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: waves-breathe 10s ease-in-out infinite alternate;
}

.atmosphere__glow {
  position: absolute;
  width: 74vmax;
  height: 74vmax;
  border-radius: 50%;
  filter: blur(82px);
  opacity: 0.46;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.atmosphere__glow--upper {
  top: -42vmax;
  left: -12vmax;
  background: radial-gradient(circle, rgba(102, 143, 198, 0.58), transparent 65%);
  animation: drift-upper 9s ease-in-out infinite alternate;
}

.atmosphere__glow--lower {
  right: -34vmax;
  bottom: -40vmax;
  background: radial-gradient(circle, rgba(61, 105, 164, 0.55), transparent 66%);
  animation: drift-lower 11s ease-in-out infinite alternate;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grain-shift 3.5s steps(2, end) infinite;
}

.atmosphere__beam {
  position: absolute;
  top: -42vmax;
  left: -72vmax;
  width: 54vmax;
  height: 168vmax;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 103, 156, 0.08) 26%,
    rgba(116, 165, 219, 0.25) 50%,
    rgba(59, 103, 156, 0.08) 74%,
    transparent 100%
  );
  filter: blur(44px);
  mix-blend-mode: screen;
  transform: rotate(18deg);
  will-change: transform, opacity;
  animation: beam-sweep 6s ease-in-out infinite alternate;
}

.atmosphere__beam--secondary {
  top: -58vmax;
  left: auto;
  right: -68vmax;
  width: 38vmax;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(42, 86, 143, 0.06) 25%,
    rgba(91, 142, 202, 0.19) 50%,
    rgba(42, 86, 143, 0.06) 75%,
    transparent 100%
  );
  filter: blur(58px);
  animation: beam-sweep-secondary 9s ease-in-out infinite alternate;
}

.atmosphere__focus {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 56% 70% at 50% 51%,
    rgba(3, 4, 7, 0.3) 0%,
    rgba(3, 4, 7, 0.18) 38%,
    transparent 72%
  );
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  place-items: center;
}

.content {
  width: min(100%, var(--content-width));
  text-align: center;
  transform: translateY(-0.8vh);
}

blockquote,
p {
  margin: 0;
}

blockquote {
  font-style: normal;
}

.quote p {
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.quote cite {
  display: block;
  margin-top: clamp(17px, 2.7vh, 29px);
  font-size: clamp(0.88rem, 1.08vw + 0.25rem, 1.38rem);
  font-style: normal;
  letter-spacing: 0;
}

.quote--georgian {
  color: var(--text-primary);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.quote--georgian p {
  font-size: clamp(1.22rem, 1.55vw + 0.42rem, 2rem);
}

.quote--georgian cite {
  color: rgba(255, 255, 255, 0.82);
}

.quote--english {
  margin-top: clamp(48px, 7.4vh, 76px);
  color: var(--text-primary);
}

.quote--english p {
  font-size: min(clamp(2rem, 4.15vw + 0.55rem, 4.8rem), 7.4vw);
  line-height: 1.08;
  white-space: nowrap;
}

.quote--english cite {
  margin-top: clamp(17px, 3vh, 29px);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.25vw + 0.25rem, 1.55rem);
}

.statement {
  margin-top: clamp(74px, 13vh, 132px);
  color: var(--text-primary);
  font-size: clamp(1.05rem, 1.5vw + 0.38rem, 1.8rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.018em;
  text-shadow: 0 0 28px rgba(225, 232, 241, 0.04);
}

.statement__return {
  font-weight: 400;
}

.statement__line {
  white-space: nowrap;
}

.georgia-flag {
  width: 22px;
  margin: clamp(22px, 3.5vh, 35px) auto 0;
  line-height: 0;
  filter: saturate(0.88) brightness(0.94);
}

.georgia-flag svg {
  display: block;
  width: 100%;
  height: auto;
}

.coming-soon {
  margin-top: clamp(13px, 2vh, 20px);
  color: var(--text-muted);
  font-size: clamp(0.68rem, 0.34vw + 0.58rem, 0.82rem);
  letter-spacing: 0.11em;
}

.reveal {
  opacity: 0;
  animation: reveal 1.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.reveal--one { animation-delay: 0.15s; }
.reveal--two { animation-delay: 0.55s; }
.reveal--three { animation-delay: 0.95s; }
.reveal--four { animation-delay: 1.35s; }
.reveal--five { animation-delay: 1.65s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes background-pan {
  from { background-position: 18% 28%; }
  to { background-position: 82% 72%; }
}

@keyframes aurora-orbit-one {
  0% { transform: rotate(0deg) scale(0.94) translate3d(-2%, 1%, 0); opacity: 0.28; }
  50% { transform: rotate(180deg) scale(1.08) translate3d(3%, -2%, 0); opacity: 0.43; }
  100% { transform: rotate(360deg) scale(0.94) translate3d(-2%, 1%, 0); opacity: 0.28; }
}

@keyframes aurora-orbit-two {
  0% { transform: rotate(360deg) scale(1.08) translate3d(2%, -2%, 0); opacity: 0.22; }
  50% { transform: rotate(180deg) scale(0.92) translate3d(-3%, 3%, 0); opacity: 0.36; }
  100% { transform: rotate(0deg) scale(1.08) translate3d(2%, -2%, 0); opacity: 0.22; }
}

@keyframes waves-breathe {
  from { transform: translate3d(-2%, 2%, 0) scale(0.94); opacity: 0.3; }
  to { transform: translate3d(2%, -3%, 0) scale(1.1); opacity: 0.62; }
}

@keyframes atmosphere-breathe {
  0% { transform: translate3d(-6%, -4%, 0) scale(0.94); opacity: 0.62; }
  100% { transform: translate3d(7%, 5%, 0) scale(1.12); opacity: 1; }
}

@keyframes drift-upper {
  from { transform: translate3d(-5%, -3%, 0) scale(0.96); opacity: 0.32; }
  to { transform: translate3d(17%, 14%, 0) scale(1.15); opacity: 0.56; }
}

@keyframes drift-lower {
  from { transform: translate3d(5%, 4%, 0) scale(1.12); opacity: 0.3; }
  to { transform: translate3d(-18%, -14%, 0) scale(0.92); opacity: 0.54; }
}

@keyframes grain-shift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-0.5%, 0.7%, 0); }
  50% { transform: translate3d(0.6%, -0.5%, 0); }
  75% { transform: translate3d(0.4%, 0.6%, 0); }
}

@keyframes beam-sweep {
  from {
    opacity: 0.55;
    transform: translate3d(-8vw, 0, 0) rotate(18deg);
  }
  to {
    opacity: 1;
    transform: translate3d(205vw, 0, 0) rotate(18deg);
  }
}

@keyframes beam-sweep-secondary {
  from {
    opacity: 0.35;
    transform: translate3d(9vw, 0, 0) rotate(-14deg);
  }
  to {
    opacity: 0.82;
    transform: translate3d(-198vw, 0, 0) rotate(-14deg);
  }
}

@media (max-width: 760px) {
  .page {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .quote--english {
    margin-top: clamp(35px, 6vh, 52px);
  }

  .statement {
    margin-top: clamp(48px, 9vh, 76px);
  }

  .statement__line,
  .statement__line span {
    display: block;
    white-space: normal;
  }

  .statement__line span + span {
    margin-top: 0.18em;
  }

  .statement__line .statement__return {
    margin-top: clamp(12px, 2vh, 20px);
  }
}

@media (max-height: 800px) {
  .quote cite { margin-top: clamp(12px, 2vh, 17px); }
  .quote--english { margin-top: clamp(32px, 5.4vh, 43px); }
  .quote--english cite { margin-top: clamp(14px, 2.4vh, 20px); }
  .statement { margin-top: clamp(43px, 7.2vh, 58px); }
  .statement__line .statement__return { margin-top: clamp(9px, 1.6vh, 13px); }
  .georgia-flag { margin-top: clamp(15px, 2.6vh, 21px); }
  .coming-soon { margin-top: clamp(10px, 1.6vh, 13px); }
}

@media (max-height: 680px) {
  .page { padding-top: 10px; padding-bottom: 10px; }
  .content { transform: none; }
  .quote--georgian p { font-size: clamp(1rem, 3.1vh, 1.28rem); }
  .quote cite { margin-top: 7px; font-size: clamp(0.72rem, 2.1vh, 0.86rem); }
  .quote--english { margin-top: clamp(19px, 3.5vh, 25px); }
  .quote--english p { font-size: min(clamp(1.9rem, 6.2vh, 2.35rem), 7.4vw); }
  .quote--english cite { margin-top: clamp(11px, 2.1vh, 15px); }
  .statement { margin-top: clamp(24px, 4.2vh, 31px); font-size: clamp(0.96rem, 2.9vh, 1.17rem); line-height: 1.36; }
  .statement__line .statement__return { margin-top: 7px; }
  .georgia-flag { width: 20px; margin-top: clamp(10px, 1.9vh, 13px); }
  .coming-soon { margin-top: 8px; }
}

@media (max-height: 500px) {
  .quote--georgian p { font-size: clamp(0.88rem, 3.2vh, 1rem); }
  .quote cite { margin-top: 4px; font-size: clamp(0.64rem, 2.1vh, 0.74rem); }
  .quote--english { margin-top: clamp(11px, 2.5vh, 15px); }
  .quote--english p { font-size: clamp(1.45rem, 7.3vh, 2.3rem); }
  .quote--english cite { margin-top: clamp(7px, 1.6vh, 9px); }
  .statement { margin-top: clamp(13px, 3vh, 18px); font-size: clamp(0.82rem, 2.75vh, 0.95rem); line-height: 1.28; }
  .statement__line .statement__return { margin-top: 4px; }
  .georgia-flag { width: 18px; margin-top: 7px; }
  .coming-soon { margin-top: 5px; font-size: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .atmosphere::before,
  .atmosphere,
  .atmosphere__aurora,
  .atmosphere__beam,
  .atmosphere__glow,
  .atmosphere__waves,
  .atmosphere__grain {
    animation: none;
    will-change: auto;
  }
}
