/* The Dojo App · dojo-arrival.css · v6 · 2026-12-05 */
/* v6: the grid starts below the info bar (section 13); above it the ground is plain navy. */
/* v5: the four sign-in providers become one row of logo keys (section 12); the email-link key holds one line. */
/* v4: the framed logo lives in the info bar, which grows to hold it (section 11); the logo no longer sits above the trainee. */
/* v3: the calm entrance (login.html v32). The website's type and keys on the form (IBM Plex Mono and SFS Block, self-hosted from
   /fonts so they never wait on the theme); the trainee with the eight belt levels; the navy grid made plainly visible; the
   background video and its switch hidden. Sections 8 to 10 below; 10 is the website's logo heading the screen. */
/* v2: (before first deploy) the page around the phone frame on a wide screen is the website's navy ground with its grid. */
/* v1: the arrival from stabilizedflowstate.com (Will, 5 Dec: "when arriving at the dojo, it already feels
   familiar"). The login screen borrows the website's own vocabulary: the torii plate from the site's header,
   "DOJO" in the SFS Block face with the Dojo page's moving footage inside the letters (dojo-vtext.js), the
   site's faint 36px grid, and the site's arrival (each block rises 14px and fades in, .7–.8 s, the site's
   easing, 85 ms apart). Coming from the site (?from=site, or a stabilizedflowstate.com referrer) the screen
   also opens out of the same near-black navy the site faded into, so the two read as one move.
   Reduced motion: no rise, no veil; everything is simply there. */

:root { --arr-ease: cubic-bezier(.2,.7,.2,1); --arr-navy: #01070C; }

/* the website's grid, under the login video */
.phone {
  background-image:
    linear-gradient(rgba(159,223,231,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,223,231,.05) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px;
}

/* on a wide screen the page around the phone frame is the website's ground, not a light grey */
html:not(.light-theme) body {
  background-color: var(--arr-navy);
  background-image:
    radial-gradient(70% 60% at 50% 40%, rgba(21,120,134,.16), transparent 70%),
    linear-gradient(rgba(159,223,231,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,223,231,.04) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

/* the mark: the torii plate the website's header carries */
.logo-wrap .logo-plate {
  display: block; width: clamp(76px, 20vw, 104px); height: auto; aspect-ratio: 1; margin: 0 auto 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(159,223,231,.22), 0 12px 32px rgba(0,0,0,.55), 0 0 40px rgba(111,227,214,.10);
}
.logo-wrap .logo-the {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500;
  font-size: 12px; letter-spacing: .5em; text-indent: .5em; color: var(--text-muted, #9DABA9); margin: 0;
}
/* DOJO: the site's title face; the teal shows until the footage paints the letters */
.logo-wrap .logo-dojo {
  font-family: 'SFS Block', 'Inter Tight', system-ui, sans-serif; font-weight: 900;
  font-size: clamp(64px, 19vw, 104px); line-height: .92; letter-spacing: .01em;
  color: #157886; margin: 4px 0 10px;
}
.logo-wrap .logo-dojo > span { display: inline-block; }
.logo-wrap .logo-tag {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500;
  font-size: 11px; letter-spacing: .32em; text-indent: .32em; color: var(--accent-text, #6FE3D6);
}

/* the moving-picture letters (same rules as the website's) */
.vtext { position: relative; color: transparent !important; -webkit-text-fill-color: transparent; text-shadow: none !important; }
.vtext * { color: transparent !important; -webkit-text-fill-color: transparent !important; text-shadow: none !important; }
.vtext .vtext-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.vtext::selection { color: #04241F; -webkit-text-fill-color: #04241F; background: #6FE3D6; }

/* the arrival: each block rises into place, one after another, as on the website */
html.arr-armed [data-arr] { opacity: 0; transform: translateY(14px); }
html.arr-armed.arr-in [data-arr] {
  opacity: 1; transform: none;
  transition: opacity .7s var(--arr-ease) calc(120ms + var(--e, 0) * 85ms),
              transform .8s var(--arr-ease) calc(120ms + var(--e, 0) * 85ms);
}
/* coming from the website: the screen opens out of the navy the site faded into */
html.arr-from-site::after {
  content: ''; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  background: var(--arr-navy); opacity: 1; transition: opacity 1.1s var(--arr-ease);
}
html.arr-from-site.arr-in::after { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html.arr-armed [data-arr] { opacity: 1; transform: none; transition: none; }
  html.arr-from-site::after { display: none; }
}

/* ===== 8 · the website's type and keys on the form (v3) ===== */
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'SFS Block';font-style:normal;font-weight:900;font-display:swap;src:url(/fonts/sfs-block-intertight-900.woff2) format('woff2')}
:root{--sk-mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace;--sk-teal:#6FE3D6}

/* keys: the site's key font (polish.css): Plex Mono 500, caps, .12em */
html body :is(.primary-btn,.auth-btn,.magic-link-btn,.mode-tab,.logout-btn){
 font-family:var(--sk-mono) !important;font-weight:500 !important;letter-spacing:.12em !important;text-transform:uppercase !important;font-size:12px !important}
html body .auth-btn .lbl{font:inherit !important;letter-spacing:inherit !important}

/* section labels: the site's kicker (panels.css .hb-kicker) */
html body .grp-label{font:500 11px/1.2 var(--sk-mono) !important;letter-spacing:.14em !important;text-transform:uppercase;color:var(--sk-teal) !important}

/* headline: the site's block titles (SFS Block, caps) */
html body .headline{font-family:'SFS Block',var(--font-heading,sans-serif) !important;font-weight:900 !important;text-transform:uppercase;letter-spacing:-.01em !important;font-size:28px !important;line-height:1 !important}
html body .subhead{font-family:var(--sk-mono) !important;font-weight:400 !important;font-size:13px !important;letter-spacing:0 !important;color:#C9D4D3 !important}

/* fields: the site's form (panels.css .te-form) */
html body .field-input{background:rgba(1,7,12,.62) !important;border:1px solid #2a3b40 !important;border-radius:6px !important}
html body .field-input:focus-within{border-color:var(--sk-teal) !important;box-shadow:0 0 0 3px rgba(111,227,214,.18) !important}
html body .field-input input{font-family:var(--sk-mono) !important;font-size:14px !important}

/* small print */
html body :is(.remember-row,.forgot,.switch-line,.magic-link-sub,.or){font-family:var(--sk-mono) !important;font-size:11.5px !important;letter-spacing:.02em}

/* ===== 9 · the trainee and the belt levels, the grid, no video (v3) ===== */
.login-bg-video,.vo-switch{display:none !important}

.arr-figure{position:relative;width:min(58%,250px);margin:4px auto 0;aspect-ratio:900/1046;transform:translateX(-11%)}
.arr-figure::before{content:"";position:absolute;inset:8% 4% 0;border-radius:50%;
 background:radial-gradient(closest-side,rgba(21,120,134,.34),rgba(21,120,134,0) 72%);filter:blur(6px);z-index:0}
.arr-figure img{position:absolute;inset:0;width:100%;height:100%;z-index:1;
 -webkit-mask-image:linear-gradient(#000 78%,transparent 100%);mask-image:linear-gradient(#000 78%,transparent 100%)}
/* the levels, drawn only on him: a layer masked by his own silhouette */
.arr-levels{position:absolute;inset:0;z-index:2;pointer-events:none;
 -webkit-mask-image:url(figure-540.webp);mask-image:url(figure-540.webp);-webkit-mask-size:100% 100%;mask-size:100% 100%}
.arr-levels i{position:absolute;left:0;right:0;height:1px;top:calc(var(--y) * 1%);
 background:linear-gradient(90deg,rgba(111,227,214,.15),rgba(159,242,232,.85) 50%,rgba(111,227,214,.15));box-shadow:0 0 6px rgba(111,227,214,.45)}
/* the scale beside him */
.arr-scale{position:absolute;top:0;bottom:0;left:100%;margin-left:4%;width:30%;z-index:3;pointer-events:none}
.arr-scale span{position:absolute;left:0;top:calc(var(--y) * 1%);transform:translateY(-50%);display:flex;align-items:center;gap:5px;
 font:500 8.5px/1 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:#9DABA9;white-space:nowrap}
.arr-scale span::before{content:"";width:12px;height:1px;background:rgba(111,227,214,.5)}
.arr-scale span b{width:7px;height:7px;border-radius:1px;background:var(--c);box-shadow:0 0 0 1px rgba(159,223,231,.35);order:-1}
.arr-scale span{flex-direction:row}
.arr-scale::after{content:"";position:absolute;left:0;top:11%;bottom:5%;width:1px;background:linear-gradient(rgba(111,227,214,.0),rgba(111,227,214,.35) 15%,rgba(111,227,214,.35) 85%,rgba(111,227,214,0))}

/* DOJO: drawn by dojo-vtext.js v2 in SOLID mode (still fill, the site's engraved edge) */
.logo-wrap .logo-dojo{font-size:clamp(52px,15vw,84px) !important;margin-top:-4px !important}

/* the website's grid, plainly visible */
html body .phone{background-color:#01070C !important;background-image:radial-gradient(70% 38% at 50% 22%,rgba(21,120,134,.18),transparent 70%),linear-gradient(rgba(159,223,231,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(159,223,231,.06) 1px,transparent 1px) !important;background-size:auto,36px 36px,36px 36px !important}
html body .headline{font-size:clamp(22px,6.4vw,26px) !important;white-space:nowrap}

/* ===== 10 · the website's logo, framed as in the site header (finish.css .ssh-brand) (v3) ===== */
.arr-brand{display:inline-flex;align-items:center;gap:10px;margin:2px auto 8px;padding:5px 13px 5px 5px;
 background:linear-gradient(180deg,#0C1B22,#061118);border:1px solid rgba(111,227,214,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 6px 16px rgba(0,0,0,.65)}
.arr-brand-mark{width:40px;height:40px;padding:2px;border-radius:50%;object-fit:contain;
 background:radial-gradient(circle at 50% 38%,#FFFFFF 0,#E4EEEC 62%,#C9DBD8 100%);box-shadow:0 0 0 2px rgba(111,227,214,.65),0 0 0 5px rgba(111,227,214,.10),0 0 16px rgba(111,227,214,.34)}
.arr-brand-word{width:auto;height:40px;filter:drop-shadow(0 1px 0 rgba(0,0,0,.6))}
/* short phones (iPhone SE and the like): the figure and the title give the form more of the first screen */
@media (max-height:740px){
  .arr-figure{width:min(44%,190px)}
  .arr-brand{margin-bottom:4px}.arr-brand-mark{width:34px;height:34px}.arr-brand-word{height:34px}
  .logo-wrap .logo-dojo{font-size:clamp(46px,13vw,64px) !important}
}
#emailSectionLabel{margin-top:14px !important}

/* ===== 11 · the info bar holds the logo, like the website's header (v4) ===== */
.info-bar.arr-infobar{align-items:center !important;justify-content:space-between;gap:12px !important;min-height:62px !important;
 padding-top:8px !important;padding-bottom:10px !important;margin-bottom:12px !important}
.arr-infobar .arr-brand{margin:0;flex:none;padding:4px 11px 4px 4px}
.arr-infobar .arr-brand-mark{width:34px;height:34px}
.arr-infobar .arr-brand-word{height:34px}
.arr-info{display:flex;flex-wrap:wrap;justify-content:flex-end;align-content:center;row-gap:6px;column-gap:2px;min-width:0}
.arr-info .info-seg-fill{flex:1 0 100%;justify-content:flex-end;text-align:right}
@media (max-width:360px){.arr-infobar .arr-brand-word{height:28px}.arr-infobar .arr-brand-mark{width:28px;height:28px}}

/* ===== 12 · the sign-in providers as one row of logo keys (v5) =====
   Will, 5 Dec: "not such wide choices... enough room for a finger to point at a logo once easily recognized...
   conservative in our use of real estate". The four full-width bars become four keys in one row, each carrying the
   provider's own mark at 22 px on a 48 px target; the words stay for screen readers. The form area becomes a wrapping
   flex column so the four keys share a line while every other block keeps its full width. */
#loginFormArea{display:flex !important;flex-wrap:wrap;column-gap:10px;align-items:flex-start}
#loginFormArea > *{flex:0 0 100%;min-width:0}
#loginFormArea > .auth-btn{flex:1 1 0 !important;width:auto !important;min-width:0 !important;height:48px !important;min-height:48px !important;
 margin:0 0 12px !important;padding:0 !important;justify-content:center !important;gap:0 !important}
#loginFormArea > .auth-btn .lbl{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#loginFormArea > .auth-btn .ic{position:static !important;width:22px;height:22px;margin:0 !important;display:block;
 background:center/contain no-repeat}
#loginFormArea > .auth-btn .ic i{display:none !important}
#loginFormArea > .auth-btn[onclick*="google"] .ic{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cpath fill=%22%23EA4335%22 d=%22M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z%22/%3E%3Cpath fill=%22%234285F4%22 d=%22M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z%22/%3E%3Cpath fill=%22%23FBBC05%22 d=%22M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z%22/%3E%3Cpath fill=%22%2334A853%22 d=%22M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z%22/%3E%3C/svg%3E")}
#loginFormArea > .auth-btn[onclick*="apple"] .ic{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23F2F6F5%22 d=%22M16.37 12.62c-.02-2.27 1.86-3.37 1.94-3.42-1.06-1.55-2.7-1.76-3.28-1.78-1.4-.14-2.73.82-3.44.82-.71 0-1.8-.8-2.96-.78-1.52.02-2.93.89-3.71 2.25-1.59 2.75-.41 6.81 1.13 9.04.76 1.09 1.66 2.31 2.84 2.27 1.14-.05 1.57-.74 2.95-.74 1.37 0 1.76.74 2.96.71 1.23-.02 2-1.1 2.75-2.2.87-1.27 1.22-2.5 1.24-2.56-.03-.01-2.38-.91-2.42-3.61zM14.1 5.98c.63-.77 1.06-1.83.94-2.89-.91.04-2.01.61-2.66 1.37-.58.67-1.09 1.75-.96 2.79 1.02.08 2.05-.52 2.68-1.27z%22/%3E%3C/svg%3E")}
#loginFormArea > .auth-btn[onclick*="microsoft"] .ic{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 23 23%22%3E%3Cpath fill=%22%23F25022%22 d=%22M1 1h10v10H1z%22/%3E%3Cpath fill=%22%237FBA00%22 d=%22M12 1h10v10H12z%22/%3E%3Cpath fill=%22%2300A4EF%22 d=%22M1 12h10v10H1z%22/%3E%3Cpath fill=%22%23FFB900%22 d=%22M12 12h10v10H12z%22/%3E%3C/svg%3E")}
#loginFormArea > .auth-btn[onclick*="facebook"] .ic{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2212%22 fill=%22%231877F2%22/%3E%3Cpath fill=%22%23FFFFFF%22 d=%22M16.6 15.5l.5-3.5h-3.4V9.8c0-1 .5-1.9 2-1.9h1.5V5s-1.4-.2-2.7-.2c-2.8 0-4.6 1.7-4.6 4.7V12H6.9v3.5H10V24h3.7v-8.5z%22/%3E%3C/svg%3E")}
/* the email-link key holds one line (it wrapped to two in the key font) */
#loginFormArea .magic-link-btn{font-size:11px !important;letter-spacing:.06em !important;white-space:nowrap;min-height:48px !important;padding-top:0 !important;padding-bottom:0 !important}

/* ===== 13 · the grid starts below the info bar (v6) =====
   Will, 5 Dec: "have the grid start below the info box". dojo-arrival.js v3 measures where the info bar ends and sets
   --arr-grid-top on .phone. A plain navy layer covers everything above that line, and the grid lines are anchored to it,
   so the first grid line meets the bar's own bottom border. Before the measurement lands the variable is 0 and the page
   looks as it did. */
html body .phone{
 background-image:linear-gradient(#01070C,#01070C),radial-gradient(70% 38% at 50% 22%,rgba(21,120,134,.18),transparent 70%),linear-gradient(rgba(159,223,231,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(159,223,231,.06) 1px,transparent 1px) !important;
 background-size:100% var(--arr-grid-top,0px),auto,36px 36px,36px 36px !important;
 background-repeat:no-repeat,no-repeat,repeat,repeat !important;
 background-position:0 0,0 0,0 calc(var(--arr-grid-top,0px) - 1px),0 0 !important}
