:root {
  --paper: #ffffff;
  --ink: #171714;
  --muted: #a4a29b;
  --line: rgba(23, 23, 20, 0.13);
  --electric: #2559f6;
  --lime: #c7f36b;
  --unread: #c9c9c7;
  --footer-ink: #77756e;
  --toggle-track-bg: #171714;
  --toggle-thumb-bg: #ffffff;
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --column: 50.5rem;
  --copy-size: clamp(2.25rem, 4vw, 3.4rem);
  --copy-leading: 1.48;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --confetti-count: 120;
  --confetti-gravity: 1300;
  --confetti-size: 8px;
  --confetti-sway: 16;
  --confetti-bounce: 0.3;
  --confetti-hold: 1600ms;
  --confetti-fade: 600ms;
  --gradient-text-hue-dur: 4000ms;
  --gradient-text-drift-dur: 5000ms;
  --toggle-dur: 350ms;
  --toggle-travel: 14.66px;
  --toggle-ov1: 1px;
  --toggle-ov2: 0px;
  --toggle-track: 0ms;
  --toggle-ease: cubic-bezier(0.34, 1.35, 0.64, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #151513;
  --ink: #f4f4ef;
  --muted: #aaa9a3;
  --line: rgba(244, 244, 239, 0.15);
  --unread: #5d5d59;
  --footer-ink: #aaa9a3;
  --toggle-track-bg: #f4f4ef;
  --toggle-thumb-bg: #151513;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Outfit", sans-serif;
  font-stretch: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  transition: color 260ms ease, background-color 260ms ease;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

a {
  color: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] .page-noise {
  opacity: 0.025;
  mix-blend-mode: screen;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--column), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  padding: 2rem 0 0;
  font-size: 0.88rem;
}

.identity {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 1.08rem;
  font-weight: 500;
}

.social-links a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: opacity 360ms var(--ease);
}

.social-links a:hover {
  opacity: 0.5;
}

main {
  position: relative;
  z-index: 1;
}

.copy-column {
  width: min(var(--column), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.intro {
  padding-top: clamp(15rem, 34vh, 20rem);
}

h1,
.lead,
.statement,
.conversation-link {
  margin: 0;
  font-size: var(--copy-size);
  line-height: var(--copy-leading);
  letter-spacing: -0.01em;
}

.lead,
.statement,
h1 {
  font-stretch: normal;
  font-weight: 400;
}

.lead {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.reader-text .word {
  color: var(--unread);
  transition: color 220ms ease;
}

.reader-text .word.is-read {
  color: var(--ink);
}

.ai-trigger .word.is-read {
  color: transparent;
  background-image:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 67 42' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='0.88'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(0.34726 -1.3118e-7 8.6482e-7 0.89585 33.5 21)'><stop stop-color='rgba(0,110,245,1)' offset='0'/><stop stop-color='rgba(0,110,245,0)' offset='1'/></radialGradient></defs></svg>"),
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 67 42' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='0.5'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(-1.3 0.25 -1.2633 -2.7471 33.5 21)'><stop stop-color='rgba(0,110,245,1)' offset='0'/><stop stop-color='rgba(0,110,245,0)' offset='1'/></radialGradient></defs></svg>"),
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 67 42' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='0.4'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(1.05 -0.8 0.46018 3.6184 33.5 21)'><stop stop-color='rgba(204,0,167,1)' offset='0'/><stop stop-color='rgba(170,0,204,0)' offset='0.71709'/></radialGradient></defs></svg>"),
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 67 42' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(-0.51067 -3.3275e-16 -4.3352e-14 -1.1396 33.5 21)'><stop stop-color='rgba(204,0,167,1)' offset='0'/><stop stop-color='rgba(170,0,204,0)' offset='1'/></radialGradient></defs></svg>"),
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 67 42' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(-0.45 -0.75 1.9052 -0.7091 33.5 21)'><stop stop-color='rgba(255,173,85,1)' offset='0'/><stop stop-color='rgba(255,173,85,0)' offset='1'/></radialGradient></defs></svg>"),
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 67 42' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(1.25 -0.35 -0.4013 3.5959 33.5 21)'><stop stop-color='rgba(0,204,68,1)' offset='0'/><stop stop-color='rgba(0,196,102,0.75)' offset='0.25'/><stop stop-color='rgba(0,187,136,0.5)' offset='0.5'/><stop stop-color='rgba(0,170,204,0)' offset='1'/></radialGradient></defs></svg>"),
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 67 42' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(-0.87391 0.73043 -4.1482 -1.9503 33.5 21)'><stop stop-color='rgba(0,170,204,1)' offset='0'/><stop stop-color='rgba(0,170,204,0)' offset='1'/></radialGradient></defs></svg>"),
    linear-gradient(rgb(108, 108, 108) 0%, rgb(216, 216, 216) 100%);
  background-position:
    100% 0%,
    0% 50%,
    100% 50%,
    0% 100%,
    0% 0%,
    50% 0%,
    50% 100%,
    0 0;
  background-size:
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    100% 100%;
  background-repeat: no-repeat;
  font-weight: 800;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    gradient-text-hue var(--gradient-text-hue-dur) linear infinite,
    gradient-text-drift var(--gradient-text-drift-dur) ease-in-out infinite;
}

@keyframes gradient-text-hue {
  from {
    filter: hue-rotate(0deg) saturate(1.3);
  }

  to {
    filter: hue-rotate(-360deg) saturate(1.3);
  }
}

@keyframes gradient-text-drift {
  0%,
  100% {
    background-position:
      100% 0%,
      0% 50%,
      100% 50%,
      0% 100%,
      0% 0%,
      50% 0%,
      50% 100%,
      0 0;
  }

  25% {
    background-position:
      100% 100%,
      50% 0%,
      50% 100%,
      0% 0%,
      100% 0%,
      100% 50%,
      0% 50%,
      0 0;
  }

  50% {
    background-position:
      0% 100%,
      100% 50%,
      0% 50%,
      100% 0%,
      100% 100%,
      50% 100%,
      50% 0%,
      0 0;
  }

  75% {
    background-position:
      0% 0%,
      50% 100%,
      50% 0%,
      100% 100%,
      0% 100%,
      0% 50%,
      100% 50%,
      0 0;
  }
}

.startup-moment,
.companies-moment,
.products-moment,
.happier-moment {
  white-space: nowrap;
}

.startup-circle-slot {
  position: relative;
  display: inline-block;
  width: 0;
  height: 1.48em;
  margin: 0;
  vertical-align: middle;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-0.06em);
  transition: width 420ms var(--ease), margin-left 420ms var(--ease),
    margin-right 420ms var(--ease);
}

.startup-circle-slot.is-visible {
  width: 1.6em;
  margin-right: 0.2em;
  margin-left: 0.22em;
  pointer-events: auto;
}

.startup-circle {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  width: 1.6em;
  height: 1.6em;
  place-items: center;
  border: 0.075em solid var(--paper);
  border-radius: 50%;
  opacity: 0;
  background: #ff6200;
  transform: translateY(-50%) scale(0) translateZ(0);
  transition: opacity 280ms ease,
    transform 500ms cubic-bezier(0.16, 1, 1, 1),
    translate 300ms cubic-bezier(0.16, 1, 1, 1);
}

.startup-circle svg {
  width: 68%;
  height: 68%;
  fill: #fff;
}

.startup-circle-slot.is-visible .startup-circle {
  opacity: 1;
  transform: translateY(-50%) scale(1) translateZ(0);
}

.startup-circle-slot::after,
.company-person::after,
.product-item::after {
  position: absolute;
  top: calc(100% + 0.18em);
  left: 50%;
  z-index: 30;
  padding: 0.78em 1.2em;
  border-radius: 999px;
  color: var(--paper);
  opacity: 0;
  background: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: clamp(0.95rem, 0.42em, 1.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, 0.65em) scale(0.94);
  transform-origin: top center;
  content: attr(data-label);
  transition: opacity 260ms ease,
    transform 320ms cubic-bezier(0.19, 1, 0.22, 1);
}

.startup-circle-slot::after {
  top: calc(100% + 0.12em);
  left: 46%;
}

.company-cluster {
  position: relative;
  display: inline-flex;
  width: 0;
  height: 1.48em;
  align-items: center;
  margin: 0;
  vertical-align: middle;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-0.06em);
  transition: width 520ms var(--ease), margin-left 520ms var(--ease),
    margin-right 520ms var(--ease);
}

.company-cluster.is-visible {
  width: 4.3em;
  margin-right: 0.2em;
  margin-left: 0.22em;
  pointer-events: auto;
}

.company-person {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.6em;
  min-width: 1.6em;
  height: 1.6em;
}

.company-person + .company-person {
  margin-left: -0.25em;
}

.company-person:nth-child(2) {
  z-index: 2;
}

.company-person:nth-child(3) {
  z-index: 3;
}

.company-circle {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 0.075em solid var(--paper);
  border-radius: 50%;
  opacity: 0;
  background: #262624;
  transform: scale(0) translateZ(0);
  transform-origin: center;
  transition: opacity 300ms ease,
    transform 520ms cubic-bezier(0.16, 1, 1, 1),
    translate 300ms cubic-bezier(0.16, 1, 1, 1);
}

.company-person:nth-child(2) .company-circle {
  transition-delay: 55ms;
}

.company-person:nth-child(3) .company-circle {
  transition-delay: 110ms;
}

.company-cluster.is-visible .company-circle {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

.company-circle svg {
  width: 58%;
  height: 58%;
  fill: #fff;
}

.company-circle-one {
  background: #25d366;
}

.company-circle-two {
  background: #0866ff;
}

.company-circle-three {
  background: #003087;
}

.product-tiles {
  position: relative;
  display: inline-flex;
  width: 0;
  height: 1.48em;
  align-items: center;
  gap: 0.12em;
  margin: 0;
  vertical-align: middle;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-0.06em);
  transition: width 480ms var(--ease), margin-left 480ms var(--ease),
    margin-right 480ms var(--ease);
}

.product-tiles-pair.is-visible {
  width: 3.32em;
  margin-right: 0.2em;
  margin-left: 0.22em;
}

.product-tiles-single.is-visible {
  width: 1.6em;
  margin-left: 0.22em;
}

.product-tiles.is-visible {
  pointer-events: auto;
}

.product-item {
  position: relative;
  display: block;
  width: 1.6em;
  min-width: 1.6em;
  height: 1.6em;
  color: inherit;
  text-decoration: none;
}

.product-tile {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0.075em solid var(--paper);
  border-radius: 0.48em;
  opacity: 0;
  transform: scale(0) rotate(-10deg) translateZ(0);
  transform-origin: center;
  transition: opacity 280ms ease,
    transform 520ms cubic-bezier(0.16, 1, 1, 1),
    translate 300ms cubic-bezier(0.16, 1, 1, 1);
}

.product-item:nth-child(2) .product-tile {
  transform: scale(0) rotate(10deg) translateZ(0);
  transition-delay: 55ms;
}

.product-tiles.is-visible .product-tile {
  opacity: 1;
  transform: scale(1) rotate(-3deg) translateZ(0);
}

.product-tiles.is-visible .product-item:nth-child(2) .product-tile {
  transform: scale(1) rotate(3deg) translateZ(0);
}

.product-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tile-one {
  background: var(--ink);
}

.product-tile-two {
  background: var(--electric);
}

.product-tile-three {
  background: #ffc70a;
}

@media (hover: hover) {
  .startup-circle-slot.is-visible:hover .startup-circle,
  .company-cluster.is-visible .company-person:hover .company-circle,
  .product-tiles.is-visible .product-item:hover .product-tile {
    translate: 0 -0.13em;
  }

  .startup-circle-slot.is-visible:hover::after,
  .company-cluster.is-visible .company-person:hover::after,
  .product-tiles.is-visible .product-item:hover::after {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.story {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.reader-text strong {
  font-weight: 400;
}

.statement + .statement {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.contact {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(10rem, 22vw, 18rem);
}

.confetti-stage {
  position: relative;
  width: 100%;
  margin-top: 0.8rem;
}

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
}

.conversation-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.conversation-link::after {
  position: absolute;
  right: 0;
  bottom: -0.18em;
  left: 0;
  height: clamp(3px, 0.1em, 5px);
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}

.conversation-link.is-read::after {
  transform: scaleX(1);
}

.conversation-link:focus-visible,
.identity:focus-visible,
.social-links a:focus-visible,
.startup-circle-slot:focus-visible,
.product-item:focus-visible,
.t-toggle:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 0.4rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--column), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  padding: 1.35rem 0 2.2rem;
  color: var(--footer-ink);
  font: 500 0.78rem/1.5 "Outfit", sans-serif;
  letter-spacing: -0.01em;
  transition: color 260ms ease;
}

.site-footer p {
  margin: 0;
}

.t-toggle {
  display: block;
  width: 34.66px;
  height: 20px;
  flex: 0 0 auto;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: var(--toggle-track-bg);
  cursor: pointer;
  appearance: none;
  transition: background var(--toggle-track) var(--toggle-ease),
    opacity 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.t-toggle:hover {
  opacity: 0.65;
}

.t-toggle-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--toggle-thumb-bg);
  translate: 0 0;
  will-change: translate;
}

.t-toggle[data-on="true"] .t-toggle-thumb {
  translate: var(--toggle-travel) 0;
}

.t-toggle.is-init[data-on="true"] .t-toggle-thumb {
  animation: t-toggle-on var(--toggle-dur) var(--toggle-ease) both;
}

.t-toggle.is-init[data-on="false"] .t-toggle-thumb {
  animation: t-toggle-off var(--toggle-dur) var(--toggle-ease) both;
}

@keyframes t-toggle-on {
  0% {
    translate: 0 0;
  }

  55% {
    translate: calc(var(--toggle-travel) + var(--toggle-ov1)) 0;
  }

  80% {
    translate: calc(var(--toggle-travel) - var(--toggle-ov2)) 0;
  }

  100% {
    translate: var(--toggle-travel) 0;
  }
}

@keyframes t-toggle-off {
  0% {
    translate: var(--toggle-travel) 0;
  }

  55% {
    translate: calc(0px - var(--toggle-ov1)) 0;
  }

  80% {
    translate: var(--toggle-ov2) 0;
  }

  100% {
    translate: 0 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 1.25rem;
  }

  .intro {
    padding-top: clamp(13rem, 32vh, 17rem);
  }

  h1,
  .lead,
  .statement,
  .conversation-link {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: var(--copy-leading);
  }

  .lead {
    margin-top: 3rem;
  }

  .story,
  .contact {
    padding-top: 3rem;
  }

  .contact {
    padding-bottom: 14rem;
  }

  .site-footer {
    padding-bottom: 1.5rem;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reader-text .word {
    color: var(--ink);
  }

  .ai-trigger .word.is-read {
    color: transparent;
    animation: none;
  }

  .t-toggle-thumb {
    animation: none !important;
  }
}
