@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("assets/google-sans-flex-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@property --portal-phase {
  syntax: "<length>";
  inherits: false;
  initial-value: -183.2px;
}

:root {
  color-scheme: light;
  --paper: #fafafa;
  --white: #fff;
  --ink: #2f2f2f;
  --muted: rgba(23, 23, 23, 0.62);
  --line: rgba(20, 20, 20, 0.07);
  --header-height: 64px;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

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

button,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

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

.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 80px;
  color: #111;
}

.brand__mark {
  width: 14px;
  height: 17px;
  border-radius: 9px 9px 2px 2px;
  background:
    radial-gradient(circle at 18% 88%, rgba(255, 218, 86, 0.96), transparent 47%),
    linear-gradient(135deg, #ffcd58 2%, #ff815f 51%, #d15aff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand__word {
  font-family: "Google Sans Flex", "Instrument Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.55px;
}

.nav-links {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 32px;
  transform: translateX(-50%);
}

.nav-links a {
  position: relative;
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #111;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-button {
  height: 40px;
  padding: 0 17px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease;
}

.header-button:hover {
  transform: translateY(-1px);
}

.header-button--soft {
  width: 80px;
  padding-inline: 0;
  background: #f0efed;
}

.header-button--soft:hover {
  background: #e9e8e5;
}

.header-button--dark {
  width: 58px;
  padding-inline: 0;
  color: #fff;
  background: #171717;
}

.header-button--dark:hover {
  background: #2c2c2c;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--paper);
}

@supports (height: 100dvh) {
  .hero {
    height: 100dvh;
  }
}

.hero-stage {
  position: relative;
  height: 100%;
  perspective: 1100px;
  perspective-origin: 50% 40%;
  transform-style: preserve-3d;
}

.hero-flyby,
.hero-media {
  position: absolute;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.hero-flyby {
  z-index: 8;
  top: 0;
  left: 0;
  overflow: hidden;
  border-radius: 4px;
  pointer-events: none;
}

.hero-flyby[data-flyby="0"] {
  width: 210px;
  height: 117px;
}

.hero-flyby[data-flyby="1"] {
  width: 184px;
  height: 102px;
}

.hero-flyby[data-flyby="2"] {
  width: 188px;
  height: 105px;
}

.hero-flyby[data-flyby="3"] {
  width: 186px;
  height: 105px;
}

.hero-flyby[data-flyby="4"] {
  width: 182px;
  height: 102px;
}

.hero-flyby[data-flyby="5"] {
  width: 108px;
  height: 160px;
}

.hero-flyby[data-flyby] {
  width: 126px;
  height: 126px;
}

.hero-flyby img,
.hero-media img,
.sticker-drift,
.peel-sticker {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-flyby img,
.hero-media img {
  object-fit: contain;
  user-select: none;
}

.sticker-drift {
  transform-origin: 50% 50%;
  will-change: transform;
}

.peel-sticker {
  position: relative;
  cursor: grab;
  touch-action: none;
}

.peel-sticker:active {
  cursor: grabbing;
}

.peel-sticker canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

.hero-media {
  z-index: 1;
  overflow: visible;
  border-radius: 0;
  pointer-events: auto;
  transition: filter 220ms ease;
}

.hero-media.is-peeling {
  z-index: 12;
  filter: drop-shadow(0 14px 20px rgba(35, 27, 18, 0.12));
}

.hero-media.is-moving {
  z-index: 14;
  filter: drop-shadow(0 16px 22px rgba(35, 27, 18, 0.14));
}

.hero-media.is-moving .peel-sticker,
.hero-media.is-moving .peel-sticker canvas {
  cursor: grabbing !important;
}

.hero-stage.is-complete .hero-media {
  opacity: 1;
  visibility: visible;
}

.hero-media--right {
  top: calc(34.55% - 20px);
  left: calc(50% + 520px);
  width: 208px;
  height: 208px;
}

.hero-media--left {
  top: calc(52.38% - 20px);
  left: -23px;
  width: 224px;
  height: 224px;
  overflow: visible;
}

.hero-media--left img {
  width: 100%;
  max-width: 100%;
}

.hero-media--art {
  top: calc(19.82% - 20px);
  left: calc(50% - 489px);
  width: 180px;
  height: 180px;
  overflow: visible;
  border-radius: 0;
}

.hero-media--art img,
.hero-media--portrait img {
  object-fit: contain;
}

.hero-media--portrait {
  top: 65.89%;
  left: calc(50% + 435px);
  width: 176px;
  height: 176px;
  overflow: visible;
  border-radius: 0;
}

.hero-media--mini {
  top: 78.85%;
  left: calc(50% - 473px);
  width: 184px;
  height: 184px;
}

.hero-media--website {
  top: calc(11.74% - 20px);
  left: calc(50% + 308px);
  width: 168px;
  height: 168px;
}

.hero-media--website img {
  height: 100%;
}

.hero-media--bottom {
  bottom: 0;
  left: calc(50% - 11px);
  width: 210px;
  height: 210px;
}

.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(860px, calc(100% - 48px));
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
}

.portal {
  --portal-font-size: 52px;
  position: relative;
  display: block;
  flex: none;
  width: 286px;
  height: 58px;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  cursor: pointer;
  perspective: 412px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.portal::before {
  position: absolute;
  inset: -24px -38px;
  content: "";
}

.portal__opening,
.portal__leaf,
.portal__outline {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: "Google Sans Flex", "Instrument Sans", sans-serif;
  font-size: var(--portal-font-size);
  font-weight: 720;
  letter-spacing: -3px;
  line-height: 1;
  white-space: nowrap;
}

.portal__opening {
  display: flex;
  opacity: 0;
  visibility: hidden;
}

.portal__gradient {
  display: inline-block;
  padding: 4px;
  margin: -4px;
  color: transparent;
  background: linear-gradient(110deg, #ffc157 0%, #ff8400 28%, #ff8ee5 56%, #d559ff 78%, #ffc157 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: portal-radial 2.4s linear infinite paused;
}

.portal__leaf {
  z-index: 2;
  display: flex;
  color: var(--paper);
  text-shadow: 0 0 0 var(--paper);
  transform: perspective(284px) rotateY(0deg);
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.portal__outline {
  z-index: 3;
  display: flex;
  overflow: visible;
}

.portal__outline > span {
  display: inline-block;
  padding: 3px;
  margin: -3px;
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
  -webkit-text-stroke: 2px #111;
  paint-order: stroke fill;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path, opacity;
}

.portal:focus-visible {
  outline: 2px solid rgba(24, 24, 24, 0.28);
  outline-offset: 7px;
}

.hero-stage.is-complete .portal__opening,
.hero-stage.is-complete .portal__leaf,
.hero-stage.is-complete .portal__outline {
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 780ms cubic-bezier(0.45, 0, 0.55, 1);
}

.hero-stage.is-complete .portal:hover .portal__opening,
.hero-stage.is-complete .portal:focus-visible .portal__opening {
  opacity: 1;
  visibility: visible;
}

.hero-stage.is-complete .portal:hover .portal__gradient,
.hero-stage.is-complete .portal:focus-visible .portal__gradient {
  animation-play-state: running;
}

.hero-stage.is-complete .portal:hover .portal__leaf,
.hero-stage.is-complete .portal:focus-visible .portal__leaf {
  opacity: 0;
  transform: perspective(284px) rotateY(90deg);
}

.hero-stage.is-complete .portal:hover .portal__outline,
.hero-stage.is-complete .portal:focus-visible .portal__outline {
  opacity: 0;
}

@keyframes portal-radial {
  from {
    background-position: 100% 50%;
  }

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

.hero-title {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 25px 0 0;
  overflow: hidden;
  color: #2f2f2f;
  font-family: "Google Sans Flex", "Instrument Sans", sans-serif;
  font-size: 58px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 0.95;
  white-space: nowrap;
}

.headline-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.headline-break {
  display: none;
}

.headline-space {
  display: inline-block;
  width: 0.26em;
}

.headline-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(118%);
  will-change: transform, opacity;
}

.hero-cta {
  display: inline-flex;
  height: 52px;
  align-items: center;
  gap: 11px;
  margin-top: 45px;
  padding: 0 22px 0 25px;
  border-radius: 999px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  background: #181818;
  box-shadow: 0 10px 26px rgba(24, 24, 24, 0.12);
  font-size: 15px;
  font-weight: 500;
  transform: translateY(24px);
  transition: background 180ms ease, box-shadow 180ms ease, transform 220ms ease;
  will-change: transform, opacity;
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  transition: transform 220ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #2c2c2c;
  box-shadow: 0 13px 32px rgba(24, 24, 24, 0.17);
  transform: translateY(-2px) !important;
}

.hero-cta:hover svg,
.hero-cta:focus-visible svg {
  transform: translateX(3px);
}

.hero-cta:focus-visible {
  outline: 2px solid rgba(24, 24, 24, 0.32);
  outline-offset: 4px;
}

.prompt-card {
  display: flex;
  width: 509px;
  height: 132px;
  flex-direction: column;
  margin-top: 55px;
  padding: 10px;
  border: 1px solid rgba(17, 17, 17, 0.035);
  border-radius: 26px;
  opacity: 0;
  visibility: hidden;
  background: var(--white);
  box-shadow:
    0 12px 38px rgba(24, 24, 24, 0.025),
    inset 0 1px rgba(255, 255, 255, 0.9);
  transform: translateY(24px);
  will-change: transform, opacity;
}

.prompt-card textarea {
  display: block;
  width: 100%;
  height: 70px;
  padding: 10px 10px 4px;
  overflow: hidden;
  border: 0;
  outline: 0;
  color: #27272a;
  background: transparent;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  resize: none;
}

.prompt-card textarea::placeholder {
  color: rgba(63, 63, 70, 0.46);
  opacity: 1;
}

.prompt-card__footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 32px;
}

.icon-button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.icon-button--add {
  justify-self: start;
  color: #171717;
  background: transparent;
  transition: background 180ms ease;
}

.icon-button--add:hover {
  background: #f2f2f1;
}

.icon-button--submit {
  justify-self: end;
  color: #fff;
  background: #181818;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button--submit:hover {
  background: #2d2d2d;
  transform: translateY(-1px);
}

.build-mode {
  display: inline-flex;
  width: 163px;
  height: 32px;
  padding: 2px;
  border-radius: 999px;
  background: #f0f0ef;
}

.build-mode__button {
  flex: 1;
  padding: 0;
  border-radius: 999px;
  color: rgba(39, 39, 42, 0.56);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.build-mode__button.is-active {
  color: #222;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 20, 20, 0.08);
}

@media (min-width: 901px) and (max-width: 1439px) {
  .hero-media--right {
    left: 82.78vw;
    width: 14.5vw;
    height: 14.5vw;
  }

  .hero-media--left {
    left: -1.6vw;
    width: 16vw;
    height: 16vw;
  }

  .hero-media--art {
    left: 16.04vw;
    width: 12.5vw;
    height: 12.5vw;
  }

  .hero-media--portrait {
    left: 80.21vw;
    width: 12vw;
    height: 12vw;
  }

  .hero-media--mini {
    left: 17.15vw;
    width: 13vw;
    height: 13vw;
  }

  .hero-media--website {
    left: 71.39vw;
    width: 11.5vw;
    height: 11.5vw;
  }

  .hero-media--bottom {
    left: 49.24vw;
    width: 15vw;
    height: 15vw;
  }
}

@media (max-width: 1080px) {
  .site-header {
    padding-inline: 24px;
  }

  .nav-links {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: 20px;
  }

  .nav-links,
  .header-button--soft {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-stage {
    perspective: 900px;
  }

  .hero-content {
    top: 50%;
    width: calc(100% - 40px);
    transform: translate(-50%, -50%);
  }

  .portal {
    --portal-font-size: 44px;
    width: 244px;
    height: 52px;
  }

  .hero-title {
    width: min(620px, 100%);
    margin-top: 23px;
    font-size: 48px;
    letter-spacing: -1.35px;
    line-height: 0.98;
    white-space: normal;
  }

  .prompt-card {
    width: min(509px, 100%);
    margin-top: 42px;
  }

  .hero-media--art {
    top: 12.5%;
    left: 7%;
    width: 140px;
    height: 140px;
  }

  .hero-media--website {
    top: 11.5%;
    right: 7%;
    left: auto;
    width: 124px;
    height: 124px;
  }

  .hero-media--left {
    top: auto;
    bottom: 7%;
    left: -42px;
    width: 185px;
    height: 185px;
  }

  .hero-media--right {
    top: auto;
    right: -76px;
    bottom: 15%;
    left: auto;
    width: 180px;
    height: 180px;
  }

  .hero-media--portrait {
    top: auto;
    right: 7%;
    bottom: 1.5%;
    left: auto;
    width: 125px;
    height: 125px;
  }

  .hero-media--mini,
  .hero-media--bottom {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand__word {
    font-size: 16px;
  }

  .header-button--dark {
    height: 38px;
  }

  .hero-title {
    max-width: 360px;
    font-size: clamp(34px, 11vw, 46px);
  }

  .hero-cta {
    margin-top: 38px;
  }

  .headline-break {
    display: block;
  }

  .headline-space {
    display: block;
    width: 0;
    height: 0;
  }

  .prompt-card {
    height: 136px;
    margin-top: 36px;
  }

  .build-mode {
    width: 148px;
  }

  .hero-media--right {
    right: -88px;
  }

  .hero-media--portrait {
    right: 3%;
    bottom: -16px;
  }
}

@media (max-height: 700px) and (min-width: 901px) {
  .hero-content {
    transform: translate(-50%, -50%) scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
