/* monopole.cloud — translucent frost, layered depth, ethereal float */

:root {
  --ink: #4A5060;
  --frost-blue: #F0F4FA;
  --frost-lavender: #F0E8F0;
  --frost-violet: #E8E4F0;
  --muted: #8A90A0;
  --panel-fill: rgba(180, 200, 230, 0.20);
  --panel-fill-strong: rgba(190, 210, 235, 0.28);
  --panel-border: rgba(255, 255, 255, 0.40);
  --panel-shadow: 0 8px 32px rgba(74, 80, 96, 0.06);
  --panel-shadow-deep: 0 12px 48px rgba(74, 80, 96, 0.10);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background: var(--frost-blue);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.8;
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Atmosphere — the luminous backdrop */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 900px at 20% 15%, rgba(232, 228, 240, 0.55), transparent 60%),
    radial-gradient(1000px 800px at 85% 35%, rgba(240, 232, 240, 0.45), transparent 65%),
    radial-gradient(900px 700px at 50% 110%, rgba(220, 230, 248, 0.5), transparent 70%),
    var(--frost-blue);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 60vmin;
  height: 60vmin;
  top: -10vmin;
  left: -10vmin;
  background: radial-gradient(circle, rgba(240, 232, 240, 0.9), transparent 70%);
  animation: orbDriftA 22s ease-in-out infinite;
}

.orb-2 {
  width: 50vmin;
  height: 50vmin;
  top: 35%;
  right: -10vmin;
  background: radial-gradient(circle, rgba(220, 232, 248, 0.85), transparent 70%);
  animation: orbDriftB 28s ease-in-out infinite;
}

.orb-3 {
  width: 70vmin;
  height: 70vmin;
  bottom: -25vmin;
  left: 25%;
  background: radial-gradient(circle, rgba(232, 228, 240, 0.8), transparent 70%);
  animation: orbDriftC 32s ease-in-out infinite;
}

@keyframes orbDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.05); }
}

@keyframes orbDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-50px, -20px, 0) scale(1.08); }
}

@keyframes orbDriftC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -40px, 0) scale(0.95); }
}

/* Particles — drifting weather */

.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  animation-name: particleDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes particleDrift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% { opacity: 0.8; }
  90% { opacity: 0.7; }
  100% {
    transform: translate3d(var(--dx, 80px), var(--dy, -120vh), 0);
    opacity: 0;
  }
}

/* Stage — overall content perspective */

.stage {
  position: relative;
  z-index: 2;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.viewport {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: clamp(40px, 8vh, 120px) clamp(24px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

/* Frost panels — translucent glass */

.frost-panel {
  background: var(--panel-fill);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.frost-panel.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Hero viewport */

.viewport-hero {
  min-height: 100vh;
  text-align: center;
}

.depth-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform-style: preserve-3d;
}

.depth-back { transform: translateZ(-180px) scale(1.16); opacity: 0.6; }
.depth-mid  { transform: translateZ(-80px)  scale(1.08); opacity: 0.85; }
.depth-front {
  position: relative;
  inset: auto;
  transform: translateZ(0);
  flex-direction: column;
  pointer-events: auto;
  max-width: 880px;
  padding: 0 clamp(8px, 2vw, 24px);
}

.panel-back {
  width: clamp(280px, 60vw, 720px);
  height: clamp(240px, 40vh, 360px);
  background: rgba(232, 228, 240, 0.18);
  border-radius: 28px;
}

.panel-mid {
  width: clamp(240px, 50vw, 560px);
  height: clamp(180px, 32vh, 280px);
  background: rgba(220, 232, 248, 0.22);
  border-radius: 24px;
}

.panel-back,
.panel-mid {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(18px, 2vw, 28px);
  opacity: 1;
  transform: none;
}

.logotype {
  font-family: "Cormorant Garamond", "Lora", serif;
  font-weight: 300;
  font-size: clamp(32px, 7vw, 96px);
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: clamp(20px, 3vh, 36px);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 1500ms ease, transform 1500ms ease;
}

.logotype.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.logo-mono { color: var(--ink); }
.logo-cloud { color: var(--muted); font-style: italic; }
.logo-dot {
  color: var(--frost-violet);
  display: inline-block;
  transform: translateY(-0.05em);
}

.lede {
  max-width: 540px;
  margin: 0 auto clamp(24px, 4vh, 40px);
  font-size: clamp(15px, 1.2vw, 19px);
  color: var(--ink);
  opacity: 0.85;
  font-weight: 300;
  line-height: 1.85;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.meta-value {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(15px, 1.3vw, 21px);
  color: var(--ink);
}

/* Micro labels */

.micro-label {
  font-family: "Josefin Sans", "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(11px, 0.8vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
}

.micro-divider {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--muted);
  opacity: 0.45;
  margin: 0 4px;
  vertical-align: middle;
}

/* Section heads */

.section-head {
  width: 100%;
  max-width: 1100px;
  margin-bottom: clamp(40px, 6vh, 72px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-family: "Cormorant Garamond", "Lora", serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  color: var(--ink);
  max-width: 22ch;
}

/* Strata grid */

.viewport-strata { padding-top: clamp(80px, 12vh, 160px); }

.strata-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
}

.strata-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}

.strata-card[data-depth="0"] { transform: translate3d(0, 24px, 0) translateZ(-40px); }
.strata-card[data-depth="1"] { transform: translate3d(0, 24px, 0) translateZ(-10px); }
.strata-card[data-depth="2"] { transform: translate3d(0, 24px, 0) translateZ(20px); }
.strata-card[data-depth="3"] { transform: translate3d(0, 24px, 0) translateZ(-25px); }

.strata-card.is-revealed[data-depth="0"] { transform: translate3d(0, 0, 0) translateZ(-40px); }
.strata-card.is-revealed[data-depth="1"] { transform: translate3d(0, 0, 0) translateZ(-10px); }
.strata-card.is-revealed[data-depth="2"] { transform: translate3d(0, 0, 0) translateZ(20px); }
.strata-card.is-revealed[data-depth="3"] { transform: translate3d(0, 0, 0) translateZ(-25px); }

.card-index {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--muted);
  line-height: 1;
}

.card-title {
  font-family: "Cormorant Garamond", "Lora", serif;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink);
  letter-spacing: 0.01em;
}

.card-body {
  font-size: clamp(13px, 0.95vw, 15px);
  color: var(--ink);
  opacity: 0.78;
}

/* Field viewport */

.viewport-field {
  padding-top: clamp(80px, 12vh, 160px);
}

.field-inner {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vh, 56px);
}

@media (min-width: 900px) {
  .field-inner {
    grid-template-columns: minmax(280px, 1fr) 1fr;
    align-items: start;
  }
}

.field-quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--panel-fill-strong);
}

.quote-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.6;
  color: var(--muted);
  opacity: 0.55;
}

.quote-body {
  font-family: "Cormorant Garamond", "Lora", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.5;
  color: var(--ink);
}

.quote-credit {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(138, 144, 160, 0.18);
}

.field-text {
  font-size: clamp(14px, 1.05vw, 17px);
  color: var(--ink);
  opacity: 0.9;
}

/* Signal viewport */

.viewport-signal {
  padding-top: clamp(80px, 12vh, 160px);
  padding-bottom: clamp(60px, 10vh, 140px);
}

.signal-panel {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 28px);
  background: var(--panel-fill-strong);
  box-shadow: var(--panel-shadow-deep);
}

.signal-body {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--ink);
  opacity: 0.82;
}

.signal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signal-label {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.signal-input {
  width: 100%;
  padding: 14px 18px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  font-style: italic;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  outline: none;
  transition: background 280ms ease, border-color 280ms ease;
}

.signal-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.signal-input:hover,
.signal-input:focus {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(232, 228, 240, 0.95);
}

.signal-button {
  align-self: flex-start;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  transition: transform 320ms ease, background 320ms ease,
              box-shadow 320ms ease;
}

.signal-button:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74, 80, 96, 0.08);
}

.signal-feedback {
  min-height: 22px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 17px);
  color: var(--muted);
  opacity: 0;
  transition: opacity 480ms ease;
}

.signal-feedback.is-visible { opacity: 1; }

/* Footer */

.cloud-footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) clamp(24px, 6vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.footer-mark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--ink);
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Float animations — weightlessness */

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes floatMedium {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes floatFast {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

.float-slow.is-revealed { animation: floatSlow 9s ease-in-out infinite; }
.float-medium.is-revealed { animation: floatMedium 7s ease-in-out infinite; }
.float-fast.is-revealed { animation: floatFast 5s ease-in-out infinite; }

/* Strata cards keep their depth translateZ while floating */
.strata-card.is-revealed.float-slow[data-depth="0"] {
  animation: floatSlowDepth0 9s ease-in-out infinite;
}
.strata-card.is-revealed.float-medium[data-depth="1"] {
  animation: floatMediumDepth1 7s ease-in-out infinite;
}
.strata-card.is-revealed.float-fast[data-depth="2"] {
  animation: floatFastDepth2 5s ease-in-out infinite;
}
.strata-card.is-revealed.float-medium[data-depth="3"] {
  animation: floatMediumDepth3 7.5s ease-in-out infinite;
}

@keyframes floatSlowDepth0 {
  0%, 100% { transform: translate3d(0, 0, 0) translateZ(-40px); }
  50% { transform: translate3d(0, -10px, 0) translateZ(-40px); }
}
@keyframes floatMediumDepth1 {
  0%, 100% { transform: translate3d(0, 0, 0) translateZ(-10px); }
  50% { transform: translate3d(0, -7px, 0) translateZ(-10px); }
}
@keyframes floatFastDepth2 {
  0%, 100% { transform: translate3d(0, 0, 0) translateZ(20px); }
  50% { transform: translate3d(0, -5px, 0) translateZ(20px); }
}
@keyframes floatMediumDepth3 {
  0%, 100% { transform: translate3d(0, 0, 0) translateZ(-25px); }
  50% { transform: translate3d(0, -8px, 0) translateZ(-25px); }
}

/* Responsive */

@media (max-width: 720px) {
  .panel-back, .panel-mid { display: none; }
  .depth-back, .depth-mid { display: none; }
  .field-item { grid-template-columns: 48px 1fr; }
}
