:root {
  --bg: #ffffff;
  --fg: #000000;
  --caption-fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --font: "Akzidenz Grotesk", sans-serif;
  /* +6% vs previous clamp(26px, 4.2vw, 64px) */
  --size: clamp(27.5px, 4.45vw, 67.8px);
  /* Responsive small type (captions/lists) */
  --caption-size: clamp(12px, 1.05vw, 14px);
  --list-size: clamp(13px, 1.35vw, 16px);
  --label-size: clamp(9px, 0.85vw, 10px);
  --lh: 1.15;
  --gap: 0.22em;
  --scale: 1;
  --maxw: 1200px;
  --fw: 700;
}

@font-face {
  font-family: "Akzidenz Grotesk";
  src: url("/assets/fonts/akzidenz-grotesk-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Now Display";
  src: url("/assets/fonts/HelveticaNowDisplayMedium-5760488.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  font-family: var(--font);
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: var(--fw);
  overflow-x: hidden;
  overscroll-behavior: none;
  /* Hide scrollbar UI (keep scrolling) */
  -ms-overflow-style: none; /* IE/Edge legacy */
  scrollbar-width: none; /* Firefox */
}

body {
  overflow-x: hidden;
}

/* WebKit scrollbar hiding (Chrome/Safari) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* If any element becomes scrollable, hide its scrollbar too */
* {
  scrollbar-width: none; /* Firefox */
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 0px;
  scroll-snap-type: none;
}

/* Safari sometimes treats body as the scrolling element */
body {
  scroll-snap-type: none;
}

/* Anchor jumps: no offset */
section[id],
article[id],
div[id] {
  scroll-margin-top: 0;
}

main {
  display: block;
}

/* Scroll snapping targets */
[data-snap] {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

a, a:visited {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

a:hover, a:focus {
  color: rgba(0, 0, 0, 1);
  text-decoration: none;
}

.topnav {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  overflow: visible;
  white-space: nowrap;
  background: transparent;
  backdrop-filter: none;
  mix-blend-mode: difference;
}

.topnav__logo {
  width: auto;
  max-width: 50px;
  height: auto;
  filter: brightness(0) invert(1);
}

.topnav__home {
  display: inline-flex;
  align-items: center;
}

.topnav__links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.topnav__link,
.topnav__link:visited,
.topnav__link:hover,
.topnav__link:focus {
  font-size: var(--caption-size);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Hero (ported from the prototype) */
.hero {
  height: 100vh; /* Fallback for older browsers */
  display: block;
  padding: 0;
  position: relative;
  background: var(--bg);
  color: #000000;
}
@supports (height: 100dvh) {
  .hero {
    height: 100dvh; /* Dynamic viewport height for mobile browser UI */
  }
}

.cylinder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cylinder__scene {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.cylinder__ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

.cylinder__item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  margin: 0;
  backface-visibility: hidden;
  pointer-events: none;
}

.cylinder__img {
  display: block;
  height: min(400px, 50vh);
  width: auto;
  max-width: 80vw;
  object-fit: contain;
  backface-visibility: hidden;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 560px) {
  .cylinder__scene {
    perspective: 900px;
  }
  .cylinder__img {
    height: min(320px, 45vh);
    width: auto;
    max-width: 90vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cylinder__ring {
    animation: none !important;
  }
}

.hero__logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: auto;
  max-width: 50px;
  height: auto;
  /* Force the SVG to render black regardless of its original fill/stroke */
  filter: brightness(0) saturate(100%);
}

.hero .phrase {
  position: absolute;
  left: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  top: auto;
  transform-origin: left bottom;
  justify-content: flex-start;
  display: inline-flex;
  align-items: center;
}

.hero--has-logo .phrase {
  left: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.phrase {
  font-size: var(--caption-size);
  line-height: var(--lh);
  font-weight: inherit;
  letter-spacing: 0.01em;
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--gap);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  transform: scale(var(--scale));
  transform-origin: center;
}

.line {
  display: inline-flex;
  align-items: baseline;
  gap: var(--gap);
  white-space: nowrap;
}

.slot {
  display: inline-block;
  position: relative;
}

.token {
  display: inline-block;
  will-change: transform;
}

.email {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 1;
  color: inherit;
  user-select: none;
}

/* Full-bleed image stack */
.bleed {
  position: relative;
  min-height: 100vh; /* Fallback for older browsers */
  background: #000;
  overflow: hidden;
}
@supports (min-height: 100dvh) {
  .bleed {
    min-height: 100dvh; /* Dynamic viewport height for mobile browser UI */
  }
}

.bleed__figure {
  margin: 0;
  position: absolute;
  inset: 0;
}

.bleed__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bleed__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--media-fit, contain);
  object-position: center;
}

.bleed__track {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 0px;
  height: 100%;
  width: max-content;
  animation: bleedMarquee var(--marquee-duration, 120s) linear infinite;
  will-change: transform;
}

/* Row-fit grid (full window width, stacks on mobile) */
.bleed__grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  right: 20px;
  width: auto;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bleed__gridItem {
  flex: 0 0 auto;
  min-width: 0;
  height: min(70vh, 520px);
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bleed__gridMedia {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 560px) {
  .bleed__grid {
    left: 20px;
    right: 20px;
    width: auto;
    flex-direction: row;
    position: absolute;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .bleed__gridItem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: calc(100% - 40px) !important;
    max-height: 70vh;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }
  .bleed__gridItem.active {
    opacity: 1;
    pointer-events: auto;
  }
  .bleed__gridMedia {
    height: auto;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
  }
}

.bleed__slide {
  flex: 0 0 auto;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.bleed__slideMedia {
  display: block;
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: var(--media-fit, contain);
  object-position: center;
}

.bleed--inset .bleed__slideMedia {
  object-fit: contain;
}

@keyframes bleedMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.bleed--inset .bleed__figure {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bleed--inset .bleed__frame {
  position: relative;
  width: 75vw;
  height: 75vh;
  inset: auto;
  left: auto;
  top: auto;
  transform: none;
}

.bleed--inset .bleed__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bleed__media[controls] {
  display: none;
}

.bleed__media::-webkit-media-controls {
  display: none !important;
}

.bleed__meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: var(--caption-fg);
  font-size: var(--caption-size);
  letter-spacing: 0.04em;
  user-select: none;
}

.bleed__caption {
  padding: 0;
  text-align: left;
  opacity: 1;
}

.bleed__services {
  padding: 0;
  text-align: right;
  white-space: nowrap;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bleed__captionInner {
  max-width: min(var(--maxw), calc(100vw - 12vw));
  font-size: inherit;
  line-height: 1.25;
  font-weight: inherit;
  letter-spacing: inherit;
}

.bleed__captionInner > *:first-child {
  margin-top: 0;
}
.bleed__captionInner > *:last-child {
  margin-bottom: 0;
}
.bleed__captionInner p {
  margin: 0;
}

/* Fullscreen 4-col lists section */
.lists {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  color: #000000;
}

/* Info wrapper (contains one or more list blocks) */
.info {
  min-height: 100vh; /* Fallback for older browsers */
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
}
@supports (min-height: 100dvh) {
  .info {
    min-height: 100dvh; /* Dynamic viewport height for mobile browser UI */
  }
}

.info__block--bottom {
  margin-top: auto;
}

.info__description {
  font-size: 40px;
  line-height: var(--lh);
  letter-spacing: 0.01em;
  margin-top: 100px;
  padding-bottom: 20px;
}
.info__description > *:first-child { margin-top: 0; }
.info__description > *:last-child { margin-bottom: 0; }

/* When we have exactly: description + 2 list rows, distribute the vertical space evenly */
.info--split {
  gap: 20px;
  justify-content: flex-end;
}
.info--split .info__block--bottom {
  margin-top: 0;
}

.lists__wrap {
  width: 100%;
  max-width: 1400px;
  flex: 0 0 auto;
}

.lists__description {
  font-size: 20px;
  line-height: var(--lh);
  font-weight: inherit;
  margin: 0 0 18px 0;
  color: #000000;
  letter-spacing: 0.01em;
}

.lists__description > *:first-child {
  margin-top: 0;
}
.lists__description > *:last-child {
  margin-bottom: 0;
}

.lists__inner {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 48px);
  margin-top: 0;
}

.lists__col--empty {
  min-height: 1px;
}

.lists__col h2 {
  margin: 0 0 14px 0;
  font-size: var(--label-size);
  font-weight: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  line-height: 1;
}

.lists__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lists__col li {
  padding: 1px 0;
  font-size: var(--list-size);
  line-height: 1;
  color: #000000;
}

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

@media (max-width: 560px) {
  .lists__inner {
    grid-template-columns: 1fr;
  }
  .bleed__meta {
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
  }
  .bleed__captionInner {
    line-height: 1.1;
    margin-bottom: -1px;
  }
  .bleed__services {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    margin-top: -1px;
  }

  /* Mobile: avoid cropping full-bleed videos */
  .bleed:not(.bleed--inset) video.bleed__media {
    object-fit: var(--media-fit, contain);
    object-position: center;
  }
}

/* Extra sections (e.g. Pricing) */
.extra {
  min-height: auto;
  padding: 20px;
  display: block;
}

.extra .lists__col h2 {
  opacity: 1;
}

.extra .lists__col li {
  color: #000000;
}

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

@media (max-width: 900px) {
  .lists__inner.lists__inner--2 {
    grid-template-columns: 1fr;
  }
}

/* Feed (4-column grid) */
.feed {
  padding: 20px;
  background: var(--bg);
}

.feed__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feed__item {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.feed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--tile-bg, #ffffff);
}

.feed__item--landscape .feed__frame {
  aspect-ratio: 16 / 9;
}

.feed__item--square .feed__frame {
  aspect-ratio: 1 / 1;
}

.feed__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed__meta {
  padding: 10px 0 0 0;
  color: #000000;
  font-size: var(--label-size);
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: left;
  background: #ffffff;
}

.feed__captionInner > *:first-child { margin-top: 0; }
.feed__captionInner > *:last-child { margin-bottom: 0; }
.feed__captionInner p { margin: 0; }

.feed__services {
  margin-top: 6px;
}

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

@media (max-width: 560px) {
  .feed__grid {
    grid-template-columns: 1fr;
  }
}


