.access-page {
  min-height: 100svh;
  background: var(--night);
  color: var(--white);
}

.access-shell {
  min-height: 100svh;
  min-width: 0;
  overflow-x: hidden;
}

.access-story,
.access-panel {
  position: relative;
  min-width: 0;
  padding: 1.5rem;
}

.access-story {
  min-height: 52svh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 90, 31, .08), transparent 45%),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255, 255, 255, .06) 25%);
}

.access-story::before {
  position: absolute;
  width: 25rem;
  height: 25rem;
  right: -11rem;
  bottom: -9rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, .025), 0 0 0 7rem rgba(255, 255, 255, .018);
  content: "";
}

.access-story .brand-lockup {
  position: relative;
  z-index: 1;
}

.access-story .brand-logo {
  height: clamp(3.8rem, 8vw, 5.4rem);
}

.story-copy {
  position: relative;
  z-index: 1;
  margin-top: clamp(4rem, 14vh, 9rem);
  max-width: 50rem;
}

.story-copy .eyebrow {
  color: var(--signal);
}

.story-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .88;
}

.story-copy h1 em {
  color: var(--orange);
  font-style: normal;
}

.story-lead {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: #bcc4be;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.route-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin: 3rem 0 0;
  min-width: 0;
}

.route-line {
  position: absolute;
  top: .42rem;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, .25);
}

.route-stop {
  position: relative;
  min-width: 0;
  padding-top: 1.35rem;
  color: #8e9991;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.route-stop::before {
  position: absolute;
  top: .16rem;
  left: 0;
  width: .55rem;
  height: .55rem;
  border: 1px solid #818b83;
  border-radius: 50%;
  background: var(--night);
  content: "";
}

.route-stop.is-active {
  color: var(--white);
}

.route-stop.is-active::before {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 .28rem rgba(255, 90, 31, .18);
}

.route-stop b {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--font-display);
  font-size: .58rem;
}

.confidential-label {
  display: none;
}

.access-panel {
  display: grid;
  min-height: 48svh;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
}

.access-card {
  width: min(100%, 31rem);
  padding: 2rem 0;
}

.access-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-bottom: 2rem;
}

.access-modes a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.access-modes a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.access-modes a.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

body[data-access-mode="admin"] .access-modes a.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

body[data-access-mode="admin"] .card-index {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.card-index {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .67rem;
}

.access-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4rem);
  letter-spacing: -.055em;
  line-height: .95;
}

.access-help {
  max-width: 34rem;
  margin: 1rem 0 2.2rem;
  color: var(--ink-soft);
}

.access-card label {
  display: block;
  margin-bottom: .55rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.identity-field {
  margin-bottom: 1.5rem;
}

.identity-field[hidden] {
  display: none;
}

.email-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
}

.email-request-row input {
  min-width: 0;
  min-height: 52px;
  padding: .7rem 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
}

.email-request-row input:focus {
  border-color: var(--orange);
}

.request-code {
  min-height: 46px;
  padding: .7rem 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.request-code:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.request-code:disabled {
  cursor: wait;
  opacity: .65;
}

.field-note {
  margin: .45rem 0 0;
  color: var(--ink-soft);
  font-size: .7rem;
}

.access-card .confidentiality-check {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: .7rem;
  align-items: start;
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.confidentiality-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: .12rem 0 0;
  accent-color: var(--orange);
}

.code-field {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 2px solid var(--ink);
}

.code-field:focus-within {
  border-color: var(--orange);
}

.code-field input {
  min-width: 0;
  min-height: 54px;
  padding: .65rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .08em;
}

.reveal-code {
  min-width: 52px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.form-message {
  min-height: 1.5rem;
  margin: .65rem 0;
  color: var(--orange-deep);
  font-size: .86rem;
}

.form-message.is-success {
  color: #23734c;
}

.access-submit {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background .2s ease, transform .2s var(--ease);
}

.access-submit:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.access-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.access-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .65rem;
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: .7rem;
  letter-spacing: .04em;
}

.access-meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.access-meta i {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #3dbe7b;
}

.support-copy {
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  left: 1.5rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: .75rem;
  text-align: center;
}

.support-copy a {
  font-weight: 700;
  text-underline-offset: .2em;
}

@media (min-width: 800px) {
  .access-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(28rem, .85fr);
  }

  .access-story,
  .access-panel {
    min-height: 100svh;
    padding: clamp(2rem, 4vw, 4rem);
  }

  .story-copy {
    margin-top: clamp(7rem, 18vh, 12rem);
  }

  .route-preview {
    position: absolute;
    right: clamp(2rem, 4vw, 4rem);
    bottom: clamp(4rem, 9vh, 7rem);
    left: clamp(2rem, 4vw, 4rem);
  }

  .confidential-label {
    position: absolute;
    bottom: 1.4rem;
    left: clamp(2rem, 4vw, 4rem);
    display: block;
    margin: 0;
    color: #6e7971;
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .access-card {
    padding: 0;
  }

  .support-copy {
    bottom: 1.5rem;
  }
}

@media (min-width: 480px) {
  .email-request-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
