@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,400;8..144,500&display=swap");

:root {
  --ink: #0c0f1e;
  --soft-ink: rgba(12, 15, 30, 0.5);
  --pale-ink: rgba(12, 15, 30, 0.3);
  --line: rgba(12, 15, 30, 0.22);
  --rose: rgba(255, 196, 228, 0.8);
  --framer-pink: #ffcde5;
  --page-x: 60px;
  --content-x: 120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: "Roboto Flex", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.home-page {
  background: #fff;
}

body.minion-page {
  --framer-pink: #ffe24a;
  --rose: rgba(255, 226, 74, 0.82);
}

body::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 62px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(255, 196, 228, 0.95), rgba(255, 196, 228, 0));
  filter: blur(8px);
}

body.minion-page::before {
  background: linear-gradient(180deg, rgba(255, 226, 74, 0.95), rgba(255, 226, 74, 0));
}

.home-page main,
.home-page .topbar,
.home-page .site-footer {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

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

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  height: 75px;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: start;
  gap: 26px;
  padding: 25px 40px 0;
}

.brand {
  display: block;
  min-width: 39px;
  color: var(--ink);
  font-size: 20px;
  line-height: 24px;
}

.year {
  color: var(--ink);
  font-size: 25px;
  line-height: 30px;
}

.topbar-line {
  display: block;
  height: 1px;
  margin-top: 10px;
  background: var(--line);
}

.home-hero {
  position: relative;
  display: grid;
  height: 100vh;
  min-height: 720px;
  place-items: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(760px, calc(100vw - 48px));
  justify-items: center;
  gap: 10px;
  margin: 0 auto;
  text-align: center;
  transform: translateY(3.75vh);
}

.hero-copy h1 {
  color: var(--soft-ink);
  font-size: 50px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 60px;
}

.hero-copy h1 span {
  color: var(--ink);
}

.hero-subtitle {
  color: var(--pale-ink);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 28.8px;
}

.heart-wrap {
  position: relative;
  width: 278px;
  height: 256px;
  margin: 0 auto;
}

.heart {
  width: 278px;
  height: 256px;
  object-fit: cover;
}

.heart-minion-link {
  position: absolute;
  top: 95px;
  left: 50%;
  width: 58px;
  height: 58px;
  opacity: 0;
  transform: translateX(-50%) scale(1);
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1) 250ms, transform 450ms cubic-bezier(0.16, 1, 0.3, 1) 250ms;
}

.heart-minion {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.heart-wrap:hover .heart-minion-link,
.heart-minion-link:focus-visible,
.heart-minion-link.is-visible {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
}

.minion-heart {
  margin-top: 12px;
}

.mobile-only {
  display: none;
}

.mega-title {
  color: var(--ink);
  font-size: 144px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.experience {
  padding: 60px var(--page-x) 120px;
}

.experience-list {
  max-width: 1080px;
  margin: 60px auto 0;
  padding: 0 60px;
}

.experience-item + .experience-item {
  margin-top: 48px;
}

.experience-item .eyebrow,
.case-kicker {
  color: rgba(12, 15, 30, 0.28);
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 24px;
}

.experience-item h3 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 67.2px;
}

.experience-item p:not(.eyebrow) {
  margin-top: 6px;
  color: rgba(12, 15, 30, 0.5);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 28.8px;
}

.home-projects {
  display: flex;
  gap: 48px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 60px 0 60px 80px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.home-projects::-webkit-scrollbar {
  display: none;
}

.home-project-card {
  flex: 0 0 640px;
  scroll-snap-align: start;
}

.home-project-card p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 24px;
}

.project-image-wrap {
  display: block;
  width: 640px;
  height: 431px;
  overflow: hidden;
  color: inherit;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1) 250ms;
}

.project-image-wrap:hover img,
.project-image-wrap:focus-visible img {
  transform: scale(1.1) rotate(-1deg);
}

.pink-gradient {
  height: 60px;
}

.pink-gradient-in {
  background: linear-gradient(180deg, #fff 0%, var(--framer-pink) 100%);
}

.pink-gradient-out {
  background: linear-gradient(180deg, var(--framer-pink) 0%, #fff 100%);
}

.sphere {
  margin-top: 0;
  padding: 60px var(--content-x) 120px;
  background: #fff;
}

.sphere-links {
  display: grid;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.sphere-links a {
  display: grid;
  min-height: 62px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px;
  color: var(--ink);
}

.sphere-links .index {
  color: rgba(12, 15, 30, 0.3);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 24px;
}

.sphere-links a > span:nth-child(2),
.sphere-links .arrow {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 62px;
}

.sphere-links .arrow {
  justify-self: end;
}

.about {
  padding: 120px var(--content-x) 60px;
}

.about .mega-title {
  max-width: 960px;
  margin: 0 auto;
  line-height: 124px;
}

.about-grid {
  display: grid;
  max-width: 960px;
  margin: 60px auto 0;
  grid-template-columns: 300px 306px 306px;
  gap: 24px;
  align-items: start;
}

.about-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1) 250ms;
}

.about-photo:hover {
  transform: scale(1.1) rotate(-2deg);
}

.about-copy,
.contacts {
  color: var(--ink);
  font-style: normal;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 24px;
}

.strong {
  color: var(--ink);
}

.muted {
  color: var(--soft-ink);
}

.about-copy .muted {
  margin: 4px 0 10px;
}

.contacts {
  display: grid;
  gap: 4px;
}

.contacts p {
  margin-top: 20px;
}

.site-footer {
  position: relative;
  height: 75px;
  margin-top: 0;
}

.site-footer span {
  display: block;
  height: 1px;
  background: var(--line);
}

.site-footer img {
  position: absolute;
  top: -2px;
  left: min(71%, calc(100% - 170px));
  width: 113px;
  height: 85px;
  object-fit: cover;
}

.reveal,
.reveal-on-load {
  will-change: opacity, transform;
}

.reveal-on-load {
  opacity: 0;
  transform: translateY(100px);
  animation: revealUp 3s cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(150px);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1) 200ms, transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) 200ms;
}

.reveal-short {
  transform: translateY(120px);
}

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

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal,
  .reveal-on-load {
    opacity: 1;
    transform: none;
  }
}

.cursor-dot {
  display: none;
}

@media (pointer: fine) {
  .home-page,
  .home-page a {
    cursor: none;
  }

  .home-page .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    pointer-events: none;
    background: rgba(138, 29, 103, 0.2);
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1), height 400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 160ms ease;
  }

  .home-page .cursor-dot::after {
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    content: "";
    background: rgba(138, 29, 103, 0.2);
    opacity: 0;
    transition: opacity 160ms ease;
  }

  .home-page .cursor-dot.is-active::after {
    opacity: 1;
  }

  .minion-page .cursor-dot,
  .minion-page .cursor-dot::after {
    background: rgba(184, 139, 0, 0.22);
  }

}

.portfolio-page {
  padding: 46px var(--page-x) 105px;
}

.page-title {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: 117px;
  color: var(--ink);
  font-size: 96px;
  font-weight: 500;
  line-height: 117px;
}

.page-title .back-arrow {
  flex: 0 0 120px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  margin-top: 46px;
}

.project-tile {
  display: block;
  color: var(--ink);
}

.project-tile h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 38px;
}

.project-tile p {
  color: var(--soft-ink);
  font-size: 24px;
  line-height: 29px;
}

.project-tile img {
  width: 100%;
  aspect-ratio: 630 / 424;
  margin-top: 18px;
  object-fit: cover;
}

.case-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px var(--content-x) 74px;
}

.case-title {
  display: flex;
  align-items: flex-start;
  color: var(--ink);
  font-size: 96px;
  font-weight: 500;
  line-height: 117px;
  letter-spacing: -0.02em;
}

.case-title .back-arrow {
  flex: 0 0 auto;
  margin-right: 16px;
}

.case-hero-image {
  width: 100%;
  margin-top: 44px;
  overflow: hidden;
}

.case-hero-image img {
  width: 100%;
  max-height: none;
  object-fit: cover;
}

.case-layout {
  display: block;
  margin-top: 42px;
}

.case-meta {
  display: none;
}

.case-content {
  display: grid;
  gap: 0;
}

.case-section {
  padding: 32px 0;
  border-top: 1px solid rgba(12, 15, 30, 0.12);
}

.case-section h2 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.case-section p,
.case-section li {
  color: rgb(13, 15, 31);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.case-section p + p {
  margin-top: 14px;
}

.case-inline-media,
.case-media-grid {
  margin: 28px 0 0;
}

.case-inline-media img,
.case-media-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1) 250ms;
}

.case-inline-media img:hover,
.case-media-grid img:nth-child(odd):hover {
  transform: rotate(-2deg);
}

.case-media-grid img:nth-child(even):hover {
  transform: rotate(3deg);
}

.case-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.case-media-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-link {
  display: inline-flex;
  width: fit-content;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 26px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.case-section h2 a {
  display: inline-block;
  text-decoration: none;
  transition: opacity 220ms ease, transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-section h2 a:hover,
.case-section h2 a:focus-visible {
  opacity: 0.62;
  transform: translateX(6px);
}

.inline-link {
  border-bottom: 1px solid currentColor;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 80px;
}

.case-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1) 250ms;
}

.case-gallery img:nth-child(odd):hover {
  transform: rotate(-2deg);
}

.case-gallery img:nth-child(even):hover {
  transform: rotate(3deg);
}

.case-gallery img.wide {
  grid-column: 1 / -1;
}

@media (max-width: 1199px) {
  :root {
    --page-x: 18px;
    --content-x: 36px;
  }

  body::before {
    height: 58px;
  }

  .topbar {
    gap: 18px;
    padding: 25px 40px 0;
  }

  .home-hero {
    height: 900px;
    min-height: 900px;
  }

  .hero-copy h1 {
    font-size: 36px;
    line-height: 43.2px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .heart-wrap {
    margin-top: 10px;
  }

  .experience {
    padding: 60px 36px 120px;
  }

  .mega-title {
    font-size: 100px;
    line-height: 120px;
  }

  .experience-list {
    margin-top: 188px;
    padding: 0;
  }

  .experience-item + .experience-item {
    margin-top: 44px;
  }

  .experience-item h3 {
    font-size: 36px;
    line-height: 43.2px;
  }

  .experience-item p:not(.eyebrow) {
    font-size: 24px;
    line-height: 28.8px;
  }

  .home-projects {
    gap: 24px;
    padding: 60px 0 60px 36px;
  }

  .home-project-card {
    flex-basis: min(640px, calc(100vw - 72px));
  }

  .project-image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 431;
  }

  .sphere {
    margin-top: 0;
    padding: 60px 36px 120px;
  }

  .sphere-links {
    gap: 48px;
  }

  .sphere-links a {
    grid-template-columns: 26px minmax(0, 1fr) auto;
  }

  .sphere-links a > span:nth-child(2),
  .sphere-links .arrow {
    font-size: 36px;
    line-height: 62px;
  }

  .about {
    padding: 60px 36px;
  }

  .about .mega-title {
    line-height: 120px;
  }

  .about-grid {
    display: block;
    margin-top: 48px;
  }

  .about-photo {
    display: block;
    width: min(300px, 100%);
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 24px;
  }

  .about-copy,
  .contacts {
    max-width: 318px;
  }

  .contacts {
    margin-top: 20px;
  }

  .site-footer {
    margin: 0 36px;
  }

  .site-footer img {
    left: 50%;
    transform: translateX(-50%);
  }

  .portfolio-page,
  .case-page {
    padding-top: 44px;
  }

  .page-title,
  .case-title {
    font-size: clamp(56px, 16vw, 100px);
    line-height: 1.17;
  }

  .page-title .back-arrow,
  .case-title .back-arrow {
    flex-basis: auto;
  }

  .case-title .back-arrow {
    margin-right: 12px;
  }

  .project-grid,
  .case-gallery,
  .case-media-grid,
  .case-media-grid.three {
    grid-template-columns: 1fr;
  }

  .case-layout {
    display: block;
    margin-top: 48px;
  }

  .case-meta {
    margin-bottom: 34px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-right: 40px;
    padding-left: 40px;
  }

  .home-hero {
    height: 900px;
    min-height: 900px;
  }

  .experience-list {
    margin-top: 190px;
  }

  .sphere {
    padding-top: 60px;
    padding-right: 36px;
    padding-left: 36px;
  }

  .sphere-links a {
    gap: 10px;
  }

  .sphere-links .index {
    font-size: 24px;
  }

  .sphere-links a > span:nth-child(2) {
    overflow-wrap: anywhere;
  }

  .page-title,
  .case-title {
    gap: 0;
  }

  .page-title .back-arrow,
  .case-title .back-arrow {
    flex-basis: auto;
  }

  .project-grid {
    gap: 44px;
    margin-top: 36px;
  }

  .project-tile h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .project-tile p,
  .case-section p,
  .case-section li {
    font-size: 22px;
    line-height: 29px;
  }

  .case-section h2 {
    font-size: 34px;
    line-height: 40px;
  }
}
