/**
 * About section — visual intro + expectations
 */

.about {
  background: var(--cream);
}

.about-shell {
  display: grid;
  gap: var(--block-gap-md);
}

.about-hero {
  display: grid;
  gap: var(--block-gap);
  align-items: center;
}

@media (min-width: 960px) {
  .about-hero {
    grid-template-columns: minmax(360px, 1.2fr) minmax(0, 1fr);
    gap: 2.75rem;
  }
}

/* —— Visual column —— */
.about-visual {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.5rem 1.5rem;
  overflow: visible;
}

@media (min-width: 960px) {
  .about-visual {
    margin: 0;
    max-width: none;
    padding: 2rem 1rem 2.5rem 0.75rem;
  }
}

@media (max-width: 767px) {
  .about-visual {
    max-width: 420px;
    padding: 1.25rem 0.65rem 1.35rem;
  }

  .about-greet {
    left: 0;
    top: 0.35rem;
    transform: rotate(-8deg) scale(0.92);
    transform-origin: left top;
  }

  .about-greet__bubble {
    min-width: 8.25rem;
    min-height: 2.65rem;
    padding: 0.6rem 0.9rem 0.7rem;
  }

  .about-shell {
    gap: var(--block-gap);
  }

  .about-hero {
    gap: 1.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
  }

  .about-expect {
    padding-top: 0;
  }
}

.about-blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%;
  z-index: 0;
  pointer-events: none;
}

.about-blob--mint {
  width: 78%;
  height: 72%;
  left: -6%;
  top: 8%;
  background: #d8eee6;
  transform: rotate(-8deg);
}

.about-blob--sand {
  width: 58%;
  height: 48%;
  right: -4%;
  bottom: 10%;
  background: #ebe6dc;
  border-radius: 45% 55% 48% 52% / 52% 42% 58% 48%;
  transform: rotate(12deg);
}

.about-photo-wrap {
  position: relative;
  z-index: 1;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 50px -30px rgba(16, 24, 32, 0.35);
  aspect-ratio: 1024 / 839;
}

.about-greet {
  position: absolute;
  top: 0.55rem;
  left: -0.1rem;
  z-index: 5;
  pointer-events: none;
  transform: rotate(-10deg);
  animation: aboutGreetEnter 0.75s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.about-greet__bubble {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 9.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.1rem 0.85rem;
  border-radius: 1.35rem 1.2rem 1.3rem 0.45rem;
  background:
    radial-gradient(120% 90% at 20% 15%, #fff 0%, #f7f4ec 70%, #f1ebe0 100%);
  color: var(--ink);
  border: 2px solid #2a323a;
  box-shadow:
    3px 4px 0 rgba(16, 24, 32, 0.08),
    0 16px 28px -20px rgba(16, 24, 32, 0.4);
}

.about-greet__bubble::before {
  content: "";
  position: absolute;
  inset: 0.28rem;
  border-radius: 1.1rem 0.95rem 1.05rem 0.35rem;
  border: 1.5px dashed rgba(32, 185, 154, 0.45);
  pointer-events: none;
}

.about-greet__bubble::after {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: -0.52rem;
  width: 0.95rem;
  height: 0.95rem;
  background: #f4efe6;
  border-right: 2px solid #2a323a;
  border-bottom: 2px solid #2a323a;
  transform: rotate(48deg);
  border-radius: 0 0 0.15rem 0;
}

.about-greet__msg {
  grid-area: 1 / 1;
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.about-greet__msg--hi {
  opacity: 1;
}

.about-greet__msg--me {
  opacity: 0;
}

.about-greet__msg--role {
  opacity: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
}

/* Loop only while About is in spotlight — JS restarts from Hi each time */
.about-greet.is-playing .about-greet__msg--hi {
  animation: aboutGreetHi 7.5s ease-in-out infinite;
}

.about-greet.is-playing .about-greet__msg--me {
  animation: aboutGreetMe 7.5s ease-in-out infinite;
}

.about-greet.is-playing .about-greet__msg--role {
  animation: aboutGreetRole 7.5s ease-in-out infinite;
}

@keyframes aboutGreetEnter {
  from {
    opacity: 0;
    transform: translate(-14px, 16px) rotate(-16deg) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(-10deg) scale(1);
  }
}

/* Hi! → It’s me → your app developer → repeat */
@keyframes aboutGreetHi {
  0%,
  22% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  28%,
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
  }
}

@keyframes aboutGreetMe {
  0%,
  26% {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  32%,
  54% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  60%,
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
  }
}

@keyframes aboutGreetRole {
  0%,
  58% {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  64%,
  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-greet {
    animation: none;
  }

  .about-greet.is-playing .about-greet__msg--hi,
  .about-greet.is-playing .about-greet__msg--me,
  .about-greet.is-playing .about-greet__msg--role {
    animation: none;
  }

  .about-greet__msg--hi,
  .about-greet__msg--me {
    display: none;
  }

  .about-greet__msg--role {
    opacity: 1;
  }
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.about-avail {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.55rem 0.55rem 0.55rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #1a222b 0%, #101820 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 16px 32px -18px rgba(16, 24, 32, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.about-avail:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 36px -16px rgba(16, 24, 32, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.about-avail__live {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(32, 185, 154, 0.45);
  flex-shrink: 0;
  animation: aboutPulse 2.2s ease-in-out infinite;
}

@keyframes aboutPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(32, 185, 154, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(32, 185, 154, 0);
  }
}

.about-avail__copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.about-avail__copy strong {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
}

.about-avail__copy span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(232, 244, 238, 0.78);
  line-height: 1.2;
}

.about-avail__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--mint);
  color: #0b1a16;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out), background 0.2s ease;
}

.about-avail:hover .about-avail__arrow {
  transform: translateX(2px);
  background: #3cc9ab;
}

/* —— Content column —— */
.about-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.about-heading {
  margin-top: 0.75rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 18ch;
}

.about-heading__mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding-bottom: 0.18em;
}

.about-heading__mark::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14' fill='none'%3E%3Cpath d='M3 9c28-5 58 3 84-2 22-4 48-3 70 2' stroke='%2320B99A' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  opacity: 0.95;
  pointer-events: none;
}

.about-copy {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

.about-copy p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--mute);
}

.about-stats {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-stat {
  position: relative;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.15rem 1.1rem 1.05rem;
  min-height: 100%;
}

.about-stat--mint {
  background: var(--mint-soft);
  border-color: transparent;
}

.about-stat__icon {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--mint-deep);
  opacity: 0.85;
}

.about-stat--mint .about-stat__icon {
  color: var(--mint-deep);
}

.about-stat__value {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.about-stat__label {
  margin-top: 0.55rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mute);
  max-width: 14ch;
}

/* —— What you can expect —— */
.about-expect {
  padding-top: 0.25rem;
}

.about-expect__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.about-expect__head p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}

.about-expect__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.about-expect__grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .about-expect__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.about-expect__item {
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.35rem 1.25rem 1.3rem;
}

.about-expect__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.about-expect__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.about-expect__item h3 {
  margin-top: 0.95rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.about-expect__item p {
  margin-top: 0.4rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
}

@media (prefers-reduced-motion: reduce) {
  .about-status__dot {
    animation: none;
  }
}
