:root {
  --paper: #f0efed;
  --ink: #000;
  --soft-ink: #333;
  --muted: #666;
  --line: #d9d9d9;
  --green: #0a8046;
  --gradient: linear-gradient(173deg, #884fdd 4.72%, #0078ff 100%);
  --font: "Figtree", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--paper);
  overflow-x: hidden;
}

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

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

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62.667px;
  padding: 20px 130.667px;
  background: var(--paper);
  box-shadow: 0 6.667px 6.667px rgba(240, 239, 237, 0.5);
}

.brand,
.home-nav nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 17.333px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.brand img {
  width: 22.667px;
  height: 22.667px;
}

.brand em {
  color: var(--muted);
  font-style: normal;
}

.home-nav nav {
  gap: 38.667px;
  color: #666666;
  font-size: 16px;
  font-weight: 600;
}

.home-nav nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  display: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-shell {
  width: min(1026.667px, calc(100% - 40px));
  margin: clamp(72px, 11vh, 128px) auto 0;
}

.intro-section {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 40px);
}

.intro-section h1 {
  width: 100%;
  margin: 0;
  font-size: 42.667px;
  font-weight: 600;
  line-height: 1.195;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.intro-section h1 span {
  color: transparent;
  background: linear-gradient(115deg, #884fdd 0%, #2f6cff 28%, #00a6ff 48%, #884fdd 68%, #0078ff 100%);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradient-shimmer 7s ease-in-out infinite;
}

@keyframes gradient-shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.mobile-title-break {
  display: none;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.touch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 163px;
  min-height: 46px;
  padding: 9px 20px;
  border: 0.667px solid var(--line);
  border-radius: 666.667px;
  background: #fff;
  color: #111;
  font-size: 21.333px;
  font-weight: 600;
}

.availability {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  margin: 0;
  color: var(--green);
  font-size: 21.333px;
  font-weight: 600;
  white-space: nowrap;
}

.availability i {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0ee06e;
  box-shadow: 0 0 0 6px rgba(14, 224, 110, 0.2);
}

.availability i::before,
.availability i::after {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(14, 224, 110, 0.22);
  content: "";
  transform: scale(0.72);
  animation: availability-pulse 2.4s ease-out infinite;
}

.availability i::after {
  animation-delay: 0.8s;
}

@keyframes availability-pulse {
  0% {
    opacity: 0.72;
    transform: scale(0.72);
  }

  70% {
    opacity: 0;
    transform: scale(1.55);
  }

  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

.case-section {
  margin-top: clamp(48px, 7vh, 100px);
  --case-progress: 1;
}

.case-section.is-motion-ready {
  --case-progress: 0;
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vh, 26.667px);
}

.section-copy h2,
.contact-section h2 {
  margin: 0;
  font-size: 42.667px;
  font-weight: 700;
  line-height: 1.195;
}

.section-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 21.333px;
  font-weight: 500;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 468px);
  gap: 45.333px 82.667px;
  margin-top: clamp(26px, 4vh, 45.333px);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.case-card {
  --from-x: 0px;
  --from-y: 0px;
  --from-rot: 0deg;
  --from-scale: 1;
  --motion-left: calc((1 - var(--case-progress)) * var(--from-x));
  --motion-top: calc((1 - var(--case-progress)) * var(--from-y));
  --motion-rot: calc((1 - var(--case-progress)) * var(--from-rot));
  --motion-scale: calc(var(--case-progress) + ((1 - var(--case-progress)) * var(--from-scale)));
  --tag-bg: #f8f8f8;
  --tag-border: #d9d9d9;
  --tag-ink: var(--soft-ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 468px;
  min-height: 542.667px;
  padding: 13.333px;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 6.667px 16.667px #d9d9d9;
  transform: translate3d(var(--motion-left), var(--motion-top), 0) rotate(var(--motion-rot)) scale(var(--motion-scale));
  transform-origin: center center;
  will-change: transform;
}

.case-card:nth-child(1) {
  --from-x: 22px;
  --from-y: 54px;
  --from-rot: -8deg;
  --from-scale: 1.06;
  --tag-bg: #edf6ff;
  --tag-border: #c9e2ff;
  --tag-ink: #1f5f9f;
  z-index: 1;
}

.case-card:nth-child(2) {
  --from-x: -226px;
  --from-y: 42px;
  --from-rot: 3deg;
  --from-scale: 1.06;
  --tag-bg: #fff1e8;
  --tag-border: #ffd7c1;
  --tag-ink: #a14c24;
  z-index: 3;
}

.case-card:nth-child(3) {
  --from-x: 168px;
  --from-y: -548px;
  --from-rot: -3deg;
  --from-scale: 1.1;
  --tag-bg: #f3efff;
  --tag-border: #ded3ff;
  --tag-ink: #6541a3;
  z-index: 2;
}

.case-card:nth-child(4) {
  --from-x: -34px;
  --from-y: -526px;
  --from-rot: 8deg;
  --from-scale: 1.06;
  --tag-bg: #fff0f4;
  --tag-border: #ffd5df;
  --tag-ink: #8f4b5c;
  z-index: 4;
}

.case-card img {
  width: 100%;
  height: 340px;
  border-radius: 20px;
  object-fit: cover;
}

.case-card h3 {
  margin: 0;
  color: var(--soft-ink);
  font-size: 26.67px;
  font-weight: 700;
  line-height: 1.2;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.case-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  color: var(--tag-ink);
  background: var(--tag-bg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.contact-section {
  display: grid;
  grid-template-columns: 268px minmax(0, 669.333px);
  justify-content: space-between;
  align-items: start;
  margin-top: 200px;
  column-gap: 45px;
}

.contact-section h2 {
  color: var(--soft-ink);
  line-height: 1.2;
  white-space: nowrap;
}

.contact-links {
  --external-arrow: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.25 16.75L16.75 5.25M8 5.25H16.75V14' stroke='black' stroke-width='2.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  gap: 26.667px;
}

.contact-links a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 13.333px 20px;
  align-items: center;
  color: var(--muted);
  transition: color 220ms ease;
}

.contact-links a::before {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 0.667px;
  background: rgba(102, 102, 102, 0.56);
  content: "";
  transition: background-color 220ms ease, transform 220ms ease;
  transform-origin: left center;
}

.contact-links a span {
  display: block;
  min-height: 38px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1875;
  transition: transform 220ms ease;
}

.contact-links i {
  position: relative;
  justify-self: end;
  width: 22px;
  height: 22px;
  background: var(--muted);
  -webkit-mask: var(--external-arrow) center / contain no-repeat;
  mask: var(--external-arrow) center / contain no-repeat;
  transition: background-color 220ms ease, transform 220ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--soft-ink);
}

.contact-links a:hover::before,
.contact-links a:focus-visible::before {
  background: rgba(51, 51, 51, 0.82);
  transform: scaleX(1.015);
}

.contact-links a:hover span,
.contact-links a:focus-visible span {
  transform: translateX(4px);
}

.contact-links a:hover i,
.contact-links a:focus-visible i {
  background: var(--soft-ink);
  transform: translate(4px, -4px);
}

footer {
  width: min(1026.667px, calc(100% - 40px));
  margin: 104px auto 18px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.18;
  text-align: center;
}

@media (max-width: 1120px) {
  .home-nav {
    padding-inline: 40px;
  }

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

  .case-card {
    width: 100%;
  }

  .case-card:nth-child(n) {
    --from-x: 0px;
    --from-y: 0px;
    --from-rot: 0deg;
    --from-scale: 1;
  }
}

@media (max-width: 980px) {
  .home-nav {
    height: auto;
    padding: 12px 24px;
  }

  .brand {
    gap: 0;
  }

  .brand span {
    display: none;
  }

  .home-nav nav {
    display: flex;
    gap: 8px;
  }

  .home-nav nav a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #666666;
    transition: background-color 180ms ease, color 180ms ease;
  }

  .home-nav nav a:hover,
  .home-nav nav a:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: var(--soft-ink);
  }

  .nav-label {
    display: none;
  }

  .nav-icon {
    display: block;
  }

  .home-shell {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    margin-top: 72px;
  }

  .intro-section h1,
  .section-copy h2,
  .contact-section h2 {
    font-size: clamp(28px, 7.6vw, 32px);
  }

  .mobile-title-break {
    display: block;
  }

  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .case-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section {
    gap: 28px;
    margin-top: 144px;
  }

  .case-card {
    width: 100%;
    min-height: auto;
    border-radius: 17px;
  }

  .case-card img {
    height: auto;
    aspect-ratio: 441.334 / 340;
    border-radius: 13px;
  }

  .contact-links {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .contact-links a {
    grid-template-columns: 1fr;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .contact-links a span {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    min-height: 34px;
    font-size: clamp(26px, 7vw, 32px);
  }

  .contact-links a span::after {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    background: var(--muted);
    -webkit-mask: var(--external-arrow) center / contain no-repeat;
    mask: var(--external-arrow) center / contain no-repeat;
    content: "";
    transition: background-color 220ms ease, transform 220ms ease;
  }

  .contact-links a:hover span::after,
  .contact-links a:focus-visible span::after {
    background: var(--soft-ink);
    transform: translate(4px, -4px);
  }

  .contact-links i {
    display: none;
  }

  footer {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-section h1 span,
  .availability i::before,
  .availability i::after {
    animation: none;
  }

  .contact-links a,
  .contact-links a::before,
  .contact-links a span,
  .contact-links i,
  .contact-links a span::after {
    transition: none;
  }
}
