/* Mateus Pienta — portfolio
   Breakpoints mirror the original Framer site:
   desktop >= 1440px · tablet 810–1439px · phone < 810px */

/* Manrope (variable, self-hosted, SIL Open Font License) */
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pink: #ee417c;
  --text: #333333;
  --muted: #808080;
  --chip: #f2f2f2;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --shadow-card:
    rgba(0, 0, 0, 0.05) 0 7px 15px 0,
    rgba(0, 0, 0, 0.04) 0 27px 27px 0,
    rgba(0, 0, 0, 0.03) 0 61px 37px 0,
    rgba(0, 0, 0, 0.01) 0 108px 43px 0;
  --shadow-about:
    rgba(0, 0, 0, 0.1) 0 15px 33px 0,
    rgba(0, 0, 0, 0.09) 0 60px 60px 0,
    rgba(0, 0, 0, 0.05) 0 135px 81px 0,
    rgba(0, 0, 0, 0.01) 0 241px 96px 0;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Anchor targets land below the floating menu (40px offset + 64px bar) with room to breathe */
[id] { scroll-margin-top: 144px; }
/* Contact also clears the animated logo that overlaps the top of the About card */
#contact { scroll-margin-top: 240px; }
@media (max-width: 1439.98px) { #contact { scroll-margin-top: 260px; } }
@media (max-width: 809.98px) { [id] { scroll-margin-top: 112px; } #contact { scroll-margin-top: 225px; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
strong { font-weight: 700; }
button { font: inherit; }

.page { position: relative; overflow: hidden; min-height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Decorative blobs ---------- */
.blob { position: absolute; pointer-events: none; z-index: 0; }
.blob img { width: 100%; height: 100%; will-change: transform; }
/* Blob motion: an entrance that sweeps in on several axes (outer element, using the
   individual translate/scale/rotate properties so it composes with each blob's own
   transform), then a slow, never-repeating-looking drift on the inner image. */
.js .blob { opacity: 0; }
.js .blob--pink { translate: 60px -40px; scale: .92; rotate: 8deg; }
.js .blob--green { translate: -60px 30px; scale: .92; rotate: -8deg; }
.js .blob.is-in {
  opacity: 1; translate: 0 0; scale: 1; rotate: 0deg;
  transition: opacity 2.4s cubic-bezier(0.33, 1, 0.68, 1), translate 3.2s cubic-bezier(0.33, 1, 0.68, 1),
              scale 3.2s cubic-bezier(0.33, 1, 0.68, 1), rotate 3.4s cubic-bezier(0.33, 1, 0.68, 1);
}
.blob--green.is-in { transition-delay: .3s; }
.js .blob.no-anim { transition: none; }
.home .blob--green.is-in { transition-delay: 0s; }
.blob.is-in img { animation: drift-a 26s ease-in-out 3s infinite; }
.blob--green.is-in img { animation: drift-b 31s ease-in-out 3.3s infinite; }
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(10px, -12px) rotate(2deg) scale(1.015); }
  50% { transform: translate(-6px, 8px) rotate(-1.5deg) scale(.99); }
  75% { transform: translate(-12px, -5px) rotate(1deg) scale(1.01); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  30% { transform: translate(-9px, 10px) rotate(-2.5deg) scale(1.02); }
  60% { transform: translate(8px, -7px) rotate(1.5deg) scale(.985); }
  85% { transform: translate(5px, 11px) rotate(-1deg) scale(1.01); }
}
.blob--pink { width: 826px; height: 810px; transform: rotate(-90deg); }
.blob--pink img { object-fit: fill; }
.blob--green { transform: rotate(28deg); }
.blob--green img { object-fit: contain; }

/* home: pink top-right, green left of the projects */
.home .blob--pink { left: calc(50% + 461px - 413px); top: -378px; }
.home .blob--green { width: 625px; height: 621px; left: calc(39px - 312px); top: calc(1897px - 310px); }

/* case pages: pink behind hero, green peeking from the left edge */
.case .blob--pink { left: calc(50% - 413px); top: -41px; }
.case .blob--green { width: 516px; height: 508px; left: -200px; top: 620px; overflow: hidden; }

main, .nav-wrap { position: relative; z-index: 1; }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: fixed;
  top: 40px; left: 0; right: 0;
  z-index: 10;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: 1140px; height: 64px;
  border-radius: 32px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.case .nav { padding-left: 16px; }
.nav__links { display: flex; align-items: center; gap: 56px; }
.nav__links a {
  font-weight: 300; font-size: 16px; line-height: 16px; letter-spacing: -0.16px;
  color: var(--muted); padding: 3px 0;
  transition: color .2s;
}
.nav__links a:hover { color: var(--pink); }
.nav__links .back {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 16px 0 8px; margin-right: -16px;
  box-shadow: inset 0 0 0 2px var(--pink); border-radius: 24px;
  color: var(--pink); font-weight: 800; font-size: 16px; line-height: 24px;
}
.nav__links .back svg { width: 16px; height: 16px; }
.nav__social { display: flex; gap: 32px; }
.nav__social a, .nav__social svg { width: 24px; height: 24px; display: block; }

/* ---------- Shared bits ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 16px; }
.tag {
  height: 40px; padding: 8px 24px;
  border-radius: 24px; background: var(--chip);
  font-weight: 300; font-size: 16px; line-height: 24px; white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 24px;
  background: var(--pink); color: var(--white);
  font-weight: 800; font-size: 16px; line-height: 24px; white-space: nowrap;
  transition: transform .2s var(--ease);
}
.btn:hover { transform: scale(1.03); }
.pill-link {
  display: inline-flex; align-items: center; align-self: flex-start;
  height: 40px; padding: 0 20px;
  box-shadow: inset 0 0 0 2px var(--pink); border-radius: 24px;
  color: var(--pink); font-weight: 800; font-size: 16px; line-height: 16px;
}

/* ---------- Slider (case hero + home hero) ---------- */
.slider { position: relative; overflow: hidden; }
.slider__track {
  display: flex; height: 100%; cursor: grab; touch-action: pan-y; will-change: transform;
  -webkit-user-select: none; user-select: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; }
.slider__slide > img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.slider__track.is-dragging { cursor: grabbing; }
.slider__track.is-dragging, .hero .slider__track.is-dragging { transition: none; }
.slider__slide > img.contain { object-fit: contain; }
.slider__arrow {
  position: absolute; top: 50%; margin-top: -16px;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 40px;
  background: var(--pink); cursor: pointer;
  transition: opacity .2s;
}
.slider__arrow img { width: 32px; height: 32px; }
.slider__arrow--prev { left: 24px; }
.slider__arrow--next { right: 24px; }
.slider__arrow[hidden] { display: block; opacity: 0; pointer-events: none; }
.dots { display: flex; gap: 8px; padding: 8px; border-radius: 50px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--pink); opacity: .5; cursor: pointer; transition: opacity .2s;
}
.dots button[aria-current="true"] { opacity: 1; }
.slider .dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(242, 242, 242, 0.6);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}

/* ---------- Case page hero ---------- */
.case-hero {
  width: 1140px; margin: 160px auto 0;
  padding: 32px 27px;
  border-radius: 56px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; grid-template-columns: 527px 527px; column-gap: 32px;
}
.case-hero__info { display: flex; flex-direction: column; }
.case-hero h1 { font-size: 56px; line-height: 72px; font-weight: 700; padding-left: 13px; }
.case-hero .tags { margin-top: 16px; }
.goals {
  margin-top: 32px; padding: 24px;
  box-shadow: inset 0 0 0 2px var(--chip); border-radius: 32px;
}
.goals h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
.goals h2 + ul { margin-top: 16px; }
.goals ul + h2 { margin-top: 40px; }
.goals li { letter-spacing: 1.28px; }
.case-hero .slider { border-radius: 32px; min-height: 100%; }
.case-hero .slider__track { position: absolute; inset: 0; }

ul.list { padding-left: 20px; }
ul.list li { padding-left: 0; }

/* ---------- Case page body ---------- */
.article { width: 720px; margin: 64px auto 0; }
.article > * + * { margin-top: 40px; }
.article > .section-break { margin-top: 128px; }
.article h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
.article p, .article ul.list { max-width: 620px; }
.article p a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.article .text-link {
  display: inline-block; color: var(--pink);
  font-weight: 500; font-size: 16px; line-height: 19.2px; letter-spacing: 1.28px;
}
.article .text-link:hover { text-decoration: underline; }
.article figure { margin: 40px 0 0; }
.article figure img, .article figure video { width: 100%; height: auto; }
.article figure.inset { padding: 8px; }
.r16 img, .r16 video { border-radius: 16px; }
.r24 img { border-radius: 24px; }
.article figure.fixed { aspect-ratio: var(--ar); }
.article figure.fixed img, .article figure.fixed a { width: 100%; height: 100%; }
.article figure.inset.fixed { box-sizing: content-box; }
.article figure.cover img { object-fit: cover; }
.article figure.contain img { object-fit: contain; }
.article figure a { display: block; }
.article figure.w504 { max-width: 504px; }
.article figure.video { display: flex; justify-content: center; }
.article figure.video video { width: 236px; height: auto; }
.article ul.list.tight { margin-top: 0; }
.article > p.near { margin-top: 24px; }
.anim-box { height: 350px; padding: 0 48px; border-radius: 24px; background: #333; overflow: hidden; }

.stats { display: flex; }
.stats > div { width: 192px; }
.stats strong { display: block; font-size: 32px; line-height: 42px; font-weight: 700; }
.stats span { display: block; white-space: nowrap; margin-top: 5px; font-size: 12px; line-height: 22px; letter-spacing: 2.2px; }

.player { width: 678px; height: 475px; margin: 64px 0 0; position: relative; left: 50%; transform: translateX(-50%); }
.case main { padding-bottom: 64px; }
.lottie { display: block; width: 100%; height: 100%; }

/* ---------- Home ---------- */
.hero { width: 1125px; margin: 180px auto 0; position: relative; }
.hero .slider { height: 672px; overflow: hidden; }
.slider__track { overflow: visible !important; scroll-snap-type: none !important; }
.hero-slide {
  display: grid; grid-template-columns: 533px 557px; align-items: center;
  padding-left: 35px; overflow: hidden;
}
.hero-slide__text { min-width: 0; }
.hero-slide h2 { font-size: 56px; line-height: 72px; font-weight: 700; width: 519px; }
.hero-slide__meta { margin-top: 24px; font-weight: 300; }
.hero-slide__actions { margin: 24px 0 0 -32px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-slide__actions .btn { margin-top: 92px; }
.hero-slide__img { display: flex; justify-content: center; }
.hero-slide__img img { max-width: 100%; height: auto; }
.hero-slide__img--narrow img { width: 416px; }
.hero .dots { width: max-content; margin: 16px auto 0; }

.section-projects { margin-top: 264px; }
.cards {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 56px;
  width: 1080px; margin: 0 auto;
}
.card {
  display: flex; flex-direction: column;
  width: 512px; height: 482px; padding-bottom: 24px;
  border-radius: 40px; background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease);
}
.card--small { width: 280px; border-radius: 32px; }
.card__img { height: 267px; border-radius: 32px 32px 0 0; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card--res .card__img { border-radius: 40px 40px 0 0; }

/* Card hover: lift, deeper shadow, slow image zoom, pill fills in */
.card { position: relative; will-change: transform; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: rgba(238, 65, 124, 0.10) 0 24px 48px -8px, rgba(0, 0, 0, 0.08) 0 40px 80px -16px;
  opacity: 0; transition: opacity .8s var(--ease-out);
}
.card, .card .pill-link { transition: transform .8s var(--ease-out), background-color .35s var(--ease-out), color .35s var(--ease-out); }
.card .pill-link::after {
  /* same rounded arrow as the Back button in the nav, mirrored to point forward */
  content: ""; display: inline-block; flex: 0 0 auto; width: 0; height: 16px; margin-left: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.161 6 4.918 3.757a2 2 0 0 1 2.829-2.828l5.538 5.539C13.722 6.835 14 7.385 14 8c0 .615-.278 1.166-.715 1.533l-5.538 5.538a2 2 0 0 1-2.829-2.828L7.161 10H3a2 2 0 1 1 0-4Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.161 6 4.918 3.757a2 2 0 0 1 2.829-2.828l5.538 5.539C13.722 6.835 14 7.385 14 8c0 .615-.278 1.166-.715 1.533l-5.538 5.538a2 2 0 0 1-2.829-2.828L7.161 10H3a2 2 0 1 1 0-4Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  opacity: 0; transform: translateX(-4px);
  transition: width .35s var(--ease-out), margin .35s var(--ease-out), opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-8px); }
  .card:hover::after { opacity: 1; }
  .card:hover .card__img img { transform: scale(1.06); }
  .card:hover .pill-link { background-color: var(--pink); color: var(--white); }
  .card:hover .pill-link::after { width: 16px; margin-left: 8px; opacity: 1; transform: none; }
}
.card:active { transform: translateY(-6px) scale(.995); }
.card:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .card, .card__img img, .card::after, .card .pill-link, .card .pill-link::after { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card__img img { transform: none; }
}
.card h3 { margin: 24px 24px 0; font-size: 24px; line-height: 32px; font-weight: 700; }
.card p { margin: 16px 24px 0; }
.card--small p { margin-top: 8px; }
.card .pill-link { margin: auto 24px 0; }
.card--small { padding-bottom: 20px; }

.section-resources { margin-top: 256px; }
.section-head { width: 1080px; margin: 0 auto 32px; padding-left: 10px; }
.section-head h2 { font-size: 40px; line-height: 48px; font-weight: 700; }
.section-head p { margin-top: 10px; }

.section-about { position: relative; margin-top: 262px; padding-bottom: 712px; }
.about-blobs { position: absolute; left: 50%; top: -259px; width: 678px; height: 475px; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.about {
  position: relative; z-index: 1;
  width: 774px; min-height: 601px; margin: 0 auto;
  border-radius: 40px; background: var(--white); box-shadow: var(--shadow-about);
  padding: 108px 88px 48px 334px;
}
.about__art { position: absolute; left: 48px; top: 104px; width: 246px; height: 320px; border-radius: 24px; overflow: hidden; }
.about__pink { position: absolute; inset: 0; border-radius: 24px; background: var(--pink); }
.about__me { position: absolute; left: -79px; top: -42px; width: 268px; height: 362px; max-width: none; }
.about__dog { position: absolute; left: 81px; top: 96px; width: 195px; height: 272px; max-width: none; transform: rotate(-7deg); }
.about h2 { font-size: 40px; line-height: 48px; font-weight: 700; }
.about p { letter-spacing: 1.28px; margin-top: 24px; }
.about p:first-of-type { margin-top: 24px; }
.about__links { position: absolute; left: 48px; bottom: 48px; display: flex; flex-direction: column; gap: 41px; }
.about__links a { display: flex; align-items: center; gap: 16px; color: var(--pink); letter-spacing: 1.28px; }
.about__links svg { width: 24px; height: 24px; flex: 0 0 auto; }
.about__links .short { display: none; }

/* ---------- Appear on scroll ---------- */
/* Scroll reveal: content eases up, sharpens and fades in as it enters,
   staggered within a group. Uses translate/scale/filter so hover transforms still work.
   Only hidden when JS is running, so the page is always readable without it. */
.js :is(.hero, .case-hero__info > *, .case-hero .slider, .section-head > *, .card, .about-blobs, .about, .article > *, .player) {
  /* opacity + translate only: both run on the compositor, so scrolling stays smooth */
  opacity: 0; translate: 0 32px;
  transition:
    opacity .9s var(--ease-out) var(--d, 0s),
    translate 1.1s var(--ease-out) var(--d, 0s);
}
.js :is(.hero, .case-hero__info > *, .case-hero .slider, .section-head > *, .card, .about-blobs, .about, .article > *, .player).is-in { opacity: 1; translate: 0 0; }
.js .cards .card {
  transition:
    opacity .9s var(--ease-out) var(--d, 0s), translate 1.1s var(--ease-out) var(--d, 0s),
    transform .8s var(--ease-out);
}
.js .nav-wrap { opacity: 0; translate: 0 -16px; transition: opacity 1s var(--ease-out) .15s, translate 1.2s var(--ease-out) .15s; }
.js .nav-wrap.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js :is(.hero, .case-hero__info > *, .case-hero .slider, .section-head > *, .card, .about-blobs, .about, .article > *, .player), .js .blob, .js .nav-wrap { opacity: 1; translate: none; scale: none; rotate: none; filter: none; transition: none; }
  .blob img { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ Tablet 810–1439 ============ */
@media (max-width: 1439.98px) {
  .nav-wrap { padding: 0 40px; }
  .nav { width: 100%; }
  .nav__social { display: none; }
  .nav__links { gap: 56px; }
  .case .nav__links { gap: 56px; }

  .home .blob--pink, .case .blob--pink { width: 593px; height: 582px; left: calc(50% + 252px - 296px); top: -264px; }
  .case .blob--green { width: 298px; height: 291px; left: -120px; top: 851px; }
  .home .blob--green { width: 360px; height: 357px; left: -180px; top: 1300px; }

  .case-hero { width: auto; margin: 160px 40px 0; padding: 32px; grid-template-columns: 1fr; row-gap: 32px; }
  .case-hero h1 { font-size: 48px; line-height: 64px; padding-left: 16px; }
  .case-hero .tag { font-size: 13px; }
  .case-hero .slider { height: 436px; min-height: 0; }

  .article { width: 620px; }
  .article p, .article ul.list { max-width: 520px; }
  .article figure.w504 { max-width: 504px; }
  .stats > div { width: 165px; }

  .hero { width: auto; margin: 224px 40px 0; }
  .hero-slide { grid-template-columns: 328px 358px; padding-left: 32px; }
  .hero-slide__text { margin-top: 22px; }
  .hero-slide h2 { font-size: 48px; line-height: 64px; width: 318px; }
  .hero-slide__actions { width: 350px; }
  .hero-slide .tag { font-size: 13px; }
  .hero-slide__actions .btn { margin-top: 102px; }
  .hero-slide__img--narrow img { width: 290px; }
  .hero .dots { margin-top: 52px; }

  .section-projects { margin-top: 136px; }
  .cards, .cards--res {
    width: auto; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 0 40px 120px; margin-bottom: -120px;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 390px; width: 390px; height: 502px; scroll-snap-align: center; }
  .card--small { flex-basis: 390px; width: 390px; border-radius: 40px; padding-bottom: 24px; }
  .card--res { flex-basis: 512px; width: 512px; height: 482px; }
  .card--small p { margin-top: 16px; }

  .section-head { width: auto; margin: 0 40px 32px; padding-left: 24px; }

  .section-about { margin-top: 263px; padding-bottom: 372px; }
  .about-blobs { width: 663px; }
  .about { width: auto; margin: 0 40px; min-height: 665px; padding: 104px 48px 49px 334px; }
  .about__art { top: 136px; }
  .about__links { bottom: 49px; gap: 40px; }
}

/* ============ Phone < 810 ============ */
@media (max-width: 809.98px) {
  .nav-wrap { padding: 0 16px; top: 24px; }
  .case .nav-wrap { top: 40px; }
  .nav { padding: 0 16px; }
  .nav__links { gap: 16px; }
  .case .nav__links a:not(.back) { display: none; }
  .case .nav__links .back { margin-right: 0; }

  .home .blob--pink, .case .blob--pink { width: 483px; height: 472px; left: calc(50% + 102px - 241px); top: -222px; }
  .case .blob--green { width: 234px; height: 231px; left: -106px; top: 950px; }
  .home .blob--green { width: 280px; height: 278px; left: -150px; top: 1100px; }

  .case-hero { margin: 160px 20px 0; padding: 8px 8px; border-radius: 40px; }
  .case-hero h1 { font-size: 32px; line-height: 40px; padding-left: 8px; }
  .case-hero .tag, .hero-slide .tag { height: 32px; padding: 8px 24px; font-size: 10px; line-height: 16px; }
  .case-hero .slider { height: 418px; }

  .article { width: auto; margin: 64px 37px 0; }
  .article p, .article ul.list { max-width: none; }
  .article figure.fixed { aspect-ratio: var(--ar-m, var(--ar)); }
  .anim-box { padding: 0; }
  .stats > div { width: 33%; }

  .hero { margin: 104px 16px 0; }
  .hero .slider { height: 619px; }
  .hero-slide { grid-template-columns: 154px 148px; align-items: start; padding: 138px 0 0 32px; }
  .hero-slide__text { margin-top: 0; }
  .hero-slide h2 { font-size: 32px; line-height: 40px; width: 200px; }
  .hero-slide__meta { white-space: nowrap; }
  .hero-slide__actions { width: 200px; }
  .hero-slide__actions .btn { margin-top: 32px; }
  .hero-slide__img { margin-top: 119px; position: relative; z-index: -1; }
  .hero-slide__img--narrow img { width: 148px; }
  .hero .dots { margin-top: 16px; }

  .section-projects { margin-top: 136px; }
  .cards, .cards--res { padding: 0 16px 120px; gap: 16px; }
  .card, .card--small { flex: 0 0 292px; width: 292px; height: 542px; }
  .card--res { flex-basis: 292px; width: 292px; height: 602px; }
  .section-head { margin: 0 16px 32px; padding-left: 20px; }

  .section-about { margin-top: 162px; padding-bottom: 186px; }
  .about { margin: 0 16px; min-height: 1001px; padding: 464px 24px 48px 32px; }
  .about__art { left: 24px; top: 104px; width: 310px; height: 320px; }
  .about__dog { left: 120px; top: 59px; width: 222px; height: 310px; }
  .about h2 { font-size: 32px; line-height: 48px; }
  .about__links { position: static; margin-top: 40px; margin-left: -8px; }
  .about__links .full { display: none; }
  .about__links .short { display: inline; }
}
