@font-face {
  font-family: Manrope;
  src: url("assets/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Satoshi;
  src: url("assets/Satoshi-Light.otf") format("opentype");
  font-weight: 200 300;
  font-display: swap;
}
:root {
  --surface: #fff;
  --ink: #0b0d10;
  --muted: #4b5563;
  --line: #e4e8ec;
  --edge: #727b89;
  --wash: #f7f8fa;
  --accent: #0b0d10;
  --on-accent: #fff;
  --error: #9e282b;
  --body: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: Satoshi, Manrope, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.5rem, 4.5vw, 5rem);
  --button-radius: 99px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
}
:root[data-theme="bgl"] {
  color-scheme: dark;
  --ink: #fff;
  --muted: #b0b0b0;
  --line: #242424;
  --edge: #7c7c7c;
  --wash: #0e0e0e;
  --accent: #fff;
  --on-accent: #050506;
  --error: #fff;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: var(--body);
  --button-radius: 0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
svg { display: block; }
.portal {
  display: grid;
  grid-template-columns: minmax(0, 50fr) minmax(0, 50fr);
  min-height: 100svh;
  transition: grid-template-columns 660ms var(--ease);
}
:root[data-flow] .portal { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
.landscape {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #050708;
}
.mountains, .mountain-shade, .labs-visual, .labs-visual img, .labs-visual canvas, .city-shade, .labs-ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mountains, .labs-visual img { object-fit: cover; }
.mountains { object-position: center 35%; }
[data-ready] .mountains { animation: mountain-arrival 1400ms var(--ease) backwards; }
@keyframes mountain-arrival {
  from { transform: scale(1.075); }
  to { transform: scale(1); }
}
.mountain-shade {
  background:
    linear-gradient(180deg, #05070812 40%, #050708bc 100%),
    radial-gradient(120% 55% at 50% 92%, #5a789647 0%, #3c546e1f 32%, transparent 62%),
    #05070870;
}
.labs-visual { background: #0e0e0e; }
.labs-visual, .labs-ground { visibility: hidden; pointer-events: none; }
.labs-visual img { object-position: 54% 50%; }
.labs-visual canvas { display: none; }
.labs-visual.is-live canvas { display: block; }
.city-shade { background: linear-gradient(180deg, #0505068c, transparent 31%, #05050619 62%, #050506d1); }
.landscape-content {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.1rem var(--gutter) 4.3rem;
  pointer-events: none;
}
.masthead { display: grid; align-items: start; min-height: 2.4rem; }
.group-brand { display: grid; width: max-content; justify-items: start; gap: .35rem; }
.group-brand img { width: 9.5rem; height: auto; }
.group-brand span {
  font: 500 .7rem/1.1 var(--body);
  text-transform: uppercase;
  letter-spacing: .21em;
}
.labs-brand { width: 10.4rem; }
.labs-caption, .labs-brand { display: none; }
[data-theme="bgl"] .group-brand, [data-theme="bgl"] .voyage { display: none; }
[data-theme="bgl"] .labs-caption, [data-theme="bgl"] .labs-brand { display: block; }
.voyage {
  font: 200 clamp(3.2rem, 5.15vw, 5.7rem)/1.03 var(--display);
  letter-spacing: -.035em;
  margin: 0;
}
[data-flow] .voyage { font-size: clamp(2.85rem, 4.4vw, 4.8rem); }
.labs-caption { width: min(100%, 27rem); }
.labs-blackgrid { width: 100%; }
.labs-word { width: 43%; margin-top: .65rem; }
.labs-tagline { width: 92%; margin-top: 1.25rem; color: #e9e9e9; }
.signin {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 2.1rem var(--gutter) 1.65rem;
  background: #fff;
}
.labs-ground { z-index: -1; background: #050506; }
.labs-ground::after {
  content: "";
  position: absolute;
  inset: 0 9%;
  border-inline: 1px solid #ffffff10;
}
/* White ink in difference mode follows the actual light/dark backdrop under each pixel. */
[data-wiping] .signin {
  --ink: #fff;
  --muted: #c7c7c7;
  --line: #858585;
  --edge: #aaa;
  --wash: #242424;
  --accent: #fff;
  --on-accent: #000;
  --error: #fff;
}
[data-wiping] :is(.signin-content, .portal-header, .portal-footer) { mix-blend-mode: difference; }
.portal-header { display: flex; justify-content: flex-end; min-height: 1.5rem; }
.step-count {
  align-self: flex-start;
  color: var(--ink);
  font: 500 .83rem/1.25 var(--body);
  font-variant-numeric: tabular-nums;
}
[data-flow] .step-count { animation: count-appear 510ms var(--ease) backwards; }
@keyframes count-appear { from { opacity: 0; transform: translateY(-5px); } }
.signin-content {
  align-self: center;
  width: min(100%, 29rem);
  margin-inline: auto;
  padding-block: 2.75rem;
}
h1, h2 { color: var(--ink); font-family: var(--display); font-weight: 200; letter-spacing: -.035em; }
h1 { font-size: 4.15rem; line-height: 1.01; margin: 0 0 2.35rem; }
h2 { font-size: 2.65rem; line-height: 1.05; margin: 0 0 1.8rem; }
[data-theme="bgl"] h2 { font-weight: 300; letter-spacing: -.028em; }
h1:focus, h2:focus { outline: none; }
.step.is-current { animation: step-arrival 400ms var(--ease) backwards; }
.step.is-current.swoop-in { animation: swoop-in 630ms var(--ease) backwards; }
@keyframes step-arrival { from { opacity: 0; transform: translateY(9px); } }
@keyframes swoop-in {
  from { opacity: 0; transform: translate(42px, 19px); clip-path: inset(0 0 75% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 -5% -8% -5%); }
}
.choices { border-top: 1px solid var(--line); }
.choice, .primary, .back {
  color: var(--ink);
  text-align: left;
  background: transparent;
}
.choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.12rem;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 3.85rem;
  padding: .8rem .1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: 500 1rem/1.3 var(--body);
  transition: border-color 210ms ease;
}
.choice:hover, .choice:focus-visible { border-bottom-color: var(--edge); }
.choice small { display: block; color: var(--muted); font: 400 .76rem/1.45 var(--body); margin-top: .28rem; }
[data-theme="bgl"] .choice > span { font-size: .79rem; letter-spacing: .18em; text-transform: uppercase; }
[data-theme="bgl"] .choice small { text-transform: none; letter-spacing: 0; }
.choice svg, .primary svg, .back svg, .show-credential svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.choice svg { transition: transform 240ms var(--ease); }
.choice:hover svg { transform: translateX(4px); }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: 46px;
  border-radius: var(--button-radius);
  padding: .65rem 1.3rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font: 500 .83rem/1.35 var(--body);
  letter-spacing: .04em;
  margin-top: 1.05rem;
  transition: opacity 150ms ease;
}
.primary svg { width: 1.05rem; }
.primary:hover { opacity: .82; }
[data-theme="bgl"] .primary { text-transform: uppercase; letter-spacing: .17em; }
input {
  width: 100%;
  min-height: 3.35rem;
  border: 1px solid var(--edge);
  border-radius: 0;
  background: var(--wash);
  color: var(--ink);
  padding: .75rem .9rem;
}
#email { border-radius: 99px; padding-inline: 1.1rem; }
input::placeholder { color: var(--muted); opacity: 1; }
input[aria-invalid="true"] { border-color: var(--error); }
.password-field { position: relative; }
.password-field input { padding-right: 3.45rem; }
.show-credential {
  position: absolute;
  top: 50%;
  right: .23rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: .7rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
}
.show-credential:hover { color: var(--ink); }
.field-note, .field-error { margin: .65rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.field-error { color: var(--error); }
.email-error { display: flex; align-items: flex-start; gap: .45rem; }
.email-error svg {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: .1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.code-status { overflow-wrap: anywhere; }
.text-button {
  display: inline;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .18em;
  font-weight: 500;
}
.text-button:hover { text-decoration-thickness: 2px; }
.recovery { display: block; min-height: 2.75rem; margin-top: .55rem; font-size: .875rem; }
.result-copy { line-height: 1.65; color: var(--muted); margin: 0 0 1rem; }
.portal-footer { display: flex; align-items: center; }
.back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 500;
  font-size: .85rem;
  border: 0;
  padding: 0;
}
.back:hover { text-decoration: underline; text-underline-offset: .23em; }
.back svg { width: 1rem; }

.glyph-sweep, .vg-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glyph-sweep { z-index: 4; }
.vg-loader { z-index: 5; display: grid; place-items: center; color: #fff; animation: vg-failsafe 1ms 3100ms both; }
@keyframes vg-failsafe { to { visibility: hidden; } }
.vg-pane, #vg-tiles { position: absolute; inset: 0; width: 100%; height: 100%; }
.vg-pane { background: #0b0d10d9; backdrop-filter: blur(36px) saturate(.76); }
.vg-stage { position: relative; display: grid; justify-items: center; gap: 1.4rem; padding: 0 1.25rem; text-align: center; }
.vg-stage svg { width: clamp(7.5rem, 12.5vw, 10.5rem); height: auto; }
.vg-stage path {
  fill: none;
  stroke: #fff;
  stroke-width: 10.5;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: vg-write 930ms cubic-bezier(.25, 1, .5, 1) forwards;
}
@keyframes vg-write { to { stroke-dashoffset: 0; } }
.vg-stage p { margin: 0; font: 300 1rem/1.5 var(--display); animation: step-arrival 550ms 280ms var(--ease) backwards; }
.vg-stage i { width: 8rem; height: 1px; background: #ffffff68; animation: vg-rule 1000ms var(--ease) backwards; }
@keyframes vg-rule { from { transform: scaleX(0); } }
.vg-loader.is-exiting .vg-stage path { animation: vg-unwrite 470ms ease-in both; }
@keyframes vg-unwrite { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -300; } }
.vg-loader.is-exiting .vg-stage { animation: vg-label-out 510ms ease both; }
@keyframes vg-label-out { 35% { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }
.vg-loader.is-exiting .vg-pane {
  mask-image: linear-gradient(135deg, transparent 0 46%, #000 54%);
  mask-size: 260% 260%;
  animation: vg-pane-exit 820ms linear both;
}
@keyframes vg-pane-exit { from { mask-position: 100% 100%; } to { mask-position: 0 0; } }

@media (max-width: 1150px) {
  h1 { font-size: 3.55rem; }
  h2 { font-size: 2.35rem; }
}
@media (max-width: 820px) {
  h1 { font-size: 3rem; }
  .voyage { font-size: 3.2rem; }
  [data-flow] .voyage { font-size: 2.65rem; }
}
@media (max-width: 650px) {
  .portal, :root[data-flow] .portal { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .landscape { block-size: 12.5rem; transition: block-size 620ms var(--ease); }
  [data-flow] .landscape { block-size: 9.6rem; }
  .landscape-content { padding: 1.15rem 1.4rem 1.15rem; gap: .8rem; }
  .mountains { object-position: 50% 38%; }
  .group-brand img { width: 7.15rem; }
  .group-brand span { font-size: .69rem; }
  [data-theme="bgl"] .labs-brand { display: none; }
  .voyage, [data-flow] .voyage { font-size: 2.05rem; }
  .labs-caption { width: 9rem; }
  .labs-word { margin-top: .3rem; }
  .labs-tagline { display: none; }
  .signin { padding: 1rem 1.4rem .8rem; }
  .signin-content { padding-block: 2.25rem; }
  h1 { font-size: 3.2rem; margin-bottom: 1.65rem; }
  h2 { font-size: 2.2rem; margin-bottom: 1.45rem; }
}
@media (max-width: 350px) {
  h1 { font-size: 2.65rem; }
  .signin { padding-inline: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .glyph-sweep, .vg-loader { display: none; }
}

