:root {
  --landing-bg: #ffffff;
  --landing-bg-mobile-header: #f7f4ef;
  --landing-text: #000000;
  --landing-accent: #8f1d2f;
  --landing-rule: #000000;
  --landing-cta: #f5c518;
  --landing-cta-text: #111111;
  --landing-card-bg: rgba(245, 242, 237, 0.9);
  --landing-collaborate-mobile-bg: #2a1f24;
  --landing-header-pad-x: clamp(1.25rem, 3vw, 2.5rem);
  --landing-body-gap: clamp(2rem, 5vw, 4.5rem);
  --landing-image-width: min(34vw, 400px);
  --landing-image-aspect-ratio: 2 / 3;
  --landing-transition: 0.85s cubic-bezier(0.77, 0, 0.175, 1);
  --landing-banner-transition: 0.5s ease;
  --landing-image-transition: 1.1s ease-in-out;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

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

html,
body.landing {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.landing-page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* —— Header —— */
.landing-header {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 1.35rem var(--landing-header-pad-x) 1rem;
  position: relative;
  z-index: 300;
  background: var(--landing-bg);
}

.landing-header__project {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.landing-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  min-width: 0;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.landing-page.is-menu-open .landing-header__nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-header__nav-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 1.25rem);
  border: 0;
  padding: 0.15rem 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--landing-text);
  white-space: nowrap;
  cursor: pointer;
  transition: font-weight 0.25s ease;
}

.landing-header__nav-item::before,
.landing-header__nav-item::after {
  content: "";
  display: none;
  flex: 0 0 auto;
  width: clamp(2rem, 5vw, 4.5rem);
  height: 1px;
  background: var(--landing-rule);
}

.landing-header__nav-item.is-active {
  font-weight: 700;
}

.landing-header__nav-item.is-active::before,
.landing-header__nav-item.is-active::after {
  display: block;
}

.landing-slide__cta,
.landing-header__demo-cta {
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 10px;
  background: var(--landing-cta);
  color: var(--landing-cta-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.landing-slide__cta {
  display: inline-flex;
}

@media (min-width: 901px) {
  .landing-header__demo-cta {
    display: none;
  }

  .landing-page[data-slide="3"] .landing-header__demo-cta {
    display: inline-flex;
  }
}

.landing-header__demo-cta:hover,
.landing-slide__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.landing-burger {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 301;
}

.landing-burger__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2.25rem;
  height: 1.35rem;
}

.landing-burger__bars span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--landing-text);
}

.landing-burger__close {
  display: none;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--landing-text);
  font-weight: 300;
}

.landing-burger.is-open .landing-burger__bars {
  display: none;
}

.landing-burger.is-open .landing-burger__close {
  display: block;
}

/* —— Menu —— */
.landing-menu-backdrop {
  position: fixed;
  inset: 0;
  background: var(--landing-bg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
  z-index: 250;
}

.landing-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.landing-menu {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  padding: 0 var(--landing-header-pad-x);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.landing-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.landing-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
}

.landing-menu__list li + li {
  margin-top: 0.35rem;
}

.landing-menu__list button,
.landing-menu__list a {
  border: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--landing-text);
  text-decoration: none;
  padding: 0.2rem 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.landing-menu__list button:hover,
.landing-menu__list a:hover {
  color: var(--landing-accent);
}

/* —— Main —— */
.landing-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.landing-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--landing-header-pad-x) var(--landing-header-pad-x);
  gap: var(--landing-body-gap);
}

.landing-content-layer {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  align-self: stretch;
  height: 100%;
  z-index: 2;
}

.landing-text-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.landing-slide-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--landing-transition),
    visibility var(--landing-transition);
  pointer-events: none;
}

.landing-slide-text.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.landing-slide-text__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.landing-slide-text__card {
  max-width: 42rem;
}

/* Wrapper groups mobile mask; invisible on desktop layout */
.landing-slide-text__overlay {
  display: contents;
}

.landing-slide__banner {
  flex-shrink: 0;
  margin: 0;
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--landing-text);
}

.landing-page.is-menu-open .landing-slide__banner {
  opacity: 0;
  visibility: hidden;
}

/* About slide (rev 1) */
.landing-slide-text__card--about .landing-slide__lede {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  font-weight: 300;
  line-height: 1.5;
  /* max-width: 28rem; */
}

.landing-slide-text__card--about .landing-slide__subhead {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
}

.landing-slide__sanskrit {
  display: inline-block;
  padding: 0.1rem 0.5rem 0.15rem;
  background: #000000;
  color: #ffffff;
  /* font-family: var(--font-sans); */
  font-family: var(--font-serif);
  font-size: 0.72em;
  font-weight: 500;
  vertical-align: baseline;
}

.landing-slide__verse-word {
  margin-left: 0.85rem;
  font-family: var(--font-serif);
  font-size: 0.72em;
  font-weight: 400;
}

.landing-slide-text__card--about .landing-slide__copy {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  font-weight: 300;
  line-height: 1.5;
}

.landing-slide__headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1.08;
}

.landing-slide__copy {
  margin: 0;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--landing-text);
}

.landing-slide__copy--quote {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.55;
}

.landing-image-layer {
  flex: 0 0 var(--landing-image-width);
  width: var(--landing-image-width);
  align-self: center;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.landing-image-stack {
  position: relative;
  width: 100%;
  aspect-ratio: var(--landing-image-aspect-ratio);
  max-height: min(68vh, 600px);
}

.landing-slide__picture {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity var(--landing-image-transition);
  pointer-events: none;
}

.landing-slide__picture.is-visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.landing-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 2px;
}

.landing-image-layer .landing-slide__cta {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
}

.landing-image-layer .landing-slide__cta:hover {
  transform: translate(-50%, calc(-50% - 2px));
}

.landing-contact-modal {
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.landing-contact-modal__backdrop {
  display: none;
}

.landing-contact-modal__dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(68vh, 600px);
  margin: auto 0;
  padding: 1.35rem clamp(1rem, 2vw, 1.35rem);
  background: var(--landing-card-bg);
  border-radius: 12px;
  box-sizing: border-box;
  overflow: auto;
}

.landing-contact-modal__close {
  display: none;
}

.landing-collaborate-contact-btn {
  display: none;
}

.landing-collaborate-panel__title {
  margin: 0 0 1rem;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--landing-text);
}

.landing-collaborate-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  min-height: 0;
  margin: 0;
}

.landing-collaborate-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landing-collaborate-form__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--landing-text);
}

.landing-collaborate-form input,
.landing-collaborate-form textarea {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  resize: vertical;
}

.landing-collaborate-form input:focus,
.landing-collaborate-form textarea:focus {
  outline: 2px solid var(--landing-accent);
  outline-offset: 1px;
  border-color: transparent;
}

.landing-collaborate-form__submit {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 10px;
  background: var(--landing-cta);
  color: var(--landing-cta-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.landing-collaborate-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.landing-page[data-slide="3"] .landing-image-stack {
  visibility: hidden;
  pointer-events: none;
}

.landing-page[data-slide="3"] #landing-slide-cta {
  display: none !important;
}

/* —— Desktop: contact form in image column —— */
@media (min-width: 901px) {
  .landing-page[data-slide="3"] .landing-contact-modal {
    display: flex;
    position: absolute;
    top: 4.85rem;
    right: var(--landing-header-pad-x);
    bottom: var(--landing-header-pad-x);
    left: auto;
    z-index: 20;
    width: var(--landing-image-width);
    max-width: 400px;
    padding: 0;
    pointer-events: auto;
  }

  .landing-page[data-slide="3"] .landing-contact-modal__dialog {
    width: 100%;
    max-height: min(68vh, 600px);
    margin: 0;
  }
}

/* —— Mobile —— */
@media (max-width: 900px) {
  .landing-header {
    flex-wrap: nowrap;
    background: var(--landing-bg);
    padding-bottom: 0.85rem;
  }

  .landing-header__project {
    flex: 1 1 auto;
    font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  }

  .landing-burger {
    margin-left: auto;
  }

  /* Section nav: overlaid on hero, below header bar */
  .landing-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 320;
    flex: none;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem var(--landing-header-pad-x) 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 100%);
  }

  .landing-header__nav::-webkit-scrollbar {
    display: none;
  }

  .landing-header__nav-item {
    color: #ffffff;
    font-size: 0.8rem;
  }

  .landing-header__nav-item.is-active::before,
  .landing-header__nav-item.is-active::after {
    width: clamp(0.75rem, 3vw, 1.25rem);
    background: #ffffff;
  }

  .landing-main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
  }

  .landing-stage {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
  }

  .landing-image-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    flex: none;
    z-index: 0;
  }

  .landing-image-stack {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }

  .landing-slide__image {
    border-radius: 0;
    object-fit: cover;
    object-position: center center;
  }

  .landing-content-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    height: auto;
    background: transparent;
    padding: 3.75rem var(--landing-header-pad-x)
      calc(4.5rem + var(--landing-header-pad-x)) 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
  }

  .landing-text-viewport {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
  }

  .landing-slide-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 0;
    pointer-events: auto;
  }

  /* Single mask: flush left, inset from right edge only */
  .landing-slide-text__overlay {
    display: block;
    width: calc(100% - var(--landing-header-pad-x));
    max-width: 100%;
    margin: 0;
    padding: 1.25rem var(--landing-header-pad-x) 1.25rem 1.25rem;
    background: var(--landing-card-bg);
    box-sizing: border-box;
    /* overflow: hidden; */
  }

  .landing-slide-text__body {
    width: 100%;
    max-width: none;
    background: transparent;
    padding: 0;
    flex: none;
    min-width: 0;
  }

  .landing-slide-text__card {
    background: transparent;
    padding: 0;
    max-width: none;
    min-width: 0;
  }

  .landing-slide-text__card > * {
    margin: 0;
  }

  .landing-slide-text__card > * + * {
    margin-top: 1rem;
  }

  .landing-slide-text__card--about .landing-slide__subhead {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 1.25rem;
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    line-height: 1.15;
  }

  .landing-slide-text__card--about .landing-slide__lede,
  .landing-slide-text__card--about .landing-slide__copy {
    max-width: none;
  }

  .landing-slide__copy--quote {
    margin-top: 1rem;
  }

  .landing-slide__banner {
    width: 100%;
    max-width: none;
    margin: 1rem 0 0;
    padding: 0;
    background: transparent;
    font-size: clamp(2rem, 11vw, 3.15rem);
    line-height: 0.95;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  .landing-slide__banner + .landing-slide__banner {
    margin-top: 0.1rem;
    line-height: 0.95;
  }

  .landing-header__demo-cta {
    display: inline-flex;
    padding: 0.5rem 0.95rem;
    font-size: 0.8rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }

  .landing-image-layer .landing-slide__cta {
    top: auto;
    bottom: var(--landing-header-pad-x);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 5;
  }

  .landing-image-layer .landing-slide__cta:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  /* Collaborate: full-screen dark backdrop, contact opens in modal */
  .landing-page[data-slide="3"] .landing-stage {
    background: var(--landing-collaborate-mobile-bg);
  }

  .landing-page[data-slide="3"] .landing-image-stack {
    display: none;
  }

  .landing-page[data-slide="3"] .landing-image-layer {
    background: transparent;
  }

  .landing-slide-text[data-slide="3"] .landing-slide__banner {
    /* color: #ffffff; */
    color: var(--landing-text);
  }

  .landing-page[data-slide="3"] .landing-collaborate-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.7rem 1.35rem;
    border: 0;
    border-radius: 10px;
    background: var(--landing-cta);
    color: var(--landing-cta-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .landing-page[data-slide="3"] .landing-contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
    align-items: center;
    justify-content: center;
    padding: var(--landing-header-pad-x);
    pointer-events: none;
  }

  .landing-page[data-slide="3"] .landing-contact-modal.is-open {
    display: flex;
    pointer-events: auto;
  }

  .landing-page.is-contact-open {
    overflow: hidden;
  }

  .landing-page.is-contact-open .landing-content-layer {
    visibility: hidden;
    pointer-events: none;
  }

  .landing-page.is-contact-open .landing-header__nav {
    visibility: hidden;
    pointer-events: none;
  }

  .landing-page[data-slide="3"] .landing-contact-modal__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--landing-collaborate-mobile-bg);
  }

  .landing-page[data-slide="3"] .landing-contact-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 22rem;
    max-height: min(88vh, 640px);
    margin: 0;
    padding: 1.35rem clamp(1rem, 4vw, 1.25rem) 1.5rem;
    border-radius: 12px;
  }

  .landing-page[data-slide="3"] .landing-contact-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--landing-text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
  }

  .landing-page[data-slide="3"] .landing-contact-modal__close:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  .landing-page[data-slide="3"] .landing-collaborate-panel__title {
    padding-right: 2rem;
  }
}
