:root {
  --bg: #000000;
  --text-white: #ffffff;
  --text-muted: rgb(102, 102, 102);
  --font-display: "GT Walsheim Bold", "GT Walsheim Bold Placeholder",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-white);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-scroll {
  position: relative;
  height: 100vh;
}

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  z-index: 1;
}

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: 58px;
  line-height: 2.2em;
  letter-spacing: -3.9px;
  text-align: center;
  display: flex;
  gap: 0.1em;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transform: rotateX(calc(var(--hero-rot, 0) * 90deg))
    scale(calc(1 - var(--hero-rot, 0) * 0.4));
  will-change: transform;
}

.belief {
  position: relative;
  z-index: 2;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
}

.belief__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.belief__bg img {
  width: 80vw;
  max-width: 80vw;
  height: auto;
  display: block;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
}

.belief__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  will-change: transform;
}

.belief__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.9px;
  color: var(--text-white);
}

.hero__muted {
  color: var(--text-muted);
}

.hero__name {
  color: var(--text-white);
  letter-spacing: -3.2px;
}

.scroll-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 100;
}

.scroll-hint__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: none;
}

.scroll-hint__arrow {
  display: inline-flex;
  animation: scroll-hint-float 1.6s ease-in-out infinite;
  color: var(--text-muted);
}

@keyframes scroll-hint-float {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

.cta {
  position: relative;
  z-index: 3;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 160px;
  gap: 96px;
}

.cta__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -3.2px;
  color: var(--text-white);
  text-align: center;
}

.cta__buttons {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
}

.cta__yes,
.cta__no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.6px;
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

.cta__yes {
  color: var(--text-white);
  min-width: 80px;
  text-align: center;
}

.cta__no {
  color: rgb(181, 181, 181);
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}

.projects__list-wrp {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  perspective: 7000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects__list {
  display: flex;
  flex-flow: column-reverse;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--list-rx, 70deg))
    rotateY(0deg)
    rotateZ(var(--list-rz, 40deg));
  will-change: transform;
}

.projects__item {
  position: relative;
  aspect-ratio: 16 / 9;
  height: 28vh;
  margin-top: -7vh;
  margin-bottom: -7vh;
  transform-style: preserve-3d;
  transform: rotateX(-90deg);
}

.projects__card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-end;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  text-decoration: none;
  border-radius: 8px;
  overflow: visible;
  cursor: pointer;
  transform: translate3d(0, 0%, 0) scale3d(1, 1, 1);
  transform-origin: 50% 50%;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.projects__item:hover .projects__card {
  transform: translate3d(0, -60%, 0) scale3d(1.2, 1.2, 1);
}

.projects__solid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
  border-radius: 8px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects__item:hover .projects__solid {
  opacity: 0;
}

.projects__title {
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 999;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(2vw + 30px);
  line-height: 0.7;
  color: var(--text-white);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, 0, 0);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.projects__item:hover .projects__title {
  opacity: 1;
  transform: translate3d(20px, 0, 0);
}

/* ---- Detail / expanded tile ---- */
.projects__detail {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.projects__detail.is-open {
  pointer-events: auto;
  visibility: visible;
}

.projects__detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  transition: background-color 0.55s ease;
}

.projects__detail.is-open:not(.is-closing) .projects__detail-backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.projects__detail-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80vw, 1100px);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  background-color: #fad55e;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

.projects__detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 88px);
  letter-spacing: -2px;
  line-height: 0.9;
  color: var(--text-white);
  mix-blend-mode: difference;
}

.projects__detail-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 36px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- Section 5: Orbital testimonials ---------------- */
.testimonials {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 140px;
  overflow: hidden;
  gap: 56px;
}

.testimonials__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text-white);
  text-align: center;
}

.testimonials__stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 420px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.testimonials__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(86vw, 540px);
  padding: 36px 38px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--text-white);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 50%;
  transform:
    translate(-50%, -50%)
    translate3d(var(--card-tx, 0px), 0, var(--card-tz, 0px))
    scale(var(--card-scale, 1));
  opacity: var(--card-opacity, 0);
  z-index: var(--card-z, 0);
  pointer-events: var(--card-pe, none);
  transition:
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.testimonials__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 22px;
  min-height: 26px;
}

.testimonials__star {
  display: inline-block;
  color: #f5c542;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.4);
  text-shadow:
    0 0 8px rgba(245, 197, 66, 0.75),
    0 0 18px rgba(245, 197, 66, 0.45),
    0 0 30px rgba(245, 197, 66, 0.25);
  transition:
    opacity 0.18s ease-out,
    transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonials__card.is-active .testimonials__star {
  opacity: 1;
  transform: scale(1);
  transition-delay: calc(0.07s * var(--star-i, 0) + 0.18s);
}

.testimonials__quote {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

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

.testimonials__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #c9c9c9);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-white);
  line-height: 1.2;
}

.testimonials__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.testimonials__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.testimonials__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.testimonials__dots {
  display: flex;
  gap: 8px;
}

.testimonials__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.testimonials__dot.is-active {
  background: var(--text-white);
  transform: scale(1.3);
}
