:root {
  color-scheme: light;
  font-family: Aptos, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  --ink: #131421;
  --blue: #292ba0;
  --paper: #f6f6f3;
  --white: #fff;
  --muted: #45445d;
  --line: #d6d6e2;
  --lavender: #ebebff;
  --lilac: #b9baff;
  --error: #9e293a;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, p { margin: 0; }
button, input { font: inherit; }
button:enabled { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.gate {
  --gutter: clamp(16px, 4vw, 48px);
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.access-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .48fr) minmax(0, .52fr);
  width: min(100%, 1160px);
  min-height: min(640px, calc(100svh - 2 * var(--gutter)));
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px #10112513;
}
.access-copy {
  z-index: 1;
  display: grid;
  align-content: center;
  gap: clamp(28px, 4vw, 62px);
  padding: clamp(30px, 4vw, 60px) clamp(33px, 5.2vw, 76px) clamp(26px, 3.2vw, 47px) clamp(25px, 4vw, 57px);
}
.eyebrow {
  margin-bottom: clamp(13px, 2.4vw, 30px);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .125em;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 710;
}
.intro h1 {
  font-size: clamp(2.9rem, 6.25vw, 5.75rem);
  line-height: .91;
  font-weight: 660;
  letter-spacing: -.069em;
}
.intro h1 span { display: block; color: var(--blue); }

.access-art {
  position: absolute;
  inset: 0 0 0 43%;
  overflow: hidden;
  background: var(--lavender);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.access-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 54% 55%; }
.access-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #b9baffbe;
  clip-path: polygon(15% 0, 15.5% 0, .5% 100%, 0 100%);
  pointer-events: none;
}

#access-form {
  display: grid;
  gap: 10px;
  width: min(100%, 340px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
#access-form label { font-size: 14px; font-weight: 690; }
#access-code {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #79788e;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}
#access-code[aria-invalid="true"] { border-color: var(--error); }
#access-code[aria-invalid="true"] ~ .status { color: var(--error); }
#enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid transparent;
  background: var(--blue);
  color: var(--white);
  font-weight: 680;
}
#enter:enabled:hover { background: #202276; }
#enter:disabled { opacity: .66; cursor: wait; }
.status { min-height: 2.8em; color: var(--muted); font-size: 13px; line-height: 1.4; }

.reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}
.reader-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  border-bottom: 1px solid var(--line);
  padding: 4px clamp(9px, 3vw, 33px);
}
.reader-bar p { font-size: 13px; font-weight: 680; }
.reader-actions { display: flex; align-items: center; gap: 5px; }
#lock, #reader-pdf {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
#lock:hover, #reader-pdf:hover { border-color: var(--lilac); background: var(--lavender); }
#presentation { display: block; border: 0; width: 100%; height: 100%; }

@media (max-width: 760px) {
  .gate { --gutter: 12px; }
  .access-card { grid-template-columns: minmax(0, 1fr); min-height: 0; width: min(100%, 560px); }
  .access-copy { gap: 24px; padding: 24px 23px 20px; }
  .intro h1 { font-size: clamp(2.8rem, 10.4vw, 4.9rem); }
  #access-form { width: 100%; }
  .access-art { position: relative; inset: auto; height: clamp(115px, 26vh, 215px); clip-path: none; }
  .access-art img { object-position: 53% 56%; }
  .access-art::after { display: none; }
}

@media (min-width: 761px) and (max-height: 520px) {
  .gate { --gutter: 16px; }
  .access-copy { gap: 21px; padding-block: 18px 10px; }
  .eyebrow { margin-bottom: 11px; }
  .intro h1 { font-size: clamp(2.4rem, 8.5vh, 3.7rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .intro { animation: gate-copy-in 620ms cubic-bezier(.2, .75, .23, 1); }
  #access-form { animation: gate-copy-in 680ms cubic-bezier(.2, .75, .23, 1) 110ms backwards; }
  .access-art img { animation: gate-image-in 980ms cubic-bezier(.2, .75, .23, 1); }
  .access-art::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 36%, #fff7 50%, transparent 64%);
    animation: gate-light 1040ms cubic-bezier(.2, .75, .23, 1) 80ms both;
  }
  #enter { transition: background-color 180ms ease; }
  #enter span { transition: transform 180ms ease; }
  #enter:enabled:hover span { transform: translate(2px, -2px); }

  @keyframes gate-copy-in {
    from { transform: translateY(12px); opacity: .25; }
    to { transform: translateY(0); opacity: 1; }
  }
  @keyframes gate-image-in {
    from { transform: scale(1.09); opacity: .65; }
    to { transform: scale(1); opacity: 1; }
  }
  @keyframes gate-light {
    from { transform: translateX(-90%); opacity: 0; }
    24%, 57% { opacity: .64; }
    to { transform: translateX(94%); opacity: 0; }
  }
}
