/* ==========================================================================
   Mia Vassilovski — UX/UI Portfolio
   Soft & colorful design system
   ========================================================================== */

:root {
  /* Core palette */
  --cream:        #FBF7F4;
  --cream-2:      #F4ECE6;
  --ink:          #3A2A32;   /* warm near-black for body text */
  --ink-soft:     #6B5560;

  /* Accent families */
  --plum:         #7F77DD;
  --plum-dk:      #4B449E;
  --plum-lt:      #EEEDFE;
  --rose:         #D4537E;
  --rose-dk:      #99355A;
  --rose-lt:      #FBEAF0;
  --rose-mid:     #F4C0D1;
  --peach:        #F0997B;
  --peach-lt:     #FAECE7;
  --teal:         #1D9E75;
  --teal-dk:      #0F6E56;
  --teal-lt:      #E1F5EE;
  --amber-lt:     #FAEEDA;
  --amber-dk:     #854F0B;

  --card:         #FFFFFF;
  --border:       #EFE2DB;
  --border-soft:  #F3E9E3;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --pill:      999px;

  --shadow-sm: 0 2px 10px rgba(122, 90, 105, 0.06);
  --shadow:    0 10px 30px rgba(122, 90, 105, 0.10);
  --shadow-lg: 0 20px 50px rgba(122, 90, 105, 0.14);

  --maxw: 1080px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ------- Section rhythm ------- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 244, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { font-weight: 600; font-size: 1.1rem; color: var(--rose); letter-spacing: -0.01em; }
.nav__brand span { color: var(--plum); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 8px 16px; border-radius: var(--pill);
  font-size: 0.95rem; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--plum-lt); color: var(--plum-dk); }
.nav__links a.is-active { color: var(--plum-dk); background: var(--plum-lt); }
.nav__cta {
  background: var(--plum) !important; color: #fff !important;
}
.nav__cta:hover { background: var(--plum-dk) !important; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--rose); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--pill);
  font-weight: 500; font-size: 0.98rem; cursor: pointer;
  border: none; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--plum); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--plum-dk); box-shadow: var(--shadow); }
.btn--rose { background: var(--rose); color: #fff; box-shadow: var(--shadow-sm); }
.btn--rose:hover { background: var(--rose-dk); }
.btn--ghost { background: var(--rose-lt); color: var(--rose-dk); }
.btn--ghost:hover { background: var(--rose-mid); }
.btn--outline { background: transparent; color: var(--plum-dk); box-shadow: inset 0 0 0 1.5px var(--plum); }
.btn--outline:hover { background: var(--plum-lt); }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { padding: 72px 0 40px; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rose-mid); color: var(--rose-dk);
  padding: 7px 16px; border-radius: var(--pill);
  font-size: 0.85rem; font-weight: 500; margin-bottom: 22px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--plum); }
.hero__sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__photo { position: relative; }
.hero__photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; object-fit: cover; aspect-ratio: 4/4.4;
  object-position: center 20%;
}
.hero__blob {
  position: absolute; inset: -26px -26px auto auto;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--plum-lt); z-index: -1;
}
.hero__blob--2 {
  inset: auto auto -22px -30px; width: 110px; height: 110px;
  background: var(--teal-lt);
}
.hero__sticker {
  position: absolute; bottom: 18px; left: -18px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 18px;
  font-size: 0.9rem; font-weight: 500; color: var(--teal-dk);
  display: flex; align-items: center; gap: 8px;
}
.hero__sticker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

/* ==========================================================================
   Marquee of skills
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip {
  background: #fff; border: 1px solid var(--border);
  padding: 8px 16px; border-radius: var(--pill);
  font-size: 0.88rem; color: var(--ink-soft);
}
.chip--plum { background: var(--plum-lt); color: var(--plum-dk); border-color: transparent; }
.chip--rose { background: var(--rose-lt); color: var(--rose-dk); border-color: transparent; }
.chip--teal { background: var(--teal-lt); color: var(--teal-dk); border-color: transparent; }
.chip--peach { background: var(--peach-lt); color: #99451f; border-color: transparent; }

/* ==========================================================================
   Section header helper
   ========================================================================== */
.sechead { max-width: 640px; margin-bottom: 44px; }
.sechead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   Work grid (project cards)
   ========================================================================== */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.work__card {
  background: var(--card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.work__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work__card.featured { grid-column: 1 / -1; }
.work__thumb {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.work__card.featured .work__thumb { aspect-ratio: 21/9; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--plum { background: linear-gradient(135deg, #EEEDFE, #DCD9FB); }
.thumb--rose { background: linear-gradient(135deg, #FBEAF0, #F6D3E0); }
.thumb--teal { background: linear-gradient(135deg, #E1F5EE, #C9EEE0); }
.thumb--peach { background: linear-gradient(135deg, #FAECE7, #F7DACE); }
.work__body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.03em;
  padding: 5px 12px; border-radius: var(--pill);
  background: var(--cream-2); color: var(--ink-soft);
}
.work__body h3 { margin-bottom: 8px; }
.work__body p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 18px; }
.work__link {
  margin-top: auto; font-weight: 500; color: var(--plum-dk);
  display: inline-flex; align-items: center; gap: 6px;
}
.work__card:hover .work__link .arrow { transform: translateX(4px); }
.arrow { transition: transform .2s; }

/* ==========================================================================
   About band
   ========================================================================== */
.about {
  background: var(--plum-lt);
}
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.fact {
  background: #fff; border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.fact .n { font-size: 1.7rem; font-weight: 600; color: var(--plum); }
.fact .l { font-size: 0.86rem; color: var(--ink-soft); }

/* ==========================================================================
   Case study layout
   ========================================================================== */
.cs-hero { padding: 64px 0 40px; position: relative; }
.cs-hero .backlink { color: var(--ink-soft); font-size: 0.92rem; display: inline-flex; gap: 6px; white-space: nowrap; position: absolute; top: 63px; left: max(24px, calc((100% - var(--maxw)) / 2 + 24px)); }
.cs-hero .backlink:hover { color: var(--rose); }
.cs-hero h1 { max-width: 16ch; margin-bottom: 18px; }
.cs-hero__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border);
}
.cs-hero__meta .k { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rose); font-weight: 600; margin-bottom: 6px; }
.cs-hero__meta .v { font-size: 0.98rem; color: var(--ink); }

.cs-banner {
  border-radius: var(--radius-lg); overflow: hidden;
  margin: 8px 0 0; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}

.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-bottom: 16px; }
.prose h3 { margin: 32px 0 10px; color: var(--plum-dk); }
.prose p { margin-bottom: 18px; color: var(--ink); }
.prose p.muted { color: var(--ink-soft); }

.callout {
  background: var(--amber-lt); border-radius: var(--radius);
  padding: 22px 26px; margin: 26px 0;
  border-left: 4px solid var(--peach);
}
.callout .lab { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-dk); margin-bottom: 6px; }
.callout--plum { background: var(--plum-lt); border-color: var(--plum); }
.callout--plum .lab { color: var(--plum-dk); }
.callout--teal { background: var(--teal-lt); border-color: var(--teal); }
.callout--teal .lab { color: var(--teal-dk); }

blockquote {
  font-size: 1.25rem; line-height: 1.5; color: var(--plum-dk);
  font-weight: 500; padding: 8px 0 8px 24px; margin: 28px 0;
  border-left: 4px solid var(--rose-mid);
}
blockquote cite { display: block; font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); font-style: normal; margin-top: 10px; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 10px 0; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); }
.stat .n { font-size: 2rem; font-weight: 600; color: var(--rose); }
.stat .l { font-size: 0.86rem; color: var(--ink-soft); margin-top: 4px; }

/* Pain point / feature cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft);
}
.mini .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--rose-lt); color: var(--rose-dk);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem; margin-bottom: 14px;
}
.mini h4 { font-size: 1.05rem; margin-bottom: 8px; }
.mini p { color: var(--ink-soft); font-size: 0.94rem; }

/* Screen gallery */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px; align-items: start;
}
.screen { text-align: center; }
.screen img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
.screen .cap { font-size: 0.85rem; color: var(--ink-soft); }

.figure { margin: 8px 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-soft); }
.figure .cap { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.ba > div { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); }
.ba .lab { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.ba .before .lab { color: var(--rose-dk); }
.ba .after .lab { color: var(--teal-dk); }
.ba p { font-size: 0.94rem; color: var(--ink-soft); }

/* Section band colors on case studies */
.band-cream { background: var(--cream-2); }
.band-plum { background: var(--plum-lt); }
.band-rose { background: var(--rose-lt); }
.band-teal { background: var(--teal-lt); }

/* ==========================================================================
   CTA + Footer
   ========================================================================== */
.cta {
  background: var(--rose); color: #fff;
  border-radius: var(--radius-lg); padding: 56px 40px;
  text-align: center; box-shadow: var(--shadow);
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #FBEAF0; max-width: 46ch; margin: 0 auto 26px; }
.cta .btn--primary { background: #fff; color: var(--rose-dk); }
.cta .btn--primary:hover { background: var(--rose-lt); }

.footer { padding: 48px 0 40px; border-top: 1px solid var(--border-soft); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer__brand { font-weight: 600; color: var(--rose); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--ink-soft); font-size: 0.94rem; }
.footer__links a:hover { color: var(--plum); }
.footer__copy { font-size: 0.85rem; color: var(--ink-soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .hero__grid, .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { max-width: 380px; margin: 0 auto; }
  .work, .grid-2, .ba, .ba-compare { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .cs-hero__meta { grid-template-columns: 1fr 1fr; gap: 22px; }
  .cs-hero .backlink { position: static; left: auto; top: auto; margin-bottom: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .about__facts { grid-template-columns: 1fr 1fr; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .stats, .cs-hero__meta, .about__facts { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; }
}
