:root {
  color-scheme: light;
  --background: #FCFCF9;
  --foreground: #11110f;
  --inactive: rgba(17, 17, 15, 0.14);
  --footer-email: #11110f;
  --edge-space: clamp(1.5rem, 3.25vw, 3.75rem);
  --statement-size: clamp(3rem, 3.35vw, 4.25rem);
  --statement-leading: 1.08;
  --reveal-duration: 10s;
  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #090909;
  --foreground: #f2f0eb;
  --inactive: rgba(242, 240, 235, 0.17);
  --footer-email: #f2f0eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--background);
  color: var(--foreground);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.8s var(--ease-calm), color 0.8s var(--ease-calm);
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.masthead,
.footer {
  position: fixed;
  right: var(--edge-space);
  left: var(--edge-space);
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: clamp(0.75rem, 0.86vw, 0.95rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: Arial, Helvetica, sans-serif;
}

.masthead {
  top: var(--edge-space);
}

.footer {
  bottom: var(--edge-space);
}

.wordmark {
  font-weight: 600;
}

.theme-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  transition: color 0.8s var(--ease-calm), opacity 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  opacity: 0.55;
}

.scroller {
  position: relative;
  z-index: 1;
}

.scene {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(6rem, 13vh, 9rem) var(--edge-space);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  will-change: opacity;
}

.scene--intro,
.scene--statement,
.scene--invitation {
  pointer-events: none;
}

.studio-title,
.statement,
.invitation-copy {
  position: relative;
  z-index: 2;
  margin-top: -50px;
  font-weight: 400;
  text-align: center;
}

.studio-title {
  max-width: 11em;
  font-size: clamp(4rem, 6.7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

#studio-title {
  animation: intro-title-arrive 1.25s var(--ease-calm) 0.5s both;
  will-change: opacity, transform;
}

.scene--statement .statement,
.scene--invitation .invitation {
  opacity: 0;
  transform: translateY(2rem);
  will-change: opacity, transform;
}

.scene--statement.is-entered .statement,
.scene--invitation.is-entered .invitation {
  animation: intro-title-arrive 1.25s var(--ease-calm) 0.5s both;
}

@keyframes intro-title-arrive {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.statement {
  width: min(100%, 16em);
  max-width: 16em;
  font-size: var(--statement-size);
  line-height: var(--statement-leading);
}

.glyph {
  color: var(--inactive);
  transition: color 0.8s var(--ease-calm);
}

.glyph.is-revealed {
  color: var(--foreground);
}

.invitation {
  display: flex;
  width: min(100%, 16em);
  flex-direction: column;
  align-items: center;
  font-size: var(--statement-size);
  line-height: var(--statement-leading);
  text-align: center;
}

.invitation-copy {
  font-size: 1em;
}

.email-copy {
  position: relative;
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
  color: #877fe8;
  cursor: pointer;
  font: inherit;
  line-height: 1.08;
  pointer-events: auto;
  transition: color 0.25s ease;
}

.copy-toast {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 8;
  padding: 0.72rem 0.95rem 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(224, 210, 249, 0.96), rgba(194, 237, 241, 0.96));
  box-shadow: 0 0.55rem 1.8rem rgba(112, 106, 181, 0.16);
  color: #17161d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.78rem, 0.9vw, 0.95rem);
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% + 0.5rem)) scale(0.96);
  transform-origin: bottom center;
  transition: opacity 0.22s ease, transform 0.35s var(--ease-calm);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.email-copy:hover,
.email-copy:focus-visible,
.email-copy:active {
  color: #5f53e5;
}

.email-copy:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

.descriptor {
  margin: 0;
}

.contact {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--footer-email);
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  transition: color 0.25s ease;
}

.contact:hover,
.contact:focus-visible,
.contact:active {
  color: #5f53e5;
}

.contact:focus-visible,
.wordmark:focus-visible,
.theme-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 900px) {
  :root {
    --statement-size: clamp(2.6rem, 5.7vw, 3.8rem);
  }

}

@media (max-width: 600px) {
  :root {
    --edge-space: 1.25rem;
  }

  .statement,
  .invitation {
    max-width: none;
    width: 100%;
    font-size: clamp(2.15rem, 9.4vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
  }

  .masthead,
  .footer {
    font-size: 0.75rem;
  }

  .studio-title {
    font-size: clamp(3.8rem, 20vw, 5.75rem);
    line-height: 0.94;
  }
}

@media (prefers-reduced-motion: reduce) {
  #studio-title {
    animation: none;
  }

  .scene--statement .statement,
  .scene--invitation .invitation {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .glyph,
  .scene,
  .email-copy,
  .contact,
  .contact::after {
    transition-duration: 0.01ms !important;
  }
}
