/* ============================================================
   Lia — soft personal landing page
   warm cream · dusty rose · frosted glass · iPhone realism
   ============================================================ */

:root {
  --cream:        #f6ece0;
  --cream-deep:   #efe1d1;
  --beige:        #e7d4c0;
  --off-white:    #fbf6ef;
  --rose:         #d99fa3;
  --blush:        #e8c2c0;
  --ink:          #5b4a40;   /* warm soft brown, never pure black */
  --ink-soft:     #7d6a5e;
  --shadow:       rgba(120, 95, 78, 0.22);
  --shadow-deep:  rgba(96, 72, 58, 0.30);
  --phone-max:    520px;
  --radius:       26px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  /* gentle warm wash behind the constrained phone column */
  background-image:
    radial-gradient(120% 80% at 50% -10%, #fff7ee 0%, var(--cream) 45%, var(--cream-deep) 100%);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film grain — barely there */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* phone column — desktop stays centered, phone-width */
.phone {
  position: relative;
  width: 100%;
  max-width: var(--phone-max);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 80px rgba(120, 95, 78, .14);
  overflow: hidden;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* the media layer is what we fade/scale on scroll */
.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
  /* soft, slightly warm, gentle film softness */
  filter: saturate(1.02) contrast(.98) brightness(1.02);
}

/* warm gradient overlay: transparent up top → cream/beige/soft shadow at base.
   NO hard black. */
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(251, 246, 239, 0)   0%,
      rgba(246, 236, 224, 0)   38%,
      rgba(238, 223, 206, .26) 62%,
      rgba(224, 200, 178, .58) 84%,
      rgba(180, 150, 128, .78) 100%
    );
}

.hero__caption {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 26px 40px;
  text-align: center;
}

.hero__name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 14vw, 66px);
  line-height: .98;
  color: var(--off-white);
  letter-spacing: .5px;
  text-shadow: 0 2px 18px rgba(120, 90, 70, .35);
}

.hero__handle {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .6px;
  color: rgba(251, 246, 239, .9);
  text-shadow: 0 1px 10px rgba(120, 90, 70, .3);
}

/* ----- social buttons ----- */
.socials {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--off-white);
  /* cream/pink glassmorphism */
  background: rgba(255, 250, 245, .16);
  border: 1px solid rgba(255, 250, 245, .35);
  backdrop-filter: blur(9px) saturate(1.2);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  box-shadow: 0 4px 16px rgba(120, 90, 70, .18);
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s ease, background .35s ease;
}

.social:hover,
.social:focus-visible {
  transform: translateY(-3px) scale(1.06);
  background: rgba(233, 194, 192, .28);
  box-shadow: 0 8px 22px rgba(217, 159, 163, .4),
              0 0 0 4px rgba(233, 194, 192, .14);
  outline: none;
}

.social:active { transform: scale(.94); }

/* ===================== CONTENT ===================== */
.content {
  position: relative;
  z-index: 3;
  margin-top: -22px;              /* slide softly over the hero base */
  padding: 30px 20px 46px;
  border-radius: 30px 30px 0 0;
  background:
    linear-gradient(to bottom, var(--off-white), var(--cream) 30%);
  box-shadow: 0 -14px 30px rgba(120, 95, 78, .12);
}

.intro {
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  margin: 4px 0 26px;
}
.intro span {
  display: inline-block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ===================== CARDS ===================== */
.card {
  position: relative;
  display: block;
  width: 100%;
  /* tall vertical-rectangle button. background-size:cover (below) makes the
     photo fill the whole box edge-to-edge with no empty space, while the
     taller frame lets more of the figure show through. */
  aspect-ratio: 3 / 5;
  margin: 0 0 20px;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  background: var(--beige);
  box-shadow: 0 12px 30px var(--shadow), 0 2px 6px rgba(120,95,78,.1);
  transition: transform .4s cubic-bezier(.2,.8,.2,1),
              box-shadow .4s ease;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.card__img {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: 50% 40%;
  /* very slow, gentle zoom — feels alive (stays >=1 so it always fills) */
  animation: slowZoom 26s ease-in-out infinite alternate;
  transition: filter .5s ease;
}

/* both cards share the same tall vertical-rectangle frame (set on .card);
   background-size:cover fills it completely, so no empty space ever shows. */

@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.card__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* card 1 — subtle warm cream wash for readability */
.card__veil--cream {
  background:
    linear-gradient(to top,
      rgba(150, 120, 100, .55) 0%,
      rgba(190, 160, 138, .18) 42%,
      rgba(255, 250, 245, .04) 70%,
      rgba(255, 250, 245, .12) 100%);
}

.card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: 22px 22px 20px;
  text-align: center;
}

.card__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 25px;
  color: var(--off-white);
  letter-spacing: .3px;
  text-shadow: 0 2px 12px rgba(90, 65, 50, .5);
}

.card__sub {
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(251, 246, 239, .92);
  text-shadow: 0 1px 8px rgba(90, 65, 50, .45);
}

/* little corner badge */
.badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--off-white);
  background: rgba(217, 159, 163, .55);
  border: 1px solid rgba(255, 250, 245, .4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(120, 90, 70, .25);
}
/* soft pink status pulse on the active card badge */
.card--active .badge::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(233, 194, 192, .6);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.85); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.badge--lock { background: rgba(125, 106, 94, .5); }

/* ----- active card hover/tap ----- */
.card--active:hover,
.card--active:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 40px rgba(217, 159, 163, .34),
              0 0 0 1px rgba(255, 250, 245, .35);
  outline: none;
}
.card--active:active { transform: scale(.985); }

/* ----- shimmer that drifts across the active card ----- */
.card__shimmer {
  position: absolute;
  top: 0; bottom: 0;
  width: 55%;
  left: -60%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 250, 245, .0) 30%,
    rgba(255, 250, 245, .35) 50%,
    rgba(255, 250, 245, .0) 70%,
    transparent 100%);
  transform: skewX(-12deg);
  animation: shimmer 7s ease-in-out infinite;
  animation-delay: 2.5s;
}
@keyframes shimmer {
  0%   { left: -60%; }
  18%  { left: 120%; }
  100% { left: 120%; }
}

/* ===================== LOCKED CARD ===================== */
.card--locked { cursor: default; }

.card--locked .card__img {
  /* muted, private, dreamy, inactive */
  filter: saturate(.45) brightness(.82) contrast(.9) blur(2.5px);
  animation-duration: 40s;
}

.card__veil--haze {
  background:
    linear-gradient(to top,
      rgba(120, 105, 95, .5) 0%,
      rgba(170, 152, 140, .42) 55%,
      rgba(200, 185, 172, .4) 100%),
    rgba(214, 200, 188, .22);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

/* faint glossy reflection sweep + breathing glow */
.card__gloss {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.18) 50%,
    rgba(255,255,255,0) 60%);
  opacity: 0;
  animation: gloss 9s ease-in-out infinite;
}
@keyframes gloss {
  0%, 70%, 100% { opacity: 0; transform: translateX(-20%); }
  82%           { opacity: .9; transform: translateX(0%); }
}

.card--locked {
  animation: lockGlow 5.5s ease-in-out infinite;
}
@keyframes lockGlow {
  0%, 100% { box-shadow: 0 12px 30px var(--shadow); }
  50%      { box-shadow: 0 12px 34px rgba(217,159,163,.28), 0 0 0 1px rgba(255,250,245,.2); }
}
.card--locked:active { transform: scale(.99); }
.card--locked .card__title,
.card--locked .card__sub { color: rgba(251,246,239,.88); }

/* ===================== FOOTER ===================== */
.foot {
  text-align: center;
  margin-top: 16px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.foot p {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: .4px;
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  z-index: 9500;
  transform: translate(-50%, 24px);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink);
  background: rgba(251, 246, 239, .85);
  border: 1px solid rgba(233, 194, 192, .5);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(120, 95, 78, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .card__img, .card__shimmer, .card__gloss, .card--locked,
  .card--active .badge::after { animation: none !important; }
  /* no animated zoom, but keep the photo filling the portrait frame */
  .card__img { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media { transition: none; }
}
