/* –––––––––––––––––––––––––––––––––––––––– */
/* BASE RESET */
/* –––––––––––––––––––––––––––––––––––––––– */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overscroll-behavior: none;
}
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(
    180deg,
    #DEF2F7 0%,
    #FFFFFF 100%
  );
  color: #0f1a1c;

}

/* –––––––––––––––––––––––––––––––––––––––– */
/* TYPOGRAPHY */
/* –––––––––––––––––––––––––––––––––––––––– */
@font-face {
  font-family: 'Orleans Roman';
  src: url('/nyc-landing/assets/fonts/orleans-roman.woff2') format('woff2'),
  url('/nyc-landing/assets/fonts/orleans-roman.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/nyc-landing/assets/fonts/IBMPlexSans-VariableFont.woff2') format('woff2'),
    url('/nyc-landing/assets/fonts/IBMPlexSans-VariableFont.ttf') format('truetype');
  font-weight: 350 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/nyc-landing/assets/fonts/IBMPlexMono-Medium.woff2') format('woff2'),
  url('/nyc-landing/assets/fonts/IBMPlexMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

h1 {
  font-family: 'Orleans Roman', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #262c2e;
}

@media (min-width: 1025px) {
  h1 {
    font-size: 44px;
  }
}

.h1-link {
  color: #009ec9;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;

  font-family: 'Orleans Roman', serif;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;

  transition: opacity 0.2s ease;
}

.h1-link:hover {
  opacity: 0.8;
}

h2 {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  font-weight: 350;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.2px;
  color: #496970;
}

@media (min-width: 768px) {
  h2 {
    font-size: 28px;
    line-height: 36px;
  }
}

.light {
  font-weight: 400;
}

.bold {
  font-weight: 700;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2b3a3e;
}

/* tablets and up */
@media (min-width: 768px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.875rem;
  }
}

/* –––––––––––––––––––––––––––––––––––––––– */
/* COMPONENT ATOMS / BUTTONS */
/* –––––––––––––––––––––––––––––––––––––––– */
.global-cta {
  width: 100%;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  pointer-events: none;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.secondary-cta {
  font-family: 'Orleans Roman', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
  color: white;
  padding-inline: 40px;
  text-wrap: pretty;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  transform: translateY(10px);
}

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


/* -------------------------------------------------- */
/* BASE BUTTON (mobile default) */
/* -------------------------------------------------- */
.cta-hover {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 160px;
  height: 48px;
  border-radius: 999px;

  background: #009ec9; /* dark base */
  color: #fff;
  font-size: 16px;
  text-decoration: none;

  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
  border: solid 1px transparent;
}

/* Background layers off on mobile */
.cta-bg {
  display: none;
}

/* Text viewport */
.cta-text-viewport {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Text strip — single visible label on mobile */
.cta-text-strip {
  display: inline-flex;
}

.cta-text-strip .cta-text:nth-child(2) {
  display: none;
}

.cta-text {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  white-space: nowrap;
  color: #fff;
}

/* Tablet and up */
@media (min-width: 768px) {
  .cta-hover {
    width: 280px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* Show both labels */
  .cta-text-strip .cta-text:nth-child(2) {
    display: inline-flex;
  }

  /* backgrounds on */
  .cta-bg {
    display: block;
    position: absolute;
    inset: 0;
    will-change: transform;
  }

  .cta-bg-dark {
    background: #009ec9;
    z-index: 0;
  }

  .cta-bg-light {
    background: #2bb7dc;
    z-index: 1;
    transform: translateX(-100%);
  }

  /* Hover in: -100% → 0 */
  .cta-hover.is-hovering .cta-bg-light {
    animation: ctaLightIn 1s cubic-bezier(0.66, 0, 0.34, 1) forwards;
  }

  /* Hover out: 0 → +100% */
  .cta-hover.is-leaving .cta-bg-light {
    animation: ctaLightOut 1s cubic-bezier(0.66, 0, 0.34, 1) forwards;
  }

  @keyframes ctaLightIn {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: translateX(0);
    }
  }

  @keyframes ctaLightOut {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(100%);
    }
  }

  /* Text strip */
  .cta-text-viewport {
    position: relative;
    overflow: hidden;
    z-index: 2;
  }

  .cta-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    color: #fff;
  }

  /* Text strip — idle state */
  .cta-text-strip {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
  }

  /* Hover in: second → first */
  .cta-hover.is-hovering .cta-text-strip {
    animation: none;
  }

  @keyframes ctaTextIn {
    from {
      transform: translateX(calc(-100%));
    }
    to {
      transform: translateX(0);
    }
  }
}

/* –––––––––––––––––––––––––––––––––––––––– */
/* HEADER – LOGO */
/* –––––––––––––––––––––––––––––––––––––––– */
.site-header {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 150;
}

@media (min-width: 768px) {
  .site-header {
    top: 70px;
  }
}

.logo svg {
  height: 18px;
}

.logo {
  --logo-animation-duration: 600ms;
  --logo-animation-ease: cubic-bezier(0.1, 0.58, 0.28, 0.91);
  --translate-top-1: 0%;
  --translate-top-2: 2.4%;
  --translate-top-3: 3.3%;
  --translate-top-4: 3.8%;
  --translate-bottom-1: 2.3%;
  --translate-bottom-2: 2.7%;
  --translate-bottom-3: 1.5%;
  --translate-bottom-4: 8.3%;

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0f1a1c;
  z-index: 1;
  pointer-events: auto;
  width: 84px;
}

.logoTop {
  clip-path: inset(0% 0% 100% 0%);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateX(-4%);
  transition: clip-path var(--logo-animation-duration) var(--logo-animation-ease);
  width: 110%;
}

.logo[data-animate='true'] .logoTop {
  clip-path: inset(0% 0% 51% 0%);
}

.logoTop path:nth-child(1) {
  transform: translateX(var(--translate-top-1));
}

.logoTop path:nth-child(2) {
  transform: translateX(var(--translate-top-2));
}

.logoTop path:nth-child(3) {
  transform: translateX(var(--translate-top-3));
}

.logoTop path:nth-child(4) {
  transform: translateX(var(--translate-top-4));
}

.logoBottom {
  clip-path: inset(0% 0% 0% 0%);
  height: 100%;
  left: 0;
  position: absolute;
  top: -1px; /* Remove gap between split parts */
  transition: clip-path var(--logo-animation-duration) var(--logo-animation-ease);
  width: 110%;
}

.logo[data-animate='true'] .logoBottom {
  clip-path: inset(50% 0% 0% 0%);
}

.logoBottom path {
  transition: transform var(--logo-animation-duration) var(--logo-animation-ease);
}

.logo[data-animate='true'] .logoBottom path:nth-child(1) {
  transform: translateX(var(--translate-bottom-1));
}

.logo[data-animate='true'] .logoBottom path:nth-child(2) {
  transform: translateX(var(--translate-bottom-2));
}

.logo[data-animate='true'] .logoBottom path:nth-child(3) {
  transform: translateX(var(--translate-bottom-3));
}

.logo[data-animate='true'] .logoBottom path:nth-child(4) {
  transform: translateX(var(--translate-bottom-4));
}


/* –––––––––––––––––––––––––––––––––––––––– */
/* SECTION — HERO */
/* –––––––––––––––––––––––––––––––––––––––– */
.hero {
  position: relative;
  z-index: 0;
  height: 82vh;
  width: 100%;
  background: #DEF2F7;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

@media (min-width: 768px) {
  .hero {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Tablet and up */
@media (min-width: 1025px) {
  .hero {
    height: 100vh;
  }
}

/* media layer */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}



.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
  }
}

/* When video has frames, browsers flip this internally */
.hero-video:not([poster]) {
  opacity: 1;
}

/* –––––––––––––––––––––––––––––––––––––––– */
/* SECTION ONE */
/* –––––––––––––––––––––––––––––––––––––––– */
.section-one {
  z-index: 0;
  max-width: 100%;
  min-height: 380vh;
  display: flex;
  justify-content: center;
}

/* Sticky viewport */
.pin-stage {
  position: sticky;
  top: 35%;
  height: 70vh;
  width: 100%;
  z-index: 10;
}

/* Content container */
.pin-stack {
  position: relative;
  top: 0%;
  width: 100%;
  height: 30vh;
  margin: 0 auto;
}

/* Scroll anchor */
.pin-anchor {
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  padding: 0 1.875rem;
}

/* Shared animated item rules */
.pin-item {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  will-change: transform, opacity;
  text-align: left;
}

/* Stack order */
.section-one-title {
  z-index: 300;
  margin: 0px 0px 16px 0px;
}

.section-one-description {
  z-index: 300;
  margin: 0px;
  text-wrap: balance;
}

/* tablet */
@media (min-width: 641px) {
  .pin-stage {
    top: 35%;
  }

  .pin-anchor {
    left: 50%;
    transform: translateX(-50%);
    max-width: 60%;
    padding: 0;
  }

  .pin-item {
    text-align: center;
  }

  .section-one-title {
    padding-inline: 0;
    max-width: 560px;
    margin-bottom: 16px;
  }
}

/* desktop */
@media (min-width: 1200px) {
  .pin-stage {
    top: 35%;
  }

  .pin-anchor {
    max-width: 40%;
  }

  .section-one-title {
    max-width: 600px;
    margin-bottom: 32px;
  }

  .section-one-description {
    max-width: 700px;
  }
}

/* –––––––––––––––––––––––––––––––––––––––– */
/* SECTION — FOOTER */
/* –––––––––––––––––––––––––––––––––––––––– */
.footer {
  position: relative;
  height: 100vh;
  background: #e3e5e5;
  overflow: hidden;
  z-index: 0;
}

.footer:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 32, 0.5) 0%,
    rgba(227, 229, 229, 0) 40%
  );
  z-index: 1;
}

/* media layer */
.footer-media {
  position: absolute;
  inset: 0;
  z-index: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  animation: footerFadeIn 1.2s ease forwards;
}

@keyframes footerFadeIn {
  to {
    opacity: 1;
  }
}

/* –––––––––––––––––––––––––––––––––––––––– */
/* DOT GRID */
/* –––––––––––––––––––––––––––––––––––––––– */
.dot-grid-wrap {
  position: fixed;
  inset: 14px;
  pointer-events: none;
  z-index: 1;
}

/* Grid */
.dot-grid {
  width: 100%;
  height: auto;
  --columns: 12;
  display: grid;
  grid-template-columns: repeat(calc(var(--columns) - 1), 1fr);
  grid-auto-rows: 1fr;
}

.dot-cell {
  position: relative;
  aspect-ratio: 1 / 1;
}

/* Top-left */
.dot-cell::before,
.dot-cell::after,
.dot-cell > span::before,
.dot-cell > span::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  /* dot background colour */
  /* background: #009ec9; */
  transform: translate(-50%, -50%);
}

/* Top-left */
.dot-cell::before {
  top: 0;
  left: 0;
}

/* Top-Right */
.dot-cell::after {
  top: 0;
  left: 100%;
}

/* Bottom-Left */
.dot-cell > span::before {
  top: 100%;
  left: 0;
}

/* Bottom-Right */
.dot-cell > span::after {
  top: 100%;
  left: 100%;
}

/* Default: desktop */
.dot-grid {
  --columns: 17;
}

/* Tablet */
@media (max-width: 1200px) {
  .dot-grid {
    --columns: 9;
  }
}

@media (max-width: 640px) {
  .dot-grid {
    --columns: 5;
  }
  .dot-cell::before,
  .dot-cell::after,
  .dot-cell > span::before,
  .dot-cell > span::after {
    width: 2px;
    height: 2px;
  }
}

/* -------------------------------------------------- */
/* DOT LABELS */
/* -------------------------------------------------- */
.dot-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dot-label {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 14px;
  position: absolute;
  color: #275892;
  line-height: 1;

  opacity: 0;
  transform: translate(16px, -50%);
  transition: opacity 0.4s ease, transform 0.8s ease;
}

.dot-value {
  display: inline-block;
  letter-spacing: 0.08em;
}

.dot-label.is-visible {
  opacity: 1;
  transform: translate(16px, -50%);
}

/* Focus dot */
.dot-focus {
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.5);

  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #009ec9;

  opacity: 0;
  transition: transform 0.8s ease, opacity 0.4s ease;
}

.dot-label.is-visible .dot-focus {
  opacity: 1;
  transition-delay: 0s;
  transform: translate(-50%, -50%) scale(1);
}

.dot-label.is-visible {
  transition-delay: 0.1s;
}

/* Hide dot label on mobile */
@media (max-width: 640px) {
  .dot-labels {
    display: none;
  }
}

/* -------------------------------------------------- */
/* DOT LOZENGES */
/* -------------------------------------------------- */
.dot-lozenge {
  position: absolute;
  display: inline-flex;
  align-items: center;

  height: 30px;
  padding-left: 32px;
  width: max-content;

  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;

  opacity: 0;
  transform: translate(-16px, -50%);
  pointer-events: none;

  left: 16px;
  top: 50%;
}

.dot-stage {
  position: absolute;
  left: 2px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  pointer-events: none;
  border-top-left-radius: 99px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 99px;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;

  height: 30px;
  padding: 0 0 0 0;

  overflow: hidden;
  /* max-width: 0; */

  transition: max-width 500ms cubic-bezier(0.3, 0, 0.4, 1),
    box-shadow 333ms cubic-bezier(0.3, 0, 0.4, 1);
}

.dot-lozenge.is-expanded .pill::after {
  opacity: 1;
}

.dot-lozenge:not(.is-expanded) .dot-large-dot-ring {
  transition-delay: 80ms;
}

/* Large dot + border (8px → 28px) */
.dot-large-dot-ring {
  position: absolute;
  inset: 0;
  margin: auto;

  width: 28px;
  height: 28px;
  border-radius: 50%;

  background: rgba(0, 158, 201, 0.12);

  /* start same size as small dot */
  transform: scale(0.214); /* 6 / 28 */
  opacity: 0;

  z-index: 1;

  transition: transform 417ms cubic-bezier(0.3, 0, 0.4, 1),
    background-color 200ms cubic-bezier(0.3, 0, 0.4, 1),
    filter 200ms cubic-bezier(0.3, 0, 0.4, 1);
}

/* Small dot */
.dot-small-dot {
  position: absolute;
  inset: 0;
  margin: auto;

  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #009ec9;

  opacity: 0;
  z-index: 2;

  transition: opacity 333ms cubic-bezier(0.3, 0, 0.4, 1);
}

/* -------------------------------------------------- */
/* LABEL */
/* -------------------------------------------------- */
.dot-lozenge-label {
  opacity: 0;
  filter: blur(4px);
  transform: translateX(-6px);
  white-space: nowrap;
  padding: 0 12px 0 0;
  color: #262c2e;

  transition: opacity 500ms cubic-bezier(0.3, 0, 0.4, 1),
    filter 500ms cubic-bezier(0.3, 0, 0.4, 1),
    transform 500ms cubic-bezier(0.3, 0, 0.4, 1);

  will-change: opacity, filter, transform;
}

/* State 1 — dots in */
.dot-lozenge.is-visible {
  opacity: 1;
}

.dot-lozenge.is-visible .dot-small-dot {
  opacity: 1;
}

.dot-lozenge.is-visible .dot-large-dot-ring {
  opacity: 1;
  transform: scale(1);
}

/* State 2 — Pills expand */
.dot-lozenge.is-expanded .dot-large-dot-ring {
  filter: blur(0px);

  background: none;
}

.dot-lozenge.is-expanded .dot-lozenge-label {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.dot-lozenge.is-expanded.is-visible {
  background: rgba(224, 236, 240, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(158, 188, 196, 0.6);
}

/* Mobile */
@media (max-width: 640px) {
  .dot-lozenge {
    height: 20px;
    padding-left: 20px;
    font-size: 8px;
    transform: translate(-10px, -50%);
  }

  .dot-stage {
    width: 20px;
    height: 20px;
    left: 0;
  }

  .dot-large-dot-ring {
    width: 20px;
    height: 20px;
    transform: scale(0.3);
  }

  .dot-small-dot {
    width: 4px;
    height: 4px;
  }

  .pill {
    height: 20px;
    padding-right: 8px;

    max-width: 0;
  }

  .dot-lozenge.is-expanded .pill {
    max-width: 240px; /* safely fits longest label */
  }

  .dot-lozenge-label {
    padding-right: 8px;
    font-size: 8px;
    filter: blur(3px);
  }
}

/* -------------------------------------------------- */
/* Scrolling Media */
/* -------------------------------------------------- */
.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* above dots, below text */
}

.parallax-img {
  position: absolute;
  left: 0;
  top: 0;

  aspect-ratio: var(--aspect, 16 / 9);
  height: auto;

  box-sizing: border-box;
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;

  object-fit: cover;
  opacity: 0;

  transition: opacity 0.25s ease, transform 0.25s linear;

  will-change: transform, opacity;
}

.parallax-img.is-visible {
  opacity: 1;
}

@media (min-width: 768px) {
  .parallax-img {
    margin-top: -48px;
    padding: 16px;
    border-radius: 20px;
  }
}

@media (min-width: 1200px) {
  .parallax-img {
    margin-top: -32px;
    padding: 12px;
  }
}


.pointcloud {
  --fill: #90D7EB;
  --url: url('/nyc-landing/assets/pointcloud-bg/bg_mobile.png');

  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35vh;
  height: 35svh;
  pointer-events: none;
  /* start hidden */
  opacity: 0;

  background-image: var(--url);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}


@media (min-width: 768px) {
  .pointcloud {
    --url: url('/nyc-landing/assets/pointcloud-bg/bg_desktop.png');
    height: min(40vh, 400px);
  }
}

@supports (mask-mode: alpha) {
  .pointcloud {
    mask-image: var(--url);
    mask-mode: alpha;
    mask-size: cover;
    mask-position: top center;
    background-blend-mode: exclusion;
    background-color: var(--fill);
    background-image: none;
    mask-repeat: no-repeat;
  }
}


/* Hide pills container by default */
.pills-container {
  visibility: hidden;
}