:root {
  color-scheme: dark;
  --background: #000000;
  --foreground: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.90);
  --subtle: rgba(244, 244, 244, 0.50);
  --border: rgba(255, 255, 255, 0.15);
  --content-width: 560px;
  --page-padding-y: clamp(32px, 6vw, 76px);
  --page-padding-x: clamp(32px, 11vw, 120px);
  --header-height: 32px;
  --header-gap: 20px;
  --about-peek: clamp(260px, calc(100vh - 420px), 480px);
  --nav-background: rgba(33, 33, 33, 0.85);
  --nav-active-background: rgb(51, 50, 50);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--page-padding-y) + var(--header-height) + var(--header-gap))
    var(--page-padding-x) 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: var(--page-padding-y);
  left: var(--page-padding-x);
  right: var(--page-padding-x);
  z-index: 1000;
}

.brand {
  display: inline-flex;
  width: 24px;
  height: 35px;
}

.brand-logo {
  display: block;
  width: 24px;
  height: 35px;
  overflow: visible;
}

.brand-logo__path {
  fill: none;
  stroke-width: 2.5px;
  stroke-miterlimit: 8.89;
  vector-effect: non-scaling-stroke;
}

.brand-logo__path--base {
  stroke: #303030;
}

.brand-logo__path--draw {
  stroke: #fff;
  stroke-dasharray: 1;
  stroke-dashoffset: 1.25;
}

.brand.is-logo-animating .brand-logo__path--draw {
  animation: brand-logo-draw 2s cubic-bezier(0.25, 1, 0.25, 1) forwards;
}

@keyframes brand-logo-draw {
  from {
    stroke-dashoffset: 1.25;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo__path {
    animation: none;
  }

  .brand.is-logo-animating .brand-logo__path--draw {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row-reverse;
  gap: 8px;
  width: 48px;
  height: 48px;
  padding: 0 16px;
  overflow: hidden;
  background-color: var(--nav-background);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(18px);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgb(255, 255, 255);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  width: 137px;
  background-color: var(--nav-active-background);
}

.contact-link img {
  width: 16px;
  height: 15px;
  flex: 0 0 auto;
  opacity: 0.53;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}

.contact-link span {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(8px);
  white-space: nowrap;
  transition: opacity 0.18s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-link:hover span,
.contact-link:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}

.contact-link:hover img,
.contact-link:focus-visible img {
  opacity: 1;
  animation: contact-icon-shake 0.42s ease-in-out;
}

@keyframes contact-icon-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-1.5px) rotate(-6deg);
  }

  40% {
    transform: translateX(1.5px) rotate(6deg);
  }

  60% {
    transform: translateX(-1px) rotate(-4deg);
  }

  80% {
    transform: translateX(1px) rotate(4deg);
  }
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-title {
  min-height: calc(100vh - var(--about-peek));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title h1 {
  width: min(100%, var(--content-width));
  margin: 0;
  text-align: left;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-about {
  display: flex;
  justify-content: center;
  padding: 0 0 6vh;
}

.about-body {
  width: min(100%, var(--content-width));
  font-size: clamp(17.6px, 1.7vw, 20px);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: left;
}

.about-body p {
  margin: 0;
}

.about-body p + p {
  margin-top: 24px;
}

.work {
  margin-top: clamp(64px, 14vh, 144px);
}

.work-intro {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 42px;
}

.work-intro h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.work-intro p {
  margin: 16px 0 0;
  font-size: 17.6px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.work-scroller {
  /* Start cards at the work-intro's text edge (centered 980px + 42px padding),
     but let the scroller span the full viewport so it can scroll past the right edge. */
  --work-scroller-inset: max(50vw - 490px, var(--page-padding-x));
  display: flex;
  gap: 24px;
  margin: 40px calc(var(--page-padding-x) * -1) 0;
  padding: 0 var(--page-padding-x) 0 var(--work-scroller-inset);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--work-scroller-inset);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.work-scroller::-webkit-scrollbar {
  display: none;
}

.work-card {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: min(560px, 80vw);
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  color: var(--foreground);
  cursor: pointer;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  border-radius: inherit;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.work-card--work::before {
  display: none;
}

.work-card__inner {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.work-card__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.1) 28%,
    rgba(0, 0, 0, 0) 58%
  );
  pointer-events: none;
}

.work-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.work-card__content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.work-card__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.work-card__description {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.5);
}

.work-card:hover::before,
.work-card:hover .work-card__inner {
  transform: scale(0.97);
}

.pricing {
  margin-top: clamp(64px, 14vh, 144px);
}

.pricing-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 42px;
}

.pricing-intro h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pricing-intro p {
  margin: 16px 0 0;
  font-size: 17.6px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.pricing-intro {
  padding-bottom: clamp(24px, 4vh, 32px);
  border-bottom: 1px solid var(--border);
}

.pricing-list {
  margin-top: clamp(24px, 4vh, 32px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 5vw, 84px);
}

.pricing-card {
  padding: clamp(32px, 5vh, 44px) 0;
}

.pricing-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pricing-card__description {
  margin: 14px 0 0;
  font-size: 17.6px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.pricing-card__label {
  display: block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--subtle);
}

.pricing-card__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.pricing-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 9px;
  background-image: url("../assets/tick.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 9px;
}

.pricing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.pricing-card__pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pricing-card__price-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--subtle);
}

.pricing-card__price {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--foreground);
}

.pricing-card__price-suffix {
  font-size: 0.58em;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #000;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pricing-card__cta:hover {
  background-color: transparent;
  border-color: var(--border);
  color: #fff;
}

.reveal-word {
  display: inline-block;
  color: var(--foreground);
  opacity: 0.2;
  transition: opacity 0.06s linear;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-word {
    opacity: 1;
  }
}

.site-footer {
  margin-top: clamp(64px, 14vh, 144px);
}

.site-footer p {
  margin: 0;
  padding: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--muted);
}

.navigation {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 1001;
}

.navigation-background {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: fit-content;
  height: 60px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background-color: var(--nav-background);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(18px);
  border-radius: 999px;
}

.nav-highlight {
  position: absolute;
  top: 6px;
  left: 0;
  width: 80px;
  height: 48px;
  margin: 0;
  list-style: none;
  border-radius: 999px;
  background-color: var(--nav-active-background);
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.navigation-background > li:not(.nav-highlight) {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 48px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.2;
  text-align: center;
  color: rgb(135, 135, 135);
  border-radius: 999px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: rgb(255, 255, 255);
}

.nav-link.is-active {
  color: rgb(255, 255, 255);
}

@media (prefers-reduced-motion: reduce) {
  .contact-link,
  .contact-link span,
  .contact-link img,
  .nav-highlight {
    transition: none;
  }

  .contact-link:hover img,
  .contact-link:focus-visible img {
    animation: none;
  }
}

@media (max-width: 1080px) {
  :root {
    --page-padding-y: 32px;
    --page-padding-x: 32px;
  }

  .page {
    padding-bottom: calc(32px + 60px + 24px);
  }

  .navigation {
    bottom: 32px;
  }

  .site-footer {
    margin-top: clamp(48px, 8vh, 80px);
  }

  .site-footer p {
    padding-bottom: 0;
    text-align: center;
  }

  .pricing-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 640px) {
  .work-intro {
    padding: 0;
  }

  .work-scroller {
    --work-scroller-inset: var(--page-padding-x);
  }

  .pricing-inner {
    padding: 0;
  }

  .work-card__title {
    font-size: 14px;

  }

  .work-card__description {
    font-size: 12px;
  }

  .work-card__content {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .contact-link {
    font-size: 14px;
  }

  .hero-title h1 {
    font-size: 34px;
  }

  .about-body {
    font-size: 17px;
    line-height: 1.6;
  }

  .site-footer p {
    font-size: 14px;
  }

  .pricing-card__title {
    font-size: 22px;
  }

  .pricing-card__description {
    font-size: 16px;
    line-height: 1.45;
  }

  .pricing-card__label {
    font-size: 14px;
  }

  .pricing-card__list li {
    font-size: 16px;
  }

  .pricing-card__price-label {
    font-size: 14px;
  }

  .pricing-card__price {
    font-size: 24px;
  }

  .pricing-card__cta {
    width: 100%;
    font-size: 15px;
    margin-top: 16px;
  }

  .pricing-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
