:root {
  --bg: #f3f5f4;
  --bg-deep: #e6ebe9;
  --ink: #141816;
  --ink-soft: #5c6562;
  --teal: #0a9ea1;
  --teal-deep: #087f82;
  --teal-soft: rgba(10, 158, 161, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(26, 28, 27, 0.14);
  --card-shadow: 0 12px 28px rgba(26, 28, 27, 0.12), 0 4px 10px rgba(26, 28, 27, 0.06);
  --card-shadow-hover: 0 22px 44px rgba(26, 28, 27, 0.18), 0 8px 16px rgba(26, 28, 27, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", sans-serif;
  --display: "Be Vietnam Pro", sans-serif;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(165deg, #f8faf9 0%, #eef2f1 42%, #e8efed 100%);
}

.page-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.page-bg__glow--a {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  top: -18%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(10, 158, 161, 0.18) 0%, transparent 70%);
  animation: glow-a 18s ease-in-out infinite alternate;
}

.page-bg__glow--b {
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  bottom: 8%;
  right: -8%;
  background: radial-gradient(circle, rgba(10, 158, 161, 0.1) 0%, transparent 70%);
  animation: glow-b 22s ease-in-out infinite alternate;
}

.page-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
}

@keyframes glow-a {
  from {
    translate: -50% 0;
    scale: 1;
  }
  to {
    translate: -48% 4%;
    scale: 1.06;
  }
}

@keyframes glow-b {
  from {
    translate: 0 0;
    scale: 1;
  }
  to {
    translate: -4% -3%;
    scale: 1.08;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ——— Header ——— */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem) 0;
  gap: 0.75rem;
  background: transparent;
  flex-shrink: 0;
}

.header-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.68rem, 2vw, 0.84rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  flex-shrink: 0;
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease);
  text-align: right;
}

.header-email__text {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.35s var(--ease), color 0.3s var(--ease);
}

.header-email__icon {
  display: none;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.header-email__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-email:hover {
  color: var(--teal-deep);
}

.header-email:hover .header-email__text {
  background-size: 100% 1px;
}

.header-email:hover .header-email__icon {
  color: var(--teal-deep);
}

.header-email:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 4px;
}

.header-logo {
  display: block;
  width: clamp(5.25rem, 18vw, 9rem);
  line-height: 0;
  border-radius: 0.45rem;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.header-logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.header-logo:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.header-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ——— Hero ——— */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: clamp(0.75rem, 2.5vw, 1.75rem) 0 clamp(1.25rem, 3.5vh, 2.5rem);
  gap: 0;
  overflow: hidden;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1.5vw, 0.95rem);
  margin: clamp(1.75rem, 6vh, 4.5rem) auto 0;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
  text-align: center;
  max-width: min(36rem, 92vw);
  flex-shrink: 0;
}

.coming-soon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.28em;
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.coming-soon__line--accent {
  font-style: normal;
  font-weight: 600;
  color: var(--teal-deep);
}

.hero-desc {
  max-width: min(28rem, 92vw);
  margin: 0.15rem auto 0;
  font-family: var(--font);
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.reveal-header {
  opacity: 0;
  transform: translateY(-0.6rem);
  animation: rise 0.9s var(--ease) 0.05s forwards;
}

/* ——— Infinite curved marquee ——— */
.marquee-section {
  --card-size: clamp(180px, 32vw, 320px);
  --marquee-duration: 45s;
  --marquee-gap: clamp(12px, 2.5vw, 22px);
  /* Must exceed peak curve lift + scale growth so tops aren’t clipped */
  --curve-room: clamp(5.5rem, 12vw, 7.5rem);
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  height: calc(var(--card-size) + var(--curve-room) + 1.5rem);
  position: relative;
  flex-shrink: 0;
}

.marquee-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: var(--curve-room);
  padding-bottom: 1rem;
  box-sizing: border-box;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: marquee-infinite var(--marquee-duration) linear infinite;
}

.marquee-section.is-paused .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);
}

.media-card {
  --curve-y: 0px;
  --curve-rot: 0deg;
  --curve-scale: 0.96;
  position: relative;
  flex: 0 0 auto;
  width: var(--card-size);
  height: var(--card-size);
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: clamp(16px, 3vw, 28px);
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: var(--card-shadow);
  transform: translate3d(0, var(--curve-y), 0) rotate(var(--curve-rot))
    scale(var(--curve-scale));
  transform-origin: center bottom;
  transition: box-shadow 0.7s var(--ease);
  will-change: transform;
  isolation: isolate;
  backface-visibility: hidden;
}

.media-card::after {
  display: none;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  border: none;
  outline: none;
}

.media-card.is-hovered {
  box-shadow: var(--card-shadow-hover);
  z-index: 2;
}

@keyframes marquee-infinite {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ——— Reveal motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 1s var(--ease) 0.15s forwards;
}

.delay-1 {
  animation-delay: 0.28s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-header {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .page-bg__glow--a,
  .page-bg__glow--b {
    animation: none;
  }

  .marquee-track,
  .media-card {
    animation: none !important;
  }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .site-header {
    padding: 1.15rem 1.25rem 0;
  }

  .marquee-section {
    --card-size: clamp(210px, 34vw, 290px);
    --marquee-duration: 40s;
    --curve-room: 5.75rem;
    --marquee-gap: 16px;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .site-header {
    width: 100%;
    max-width: none;
    padding: calc(0.95rem + env(safe-area-inset-top, 0px)) 1.1rem 0;
    gap: 0.75rem;
    align-items: center;
  }

  .header-logo {
    width: 5.5rem;
    overflow: visible;
  }

  .header-logo img {
    display: block;
    width: 100%;
    height: auto;
  }

  .header-email {
    padding: 0.45rem;
    border-radius: 0.55rem;
  }

  .header-email__text {
    display: none;
  }

  .header-email__icon {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
  }

  .hero {
    padding: 0.5rem 0 1rem;
    justify-content: center;
    gap: clamp(1.25rem, 4vh, 2.25rem);
  }

  .hero-title {
    margin-top: 0;
    gap: 0.7rem;
    padding-inline: 1.15rem;
  }

  .coming-soon {
    font-size: clamp(2.15rem, 8.5vw, 2.85rem);
    gap: 0.22em;
  }

  .hero-desc {
    font-size: clamp(0.88rem, 3.6vw, 0.98rem);
    line-height: 1.55;
    max-width: 22.5rem;
    padding-inline: 0.15rem;
  }

  .marquee-section {
    --card-size: min(56vw, 240px);
    --marquee-gap: 14px;
    --marquee-duration: 34s;
    --curve-room: 5rem;
    margin-top: 0;
    height: calc(var(--card-size) + var(--curve-room) + 1.35rem);
  }

  .marquee-viewport {
    padding-top: var(--curve-room);
    padding-bottom: 0.9rem;
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );
  }

  .media-card {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0;
  }

  .header-logo {
    width: 5.15rem;
  }

  .header-email__icon {
    width: 1.4rem;
    height: 1.4rem;
  }

  .hero {
    gap: clamp(1rem, 3.5vh, 1.75rem);
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .coming-soon {
    font-size: clamp(2rem, 9vw, 2.45rem);
  }

  .hero-desc {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .marquee-section {
    --card-size: min(62vw, 230px);
    --marquee-gap: 12px;
    --marquee-duration: 30s;
    --curve-room: 4.5rem;
    height: calc(var(--card-size) + var(--curve-room) + 1.15rem);
  }

  .media-card {
    border-radius: 18px;
  }
}

/* Short phones — keep logo clear + products centered */
@media (max-width: 480px) and (max-height: 740px) {
  .site-header {
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  }

  .header-logo {
    width: 4.75rem;
  }

  .hero {
    gap: 0.85rem;
  }

  .coming-soon {
    font-size: 1.9rem;
  }

  .hero-desc {
    font-size: 0.8rem;
  }

  .marquee-section {
    --card-size: min(54vw, 200px);
    --curve-room: 4rem;
    height: calc(var(--card-size) + var(--curve-room) + 1rem);
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  .site-header {
    padding: 0.55rem 1rem 0;
  }

  .header-logo {
    width: 4.5rem;
  }

  .header-email__text {
    display: none;
  }

  .header-email__icon {
    display: block;
  }

  .hero {
    padding-top: 0.25rem;
    padding-bottom: 0.65rem;
    justify-content: center;
    gap: 0.65rem;
  }

  .hero-title {
    margin-top: 0;
    gap: 0.4rem;
  }

  .coming-soon {
    font-size: clamp(1.55rem, 5.5vh, 2.1rem);
  }

  .hero-desc {
    font-size: 0.76rem;
    max-width: 36rem;
    line-height: 1.4;
  }

  .marquee-section {
    --card-size: min(28vh, 180px);
    --curve-room: 3.25rem;
    --marquee-gap: 12px;
    margin-top: 0;
    height: calc(var(--card-size) + var(--curve-room) + 0.75rem);
  }
}
