body {
  background-image: url("../images/bg1.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'xanh mono', monospace;
}

/* Scene sits above page content */
.scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* above page text */
  pointer-events: auto;
}

/* Optional: page content styling */
.page-content {
  position: relative;
  z-index: 1;
  padding: 0rem;
  color: rgb(0, 0, 0);
  width: 100%;
}
.page-content h2 {
  text-align: right;
  margin: 0;
}

/* ------------------------
   TYPE SCALE
------------------------- */

html {
  font-size: 16px; /* baseline */
}

body {
  font-size: 1rem;      /* 16px */
  line-height: 1.6;
  font-weight: 400;
  color: #111;
  text-align: left;
}


/* Headings */

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: .05em;
  font-weight: 400;
}

h2 {
  font-size: 5.5rem;    
  line-height: 1.2;
  letter-spacing: .07em;
  font-weight: 200;
}

h3 {
  font-size: 1.5rem; 
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p {
  font-size: 1rem;
  max-width: 65ch;
  letter-spacing: 0.02em;
}


/*  Blob Base  */
.blob {
  z-index: 1;
  text-decoration: none;
  text-transform: uppercase;
  animation: none;
  position: absolute;
  width: 700px;
  height: 700px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'xanh mono', monospace;
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;

  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --float-scale: 1;

    transform:
    translate(var(--x), var(--y)) 
    rotate(var(--r)) 
    scale(var(--float-scale)); /* this is needed for hover scale */

  transition: filter 0.4s ease;

  /* Grain overlay on each blob */
  background-blend-mode: multiply;
}

.blob.is-ready {
  transition: transform 2.5s ease, filter 0.4s ease;
  animation:
  breathe 6s ease-in-out infinite
  wobble 9s ease-in-out infinite;
}

.blob::after {
  content: "";
  position: absolute;
  inset: -15%;

  background-image: url("../images/noise.png");
  background-repeat: repeat;
  background-size: 200px 200px;

  opacity: 0.25;
  mix-blend-mode: screen;

  pointer-events: none;

  animation: noise-shift 0.6s steps(2) infinite;
}


/*  Blob Colors & ClipPaths  */
.blob1 {
  background: radial-gradient(circle at 50% 100%, #00554b, #00554b);
  clip-path: url(#blob1-clip);
  width: 600px;
  height: 600px;
  --float-scale: 1;
}
.blob2 {
  background: radial-gradient(circle at 30% 30%, rgb(108, 224, 213), #00554b);
  clip-path: url(#blob2-clip);
  width: 400px;
  height: 400px;
  border-radius: 700px;
  box-shadow: 20px 20px 50px 10px pink inset;
  --float-scale: 1;
}
.blob3 {
  background: radial-gradient(circle at 30% 30%, rgb(116, 137, 230));
  clip-path: url(#blob3-clip);
  width: 600px;
  height: 600px;
  --float-scale: 1;
}
.blob4 {
  background: radial-gradient(circle at 30% 30%, #000000, #000000);
  clip-path: url(#blob4-clip);
  width: 575px;
  height: 575px;
  --float-scale: 1;
}

/*  Labels  */
.label {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.blob:hover .label,
.blob:focus-visible .label {
  opacity: 1;
  transform: translateY(0);
}
.blob:hover {
  filter: brightness(1.1) saturate(1.1);
  --float-scale: 1.09;
}

/*  Animations  */
@keyframes breathe {
  0%,100% { scale:1; }
  50% { scale:1.04; }
}
@keyframes wobble {
  0% { rotate:0deg; }
  50% { rotate:3deg; }
  100% { rotate:0deg; }
}
@keyframes noise-shift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-5%,5%); }
  50%  { transform: translate(5%,-5%); }
  75%  { transform: translate(-2.5%,2.5%); }
  100% { transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
    transition: none;
  }
}

/* ---------------- PANEL ---------------- */

#panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 40vw;
  max-width: 520px;
  height: 100vh;

  background: white;

  transform: translateX(-100%);
  transition: transform .6s cubic-bezier(.4,0,.2,1), background-color .6s ease;

  z-index: 50;
  padding: 3rem;
  overflow-y: auto;
}


#panel.open {
  transform: translateX(0);
}

#panel-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* CONTACT FORMS */

.contact-section {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem;
}

.contact-intro > * + * {
  margin-top: 1rem;
}

.contact-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
}

.contact-description {
  color: rgb(255, 255, 255);
}

.form-group-container {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 0px solid #ffffff;
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-input::placeholder,
.form-textarea:focus-visible {
  color: #6b7280;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 0px solid rgb(108, 224, 213);
  outline-offset: 2px;
}

.form-textarea {
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin-top: 1.2rem;
  background-color: rgb(108, 224, 213);
  color: black;
  padding: 13px 5px;
  border-radius: 0.375rem;
}

