/* ============ TOKENS ============ */
:root {
  --bg: #fcfaff;
  --bg-soft: #f5effc;
  --lav-50: #f3ecfb;
  --lav-100: #e9defa;
  --lav-200: #d9c9f5;
  --lav-300: #c7b5f2;
  --lav-500: #9b84d9;
  --lav-600: #6f58b8; /* small text on light backgrounds (WCAG AA contrast) */
  --plum: #2a1530;
  --plum-soft: #5d4a66;
  --line: #e7ddf3;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 28px;
  --radius-lg: 40px;
  --shadow: 0 20px 60px -30px rgba(90, 60, 140, 0.35);
  --container: 1180px;
  --section-pad: clamp(96px, 12vw, 160px);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--plum);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.1; }
p { margin: 0; }
em { font-style: italic; color: var(--lav-500); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section { position: relative; padding-block: var(--section-pad); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lav-600);
  margin-bottom: 20px;
}

.section__head { max-width: 640px; margin-bottom: clamp(56px, 7vw, 88px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(38px, 5vw, 60px); }
.section__lead { margin-top: 22px; color: var(--plum-soft); font-size: 18px; }
.sep { color: var(--lav-300); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 999px;
  border: 1px solid var(--plum);
  background: var(--plum);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.btn:hover {
  background: var(--lav-500);
  border-color: var(--lav-500);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(155, 132, 217, .8);
}
.btn--ghost { background: transparent; color: var(--plum); border-color: var(--lav-300); }
.btn--ghost:hover { background: var(--lav-50); color: var(--plum); border-color: var(--lav-500); box-shadow: none; }
.btn--small { padding: 12px 24px; font-size: 12px; }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--lav-300);
  padding-bottom: 6px;
  transition: gap .3s ease, border-color .3s ease;
}
.link-arrow:hover { gap: 16px; border-color: var(--plum); }

/* ============ BLOBS ============ */
.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--lav-300), var(--lav-50) 75%);
  border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%;
  filter: blur(2px);
  opacity: .55;
  animation: float 14s ease-in-out infinite;
}
.blob--hero-1 { width: 520px; height: 460px; top: -120px; right: -160px; }
.blob--hero-2 { width: 260px; height: 230px; bottom: 40px; left: -120px; opacity: .35; animation-delay: -6s; }
.blob--process { width: 560px; height: 480px; top: 10%; left: -260px; opacity: .3; }
.blob--contact { width: 620px; height: 540px; top: -80px; right: -280px; opacity: .35; }
.blob--card { width: 300px; height: 260px; right: -60px; bottom: -80px; opacity: .6; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%; }
  50% { transform: translate(16px, -20px) rotate(6deg); border-radius: 45% 55% 42% 58% / 58% 44% 56% 42%; }
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 255, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }

.logo { display: flex; flex-direction: column; line-height: .85; font-family: var(--serif); font-weight: 500; }
.logo__name { font-size: 26px; }
.logo__sub { font-size: 26px; }

.nav { display: flex; gap: 40px; }
.nav a {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum-soft);
  position: relative;
  transition: color .3s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--lav-500);
  transition: width .3s ease;
}
.nav a:hover { color: var(--plum); }
.nav a:hover::after { width: 100%; }

.burger { display: none; }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 120px) clamp(96px, 12vw, 160px); }
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__title { font-size: clamp(46px, 6.4vw, 84px); font-weight: 400; letter-spacing: -.01em; }
.hero__lead { margin-top: 32px; max-width: 520px; font-size: 19px; color: var(--plum-soft); }
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__tagline {
  margin-top: 56px;
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--plum-soft);
}
.hero__tagline span { color: var(--lav-300); margin: 0 6px; }

.hero__visual { position: relative; justify-self: center; }
.hero__photo-blob {
  width: clamp(260px, 30vw, 380px);
  aspect-ratio: 1 / 1.05;
  padding: 14px;
  background: linear-gradient(135deg, var(--lav-300), var(--lav-50));
  border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%;
  box-shadow: var(--shadow);
  animation: float 16s ease-in-out infinite;
}
.hero__photo-blob img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: inherit;
}
.hero__badge {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.hero__badge strong { font-weight: 500; }
.hero__badge--top { top: 8%; left: -18%; }
.hero__badge--bottom { bottom: 6%; right: -10%; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8bcf9e; box-shadow: 0 0 0 4px rgba(139, 207, 158, .25); }

/* ============ WORK ============ */
.case {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.browser {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--lav-200); }
.browser__url {
  margin-left: 14px; padding: 4px 16px;
  background: var(--white); border-radius: 999px;
  font-size: 12px; color: var(--plum-soft);
}
.browser img { width: 100%; }

.tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--lav-50);
  border: 1px solid var(--lav-200);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lav-500);
}
.case__title { margin-top: 24px; font-size: clamp(36px, 4vw, 50px); }
.case__meta { margin-top: 8px; color: var(--plum-soft); }
.case__facts {
  display: flex; gap: 40px; margin: 32px 0;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}
.case__facts dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--lav-600); }
.case__facts dd { margin: 4px 0 0; }
.case__story h4 { font-size: 24px; margin-bottom: 8px; }
.case__story p { color: var(--plum-soft); margin-bottom: 24px; }
.case__story ul { margin: 0 0 36px; padding: 0; list-style: none; color: var(--plum-soft); }
.case__story li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.case__story li::before { content: "✦"; position: absolute; left: 0; color: var(--lav-300); font-size: 12px; top: 4px; }

.gallery {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gallery__item { margin: 0; }
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .5s ease, box-shadow .5s ease;
}
.gallery__item:hover img { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery__item figcaption {
  margin-top: 14px; text-align: center;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--plum-soft);
}

.next-project {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px dashed var(--lav-300);
}
.next-project > * { position: relative; z-index: 1; }
.next-project .eyebrow { margin-bottom: 4px; }
.next-project__title { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); max-width: 560px; line-height: 1.15; margin-bottom: 28px; }

/* ============ AUDIENCE ============ */
.audience { background: var(--bg-soft); }
.audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.pill-card {
  padding: 40px 28px;
  background: var(--white);
  border-radius: 120px 120px var(--radius) var(--radius);
  text-align: center;
  border: 1px solid var(--line);
  transition: transform .4s ease, box-shadow .4s ease;
}
.pill-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pill-card__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lav-200), var(--lav-50));
  color: var(--lav-500); font-size: 22px;
}
.pill-card h3 { font-size: 24px; margin-bottom: 12px; }
.pill-card p { font-size: 15px; color: var(--plum-soft); }

/* ============ SERVICES ============ */
.services__list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
  transition: padding .4s ease, background .4s ease;
}
.service:hover { background: linear-gradient(90deg, var(--lav-50), transparent); padding-inline: 20px; }
.service__num { font-family: var(--serif); font-size: 22px; color: var(--lav-600); font-style: italic; }
.service h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 8px; }
.service p { color: var(--plum-soft); max-width: 560px; }

/* ============ PROCESS ============ */
.process { overflow: hidden; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative; z-index: 1;
}
.step {
  padding: 40px 28px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.step__num {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 28px;
  border-radius: 50%;
  border: 1px solid var(--lav-300);
  font-family: var(--serif); font-size: 22px; color: var(--lav-600);
}
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--plum-soft); }

/* ============ WHY ============ */
.why { background: var(--plum); color: var(--lav-50); }
.why em { color: var(--lav-300); }
.why .eyebrow { color: var(--lav-300); }
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.why .section__head { margin-bottom: 0; }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__list li {
  display: flex; gap: 18px; align-items: baseline;
  padding-block: 20px;
  border-bottom: 1px solid rgba(233, 222, 250, .15);
  font-size: 18px;
}
.why__list span { color: var(--lav-300); }

/* ============ ABOUT ============ */
.about__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.about__blob {
  width: 100%; max-width: 340px; margin-inline: auto;
  aspect-ratio: 1;
  padding: 12px;
  background: linear-gradient(160deg, var(--lav-50), var(--lav-300));
  border-radius: 45% 55% 42% 58% / 58% 44% 56% 42%;
  box-shadow: var(--shadow);
}
.about__blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; border-radius: inherit; }
.about__text .section__title { margin-bottom: 32px; }
.about__text p { color: var(--plum-soft); font-size: 18px; margin-bottom: 20px; max-width: 560px; }
.about__text .btn { margin-top: 20px; }

/* ============ CONTACT ============ */
.contact { overflow: hidden; background: var(--bg-soft); }
.contact > .container { position: relative; z-index: 1; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.contact__cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 30px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lav-300); }
.contact-card__label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--lav-600); }
.contact-card__value { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); word-break: break-word; }

.form {
  display: grid; gap: 20px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: .06em; color: var(--plum-soft); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  font: inherit; font-size: 16px; color: var(--plum);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--lav-500);
  box-shadow: 0 0 0 4px rgba(199, 181, 242, .3);
}
.form__note { font-size: 13px; text-align: center; color: var(--plum-soft); }

/* ============ FOOTER ============ */
.footer { padding-block: 72px 48px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.footer__tagline { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--plum-soft); }
.footer__links { display: flex; gap: 28px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.footer__links a:hover { color: var(--lav-500); }
.footer__copy { grid-column: 1 / -1; font-size: 13px; color: var(--plum-soft); padding-top: 32px; border-top: 1px solid var(--line); }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .hero__photo-blob { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__badge--top { left: -6%; }
  .hero__badge--bottom { right: -4%; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .burger {
    display: grid; gap: 7px; place-content: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 1px solid var(--line); border-radius: 50%;
    cursor: pointer;
  }
  .burger span { display: block; width: 18px; height: 1px; background: var(--plum); transition: transform .3s ease; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav.is-open {
    display: flex; flex-direction: column; gap: 28px;
    position: absolute; top: 84px; left: 0; right: 0;
    padding: 40px clamp(20px, 5vw, 48px);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open a { font-size: 15px; }

  .hero__inner, .case, .why__inner, .about__inner, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 24px; }
  .hero__badge--top { left: -10%; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service .btn { justify-self: start; }
  .service:hover { padding-inline: 0; background: none; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .gallery, .form__row { grid-template-columns: 1fr; }
  .hero__badge { font-size: 12px; padding: 10px 16px; }
  .hero__badge--top { left: -4%; top: 0; }
  .hero__badge--bottom { right: -2%; bottom: 0; }
  .case__facts { gap: 24px; flex-wrap: wrap; }
  .footer__links { flex-wrap: wrap; gap: 18px; }
}
