/* ============================================================
   Target — Sign-in
   Monochrome + single warm accent, bold display type, pill UI.
   ============================================================ */

:root {
  --ink-900: #0a0a0a;
  --ink-800: #171717;
  --ink-700: #2b2b2b;

  --accent-600: #e05a1a;
  --accent-500: #ef6c2c;
  --accent-tint: #fdece1;
  --accent-tint-border: #f7d3ba;

  --gray-50:  #fafafa;
  --gray-100: #f3f3f2;
  --gray-200: #e8e7e5;
  --gray-300: #d8d6d3;
  --gray-400: #b3b0ab;
  --gray-500: #8a8783;
  --gray-600: #6b6863;
  --gray-700: #4d4a46;

  --white: #ffffff;

  --font-display: "Space Grotesk", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --radius-pill: 100px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --ease-out: cubic-bezier(0.22, 0.8, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------- Top nav ---------------- */

/* flex-end so the wordmark's rule and the values' travelling rule share a
   baseline across the header. */
.topnav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 48px;
  flex: none;
}

/* Typographic logotype: tight display caps over a drawn accent rule. */

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-900);
  /* letter-spacing adds trailing space; pull the optical edge back */
  margin-right: -0.22em;
}

.wordmark-rule {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-600);
  transform: scaleX(0);
  transform-origin: left center;
  animation: rule-draw 0.9s var(--ease-out) 0.3s forwards;
}

@keyframes rule-draw {
  to { transform: scaleX(1); }
}

/* ---------------- Main content ---------------- */

.content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px 40px;
}

.hero-layout {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.signin-col {
  width: 100%;
  max-width: 396px;
  flex: none;
}





@keyframes dot-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(0.65); opacity: 0.5; }
}

/* Headline with masked line reveal */

.headline {
  font-family: var(--font-display);
  font-size: 41px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 14px;
}

.headline .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.headline .line-inner {
  display: block;
  transform: translateY(105%);
  animation: line-rise 0.85s var(--ease-out) forwards;
}

.headline .line:nth-child(1) .line-inner { animation-delay: 0.18s; }
.headline .line:nth-child(2) .line-inner { animation-delay: 0.29s; }

@keyframes line-rise {
  to { transform: translateY(0); }
}

.headline-muted {
  color: var(--gray-400);
}

.subline {
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-600);
  margin: 0 0 28px;
}

/* ---------------- Form ---------------- */

.select-wrap {
  position: relative;
  margin-bottom: 14px;
}

/* The account picker looks like a form field but opens the same drawn
   listbox as the department switcher, so the two lists read as one control. */
.account-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  text-align: left;
  color: var(--ink-900);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 15px 42px 15px 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.account-trigger:hover {
  border-color: var(--gray-300);
  background: var(--white);
}

.account-trigger:focus-visible,
.account-switch.is-open .account-trigger {
  outline: none;
  border-color: var(--ink-900);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.05);
}

.account-trigger:disabled {
  cursor: default;
  color: var(--gray-500);
}

.account-trigger-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-trigger-label.is-placeholder { color: var(--gray-500); }

.select-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  pointer-events: none;
  transition: transform 0.2s var(--ease-out);
}

.select-wrap:hover .select-caret {
  transform: translateY(-50%) translateY(1px);
}

.account-switch.is-open .select-caret {
  transform: translateY(-50%) rotate(180deg);
  color: var(--ink-900);
}

.account-menu {
  max-height: 320px;
  overflow-y: auto;
}

/* The right-hand value is the account's department scope, which can be a
   list, so it truncates rather than squeezing the name. */
.account-menu .dept-option-score {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Role headings between groups of accounts. */
.dept-group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 9px 11px 4px 37px;
}

.dept-group-label + .dept-option { margin-top: 1px; }

.dept-option + .dept-group-label {
  margin-top: 5px;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}

.account-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  animation: preview-in 0.42s var(--ease-out);
}

.account-preview[hidden] {
  display: none;
}

@keyframes preview-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
}

.account-preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.account-preview-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-preview-meta {
  font-size: 12px;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--gray-100);
  color: var(--gray-600);
}

.role-badge[data-role="admin"] {
  background: var(--ink-900);
  color: var(--white);
}

.role-badge[data-role="executive"] {
  background: var(--white);
  color: var(--ink-900);
  border: 1.5px solid var(--ink-900);
  padding: 2.5px 8.5px;
}

.role-badge[data-role="manager"] {
  background: var(--gray-100);
  color: var(--gray-700);
}

/* ---------------- Buttons ---------------- */

.btn-row {
  display: flex;
  gap: 10px;
}

.btn-primary {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  background: var(--ink-900);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.18s ease, transform 0.06s ease, opacity 0.18s ease;
}

.btn-primary svg {
  transition: transform 0.25s var(--ease-out);
}

.btn-primary:hover:not(:disabled) {
  background: var(--ink-700);
}

.btn-primary:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: not-allowed;
}

.btn-primary.is-loading {
  opacity: 0.75;
}

.signin-error {
  font-size: 13px;
  line-height: 1.45;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin: 0 0 18px;
}

.signin-error[hidden] { display: none; }

.btn-secondary {
  flex: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 14px 18px;
  cursor: not-allowed;
}

/* Single sign-on. Microsoft asks for its own grey-on-white and its square,
   which is the point: it has to read as the company account people already
   have, not as another password to invent. */
/* Holds the row's height while the API is asked which ways in are open, so
   nothing jumps when the buttons arrive. */
/* Coming back from Microsoft: the page stays down and the loading screen is
   up from the first frame. js/returning.js sets the class in the head, before
   any of this is parsed, so none of it is ever painted. */
/* The sign-in page starts as the loading screen and becomes a page only once
   it is known that somebody needs to sign in. Nothing has to work out whether
   this is a return from Microsoft: a return simply never reveals it, so the
   form cannot be shown to somebody who has just finished with it. */
.page { visibility: hidden; }
.is-ready .page { visibility: visible; }

/* The safety net. If the script never runs — blocked, broken, thrown — the
   page appears by itself rather than leaving a blank screen for ever. */
.page {
  animation: page-anyway 0s linear 8s forwards;
}

@keyframes page-anyway {
  to { visibility: visible; }
}

/* Which copy of Target this is. Never shown in production, where the
   absence of it is the point — so it is allowed to be loud. */
.env-mark {
  align-self: center;
  /* Hugs the wordmark: this header spreads its children apart, and the mark
     belongs to the name rather than floating between it and the next thing. */
  margin-right: auto;
  margin-left: 10px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  color: #8a5300;
  background: #fff4e0;
  border: 1px solid #ffd79a;
}

.env-mark[data-env="development"] {
  color: #1d4ed8;
  background: #eaf0ff;
  border-color: #c3d4ff;
}

.env-mark[hidden] { display: none; }

.signin-waiting {
  flex: 1 0 100%;
  margin: 0;
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--gray-500);
  text-align: center;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-pill);
}

.signin-waiting[hidden] { display: none; }

.btn-microsoft {
  /* Its own row, always: side by side the two labels cramp each other. */
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #5e5e5e;
  background: var(--white);
  border: 1px solid #8c8c8c;
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.06s ease;
}

.btn-microsoft:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: #5e5e5e;
}

.btn-microsoft:active:not(:disabled) { transform: translateY(1px); }

.btn-microsoft:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 164, 239, 0.25);
}

.btn-microsoft:disabled {
  color: var(--gray-500);
  border-color: var(--gray-200);
  cursor: not-allowed;
}

/* The squares stay their own colours; the button greys out around them. */
.btn-microsoft:disabled .ms-mark { opacity: 0.45; }

.ms-mark { flex: none; }

/* Hidden is hidden, whatever display these would otherwise take. */
.select-wrap[hidden],
.account-preview[hidden],
.btn-primary[hidden],
.btn-microsoft[hidden] { display: none; }

/* Two buttons fit side by side until they don't. */
.btn-row { flex-wrap: wrap; }

/* ---------------- Strategy list ---------------- */

.feature-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--gray-600);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feature-list li:hover::before {
  border-color: var(--accent-600);
  background: var(--accent-tint);
}

/* ---------------- Visual panel ---------------- */

.visual-col {
  flex: 1;
  max-width: 372px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.mockup-card {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* one-time light sweep across the card */
.mockup-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.72) 47%, transparent 60%);
  transform: translateX(-110%);
  pointer-events: none;
  animation: card-sweep 1.8s ease-in-out 1.15s;
}

@keyframes card-sweep {
  to { transform: translateX(110%); }
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-300);
}

.mockup-title-bar {
  margin-left: 8px;
  width: 72px;
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
}

/* Score ring + counter */

.score-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 16px;
}

.score-ring-wrap {
  position: relative;
  flex: none;
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.score-ring-track {
  stroke: var(--gray-200);
}

.score-ring-value {
  stroke: var(--accent-600);
  stroke-dasharray: 194.78;
  stroke-dashoffset: 194.78;
  animation: ring-draw 1.5s var(--ease-out) 0.5s forwards;
}

@keyframes ring-draw {
  to { stroke-dashoffset: 62.33; }
}

.score-value {
  position: relative;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.score-meta-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.score-meta-sub {
  font-size: 11px;
  color: var(--gray-500);
}

.score-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-600);
  background: var(--accent-tint);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
}

/* KPI rows */

.mockup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 11px 14px;
}

.mockup-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--gray-100);
}

.mockup-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mockup-line {
  height: 7px;
  border-radius: 4px;
  background: var(--gray-300);
}

.mockup-line-sub {
  height: 6px;
  background: var(--gray-200);
}

.mockup-meter {
  flex: none;
  width: 54px;
  height: 5px;
  border-radius: 3px;
  background: var(--gray-200);
  overflow: hidden;
}

.mockup-meter > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--ink-900);
  transform-origin: left center;
  animation: meter-fill 0.9s var(--ease-out) backwards;
}

.mockup-row:nth-of-type(1) .mockup-meter > span {
  animation-delay: 0.72s;
  background: var(--gray-700);
}

.mockup-row:nth-of-type(2) .mockup-meter > span {
  animation-delay: 0.84s;
  background: var(--gray-400);
}

@keyframes meter-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Bar chart */

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 52px;
  padding-top: 4px;
}

.mockup-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--ink-900);
  transform-origin: bottom;
  animation: grow-bar 0.75s var(--ease-out) backwards;
}

.mockup-chart span:nth-child(1) { opacity: 0.28; animation-delay: 0.55s; }
.mockup-chart span:nth-child(2) { opacity: 0.38; animation-delay: 0.61s; }
.mockup-chart span:nth-child(3) { opacity: 0.33; animation-delay: 0.67s; }
.mockup-chart span:nth-child(4) { opacity: 0.52; animation-delay: 0.73s; }
.mockup-chart span:nth-child(5) { opacity: 0.68; animation-delay: 0.79s; }
.mockup-chart span:nth-child(6) { opacity: 1; background: var(--accent-600); animation-delay: 0.85s; }
.mockup-chart span:nth-child(7) { opacity: 0.42; animation-delay: 0.91s; }

@keyframes grow-bar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.visual-caption {
  font-size: 12.5px;
  color: var(--gray-500);
  text-align: center;
  margin: 0;
  padding: 0 16px;
}

/* ---------------- Values ---------------- */

/* Sits opposite the wordmark in the header, so the travelling rule runs along
   the same line as the rule under the logotype. */
.values {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
}

.value {
  position: relative;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--gray-400);
  padding-bottom: 6px;
  white-space: nowrap;
  animation: value-text 9s linear infinite;
}

/* Echoes the rule under the wordmark — it draws beneath each value in turn. */
.value::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent-600);
  transform: scaleX(0);
  transform-origin: left center;
  animation: value-rule 9s var(--ease-out) infinite;
}

.values-list .value:nth-child(1),
.values-list .value:nth-child(1)::after { animation-delay: 0s; }
.values-list .value:nth-child(2),
.values-list .value:nth-child(2)::after { animation-delay: 2.25s; }
.values-list .value:nth-child(3),
.values-list .value:nth-child(3)::after { animation-delay: 4.5s; }
.values-list .value:nth-child(4),
.values-list .value:nth-child(4)::after { animation-delay: 6.75s; }

/* Each value holds for a quarter of the cycle and hands over as the next
   begins drawing, so the highlight reads as one mark travelling along. */
@keyframes value-text {
  0%        { color: var(--gray-400); }
  7%, 22%   { color: var(--ink-900); }
  25%, 100% { color: var(--gray-400); }
}

@keyframes value-rule {
  0%        { transform: scaleX(0); transform-origin: left center; }
  7%, 22%   { transform: scaleX(1); transform-origin: left center; }
  25%, 100% { transform: scaleX(0); transform-origin: right center; }
}

/* ---------------- Entrance ---------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.badge,
.subline,
#signin-form,
.feature-list,
.visual-col,
.values {
  opacity: 0;
  animation: rise 0.65s var(--ease-out) forwards;
}

.badge        { animation-delay: 0.04s; }
.subline      { animation-delay: 0.38s; }
#signin-form  { animation-delay: 0.46s; }

/* The form's entrance animation gives it its own stacking context, so it is
   raised as a whole for the open account list to sit above what follows. */
#signin-form {
  position: relative;
  z-index: 2;
}
.feature-list { animation-delay: 0.56s; }
.visual-col   { animation-delay: 0.24s; }
.values       { animation-delay: 0.14s; }

/* ---------------- Loading splash ---------------- */

/* Shown from the moment Sign in is pressed until the workspace has loaded:
   the wordmark alone, centred, with its accent rule running as the progress
   bar. When loading finishes the rule fills, then the splash fades away. */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.splash[hidden] { display: none; }

/* Nothing behind the splash should scroll or show a scrollbar. */
body:has(> .splash:not([hidden])) { overflow: hidden; }

.splash.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.splash-mark {
  align-items: stretch;
  gap: 11px;
}

.splash-mark .wordmark-text { font-size: 30px; }

/* The track is the rule in its lightest tint; the bar travels along it. */
.splash-rule {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--accent-tint);
}

.splash-rule::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: 2px;
  background: var(--accent-600);
  animation: splash-sweep 1.1s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

/* The bar is 40% of the track, so these ends leave a sliver of it showing at
   each side: the easing lingers there, and a bar fully off the track would
   read as the loader stalling. */
@keyframes splash-sweep {
  from { transform: translateX(-75%); }
  to   { transform: translateX(225%); }
}

.splash.is-done .splash-rule::before {
  animation: splash-fill 0.32s var(--ease-out) forwards;
}

@keyframes splash-fill {
  from { width: 40%; transform: translateX(0); }
  to   { width: 100%; transform: translateX(0); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- Listbox ---------------- */

/* Shared by the department switcher and the sign-in account picker. */
/* The drawn listbox — a native <select> renders its own list through the OS
   and cannot be styled, so the options live here instead. */
.dept-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  z-index: 40;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 13px;
  box-shadow: 0 16px 38px -12px rgba(10, 10, 10, 0.26), 0 2px 6px rgba(10, 10, 10, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: menu-in 0.16s var(--ease-out);
}

.dept-menu[hidden] { display: none; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dept-option {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.dept-option:hover { background: var(--gray-50); }

.dept-option:focus-visible,
.dept-option:focus {
  outline: none;
  background: var(--gray-100);
}

/* The group entry is a different kind of choice, so it sits above a rule. */
.dept-option.is-group {
  margin-bottom: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
  border-radius: 9px 9px 0 0;
}

.dept-option-check {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-600);
}

.dept-option-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dept-option.is-selected .dept-option-label {
  font-weight: 700;
  color: var(--ink-900);
}

.dept-option-score {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

.dept-option.is-selected .dept-option-score,
.dept-option:hover .dept-option-score {
  color: var(--ink-900);
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .badge,
  .subline,
  #signin-form,
  .feature-list,
  .visual-col,
  .values,
  .mockup-chart span,
  .mockup-meter > span,
  .headline .line-inner,
  .account-preview,
  .dept-menu,
  .splash-rule::before {
    opacity: 1;
    transform: none;
    animation: none;
  }

  /* Values stay legible and static rather than cycling. */
  .value {
    animation: none;
    color: var(--gray-600);
  }

  .value::after { display: none; }

  .wordmark-rule {
    transform: scaleX(1);
    animation: none;
  }

  /* A steady rule rather than a moving bar. */
  .splash-rule::before,
  .splash.is-done .splash-rule::before {
    width: 100%;
    animation: none;
  }

  .score-ring-value {
    animation: none;
    stroke-dashoffset: 62.33;
  }

  .badge-dot,
  .mockup-card::after {
    animation: none;
  }

  .mockup-card::after {
    display: none;
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero-layout {
    gap: 48px;
  }

  .visual-col {
    display: none;
  }
}

@media (max-width: 560px) {
  .topnav {
    padding: 20px 24px;
  }

  .headline {
    font-size: 33px;
  }

  .values { display: none; }
}

/* Tighten in stages before dropping the values entirely. */
@media (max-width: 1040px) {
  .values-list { gap: 26px; }
}

@media (max-width: 820px) {
  .values-list { gap: 18px; }

  .value { font-size: 12.5px; }
}
