:root {
  color-scheme: dark;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.92);
  --quiet-white: rgba(255, 255, 255, 0.78);
  --ink: #050505;
  --pill: rgba(255, 255, 255, 0.95);
  --pill-hover: #0b0b0b;
  --ring: rgba(255, 255, 255, 0.72);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --desktop-card-width: 456px;
  --mobile-card-width: 560px;
  --space-1: 8px;
  --space-2: clamp(14px, 2dvh, 20px);
  --space-3: clamp(22px, 3.4dvh, 32px);
  --space-group: clamp(24px, 5.5dvh, 48px);
  --frame: clamp(24px, 4dvh, 40px);
  --btn-w: clamp(190px, 15vw, 220px);
  --btn-gap: 20px;
  --actions-w: calc(3 * var(--btn-w) + 2 * var(--btn-gap));
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  overflow-y: auto;
  background: #000000;
  color: var(--white);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

p,
h1,
figure {
  margin: 0;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1);
  transform-origin: center;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100dvh;
  height: auto;
  padding: clamp(42px, 5.5dvh, 76px) 0 clamp(26px, 4.8dvh, 50px);
  overflow: visible;
  isolation: isolate;
}

.frame::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

/* Layout */
.brand {
  display: flex;
  justify-content: center;
  width: 100%;
  height: clamp(46px, 5.4dvh, 58px);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.brand img {
  display: block;
  width: clamp(196px, 14vw, 240px);
  max-width: calc(100vw - 48px);
  height: auto;
  max-height: clamp(46px, 5.4dvh, 58px);
}

.hero {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.2dvh, 24px);
  width: 100%;
  margin-top: clamp(20px, 2.5dvh, 32px);
  padding: 0 24px;
  text-align: center;
}

.hero-title {
  display: grid;
  gap: 0;
  max-width: min(900px, calc(100vw - 48px));
  color: var(--white);
  font-size: clamp(42px, min(4.4vw, 7dvh), 64px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title > span {
  min-width: 0;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.mobile-break {
  display: none;
}

.desktop-gap {
  display: inline;
}

.hero-subtitle {
  max-width: 880px;
  color: var(--soft-white);
  font-size: clamp(18px, min(1.35vw, 2.2dvh), 22px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-wrap: pretty;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

/* =========================
   HIDDEN CAROUSEL SYSTEM
   ========================= */
.carousel {
  width: 100%;
  min-width: 0;
  margin-top: 62px;
  overflow: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.carousel-scroller {
  width: 100%;
  overflow: visible;
}

.carousel-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 12px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.carousel-card {
  position: relative;
  flex: 0 0 auto;
  width: var(--desktop-card-width);
  aspect-ratio: 1.6 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transform: translateZ(0) scale(1);
  transition:
    transform 200ms var(--ease-out),
    opacity 200ms var(--ease-out),
    filter 200ms var(--ease-out);
  will-change: transform, opacity, filter;
}

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

.contact {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3dvh, 30px);
  width: 100%;
  margin-top: clamp(22px, 3.8dvh, 44px);
  padding: 0 24px;
  text-align: center;
}

.contact-copy {
  max-width: 760px;
  color: var(--soft-white);
  font-size: clamp(16px, min(1.18vw, 2dvh), 19px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-wrap: pretty;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: min(100%, 720px);
}

.contact-button {
  --magnet-x: 0px;
  --magnet-y: 0px;
  --hover-y: 0px;
  --intro-y: 0px;
  --button-scale: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: clamp(190px, 15vw, 220px);
  min-height: clamp(52px, 5.2dvh, 58px);
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 24px;
  letter-spacing: 0;
  text-decoration: none;
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: translate3d(var(--magnet-x), calc(var(--magnet-y) + var(--hover-y) + var(--intro-y)), 0) scale(var(--button-scale));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 150ms var(--ease-out),
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    color 180ms var(--ease-out),
    opacity 420ms var(--ease-out);
  will-change: transform, opacity;
}

.contact-icon {
  display: block;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  overflow: visible;
}

.contact-icon,
.contact-button span {
  pointer-events: none;
}

.contact-button:active {
  --button-scale: 0.97;
}

.contact-button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 5px;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding: clamp(28px, 8dvh, 120px) 24px 0;
  color: var(--quiet-white);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 880px;
}

.status span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4cff41;
  box-shadow: 0 0 10px rgba(76, 255, 65, 0.82);
}

/* Interaction surfaces */
.reactive-word {
  display: inline-block;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.reactive-letter {
  display: inline-block;
  pointer-events: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  transform: translateZ(0);
  transform-origin: 50% 78%;
  will-change: transform;
}

.reactive-word[data-effect="grass"] .reactive-letter {
  transform-origin: 50% 100%;
}

.reactive-word[data-effect="build"] .reactive-letter {
  transform-origin: 50% 82%;
}

.reactive-word[data-effect="wave"] .reactive-letter {
  transform-origin: 50% 60%;
}

.has-js.is-loading .background {
  opacity: 0;
  transform: scale(1.012);
}

.has-js.is-loading .brand,
.has-js.is-loading .hero-title > span,
.has-js.is-loading .hero-subtitle,
.has-js.is-loading .carousel,
.has-js.is-loading .contact-copy,
.has-js.is-loading .footer {
  opacity: 0;
  transform: translate3d(0, var(--intro-y, 12px), 0);
}

.has-js.is-loading .contact-button {
  --button-scale: 0.98;
  --intro-y: 10px;
  opacity: 0;
}

.spear-cursor,
.cursor-wake {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body,
  body a {
    cursor: none;
  }

  body.keyboard-nav,
  body.keyboard-nav a {
    cursor: auto;
  }

  body.keyboard-nav .spear-cursor,
  body.keyboard-nav .cursor-wake {
    display: none;
  }

  .spear-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: block;
    width: 21px;
    height: 21px;
    background: rgba(255, 255, 255, 0.96);
    clip-path: polygon(50% 0, 91% 100%, 50% 78%, 9% 100%);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-40px, -40px, 0) rotate(0deg) scale(1);
    transform-origin: 50% 58%;
    will-change: transform, opacity;
  }

  .cursor-wake {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: block;
    overflow: hidden;
    pointer-events: none;
  }

  .cursor-wake span {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 1px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(0.4px);
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) rotate(0deg) scaleX(0.2);
    transform-origin: 100% 50%;
    will-change: transform, opacity;
  }

  .contact-button:hover,
  .contact-button.is-magnetic {
    --hover-y: -1px;
    --button-scale: 1.02;
    background: var(--pill-hover);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }

  .contact-button:active {
    --hover-y: 0px;
    --button-scale: 0.97;
  }
}

@media (min-width: 1100px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    position: fixed;
    inset: 0;
  }

  .frame {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
  .carousel-track {
    animation: marquee 54s linear infinite;
  }
}

.carousel-focus-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
}

.carousel-focus-card {
  position: fixed;
  z-index: 8001;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  opacity: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  will-change: transform;
}

.carousel-focus-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-1 * var(--loop-width, 50%)), 0, 0);
  }
}

/* B. tablet and mobile flowing page */
@media (max-width: 1099px) {
  :root {
    --mobile-gutter: clamp(24px, 5vw, 48px);
    --mobile-card-width: clamp(520px, 72vw, 760px);
  }

  body {
    min-height: 100svh;
  }

  .frame {
    min-height: 100svh;
    height: auto;
    padding: clamp(54px, 7vw, 84px) 0 calc(42px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .brand {
    height: clamp(52px, 7vw, 76px);
  }

  .brand img {
    width: clamp(150px, 20vw, 200px);
    max-width: calc(100vw - 2 * var(--mobile-gutter));
    max-height: clamp(52px, 7vw, 76px);
  }

  .hero {
    gap: clamp(26px, 3.5vw, 36px);
    margin-top: clamp(34px, 5.5vw, 58px);
    padding: 0 var(--mobile-gutter);
  }

  .hero-title {
    display: grid;
    width: min(calc(100vw - 2 * var(--mobile-gutter)), 860px);
    max-width: none;
    font-size: clamp(34px, 4.6vw, 48px);
    line-height: 1.1;
    text-wrap: balance;
  }

  .hero-title > span {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .hero-subtitle {
    width: min(82vw, 820px);
    max-width: none;
    font-size: clamp(16px, 1.7vw, 18px);
    line-height: 1.5;
    text-wrap: pretty;
  }

  .carousel {
    margin-top: clamp(48px, 6vw, 72px);
    overflow: visible;
  }

  .carousel-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: max(var(--mobile-gutter), calc((100vw - var(--mobile-card-width)) / 2));
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-scroller::-webkit-scrollbar {
    display: none;
  }

  .carousel-track {
    gap: clamp(14px, 2vw, 22px);
    padding-inline: max(var(--mobile-gutter), calc((100vw - var(--mobile-card-width)) / 2));
    animation: none;
    will-change: auto;
  }

  .carousel-card {
    width: var(--mobile-card-width);
    aspect-ratio: 1.6 / 1;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .contact {
    gap: clamp(24px, 3vw, 32px);
    margin-top: clamp(42px, 6vw, 56px);
    padding: 0 var(--mobile-gutter);
  }

  .contact-copy {
    width: min(82vw, 850px);
    max-width: none;
    font-size: clamp(15px, 1.9vw, 18px);
    line-height: 1.45;
    text-wrap: balance;
  }

  .contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 2vw, 20px);
    width: min(92vw, 760px);
  }

  .contact-button {
    flex: 0 1 clamp(180px, 25vw, 220px);
    width: clamp(180px, 25vw, 220px);
    min-width: 180px;
    max-width: 220px;
    min-height: clamp(50px, 5.4vw, 56px);
    gap: 11px;
    padding: 8px 24px;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.2;
  }

  .contact-icon {
    width: clamp(19px, 2.4vw, 22px);
    height: clamp(19px, 2.4vw, 22px);
  }

  .footer {
    gap: clamp(26px, 3.2vw, 34px);
    margin-top: clamp(64px, 8vw, 90px);
    padding: 0 var(--mobile-gutter);
    font-size: clamp(13px, 1.7vw, 15px);
    line-height: 1.45;
  }

  .status {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 1.6vw, 12px);
    width: min(86vw, 900px);
    max-width: none;
  }

  .status span {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 0.42em;
  }

  .footer > p:last-child {
    width: min(86vw, 900px);
    font-size: clamp(13px, 1.6vw, 15px);
    line-height: 1.35;
    text-align: center;
  }
}

/* C. phone flowing page */
@media (max-width: 599px) {
  :root {
    --mobile-gutter: clamp(20px, 5vw, 28px);
    --mobile-card-width: min(calc(100vw - 2 * var(--mobile-gutter)), 560px);
  }

  .spear-cursor,
  .cursor-wake {
    display: none;
  }

  .frame {
    padding-top: clamp(42px, 11vw, 62px);
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
  }

  .brand {
    height: clamp(48px, 12vw, 62px);
  }

  .brand img {
    width: clamp(180px, 48vw, 235px);
    max-height: clamp(48px, 12vw, 62px);
  }

  .hero {
    gap: clamp(28px, 8vw, 38px);
    margin-top: clamp(26px, 7vw, 38px);
  }

  .hero-title {
    width: min(calc(100vw - 2 * var(--mobile-gutter)), 520px);
    font-size: clamp(24px, 6.5vw, 32px);
    line-height: 1.13;
  }

  .mobile-break {
    display: block;
  }

  .desktop-gap {
    display: none;
  }

  .hero-subtitle {
    width: min(calc(100vw - 2 * var(--mobile-gutter)), 560px);
    max-width: none;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.5;
  }

  .carousel {
    margin-top: clamp(42px, 11vw, 62px);
  }

  .carousel-track {
    gap: clamp(14px, 4vw, 18px);
  }

  .contact {
    gap: clamp(24px, 6.4vw, 32px);
    margin-top: clamp(40px, 12vw, 56px);
  }

  .contact-copy {
    width: min(calc(100vw - 2 * var(--mobile-gutter)), 560px);
    font-size: clamp(15px, 3.8vw, 17px);
    line-height: 1.45;
  }

  .contact-actions {
    display: grid;
    justify-items: center;
    gap: clamp(16px, 4.5vw, 20px);
    width: min(calc(100vw - 2 * var(--mobile-gutter)), 560px);
  }

  .contact-button {
    width: min(88vw, 560px);
    max-width: 560px;
    min-height: clamp(54px, 14vw, 60px);
    gap: 12px;
    padding: 8px 24px;
    font-size: clamp(17px, 4.5vw, 20px);
  }

  .contact-icon {
    width: clamp(20px, 5.4vw, 23px);
    height: clamp(20px, 5.4vw, 23px);
  }

  .footer {
    gap: clamp(26px, 7vw, 34px);
    margin-top: clamp(72px, 20vw, 110px);
    font-size: clamp(13px, 3.6vw, 15px);
  }

  .status {
    width: min(90vw, 560px);
  }

  .footer > p:last-child {
    width: min(92vw, 560px);
    font-size: clamp(13px, 3.6vw, 15px);
  }
}

/* Temporary text-only landing rhythm */
@media (min-width: 1100px) {
  .frame {
    height: 100dvh;
    min-height: 0;
    padding: var(--frame) 0 clamp(18px, 3dvh, 32px);
    overflow: hidden;
  }

  .brand {
    height: clamp(44px, 5dvh, 56px);
  }

  .brand img {
    width: clamp(196px, 12vw, 228px);
    max-height: clamp(44px, 5dvh, 56px);
  }

  .hero {
    gap: var(--space-3);
    margin-top: clamp(48px, 6dvh, 72px);
  }

  .hero-title {
    max-width: min(1040px, calc(100vw - 72px));
    font-size: clamp(44px, min(3.9vw, 6.35dvh), 62px);
    line-height: 1.08;
  }

  .hero-subtitle {
    max-width: min(880px, calc(100vw - 160px));
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(17px, min(1.2vw, 2dvh), 19px);
    line-height: 1.5;
    text-wrap: balance;
  }

  .contact {
    gap: var(--space-2);
    margin-top: var(--space-group);
  }

  .contact-copy {
    width: min(90vw, 1080px);
    max-width: none;
    color: var(--white);
    font-size: clamp(15px, min(1.05vw, 1.8dvh), 17px);
    line-height: 1.45;
  }

  .contact-actions {
    gap: var(--btn-gap);
    width: var(--actions-w);
  }

  .contact-button {
    width: var(--btn-w);
    min-height: clamp(52px, 5.2dvh, 58px);
    font-size: clamp(15px, 1vw, 17px);
  }

  .footer {
    gap: var(--space-1);
    margin-top: clamp(42px, 5.7dvh, 64px);
    padding: 0 24px;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.35;
  }

  .status {
    position: relative;
    display: block;
    width: fit-content;
    max-width: min(950px, calc(100vw - 160px));
    margin-inline: auto;
  }

  .status span {
    position: absolute;
    top: calc((1.35em - 8px) / 2);
    right: calc(100% + 8px);
  }

  .footer > p:last-child {
    font-size: 12px;
    opacity: 0.92;
  }
}

@media (min-width: 1100px) and (max-height: 820px) {
  :root {
    --space-2: clamp(10px, 1.7dvh, 14px);
    --space-3: clamp(17px, 2.8dvh, 24px);
    --space-group: clamp(18px, 4.2dvh, 30px);
    --frame: clamp(18px, 3dvh, 24px);
    --btn-w: 190px;
  }

  .frame {
    padding-top: var(--frame);
    padding-bottom: 18px;
  }

  .brand {
    height: 42px;
  }

  .brand img {
    width: clamp(174px, 12vw, 196px);
    max-height: 42px;
  }

  .hero {
    gap: var(--space-3);
    margin-top: clamp(42px, 6dvh, 48px);
  }

  .hero-title {
    font-size: 44px;
    line-height: 1.08;
  }

  .hero-subtitle {
    max-width: 820px;
    font-size: 17px;
    line-height: 1.42;
  }

  .contact {
    gap: var(--space-2);
    margin-top: var(--space-group);
  }

  .contact-copy {
    width: min(90vw, 1040px);
    max-width: none;
    font-size: 15px;
    line-height: 1.36;
  }

  .contact-button {
    width: 190px;
    min-height: 50px;
  }

  .footer {
    gap: 6px;
    margin-top: clamp(32px, 5.3dvh, 42px);
    padding-top: 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .status {
    max-width: min(950px, calc(100vw - 120px));
  }
}

@media (min-width: 1100px) and (max-height: 640px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
  }

  body {
    position: static;
    inset: auto;
  }

  .frame {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
}

@media (hover: none), (pointer: coarse) {
  .spear-cursor,
  .cursor-wake {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }

  .spear-cursor,
  .cursor-wake {
    display: none;
  }

  .has-js.is-loading .background,
  .has-js.is-loading .brand,
  .has-js.is-loading .hero-title > span,
  .has-js.is-loading .hero-subtitle,
  .has-js.is-loading .carousel,
  .has-js.is-loading .contact-copy,
  .has-js.is-loading .footer {
    opacity: 1;
    transform: none;
  }

  .has-js.is-loading .contact-button {
    --button-scale: 1;
    --intro-y: 0px;
    opacity: 1;
  }

  .carousel-card,
  .contact-button {
    transition-duration: 1ms;
  }
}
