:root {
  --paper: #fff7e8;
  --paper-deep: #f6ebd3;
  --ink: #1f2a44;
  --ink-soft: #4c5871;
  --pink: #ff8db8;
  --yellow: #ffd85b;
  --blue: #7dd7ff;
  --green: #98d87d;
  --orange: #ffaf68;
  --white: #fffdf8;
  --shadow: 0.24rem 0.24rem 0 0 var(--ink);
  --radius-xl: 2rem;
  --radius-lg: 1.35rem;
  --radius-md: 1rem;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  --hero-progress: 0;
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 2.85rem,
      rgba(31, 42, 68, 0.045) 2.85rem,
      rgba(31, 42, 68, 0.045) 2.92rem
    ),
    radial-gradient(circle at top left, rgba(255, 141, 184, 0.24), transparent 22rem),
    radial-gradient(circle at 90% 12%, rgba(125, 215, 255, 0.26), transparent 24rem),
    linear-gradient(180deg, #fffaf0 0%, var(--paper) 100%);
  font-family: "Nunito Sans", "Trebuchet MS", sans-serif;
  line-height: 1.5;
}

body::after {
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 141, 184, 0.18), transparent 22rem),
    radial-gradient(circle at 82% 18%, rgba(125, 215, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 50% 24%, rgba(255, 216, 91, 0.15), transparent 30rem);
  content: "";
  pointer-events: none;
  z-index: -2;
  opacity: calc(0.28 + var(--hero-progress) * 0.18);
  transform: translate3d(0, calc(var(--hero-progress) * -2vh), 0)
    scale(calc(1 + var(--hero-progress) * 0.05));
  filter: blur(calc(14px + var(--hero-progress) * 4px));
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
  perspective: 1600px;
  transform-style: preserve-3d;
}

main {
  transform-style: preserve-3d;
}

.top-note,
.eyebrow,
.brand__sub,
.work-card__type {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-note {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.45rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 800;
  transform: translate3d(0, calc(var(--hero-progress) * -0.3rem), 0);
}

.site-header,
.mini-pitch,
.process-card,
.inquiry-form,
.work-card,
.stack-card {
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.top-note,
.site-header,
.hero,
.hero__content,
.hero__stack,
.stack-card,
.mini-pitch {
  transform-style: preserve-3d;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 1rem;
  z-index: 10;
  transform: translate3d(0, calc(var(--hero-progress) * -0.35rem), calc(var(--hero-progress) * 18px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand__logo {
  height: 2.6rem;
  width: auto;
  display: block;
}

.brand__text {
  display: inline-flex;
  flex-direction: column;
}

.brand__name,
h1,
h2,
h3 {
  font-family: "Cabin Sketch", "Trebuchet MS", sans-serif;
}

.brand__name {
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  line-height: 1;
}

.brand__sub {
  font-size: 0.72rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-nav a {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  .site-nav a {
    transition:
      transform 0.22s ease,
      color 0.22s ease;
    will-change: transform;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    transform: translateY(-2px);
  }
}

.hero,
.section--split,
.site-footer {
  display: grid;
  gap: 1.5rem;
}

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  padding: 3rem 0 3rem;
  transform-origin: center top;
  transform:
    translate3d(0, calc(var(--hero-progress) * -2.4rem), calc(var(--hero-progress) * -90px))
    rotateX(calc(var(--hero-progress) * 6deg))
    rotateZ(calc(var(--hero-progress) * -1.2deg))
    scale(calc(1 - var(--hero-progress) * 0.03));
  opacity: calc(1 - var(--hero-progress) * 0.18);
  filter: blur(calc(var(--hero-progress) * 0.8px))
    saturate(calc(1 + var(--hero-progress) * 0.05));
  will-change: transform, opacity, filter;
}

.hero__content {
  transform: translate3d(0, calc(var(--hero-progress) * -0.35rem), calc(var(--hero-progress) * 40px));
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--ink-soft);
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  max-width: 10ch;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
  line-height: 1;
}

.hero__lede,
.hero__trust,
.section-copy,
.work-card__body p,
.process-card p,
.site-footer p {
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.hero__trust {
  max-width: 34rem;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.35rem;
  padding: 0.8rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 0.38rem 0.38rem 0 0 var(--ink);
}

.button--primary {
  background: var(--yellow);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.8);
}

.hero__stack {
  position: relative;
  min-height: 26rem;
  transform: translate3d(0, calc(var(--hero-progress) * 0.45rem), calc(var(--hero-progress) * 65px));
}

.stack-card {
  position: absolute;
  width: min(100%, 20rem);
  padding: 1.1rem 1.1rem 1rem;
  border-radius: var(--radius-lg);
  animation: floaty 6s ease-in-out infinite;
  will-change: transform;
}

.stack-card--blue {
  top: 0;
  right: 0;
  background: var(--blue);
  transform: translate3d(
      calc(var(--hero-progress) * 1.25rem),
      calc(var(--hero-progress) * -0.9rem),
      calc(var(--hero-progress) * 70px)
    )
    rotate(-5deg)
    rotateY(calc(var(--hero-progress) * -6deg));
}

.stack-card--yellow {
  top: 7.25rem;
  left: 0;
  background: var(--yellow);
  transform: translate3d(
      calc(var(--hero-progress) * -1rem),
      calc(var(--hero-progress) * 0.75rem),
      calc(var(--hero-progress) * 45px)
    )
    rotate(4deg)
    rotateY(calc(var(--hero-progress) * 4deg));
  animation-delay: 1.2s;
}

.stack-card--pink {
  bottom: 0;
  right: 1.1rem;
  background: var(--pink);
  transform: translate3d(
      calc(var(--hero-progress) * 0.7rem),
      calc(var(--hero-progress) * 1rem),
      calc(var(--hero-progress) * 60px)
    )
    rotate(-2deg)
    rotateY(calc(var(--hero-progress) * -4deg));
  animation-delay: 2.4s;
}

.stack-card__title {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
  font-weight: 900;
}

.mini-pitch {
  margin-bottom: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  text-align: center;
  transform-origin: center top;
  transform:
    translate3d(
      0,
      calc((1 - var(--hero-progress)) * 1.8rem),
      calc((1 - var(--hero-progress)) * -50px)
    )
    rotateX(calc((1 - var(--hero-progress)) * 6deg));
  opacity: calc(0.7 + var(--hero-progress) * 0.3);
  filter: blur(calc((1 - var(--hero-progress)) * 3px));
}

.section {
  padding: 2.5rem 0;
}

.section--compact {
  padding-top: 0.75rem;
  padding-bottom: 1.75rem;
}

body.has-js .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 1.75rem, -40px) rotateX(6deg) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity, filter;
}

body.has-js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.section-heading {
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 721px) {
  .section-heading {
    max-width: 46rem;
  }

  #process .section-heading {
    max-width: 34rem;
  }

  #process .section-heading h2 {
    max-width: 12ch;
  }

  .about-us .section-heading {
    max-width: 50rem;
  }

  .about-us .section-heading h2 {
    max-width: 16ch;
  }

  .about-us .section-copy {
    max-width: 62ch;
  }

  .inquiry .section-heading {
    max-width: 38rem;
  }

  .inquiry .section-heading h2 {
    max-width: 14ch;
    white-space: normal;
  }

  .inquiry .section-copy {
    max-width: 30ch;
  }
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card {
  padding: 1.1rem 1.15rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.proof-card h3 {
  margin-bottom: 0.45rem;
}

.proof-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.answer-card {
  padding: 1.2rem 1.2rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.answer-card h3 {
  margin-bottom: 0.55rem;
}

.answer-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.8rem;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
  will-change: transform;
  cursor: pointer;
}

.work-card--green {
  background: linear-gradient(180deg, #dff5ca 0%, #ffffff 65%);
}

.work-card--orange {
  background: linear-gradient(180deg, #ffd2b2 0%, #ffffff 65%);
}

.work-card--blue {
  background: linear-gradient(180deg, #d1f0ff 0%, #ffffff 65%);
}

.work-card--pink {
  background: linear-gradient(180deg, #ffd6e8 0%, #ffffff 65%);
}

.browser-chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
}

.browser-chrome span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--ink);
}

.work-card__preview {
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  aspect-ratio: 3 / 2;
  background: var(--white);
}

.work-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.work-card:hover .work-card__preview img,
.work-card:focus-visible .work-card__preview img {
  transform: scale(1.04);
}

.work-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem 1rem 1.3rem;
}

.work-card__type {
  margin-bottom: 0;
  font-size: 0.76rem;
  font-weight: 900;
}

.work-card__cta {
  margin-top: auto;
  font-weight: 900;
  text-decoration-thickness: 3px;
  text-decoration-line: underline;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0.44rem 0.56rem 0 0 var(--ink);
}

.work-card:focus-visible {
  outline: 4px solid rgba(125, 215, 255, 0.65);
  outline-offset: 4px;
}

.work-card:hover .browser-chrome span,
.work-card:focus-visible .browser-chrome span {
  transform: translateY(-2px);
}

.work-card--orange:hover,
.work-card--orange:focus-visible {
  transform: translateY(-8px) rotate(1deg);
}

.work-card--blue:hover,
.work-card--blue:focus-visible {
  transform: translateY(-8px) rotate(-0.6deg);
}

.work-card--pink:hover,
.work-card--pink:focus-visible {
  transform: translateY(-8px) rotate(0.8deg);
}

.browser-chrome span {
  transition: transform 0.24s ease;
}

.section--split {
  grid-template-columns: 1fr;
}

.process-grid,
.inquiry-form {
  display: grid;
  gap: 1rem;
}

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

.process-card {
  padding: 1.35rem;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.84);
}

.process-card__number {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.95rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.inquiry-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.3rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.85);
}

.inquiry-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 900;
}

.inquiry-form__full,
.inquiry-form__submit {
  grid-column: 1 / -1;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 1.2rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.inquiry-form input:focus-visible,
.inquiry-form select:focus-visible,
.inquiry-form textarea:focus-visible {
  outline: 4px solid rgba(125, 215, 255, 0.5);
  outline-offset: 2px;
}

.inquiry-form__submit {
  cursor: pointer;
}

.site-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 2rem 0 0;
  color: var(--ink-soft);
}

.site-footer p:last-child {
  text-align: right;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal__title {
  max-width: none;
}

.legal-content {
  max-width: 42rem;
  padding: 1.6rem 1.8rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.legal-content h3 {
  font-size: 1.25rem;
}

.legal-content h3:not(:first-child) {
  margin-top: 1.6rem;
}

.legal-content p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.legal-content p + h3 {
  margin-top: 1.6rem;
}

.legal-content a {
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.thanks-card {
  width: min(100%, 42rem);
  padding: 2rem;
  border: 3px solid var(--ink);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  text-align: center;
}

.thanks-card p {
  max-width: 31rem;
  margin-left: auto;
  margin-right: auto;
}

@keyframes floaty {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@media (max-width: 920px) {
  .hero,
  .answers-grid,
  .proof-grid,
  .work-grid,
  .process-grid,
  .inquiry-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero__stack {
    min-height: 22rem;
  }

  .stack-card--pink {
    right: 0;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .top-note {
    display: none;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .site-header,
  .hero,
  .hero__content,
  .hero__stack,
  .stack-card,
  .mini-pitch {
    opacity: 1;
    filter: none;
    transform: none;
  }

  body::after {
    opacity: 0.28;
    transform: none;
    filter: blur(14px);
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .hero__stack {
    min-height: 24rem;
  }

  .stack-card {
    width: min(100%, 17rem);
  }

  body.has-js .reveal-on-scroll {
    transform: translateY(1rem);
    filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .top-note,
  .site-header,
  .hero,
  .hero__content,
  .hero__stack,
  .stack-card,
  .mini-pitch,
  .reveal-on-scroll {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
