/* The sign-in page: the owner's "HiComp digital rain splash" (2026-11-29).
   public/splash.js runs the rain and moves the page through its stages; this file is the look.
   Without the script the page is the end of the intro, standing still: the logo as a picture,
   "Welcome Aboard", and the sign-in. Nothing here comes from another address: the type is the
   device's own fixed-width face. */

.hc-page { margin: 0; background: #000000; }

.hc {
  --hc-rain: #00ff41;
  --hc-glow: rgba(0, 255, 65, 0.45);
  --hc-line: rgba(0, 255, 65, 0.42);
  --hc-pale: #b8ffc9;
  --hc-orange: #f76912;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #000000;
  color: var(--hc-rain);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.hc-rain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hc-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 75% at 50% 46%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.6) 100%); }

.hc-stack {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 6vw 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
}

/* The place of the logo. The rain writes it there; until the script runs it is a picture. */
.hc-logo { position: relative; margin: 0; flex: none; width: min(1000px, max(64vw, min(300px, 88vw))); aspect-ratio: 1000 / 139; }
.hc-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hc-live .hc-logo img { visibility: hidden; }
.hc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The two typed lines share one place. */
.hc-lines {
  margin: 0;
  height: 1.4em;
  display: grid;
  justify-items: center;
  font-size: clamp(12px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--hc-rain);
  text-shadow: 0 0 12px var(--hc-glow);
}
.hc-cell { grid-area: 1 / 1; position: relative; display: inline-block; }
.hc-line { display: inline-block; }
.hc-dot { color: var(--hc-orange); }
.hc-caret { display: none; position: absolute; top: 0.15em; bottom: 0.15em; left: 0; width: 0.6em; background: var(--hc-rain); box-shadow: 0 0 10px var(--hc-glow); }

/* Standing still (no script): the second line is there, the first is not. */
.hc-line1 { clip-path: inset(0 100% 0 0); }
.hc-line2 { clip-path: none; }

/* With the script: stage 0 rain, 1 line one types, 2 it holds, 3 it clears, 4 line two types,
   5 done. The times are the letters of each line (26 and 14) at the design's speed. */
.hc-live[data-stage="0"] .hc-line2,
.hc-live[data-stage="1"] .hc-line2,
.hc-live[data-stage="2"] .hc-line2,
.hc-live[data-stage="3"] .hc-line2 { clip-path: inset(0 100% 0 0); }
.hc-live[data-stage="1"] .hc-line1 { animation: hc-type 1.4625s steps(26, end) both; }
.hc-live[data-stage="2"] .hc-line1 { clip-path: none; }
.hc-live[data-stage="3"] .hc-line1 { animation: hc-untype 0.715s steps(26, end) both; }
.hc-live[data-stage="4"] .hc-line2 { animation: hc-type 1.1375s steps(14, end) both; }

.hc-live[data-stage="1"] .hc-caret1 { display: block; animation: hc-caret 1.4625s steps(26, end) both, hc-blink 1.05s linear 1.4625s infinite; }
.hc-live[data-stage="2"] .hc-caret1 { display: block; left: 100%; animation: hc-blink 1.05s linear infinite; }
.hc-live[data-stage="3"] .hc-caret1 { display: block; animation: hc-uncaret 0.715s steps(26, end) both; }
.hc-live[data-stage="4"] .hc-caret2 { display: block; animation: hc-caret 1.1375s steps(14, end) both, hc-blink 1.05s linear 1.1375s infinite; }
.hc-live[data-stage="5"] .hc-caret2 { display: block; left: 100%; animation: hc-blink 1.05s linear infinite; }

@keyframes hc-type { from { clip-path: inset(-0.5em 100% -0.5em -0.5em); } to { clip-path: inset(-0.5em 0 -0.5em -0.5em); } }
@keyframes hc-untype { from { clip-path: inset(-0.5em 0 -0.5em -0.5em); } to { clip-path: inset(-0.5em 100% -0.5em -0.5em); } }
@keyframes hc-caret { from { left: 0; } to { left: 100%; } }
@keyframes hc-uncaret { from { left: 100%; } to { left: 0; } }
@keyframes hc-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hc-in { from { opacity: 0; } to { opacity: 1; } }

/* Buttons, in the design's own shape. */
.hc-btn {
  box-sizing: border-box;
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--hc-line);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--hc-rain);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hc-btn:hover { background-color: #062b10; border-color: currentColor; }
.hc-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.hc-skip, .hc-replay { display: none; position: fixed; right: clamp(16px, 2.4vw, 36px); bottom: clamp(16px, 3.2vh, 32px); }
.hc-live:not([data-stage="5"]) .hc-skip { display: inline-flex; animation: hc-in 0.6s ease 0.8s both; }
.hc-live[data-stage="5"] .hc-replay { display: inline-flex; animation: hc-in 0.6s ease both; }

/* The sign-in. It is on the page from the start; with the script it waits for the intro to end
   (or to be skipped) and then comes up. */
.hc-signin {
  box-sizing: border-box;
  width: min(460px, 88vw);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--hc-line);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.72);
  text-align: center;
}
.hc-live .hc-signin { visibility: hidden; opacity: 0; }
.hc-live[data-stage="5"] .hc-signin { visibility: visible; opacity: 1; animation: hc-in 0.6s ease both; }
.hc-go { height: 52px; padding: 0 28px; border-color: var(--hc-rain); font-size: 14px; }
.hc-note { margin: 0; font-size: 12px; line-height: 1.6; letter-spacing: 0.04em; color: var(--hc-pale); }
.hc-error { padding: 10px 14px; border: 1px solid var(--hc-orange); border-radius: 2px; color: #ffd9c2; background: rgba(0, 0, 0, 0.6); }

/* The local shortcut ("on this Mac only"). */
.hc-dev { width: 100%; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--hc-line); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hc-dev label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hc-pale); }
.hc-dev select { box-sizing: border-box; width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--hc-line); border-radius: 2px; background: #000000; color: var(--hc-rain); font: inherit; font-size: 13px; }
.hc-dev select:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* The second way in: a name and a password, for an associate or an engineer without a company
   Google account. Folded until asked for; open after a try that did not go through. */
.hc-pass { width: 100%; padding-top: 12px; border-top: 1px solid var(--hc-line); }
.hc-pass > summary { cursor: pointer; font-size: 12px; letter-spacing: 0.06em; color: var(--hc-pale); list-style: none; }
.hc-pass > summary::-webkit-details-marker { display: none; }
.hc-pass > summary:hover { color: var(--hc-rain); }
.hc-pass > summary:focus-visible { color: var(--hc-rain); outline: 2px solid currentColor; outline-offset: 3px; }
.hc-pass form { margin: 14px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left; }
.hc-pass label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hc-pale); }
.hc-pass input { box-sizing: border-box; width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--hc-line); border-radius: 2px; background: #000000; color: var(--hc-rain); font: inherit; font-size: 14px; }
.hc-pass input:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hc-pass .hc-btn { align-self: center; margin-top: 6px; }
.hc-pass .hc-note { text-align: center; }

@media (max-width: 520px) {
  .hc-stack { padding: 32px 16px 84px; }
  .hc-lines { letter-spacing: 0.2em; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-btn { transition: none; }
  .hc-live[data-stage] .hc-line1, .hc-live[data-stage] .hc-line2, .hc-live[data-stage] .hc-caret, .hc-live .hc-signin, .hc-skip, .hc-replay { animation-duration: 0.01s; }
}
