:root {
  color-scheme: light;
  --paper: #fbf0e6;
  --ink: #2b1124;
  --ink-soft: #5e4353;
  --orange: #df4b08;
  --violet: #2d2255;
  --radius: 1.8rem;
  --gutter: clamp(1.25rem, 4.65vw, 5rem);
  --header-height: 5.25rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 2px solid #6248a6;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: .75rem auto auto .75rem;
  padding: .5rem 1rem;
  clip-path: inset(50%);
  border-radius: .5rem;
  background: #fff9f4;
  font-weight: 700;
}

.skip-link:focus { clip-path: none; }

.frame {
  width: min(85rem, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand {
  gap: .6rem;
  min-height: 2.75rem;
  font-size: clamp(1.2rem, 2.05vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.brand img {
  width: clamp(2.5rem, 4.15vw, 3.8rem);
  height: auto;
}

.brand__park {
  margin-left: .5rem;
  padding-left: 1rem;
  border-left: 1px solid #624c57;
  color: var(--orange);
  line-height: 1.2;
}

.site-nav {
  gap: clamp(.7rem, 3vw, 2.75rem);
  font-size: clamp(.9rem, 1.25vw, 1.08rem);
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-underline-offset: .35em;
}

.site-nav a:hover, .site-footer a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "stage";
}

.hero__copy, .hero__art {
  grid-area: stage;
}

.hero__copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-block: 2rem clamp(2.5rem, 10vw, 11rem);
}

.hero__copy h1 {
  max-width: max-content;
  font-size: clamp(2.4rem, 6.35vw, 6.45rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.055em;
  -webkit-text-stroke: .015em;
}

.hero__copy h1 span { color: var(--orange); }

.hero__copy p {
  width: fit-content;
  max-width: min(27em, 49%);
  margin-top: 1.3rem;
  font-size: clamp(1rem, 1.6vw, 1.38rem);
  font-weight: 550;
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .68rem 1.35rem;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.3;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

.hero .button {
  margin-top: 1.8rem;
  padding-inline: 1.85rem;
  font-size: 1.22rem;
}

.button--dark { background: var(--ink); color: #fff7f3; }
.button--dark:hover { background: #4b2540; }
.button--light { background: #fff6ec; color: var(--ink); }
.button--light:hover { background: #ffdf9d; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
}

.button:active { transform: translateY(1px); }

.hero__art {
  --art-top-offset: clamp(0px, calc(8rem - 10vw), 3.75rem);
  align-self: start;
  justify-self: end;
  width: min(69.5%, max(70rem, calc(50% + 13rem)));
  margin-block: calc(var(--art-top-offset) - var(--header-height)) -1.5rem;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 15%);
}

.hero__scene {
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, #000 var(--art-top-offset) 95%, transparent);
}

.hero__image { width: 100%; height: auto; }

.hero__lid {
  position: absolute;
  /* Place the eyelid crop (628, 232) over the 1487 × 1058 illustration. */
  top: 21.9282%;
  left: 42.2327%;
  width: 34.7007%;
  height: auto;
  visibility: hidden;
  clip-path: inset(0 0 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 49% 49%, #000 84%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__lid {
    visibility: visible;
    animation: blink 280ms var(--ease-in-out) 1.4s both;
  }
}

@keyframes blink {
  0%, 100% { clip-path: inset(0 0 100%); }
  45%, 55% { clip-path: inset(0); }
}

.products { position: relative; }

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(1.95rem, 3.5vw, 3.1rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.055em;
  -webkit-text-stroke: .012em;
}

.product {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 30.5rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: linear-gradient(115deg, #ffdadc 8%, #ffcee4 42%, #dac7ff 69%, #a6cbfa 100%);
}

.product__copy {
  z-index: 1;
  align-self: center;
  padding: clamp(1.5rem, 4.1vw, 4.2rem);
}

.product__platform {
  margin-bottom: .65rem;
  color: #653754;
  font-size: .95rem;
  font-weight: 720;
}

.product h3 {
  font-size: clamp(3.1rem, 5.3vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1.08;
  -webkit-text-stroke: .012em;
}

.product h3 span {
  display: inline-block;
  margin-left: .12em;
  color: #66365b;
  font-size: .38em;
  font-weight: 730;
  letter-spacing: -.035em;
  vertical-align: .12em;
  -webkit-text-stroke: 0;
}

.product__description {
  max-width: 22em;
  margin-top: 1.1rem;
  color: #57354d;
  font-size: clamp(.99rem, 1.32vw, 1.15rem);
  line-height: 1.75;
}

.product__privacy {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: .45rem;
  color: #653754;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.product__art {
  position: relative;
  min-width: 0;
}

.product__screen {
  position: absolute;
  top: 2rem;
  right: 19%;
  width: clamp(12.5rem, 18vw, 16.5rem);
  height: auto;
  border: .42rem solid #241c33;
  border-radius: clamp(1.65rem, 3vw, 2.5rem);
  background: #f2f4fa;
  box-shadow: 0 0 0 1px #fff8, 1.15rem 1.6rem 3rem #35215f4d;
  transform: rotate(9deg);
}

.product__buddy {
  position: absolute;
  bottom: 1.4rem;
  right: 48%;
  width: clamp(10.75rem, 19vw, 18rem);
  height: auto;
  filter: drop-shadow(.65rem 1.35rem 1.2rem #3735723b);
  transform: rotate(-8deg);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.65rem, 1.3vw, 1.25rem);
  margin-top: clamp(.65rem, 1.3vw, 1.25rem);
  padding: 0;
  list-style: none;
}

.features li {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: 1.35rem;
  background: #cceab3;
}

.features li:nth-child(2) { background: #ffe18b; }
.features li:nth-child(3) { background: #cae8fb; }

.features h3 {
  font-size: clamp(1.12rem, 1.55vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.features p {
  margin-top: .2rem;
  color: #3d3338;
  font-size: .96rem;
}

.studio {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(.65rem, 1.3vw, 1.25rem);
  margin-top: clamp(2.75rem, 6vw, 5.6rem);
}

.studio section {
  padding: clamp(1.65rem, 4.25vw, 4rem);
  border-radius: var(--radius);
}

.studio__about { background: #ffd3b6; }
.studio__contact { background: var(--violet); color: #fff7f4; }

.studio__label {
  margin-bottom: .7rem;
  font-size: .93rem;
  font-weight: 750;
}

.studio h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.045em;
}

.studio h2 + p {
  max-width: 26em;
  margin-top: .85rem;
}

.studio .button { margin-top: 1.25rem; }
.studio .button:focus-visible { outline-color: #ffe18b; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  color: var(--ink-soft);
  font-size: .875rem;
}

.site-footer a { flex-shrink: 0; }

@media (max-width: 42rem) {
  .hero {
    display: block;
    padding-bottom: 1.65rem;
  }

  .hero__copy { padding-block: 1.9rem .2rem; }

  .hero__copy h1 {
    font-size: clamp(2.4rem, 11vw, 4.25rem);
    line-height: 1.14;
  }

  .hero__copy p { max-width: 27em; margin-top: .9rem; }

  .hero .button {
    min-height: 3rem;
    margin-top: 1.15rem;
    padding-inline: 1.4rem;
    font-size: 1rem;
  }

  .hero__art {
    width: 100%;
    margin-block: .5rem 0;
    mask-image: none;
  }

  .hero__scene {
    mask-image: linear-gradient(to bottom, transparent, #000 12% 96%, transparent);
  }
}

@media (max-width: 46rem) {
  :root {
    --radius: 1.35rem;
    --header-height: 4.25rem;
  }

  .brand__park { display: none; }

  .product { grid-template-columns: 1fr; }
  .product__copy { padding-bottom: .75rem; }

  .product__art {
    min-height: clamp(17rem, 74vw, 24rem);
  }

  .product__screen {
    top: .85rem;
    right: 14%;
    width: clamp(9.75rem, 45vw, 14rem);
    border-width: .35rem;
  }

  .product__buddy {
    bottom: .75rem;
    right: 45%;
    width: clamp(8.5rem, 41vw, 12.5rem);
  }

  .features, .studio { grid-template-columns: 1fr; }

  .site-footer { flex-wrap: wrap; gap: .45rem 1rem; font-size: .81rem; }
}

@media (max-width: 23rem) {
  .brand { gap: .3rem; }
  .brand img { width: 2.05rem; }
  .site-nav { gap: .55rem; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}
