.account-access {
  position: relative;
}

.account-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.account-toggle:hover,
.account-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--orange);
}

.account-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  width: min(330px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-menu[hidden] { display: none; }
.account-menu strong { display: block; margin: 0 0 10px; }

.account-menu a {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
}

.account-menu a:hover { background: var(--panel-soft); }
.account-menu a span { color: var(--accent, var(--orange)); font-weight: 750; }
.account-menu a small { color: var(--muted); }
.account-menu a + a span { color: var(--blue); }

.account-settings {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.account-menu .account-setting {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
}

.account-menu .account-setting > span {
  color: var(--muted);
  font-size: var(--small-size);
  font-weight: 680;
}

.account-menu .account-setting select {
  height: 34px;
  max-width: 132px;
  padding-inline: 10px;
}

.site-header .brand {
  width: 150px;
  height: 64px;
  overflow: visible;
}

.site-header .brand img {
  width: 138px;
  height: 58px;
  object-fit: contain;
}

.site-footer .footer-brand {
  width: 150px;
  height: 92px;
  overflow: visible;
}

.site-footer .footer-brand img {
  width: 138px;
  height: 92px;
  object-fit: contain;
}

.hero-copy sup { color: var(--orange); font-weight: 800; }
.hero-patent-note {
  display: block;
  max-width: 660px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  border: 0;
}

.hero-proof span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.hero-proof span + span {
  border: 0;
}

.hero-story {
  position: relative;
  min-height: 540px;
  isolation: isolate;
}

.hero-story::before {
  position: absolute;
  inset: 7% 2% 4% 8%;
  z-index: -1;
  border-radius: 46% 54% 42% 58% / 55% 43% 57% 45%;
  content: "";
  background: radial-gradient(circle at 28% 28%, color-mix(in srgb, var(--orange) 20%, transparent), transparent 38%),
    radial-gradient(circle at 72% 68%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 42%),
    var(--page-deep);
}

.story-card,
.story-call {
  position: absolute;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.story-card {
  top: 34px;
  left: 8px;
  z-index: 2;
  width: 82%;
  min-height: 336px;
  padding: 28px;
  border-radius: 24px;
  background: var(--panel);
  transform: none;
}

.story-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.story-card-top img { width: 76px; height: 51px; object-fit: contain; }
.story-card-top span { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.story-card > strong { display: block; margin-top: 22px; font-size: 1.65rem; line-height: 1.1; }
.story-card-content { margin-top: 24px; padding: 21px 22px; border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--line)); border-radius: 16px; background: var(--panel-soft); }

.story-index {
  min-width: 0;
}
.story-index > span { color: var(--blue); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.story-index > strong { display: block; margin-top: 7px; font-size: 1.02rem; line-height: 1.28; }

.story-call {
  bottom: 12px;
  left: 42px;
  z-index: 4;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  width: 72%;
  padding: 20px 22px;
  border-color: color-mix(in srgb, var(--orange) 50%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--orange) 10%, var(--panel));
}
.story-phone { display: grid; width: 50px; height: 50px; border-radius: 50%; place-items: center; background: var(--orange); color: #fff; font-size: 1.35rem; }
.story-call div { display: grid; }
.story-call small { color: var(--orange); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.story-call strong { font-size: .96rem; }
.story-call div > span { color: var(--muted); font-size: .72rem; }

.access-option {
  grid-template-columns: 1fr;
  gap: 0;
}

/* Static-hosting safety: content stays visible even when JavaScript or
   intersection events are delayed. */
.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-story { width: min(100%, 700px); margin-inline: auto; }
}

@media (max-width: 760px) {
  .account-toggle { width: 39px; height: 39px; }
  .account-menu {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }
  .site-header .brand { width: 128px; height: 58px; }
  .site-header .brand img { width: 118px; height: 54px; }
  .hero-story { display: grid; gap: 12px; min-height: 0; }
  .hero-story::before { inset: 0; }
  .story-card,
  .story-call { position: relative; inset: auto; width: 100%; transform: none; }
  .story-card { min-height: 0; padding: 24px; }
  .story-card > strong { font-size: 1.4rem; }
  .story-card-content { padding: 18px; }
  .story-call { padding: 20px; }
}
