/* Olga Shevchuk — UGC Portfolio
   Amorella brand palette only: vanilla, taupe, pale pink, dark chocolate */

:root {
  /* Amorella brand */
  --vanilla: #efe9e5;
  --taupe: #90827c;
  --pale-pink: #f4d7df;
  --chocolate: #42322b;

  --bg: var(--vanilla);
  --panel: var(--pale-pink);
  --panel-deep: var(--pale-pink);
  --ink: var(--chocolate);
  --ink-soft: var(--taupe);
  --accent: var(--taupe);
  --accent-strong: var(--chocolate);
  --card: var(--vanilla);
  --card-2: var(--pale-pink);
  --card-3: var(--taupe);
  --white: var(--vanilla);
  --shadow: 0 18px 50px rgba(66, 50, 43, 0.12);
  --radius: 18px;
  --max: 920px;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3.5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(244, 215, 223, 0.55), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(239, 233, 229, 0.9), transparent 55%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Top site nav — vanilla bar, taupe Montserrat labels */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--vanilla);
  box-shadow: 0 1px 0 rgba(144, 130, 124, 0.22);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem 2.75rem;
  margin: 0;
  padding: 0.95rem 1.25rem;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-sans);
  color: var(--taupe);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--chocolate);
  opacity: 1;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--accent-strong);
}

/* Hero — portrait LEFT, pale-pink name panel RIGHT */
.hero {
  width: min(100% - 2rem, var(--max));
  margin: 1.75rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.25rem;
  align-items: start;
}

.hero__panel {
  background: linear-gradient(160deg, var(--pale-pink) 0%, var(--vanilla) 55%, var(--pale-pink) 100%);
  border-radius: 8px;
  padding: 4.25rem 2.25rem 3.5rem;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 180px;
  background: radial-gradient(circle, rgba(239, 233, 229, 0.55), transparent 70%);
  pointer-events: none;
}

.hero__name {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(3.8rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--ink);
}

.hero__role {
  margin: 1.15rem 0 0;
  font-size: 1.08rem;
  font-weight: 500;
}

.hero__niches {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__more {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.hero__portrait {
  position: relative;
  z-index: 2;
}

.hero__portrait-frame {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--pale-pink), var(--taupe) 55%, var(--chocolate));
  box-shadow: var(--shadow);
  position: relative;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hero__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  text-align: center;
  color: rgba(66, 50, 43, 0.75);
  padding: 1rem;
}

.hero__portrait-frame.is-placeholder .hero__placeholder {
  display: grid;
}

.hero__placeholder span {
  font-family: var(--font-script);
  font-size: 4.5rem;
  line-height: 1;
}

.hero__placeholder p {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
}

.hero__placeholder small {
  opacity: 0.7;
  font-weight: 400;
}

/* Contact + bio */
.contact-bar {
  width: min(100% - 2rem, 640px);
  margin: 1.75rem auto 0;
  display: grid;
  gap: 0.55rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-bar a,
.cta__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.social-icon--on-dark {
  filter: invert(1);
}

.bio {
  width: min(100% - 2rem, 640px);
  margin: 1.75rem auto 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.bio p {
  margin: 0;
}

/* Script headings */
.script-heading {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 400;
  text-align: center;
  line-height: 1.1;
}

/* Collaborations marquee */
.collabs {
  width: min(100% - 1rem, 980px);
  margin: 3rem auto 0;
  text-align: center;
}

.collabs__track-wrap {
  margin-top: 1.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.collabs__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

/* Each group is one identical half; padding-right = chip gap so
   translateX(-50%) == exactly one set (no flex-gap half-gap jump). */
.collabs__group {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
  flex-shrink: 0;
}

.brand-chip {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--vanilla);
  border: 1px solid rgba(144, 130, 124, 0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(66, 50, 43, 0.08);
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.brand-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}

.collabs__note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Work examples */
.work {
  width: min(100% - 2rem, var(--max));
  margin: 3.5rem auto 0;
}

.work__label {
  margin: 0 0 0.35rem;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.niche {
  margin-top: 1.75rem;
}

.niche + .niche {
  margin-top: 2.75rem;
}

.work-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.work-card {
  text-align: center;
}

.work-card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(165deg, var(--pale-pink), var(--vanilla));
  box-shadow: 0 10px 30px rgba(66, 50, 43, 0.1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.work-card__media.shade-2 {
  background: linear-gradient(165deg, var(--vanilla), var(--taupe));
}

.work-card__media.shade-3 {
  background: linear-gradient(165deg, var(--pale-pink), var(--taupe));
  aspect-ratio: 4 / 5;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card__media.is-placeholder img {
  display: none;
}

.work-card__fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: rgba(66, 50, 43, 0.7);
  padding: 1rem;
}

.work-card__media.is-placeholder .work-card__fallback {
  display: grid;
}

.work-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(239, 233, 229, 0.92);
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(66, 50, 43, 0.18);
}

.work-card:hover .work-card__media {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(66, 50, 43, 0.18);
}

.work-card:hover .work-card__media img {
  transform: scale(1.05);
}

.work-card:hover .work-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-card__meta {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.35;
}

.collage-grid {
  grid-template-columns: repeat(3, 1fr);
}

.collage-media {
  aspect-ratio: 1 / 1;
}

.composition-slots {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.composition-slot {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: rgba(239, 233, 229, 0.85);
  border: 1px solid rgba(144, 130, 124, 0.28);
  overflow: hidden;
}

.composition-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Feedback */
.feedback {
  width: min(100% - 2rem, 720px);
  margin: 4rem auto 0;
}

.feedback__list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.feedback blockquote {
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: rgba(239, 233, 229, 0.85);
  border: 1px solid rgba(144, 130, 124, 0.25);
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  box-shadow: 0 8px 24px rgba(66, 50, 43, 0.05);
}

.feedback cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.feedback__hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--taupe);
  font-style: italic;
}

/* CTA */
.cta {
  width: min(100% - 2rem, var(--max));
  margin: 3.5rem auto 0;
}

.cta__panel {
  background: linear-gradient(155deg, var(--pale-pink) 0%, var(--vanilla) 50%, var(--pale-pink) 100%);
  border-radius: 12px;
  padding: 3rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta__eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.cta__title {
  margin: 0.2rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
}

.cta__text {
  margin: 1rem auto 0;
  max-width: 420px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cta__links {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  font-weight: 500;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--chocolate);
  color: var(--vanilla) !important;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(66, 50, 43, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.cta__btn:hover {
  transform: translateY(-2px);
  background: var(--taupe);
  color: var(--vanilla) !important;
}

/* Footer */
.footer {
  margin: 2.5rem auto 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--taupe);
}

.footer a {
  text-decoration: none;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 820px) {
  .site-nav__list {
    gap: 0.85rem 1.35rem;
    padding: 0.8rem 1rem;
  }

  .site-nav a {
    letter-spacing: 0.1em;
    font-size: 0.68rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  /* Photo stacks above text on mobile */
  .hero__portrait {
    width: min(72%, 280px);
    margin: 0 auto;
    order: -1;
  }

  .hero__panel {
    min-height: 0;
    padding: 2.6rem 1.5rem 3.1rem;
    align-self: auto;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collage-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .composition-slots {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 4.25rem;
  }

  .site-nav__list {
    gap: 0.55rem 1rem;
    padding: 0.7rem 0.75rem;
  }

  .site-nav a {
    letter-spacing: 0.08em;
    font-size: 0.62rem;
  }

  .hero {
    margin-top: 1.25rem;
    width: min(100% - 1.25rem, var(--max));
  }

  .hero__name {
    font-size: 3.5rem;
  }

  .hero__panel {
    min-height: 0;
    padding: 2.25rem 1.25rem 2.75rem;
  }

  .hero__portrait {
    width: min(78%, 250px);
    margin: 0 auto;
  }

  .work-grid {
    gap: 0.75rem;
  }

  .composition-slots {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .brand-chip {
    width: 78px;
    height: 78px;
  }
}

/* Soft floating BGM toggle — pale-pink pill */
.bgm-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(144, 130, 124, 0.4);
  border-radius: 999px;
  background: rgba(239, 233, 229, 0.88);
  color: var(--chocolate);
  box-shadow: 0 10px 28px rgba(66, 50, 43, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease,
    box-shadow 0.3s ease, border-color 0.3s ease;
}

.bgm-toggle__icon {
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(1px);
}

.bgm-toggle:hover,
.bgm-toggle:focus-visible {
  background: rgba(244, 215, 223, 0.75);
  border-color: rgba(144, 130, 124, 0.55);
  box-shadow: 0 12px 30px rgba(66, 50, 43, 0.14);
  outline: none;
}

.bgm-toggle:active {
  transform: scale(0.96);
}

.bgm-toggle.is-playing {
  color: var(--ink);
  background: rgba(244, 215, 223, 0.65);
}

.bgm-toggle.is-muted .bgm-toggle__icon {
  opacity: 0.72;
}

.bgm-toggle.is-invite {
  animation: bgm-invite 2.4s ease-in-out infinite;
}

@keyframes bgm-invite {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(66, 50, 43, 0.1);
    border-color: rgba(144, 130, 124, 0.4);
  }
  50% {
    box-shadow: 0 12px 32px rgba(244, 215, 223, 0.55);
    border-color: rgba(244, 215, 223, 0.9);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bgm-toggle.is-invite {
    animation: none;
  }
}
