/* ==========================================================================
   Story / Introduction Section ("Where your vision finds its home.")
   ========================================================================== */
.story {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 140px 64px 340px;
  background: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

/* Centered Content Block */
.story-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Heading: Line 1 */
.story-heading {
  margin: 0;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -3.2px;
  color: #000000;
  text-wrap: balance;
}

/* Heading: Line 2 (finds its + inline badge + home.) */
.story-second {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -3.2px;
  color: #000000;
}

/* Organic Asymmetrical Leaf/Pebble Badge */
.story-inline {
  display: block;
  width: 150px;
  height: 60px;
  overflow: hidden;
  border-radius: 48px 4px;
  flex: 0 0 auto;
  background: #e6e6e2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.story-inline:hover {
  transform: scale(1.04);
}

.story-inline img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Subtitle Paragraph */
.story-copy {
  max-width: 768px;
  margin: 4px auto 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.8px;
  color: rgba(0, 0, 0, 0.56);
  text-wrap: balance;
}

/* Email Subscription Pill Form */
.story-form {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
}

.story-input {
  width: 100%;
  height: 56px;
  border: none;
  outline: none;
  border-radius: 16px;
  background: #f2f4f7;
  padding: 0 156px 0 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: #000000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.story-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
  font-weight: 400;
}

.story-input:focus {
  background: #eef1f5;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.25);
}

.story-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 140px;
  border: none;
  outline: none;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.3px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.story-btn:hover {
  background: #1e1e1e;
  transform: translateY(-1px);
}

.story-btn:active {
  transform: translateY(0);
}

/* Villa Architecture at the Bottom */
.story-villa {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  max-width: 100%;
  aspect-ratio: 2.406;
  z-index: 1;
  pointer-events: none;
}

.story-villa img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* Bottom White Gradient Shade / Divider */
.story-shade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 200px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.75) 75%,
    #ffffff 100%
  );
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1199.98px) {
  .story {
    padding: 96px 32px 300px;
  }

  .story-heading {
    font-size: 48px;
    letter-spacing: -2.4px;
  }

  .story-second {
    font-size: 48px;
    gap: 16px;
    letter-spacing: -2.4px;
  }

  .story-inline {
    width: 120px;
    height: 48px;
  }

  .story-copy {
    font-size: 18px;
    max-width: 620px;
  }

  .story-form {
    max-width: 420px;
  }

  .story-villa {
    width: 90vw;
    max-width: 820px;
    bottom: -60px;
  }

  .story-shade {
    height: 160px;
  }
}

@media (max-width: 809.98px) {
  .story {
    padding: 72px 24px 240px;
  }

  .story-content {
    gap: 20px;
  }

  .story-heading {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1.6px;
  }

  .story-second {
    font-size: 34px;
    gap: 12px;
    letter-spacing: -1.6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .story-inline {
    width: 80px;
    height: 32px;
  }

  .story-copy {
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.3px;
    max-width: 340px;
  }

  .story-form {
    max-width: 100%;
  }

  .story-input {
    height: 52px;
    padding: 0 130px 0 16px;
    font-size: 14px;
  }

  .story-btn {
    width: 118px;
    font-size: 13px;
  }

  .story-villa {
    width: 100%;
    min-width: 340px;
    bottom: -30px;
  }

  .story-shade {
    height: 120px;
  }
}
