/* LynnAI home cover */
html {
  background: #fff;
}

body[data-page="home"] {
  --home-footer-height: 78px;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh + var(--home-footer-height));
  min-height: calc(100svh + var(--home-footer-height));
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

body[data-page="home"] main {
  min-height: 100vh;
  min-height: 100svh;
}

body[data-page="home"] .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 68px;
  grid-template-columns: auto 1fr auto;
  padding: 0 clamp(24px, 3vw, 44px);
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

body[data-page="home"] .brand {
  gap: 0;
}

body[data-page="home"] .brand span,
body[data-page="home"] .site-nav,
body[data-page="home"] .menu-button {
  display: none;
}

body[data-page="home"] .brand img {
  width: 34px;
  height: 34px;
  opacity: 0.86;
}

body[data-page="home"] .header-actions {
  grid-column: auto;
  min-width: 0;
  gap: 10px;
}

body[data-page="home"] .header-points,
body[data-page="home"] .user-menu,
body[data-page="home"] #loginButton {
  display: none !important;
}

body[data-page="home"] .header-actions .text-button {
  min-width: 0;
  min-height: 34px;
  padding: 0;
  color: rgba(7, 7, 7, 0.58);
  font-size: 14px;
  box-shadow: none;
}

body[data-page="home"] .header-actions .text-button:hover {
  color: var(--ink);
  box-shadow: none;
}

body[data-page="home"] .header-actions .home-enter-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  color: #fff;
  background: #111113;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

body[data-page="home"] .header-actions .home-enter-button:hover {
  color: #fff;
  background: #111113;
  box-shadow: 0 10px 24px rgba(17, 17, 19, 0.14);
}

body[data-page="home"] .home-cover-view {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(100vh - 28px);
  height: calc(100svh - 28px);
  min-height: 0;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.home-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-ip-wordmark-frame {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 52%;
  width: clamp(440px, 58vw, 910px);
  max-width: 86vw;
  margin: 0;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-1deg) scaleX(1.12);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  user-select: none;
  animation: home-ip-wordmark-reveal 1650ms cubic-bezier(0.28, 0.72, 0.12, 1) 240ms forwards;
  will-change: opacity, clip-path, filter;
}

.home-ip-wordmark-frame::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 12%;
  left: -12%;
  width: 14%;
  opacity: 0;
  transform: translateX(0) skewX(-8deg);
  background: linear-gradient(90deg, transparent, rgba(5, 5, 5, 0.18), transparent);
  filter: blur(7px);
  pointer-events: none;
  animation: home-ip-wordmark-sweep 1650ms cubic-bezier(0.28, 0.72, 0.12, 1) 240ms forwards;
}

.home-ip-wordmark {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.home-ip-character-stage {
  --home-character-rest-y: clamp(24px, 3.8vh, 42px);
  position: relative;
  z-index: 2;
  display: block;
  height: min(82vh, 920px);
  max-width: 82vw;
  opacity: 0;
  transform: translate3d(0, -110vh, 0) scale(0.985);
  animation: home-ip-character-descend 1100ms cubic-bezier(0.19, 1, 0.22, 1) 1880ms forwards;
  backface-visibility: hidden;
  contain: layout paint;
  will-change: opacity, transform;
}

.home-ip-character {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform-origin: center 48%;
  animation: home-ip-character-idle 6200ms ease-in-out 3600ms infinite;
}

.home-ip-character-stage picture {
  display: block;
  height: 100%;
}

.home-studio-statement {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 104px 24px;
  border-top: 1px solid rgba(17, 17, 19, 0.08);
  background: #f5f6f7;
}

.home-studio-copy {
  width: min(680px, 100%);
  margin: 0 auto;
  color: #111113;
  text-align: center;
}

.home-studio-copy p {
  max-width: 38em;
  margin: 0 auto;
  color: rgba(17, 17, 19, 0.68);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0;
}

.home-studio-copy p + p {
  margin-top: 22px;
}

.home-purpose-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}

.home-expression-strip {
  position: absolute;
  left: 50%;
  bottom: clamp(36px, 7vh, 70px);
  width: min(760px, calc(100% - 48px));
  height: clamp(154px, 14vw, 192px);
  overflow: hidden;
  transform: translateX(-50%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  pointer-events: none;
}

.home-expression-track {
  --expression-size: clamp(76px, 8.2vw, 108px);
  --expression-gap: clamp(16px, 2.2vw, 30px);
  display: flex;
  width: max-content;
  align-items: end;
  gap: var(--expression-gap);
  padding-top: 30px;
  animation: home-expression-marquee 28s linear infinite;
  will-change: transform;
}

.home-expression-sequence {
  display: flex;
  align-items: end;
  gap: var(--expression-gap);
}

.home-expression-strip img {
  display: block;
  width: var(--expression-size);
  height: auto;
  flex: 0 0 auto;
  min-width: 0;
  object-fit: contain;
  filter: grayscale(0.08);
}

.home-expression-sequence img:nth-child(2n) {
  transform: translateY(-8px);
}

.home-expression-sequence img:nth-child(3n) {
  transform: translateY(5px);
}

body[data-page="home"] .site-footer {
  width: 100%;
  max-width: 100%;
  flex: 0 0 var(--home-footer-height);
  height: var(--home-footer-height);
  min-height: 0;
  margin: 0;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: row wrap;
  gap: 10px 18px;
  color: rgba(9, 9, 9, 0.52);
  background: #fff;
  border-top: 1px solid rgba(17, 17, 19, 0.06);
  overflow-x: hidden;
}

body[data-page="home"] .site-footer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

body[data-page="home"] .site-footer a {
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

body[data-page="home"] .site-footer img {
  width: 15px;
  height: 15px;
  margin-right: 0;
  object-fit: contain;
  opacity: 0.76;
  vertical-align: 0;
}

@keyframes home-ip-wordmark-reveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(1.2px);
  }

  12% {
    opacity: 1;
  }

  72% {
    opacity: 1;
    clip-path: inset(0 16% 0 0);
    filter: blur(0.35px);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
}

@keyframes home-ip-wordmark-sweep {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(-8deg);
  }

  14% {
    opacity: 0.55;
  }

  78% {
    opacity: 0.26;
  }

  100% {
    opacity: 0;
    transform: translateX(800%) skewX(-8deg);
  }
}

@keyframes home-ip-character-descend {
  0% {
    opacity: 0;
    transform: translate3d(0, -110vh, 0) scale(0.985);
  }

  8% {
    opacity: 1;
  }

  76% {
    opacity: 1;
    transform: translate3d(0, calc(var(--home-character-rest-y) + 10px), 0) scale(1);
  }

  88% {
    opacity: 1;
    transform: translate3d(0, calc(var(--home-character-rest-y) - 4px), 0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, var(--home-character-rest-y), 0) scale(1);
  }
}

@keyframes home-ip-character-idle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes home-expression-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - (var(--expression-gap) / 2)));
  }
}

@media (max-width: 760px) {
  body[data-page="home"] {
    --home-footer-height: 106px;
  }

  body[data-page="home"] .site-header {
    height: 64px;
    min-height: 64px;
    grid-template-columns: auto 1fr auto;
    padding: 0 24px;
  }

  body[data-page="home"] .brand img {
    width: 30px;
    height: 30px;
  }

  body[data-page="home"] .header-actions {
    width: auto;
  }

  .home-ip-wordmark-frame {
    top: 54%;
    width: clamp(280px, 86vw, 410px);
    transform: translate(-50%, -50%) rotate(-1deg) scaleX(1.08);
    animation-duration: 980ms;
    animation-delay: 80ms;
  }

  .home-ip-wordmark-frame::after {
    animation-duration: 980ms;
    animation-delay: 80ms;
  }

  .home-ip-character-stage {
    --home-character-rest-y: clamp(18px, 3vh, 26px);
    height: min(78vh, 760px);
    max-width: 88vw;
    animation-duration: 760ms;
    animation-delay: 180ms;
  }

  .home-studio-statement {
    min-height: 100svh;
    padding: 80px 24px;
  }

  .home-studio-copy p {
    font-size: 14px;
    line-height: 1.82;
  }

  .home-purpose-line {
    gap: 14px;
  }

  .home-expression-strip {
    bottom: 24px;
    width: min(342px, calc(100% - 32px));
    height: 122px;
  }

  .home-expression-track {
    --expression-size: 58px;
    --expression-gap: 14px;
    padding-top: 24px;
    animation-duration: 24s;
  }

  .home-studio-copy p + p {
    margin-top: 18px;
  }

  body[data-page="home"] .site-footer {
    flex: 0 0 auto;
    height: auto;
    min-height: var(--home-footer-height);
    padding: 0 24px;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    line-height: 1.35;
    overflow: visible;
  }

  body[data-page="home"] .site-footer span,
  body[data-page="home"] .site-footer a {
    display: block;
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-ip-wordmark-frame,
  .home-ip-wordmark-frame::after,
  .home-ip-character-stage,
  .home-ip-character,
  .home-expression-track {
    animation: none;
  }

  .home-ip-wordmark-frame,
  .home-ip-character-stage {
    opacity: 1;
    filter: none;
  }

  .home-ip-character {
    transform: none;
  }

  .home-ip-character-stage {
    transform: translate3d(0, var(--home-character-rest-y), 0);
  }

  .home-ip-wordmark-frame {
    clip-path: inset(0 0 0 0);
  }
}
