.demo-access-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}

.demo-header {
  min-height: 104px;
  padding: 26px clamp(24px, 4.5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  border-bottom: 1px solid #333;
}

.demo-brand {
  display: block;
  flex: 0 1 368px;
}

.demo-brand img {
  width: 100%;
  height: auto;
}

.demo-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 0.82rem;
  color: #ccc;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  flex: 1;
}

.demo-story {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  padding: clamp(40px, 5vw, 80px) clamp(28px, 4.5vw, 72px) 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.demo-story-image {
  position: absolute;
  z-index: -2;
  inset: auto 0 0;
  width: 100%;
  height: 65%;
  object-fit: cover;
  object-position: center;
}

.demo-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 23%, rgba(19, 19, 19, 0.94) 38%, rgba(19, 19, 19, 0.13) 73%, rgba(19, 19, 19, 0.82) 100%);
}

.demo-story-copy .eyebrow {
  margin-bottom: 26px;
}

.demo-story h1 {
  font-size: clamp(3.5rem, 6.2vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.demo-story-description {
  margin-top: 26px;
  color: #ddd;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
}

.demo-event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  margin-top: 110px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.8rem;
}

.demo-event > span:first-child {
  font-weight: 700;
  letter-spacing: 0.07em;
}

.demo-event > span:last-child {
  color: #ddd;
}

.demo-event span[aria-hidden] {
  padding-inline: 7px;
  color: var(--cyan);
}

.demo-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(28px, 4.5vw, 72px);
  background: var(--silver);
}

.demo-entry-inner {
  width: 100%;
  max-width: 380px;
}

.demo-lock {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--ink);
  background: var(--white);
  border-radius: 50%;
}

.demo-lock svg {
  width: 23px;
  height: 23px;
}

.demo-entry-eyebrow {
  color: var(--muted);
  margin-bottom: 14px;
}

.demo-entry h2 {
  font-size: clamp(2.6rem, 4.3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.demo-entry-intro {
  max-width: 350px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.demo-form {
  margin-top: 32px;
}

.demo-password-field label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
  font-size: 0.9rem;
}

.demo-password-field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9b9b9;
  border-radius: var(--radius);
  font-size: 1.1rem;
}

.demo-password-field input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.demo-password-field input[aria-invalid] {
  border-color: #9e2929;
}

.demo-error {
  margin-top: 12px;
  color: #942626;
  font-size: 0.9rem;
  line-height: 1.4;
}

.demo-submit {
  width: 100%;
  min-height: 56px;
  justify-content: space-between;
  margin-top: 18px;
  padding-inline: 20px;
  color: var(--ink);
  background: var(--cyan);
  transition: background-color 150ms ease, color 150ms ease;
}

.demo-submit:hover {
  color: var(--white);
  background: var(--ink);
}

.demo-footer {
  min-height: 66px;
  padding: 18px clamp(24px, 4.5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  color: #aaa;
  font-size: 0.76rem;
  border-top: 1px solid #333;
}

.demo-footer p + p {
  margin-top: 0;
}

.demo-footer span[aria-hidden] {
  padding-inline: 9px;
  color: #666;
}

.demo-footer a {
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.demo-footer a:hover {
  color: var(--cyan);
}

.demo-footer .arrow-icon {
  width: 14px;
  height: 14px;
  margin-left: 3px;
}

@media (max-width: 800px) {
  .demo-header {
    min-height: 86px;
  }

  .demo-brand {
    flex-basis: 292px;
  }

  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-story {
    min-height: 365px;
    padding: 38px 28px 24px;
  }

  .demo-story-image {
    inset: 0 0 0 auto;
    width: 70%;
    height: 100%;
    object-position: 56% center;
  }

  .demo-story::after {
    background: linear-gradient(90deg, var(--ink) 15%, rgba(19, 19, 19, 0.75) 52%, rgba(19, 19, 19, 0.32)), linear-gradient(0deg, rgba(19, 19, 19, 0.8), transparent 40%);
  }

  .demo-story-copy .eyebrow {
    margin-bottom: 18px;
  }

  .demo-story h1 {
    font-size: clamp(3.3rem, 8.5vw, 4.6rem);
  }

  .demo-story-description {
    margin-top: 18px;
  }

  .demo-story-description br {
    display: none;
  }

  .demo-event {
    margin-top: 38px;
  }

  .demo-entry {
    padding: 46px 28px 54px;
  }

  .demo-entry-inner {
    max-width: 460px;
  }

  .demo-lock {
    margin-bottom: 22px;
  }

  .demo-entry h2 br {
    display: none;
  }

  .demo-entry-intro {
    max-width: none;
    margin-top: 18px;
  }
}

@media (max-width: 480px) {
  .demo-header {
    min-height: 82px;
    padding: 22px 24px;
    gap: 16px;
  }

  .demo-brand {
    flex: 0 1 154px;
  }

  .demo-preview-label {
    font-size: 0.7rem;
    gap: 7px;
  }

  .demo-story {
    padding-inline: 24px;
    min-height: 345px;
  }

  .demo-story h1 {
    font-size: clamp(2.9rem, 12vw, 3.8rem);
  }

  .demo-story-copy .eyebrow {
    font-size: 0.7rem;
  }

  .demo-event {
    font-size: 0.7rem;
    gap: 8px;
  }

  .demo-entry {
    padding-inline: 24px;
  }

  .demo-entry h2 {
    font-size: 2.7rem;
  }

  .demo-footer {
    padding-block: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-submit {
    transition: none;
  }
}
