/* Shared verbatim with the public landing page; keep frame geometry in sync. */
:root {
  --oraude-header-height: 104px;
  --oraude-scene-limit: 650px;
  --oraude-scene-height: min(var(--oraude-scene-limit), max(0px, calc(100vh - var(--oraude-header-height) - 40px)));
}
@supports (height: 100dvh) {
  :root { --oraude-scene-height: min(var(--oraude-scene-limit), max(0px, calc(100dvh - var(--oraude-header-height) - 40px))); }
}
/* Classic desktop scrollbars otherwise shift the public page by half a gutter. */
html { scrollbar-gutter: stable; }
html[data-brand-font="pending"] :is(.wordmark, .hero-wordmark, .footer-brand) { visibility: hidden; }
.wrap { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
:is(.header, .login-header) { height: var(--oraude-header-height); min-height: var(--oraude-header-height); }
.login-scene { flex: 0 0 var(--oraude-scene-height); height: var(--oraude-scene-height); max-height: var(--oraude-scene-height); }
@media (max-width: 1050px) { :root { --oraude-scene-limit: 600px; } }
@media (max-width: 780px) {
  :root { --oraude-header-height: 90px; --oraude-scene-limit: 100vh; }
  .wrap { width: min(560px, calc(100% - 48px)); }
}
@media (max-width: 520px) {
  :root { --oraude-header-height: 84px; }
  .wrap { width: calc(100% - 40px); }
}
@media (max-height: 600px) { :root { --oraude-header-height: 72px; } }
@media (min-width: 781px) {
  :is(.hero-scene, .login-scene) {
    position: relative; isolation: isolate; height: var(--oraude-scene-height);
    background: var(--bg) var(--oraude-backdrop) center bottom / cover no-repeat;
  }
  :is(.hero-scene, .login-scene)::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgb(3 23 16 / .35), rgb(3 23 16 / .12) 38%, transparent 65%), linear-gradient(180deg, var(--bg), transparent 18%, transparent 78%, var(--bg));
  }
  :is(.hero, .login-stage) {
    display: grid; grid-template-columns: 1.12fr 1fr; gap: 60px; align-items: stretch;
    height: 100%; min-height: 0; padding-block: 0; border-bottom: 1px solid var(--line);
  }
  .hero-text {
    align-self: center; min-height: 0; max-height: 100%; padding-block: 30px 32px;
    overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(226 193 133 / .38) transparent;
    overscroll-behavior-y: contain; scroll-padding-block: 18px;
  }
  .hero-art {
    display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; padding-bottom: 36px;
  }
  .hero-scene + .features { border-top: 0; }
}
@media (min-width: 781px) and (max-width: 1050px) { :is(.hero, .login-stage) { gap: 38px; } }
/* Preserve the public page's normal printable document. */
@media print {
  .hero-scene { height: auto; background: none; }
  .hero { display: block; height: auto; padding-block: 30px; border: 0; }
  .hero-text { overflow: visible; max-height: none; padding: 0; }
  .hero-art { display: none; }
}
