@font-face {
  font-family: "TRJN DaVinci";
  src:
    local("TRJN DaVinci"),
    local("TRJN DaVinci Bold"),
    local("TRJN DaVinci Bold-Trial"),
    local("TRJN_DaVinci:Bold-Trial");
  font-style: normal;
  font-weight: 700;
}

:root {
  --paper: #fff9d3;
  --paper-soft: #fff7d8;
  --ink: #271d16;
  --ink-soft: #6b5a45;
  --muted: #8c7d67;
  --accent: #008cff;
  --accent-deep: #0064dd;
  --accent-glow: #99edff;
  --danger: #d52f20;
  --canvas: #fffdf8;
  --canvas-warm: #fffaf0;
  --shadow-xl: 0 32px 60px rgba(32, 28, 19, 0.18);
  --shadow-soft: 0 18px 38px rgba(40, 32, 23, 0.12);
  --paper-text-shadow: 2px 5px 6px rgba(0, 0, 0, 0.5);
  --display-font: "TRJN DaVinci", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  --flow-section-gap: clamp(2.75rem, 6vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(calc(-100% - 2rem));
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition:
    transform 140ms ease,
    opacity 140ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.container {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.stack {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stack--tight {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.eyebrow,
.display-title,
.section-copy,
.project-card__title {
  font-family: var(--display-font);
}

.eyebrow {
  margin: 0;
  color: #fff9d3;
  text-align: center;
  text-shadow: var(--paper-text-shadow);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #000;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}

.display-title {
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(3.1rem, 7vw, 5.318rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.03em;
}

.display-title--accent {
  color: #008cff;
  text-align: center;
  text-shadow: 0 8.509px 8.509px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke-width: 2.13px;
  -webkit-text-stroke-color: #00c3ff;
}

.section-copy {
  margin: 0 auto;
  max-width: 48rem;
  color: #fff9d3;
  text-align: center;
  text-wrap: balance;
  text-shadow: var(--paper-text-shadow);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #000;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.section-copy--danger {
  max-width: 42rem;
  color: #f00;
  text-shadow: none;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #be4242;
  font-size: clamp(1.8rem, 4vw, 40px);
}

.section-copy--danger span {
  display: inline-block;
  margin-top: 0.9rem;
}

.section-copy--soft {
  max-width: 50rem;
}

.section-copy--muted {
  max-width: 58rem;
}

.section-copy--light {
  max-width: 34rem;
}

.hero {
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 0;
}

.problem {
  padding-top: clamp(0.9rem, 2vw, 1.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.problem .stack {
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.problem .device-frame {
  margin-bottom: clamp(-2.5rem, -4vw, -1rem);
  overflow: visible;
}

.problem__lead,
.problem__detail {
  max-width: 72rem;
}

.problem__detail {
  margin-top: clamp(0.5rem, 1vw, 1rem);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.solution {
  padding-top: 0;
  padding-bottom: var(--flow-section-gap);
}

.solution .stack {
  gap: clamp(2.2rem, 5vw, 3.4rem);
}

.spaces {
  padding-top: 0;
  padding-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.spaces .stack {
  gap: clamp(2.4rem, 5vw, 3.8rem);
}

.hero__scene {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__content {
  --hero-wordmark-width: clamp(48rem, 82vw, 92rem);
  position: relative;
  z-index: 12;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  padding: 0;
}

.hero__lockup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--hero-wordmark-width);
  transform: translate3d(-50%, -50%, 0);
}

.hero__eyebrow {
  position: absolute;
  left: 50%;
  top: clamp(5.8rem, calc(23svh - (var(--hero-wordmark-width) * 0.006375) + 2.2rem), 17.8rem);
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100vw - 2rem);
  white-space: nowrap;
  z-index: 3;
}

.hero__wordmark {
  width: 100%;
  aspect-ratio: 1600 / 408;
  height: auto;
  object-fit: contain;
}

.hero__float {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.hero__float.hero__float--animated {
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  width: var(--float-base-width);
  transform: translate3d(var(--float-x), var(--float-y), 0);
}

.hero__float.hero__float--animated .sprite {
  transform: scale(var(--float-scale, 1)) rotate(var(--float-rotate, 0deg));
  transform-origin: center center;
  will-change: transform;
}

.hero__float--disk {
  left: clamp(-11rem, -5vw, -1.75rem);
  top: clamp(-20.5rem, -3vw, -1.75rem);
  width: clamp(29.5rem, 39vw, 45rem);
  transform: translateX(-50%) translatey(-15%);
}

.hero__float--roll {
  right: clamp(-10rem, -5vw, -1.25rem);
  top: clamp(-7.5rem, -2vw, -0.75rem);
  width: clamp(35.5rem, 39vw, 45rem);
  transform: translateX(35%)  translatey(-15%);
}

.hero__float--tent {
  left: 45.5%;
  top: clamp(-1.25rem, 0vw, 0.5rem);
  width: clamp(28.25rem, 33vw, 45rem);
  transform: translateX(-60%) rotate(9deg);
}

.hero__float--mirror {
  left: clamp(-8rem, -4vw, -0.25rem);
  bottom: clamp(-2.75rem, 1vw, 1.75rem);
  width: clamp(38.5rem, 40vw, 48rem);
  transform: translateX(-45%) translatey(+35%);
}

.hero__float--candle {
  left: 50%;
  bottom: clamp(-3rem, -1vw, 0rem);
  width: clamp(40rem, 35vw, 45rem);
  transform: translateX(-50%) translatey(+20%);
}

.hero__float--pretzel {
  right: clamp(-11rem, -5vw, -1rem);
  bottom: clamp(-1.75rem, 1vw, 1.75rem);
  width: clamp(29.5rem, 39vw, 45rem);
  transform: translateX(45%);
}

.intro-apps {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.intro-app {
  position: absolute;
  opacity: var(--intro-app-opacity, 0);
  transform: translate3d(var(--intro-app-shift-x, 0px), var(--intro-app-shift-y, 24px), 0)
    scale(calc(var(--intro-app-scale, 0.35) * 0.20));
  transform-origin: center center;
  will-change: transform, opacity;
}

.intro-app--gmail {
  left: -30%;
  top: -45%;
  width: 19.5%;
}

.intro-app--instagram {
  left: 25%;
  top: -25%;
  width: 13.5%;
}

.intro-app--slack {
  right: 12%;
  top: 5%;
  width: 15%;
}

.intro-app--message {
  left: 33%;
  top: 5%;
  width: 15%;
}

.pill-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(23.5625rem, calc(100vw - 2rem));
  aspect-ratio: 377 / 111;
  padding: 0 2rem;
  border-radius: 999px;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transform-origin: center;
  background:
    linear-gradient(
      90deg,
      rgba(10, 130, 230, 0) 0%,
      #2f7fe0 25%,
      #2f7fe0 75%,
      rgba(10, 130, 230, 0) 100%
    ) center top 7% / 64% 0.1rem no-repeat,
    linear-gradient(180deg, #38a8f3 0%, #99edff 100%);
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  box-shadow:
    0 30px 12px -20px rgba(0, 134, 232, 0.34),
    0 48px 36px -11px rgba(153, 237, 255, 0.65),
    inset 0 0 40px rgba(0, 77, 227, 0.85);
  filter: saturate(1.05);
}

.pill-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 7%;
  right: 7%;
  top: 8%;
  height: 30%;
  background: url("site-assets/button-highlight.svg") center / 100% 100% no-repeat;
  opacity: 1;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.pill-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 16%;
  background: url("site-assets/button-glow.svg") center / 100% 100% no-repeat;
  opacity: 1;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

.pill-button span {
  position: relative;
  z-index: 1;
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.4vw, 2.5rem);
  line-height: normal;
  text-shadow: 0 1px 4px rgba(23, 64, 143, 0.8);
  transition: transform 180ms ease;
}

.pill-button:hover:not(.pill-button--disabled) {
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 26px 10px -20px rgba(0, 134, 232, 0.27),
    0 41px 32px -11px rgba(153, 237, 255, 0.55),
    inset 0 -25px 35px rgba(0, 77, 227, 0.45);
  filter: none;
}

.pill-button:hover:not(.pill-button--disabled) span {
  transform: none;
}

.pill-button:active:not(.pill-button--disabled) {
  transform: translateY(2px) scale(0.99);
  box-shadow:
    0 18px 8px -16px rgba(0, 134, 232, 0.3),
    0 24px 22px -12px rgba(153, 237, 255, 0.45),
    inset 0 -18px 28px rgba(0, 77, 227, 0.5);
  filter: saturate(1.02);
}

.pill-button:active:not(.pill-button--disabled) span {
  transform: translateY(1px) scale(0.985);
}

.pill-button:focus-visible {
  outline: 3px solid rgba(0, 140, 255, 0.35);
  outline-offset: 4px;
}

.pill-button--disabled {
  cursor: default;
}

.floating-download {
  position: fixed;
  left: 50%;
  bottom: calc(1.35rem + env(safe-area-inset-bottom));
  z-index: 20;
  transform: translateX(-50%);
  pointer-events: none;
}

.floating-download__button {
  pointer-events: auto;
}

.device-frame {
  margin: 0 auto;
  width: min(56rem, 100%);
}

.device-frame--intro {
  position: relative;
  z-index: 2;
  width: min(31rem, 78vw);
}

.device-frame--large {
  width: min(62rem, 100%);
}

.device-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-grid {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.4rem);
  align-items: start;
}

.project-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.9rem;
  text-align: center;
}

.project-card__sprite {
  width: min(100%, var(--card-width, 8rem));
}

.emoji-scroll-active .project-card__sprite {
  opacity: 0;
}

.project-card__title {
  margin: 0;
  color: #000;
  text-align: center;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke-width: 0;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.workspace {
  position: relative;
  z-index: 1;
  margin-top: clamp(-7rem, -10vw, -4rem);
  padding-top: 0;
  padding-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.workspace--carousel {
  min-height: calc(var(--workspace-device-height, 0px) + var(--workspace-scroll-length, 0px));
  padding-bottom: 0;
}

.workspace__sticky {
  position: sticky;
  top: var(--workspace-stick-top, 0px);
}

.workspace .container {
  width: min(1280px, calc(100% - 0.75rem));
}

.workspace .stack {
  gap: 0;
}

.workspace .device-frame {
  position: relative;
  z-index: 12;
  margin-bottom: clamp(-3rem, -5vw, -1.5rem);
}

.workspace__frame {
  position: relative;
}

.workspace-carousel {
  position: absolute;
  inset: 0;
  z-index: 13;
  pointer-events: none;
  overflow: hidden;
}

.workspace-carousel__screen {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 2940 / 3074;
  overflow: hidden;
  transform: translateX(-50%);
}

.workspace-carousel__filter,
.workspace-carousel__topframe {
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

.workspace-carousel__filter {
  z-index: 14;
  opacity: 0;
}

.workspace-carousel__topframe {
  z-index: 15;
}

.workspace-carousel__project {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 2940 / 3074;
  opacity: 0;
  transform: translate3d(-50%, 0, 0) translate3d(var(--workspace-x, 0px), 0, 0);
  will-change: transform, opacity;
}

.workspace-carousel__project img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story {
  position: relative;
  min-height: 100vw;
  overflow: clip;
  background: #ffffff;
}

.story__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.story__background img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(100%, 60rem);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.about {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding-top: var(--flow-section-gap);
  padding-bottom: calc(clamp(8rem, 14vw, 10rem) + env(safe-area-inset-bottom));
}

.about__content {
  --about-content-offset: 0px;
  position: relative;
  z-index: 12;
  justify-items: center;
  transform: translateY(var(--about-content-offset));
  will-change: transform;
}

.about__button {
  width: min(16.49375rem, calc((100vw - 2rem) * 0.7));
  filter: grayscale(1);
}

.about__button:hover:not(.pill-button--disabled) {
  filter: grayscale(1);
}

.about__button:active:not(.pill-button--disabled) {
  filter: grayscale(1);
}

.about__privacy {
  max-width: none;
  margin-top: clamp(0.25rem, 1vw, 0.75rem);
  white-space: nowrap;
}

.about__button span {
  font-size: clamp(1.35rem, 3.1vw, 1.75rem);
}

.problem .section-copy,
.solution .display-title,
.solution .section-copy,
.spaces .section-copy,
.about .eyebrow,
.about .section-copy {
  position: relative;
  z-index: 12;
}

.about__eyebrow {
  color: var(--paper);
  text-shadow: 
  0 0 20px rgba(16, 12, 9, 0.8),
  0 0 40px rgba(16, 12, 9, 0.7),
  0 0 80px rgba(16, 12, 9, 0.5);
}

.about__wordmark {
  width: min(60rem, 96vw);
  aspect-ratio: 1600 / 428;
  height: auto;
  object-fit: contain;
}

.sprite {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.sprite img {
  position: absolute;
  max-width: none;
  width: var(--img-width);
  height: var(--img-height);
  left: var(--img-left);
  top: var(--img-top);
}

.sprite--disk {
  aspect-ratio: 235.041 / 209.712;
  --img-width: 266.76%;
  --img-height: 199.29%;
  --img-left: -24.64%;
  --img-top: -2.41%;
}

.sprite--roll {
  aspect-ratio: 235.041 / 209.712;
  --img-width: 271.81%;
  --img-height: 203.06%;
  --img-left: -141.81%;
  --img-top: 0.9%;
}

.sprite--tent {
  aspect-ratio: 217.882 / 209.712;
  --img-width: 226.12%;
  --img-height: 156.6%;
  --img-left: -6.68%;
  --img-top: -72.23%;
}

.sprite--pretzel {
  aspect-ratio: 212.708 / 209.712;
  --img-width: 280.13%;
  --img-height: 189.4%;
  --img-left: -25.85%;
  --img-top: 1.64%;
}

.sprite--mirror-ball {
  aspect-ratio: 212.708 / 209.712;
  --img-width: 301.81%;
  --img-height: 204.05%;
  --img-left: -174.85%;
  --img-top: -2.22%;
}

.sprite--candle {
  aspect-ratio: 212.708 / 209.712;
  --img-width: 295.29%;
  --img-height: 199.65%;
  --img-left: -28.49%;
  --img-top: -2.48%;
}

.motion-layer,
.reveal-block {
  will-change: transform, opacity;
}

@media (max-width: 900px) {
  .section {
    padding: clamp(3rem, 7vw, 5rem) 0;
  }

  .hero__scene {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__float--disk {
    left: -5rem;
    top: -3.4rem;
    width: clamp(13rem, 37vw, 19.5rem);
  }

  .hero__float--roll {
    right: -5rem;
    top: -3.2rem;
    width: clamp(12.25rem, 37vw, 18rem);
  }

  .hero__float--tent {
    left: 45.5%;
    top: -0.35rem;
    width: clamp(12.5rem, 35vw, 17.5rem);
  }

  .hero__float--mirror {
    left: -4.6rem;
    bottom: 1rem;
    width: clamp(13rem, 38vw, 19rem);
  }

  .hero__float--pretzel {
    right: -4.6rem;
    bottom: 0.9rem;
    width: clamp(13rem, 38vw, 19rem);
  }

  .hero__float--candle {
    bottom: 0.35rem;
    width: clamp(7.25rem, 17vw, 9.75rem);
  }

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

  .story__background img {
    width: max(100%, 54rem);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.25rem);
  }

  .section {
    padding: 2.75rem 0;
  }

  .hero__content {
    --hero-wordmark-width: min(116vw, 42rem);
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__eyebrow {
    font-size: clamp(1rem, 3.9vw, 1.25rem);
  }

  .hero__float--candle {
    bottom: 2.5rem;
  }

  .section-copy {
    max-width: 26rem;
    font-size: clamp(1.05rem, 5.2vw, 1.7rem);
    -webkit-text-stroke-width: 0.75px;
  }

  .section-copy--danger {
    font-size: clamp(1.45rem, 6vw, 2.1rem);
  }

  .display-title {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .display-title--accent {
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.25);
    -webkit-text-stroke-width: 1.2px;
  }

  .project-card__title {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
  }

  .workspace .container {
    width: calc(100% - 0.25rem);
  }

  .story__background img {
    width: max(100%, 52rem);
  }

  .about {
    padding-top: clamp(2.75rem, 10vw, 4rem);
  }

  .floating-download__button {
    width: min(88vw, 22rem);
  }
}

@media (max-width: 460px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__scene {
    min-height: 32rem;
  }

  .hero__float--disk {
    left: -3.35rem;
    top: -1.45rem;
    width: 9.75rem;
  }

  .hero__float--roll {
    right: -3.35rem;
    top: -1.35rem;
    width: 9.5rem;
  }

  .hero__float--tent {
    left: 45.5%;
    top: -0.2rem;
    width: 9.15rem;
  }

  .hero__float--mirror {
    left: -2.7rem;
    width: 9.75rem;
    bottom: 2rem;
  }

  .hero__float--pretzel {
    right: -2.9rem;
    width: 10rem;
    bottom: 1.8rem;
  }

  .hero__float--candle {
    bottom: 1.55rem;
    width: 5.85rem;
  }

  .story__background img {
    width: max(100%, 46rem);
  }

  .floating-download {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .floating-download__button {
    width: min(84vw, 19rem);
  }
}
