@font-face {
  font-family: "Big Shoulders Display";
  src: url("./fonts/big-shoulders-display-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --orange: #ff5a1f;
  --ink: #20282c;
  --paper: #f4f0e8;
  --muted: #505b60;
  --dim: #c8ceca;
  --dark-rule: #485054;
  --paper-rule: #c5c4bc;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: Inter, system-ui, sans-serif;
  --edge: clamp(18px, 1.65vw, 36px);
  --desk-bar-height: 44px;
  --panel-gap: 9px;
  --gap: clamp(20px, 1.75vw, 36px);
  --member-width: clamp(310px, 25vw, 430px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.45 var(--body); }
h1, h2, h3, p, ol { margin: 0; }
:where(a, button, input, [tabindex]):focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.accent { color: var(--orange); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 5; inset: 8px auto auto 8px; padding: 14px 18px; background: var(--paper); color: var(--ink); outline-color: var(--ink); }

.masthead {
  display: grid; grid-template-columns: auto minmax(12ch, 1fr) auto; align-items: center;
  min-height: 62px; background: var(--paper); color: var(--ink); z-index: 3;
}
.identity { align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 6px var(--edge); background: var(--orange); }
.pass-mark { width: clamp(33px, 2.6vw, 46px); }
h1 { font: 850 clamp(38px, 3.7vw, 56px)/1 var(--display); letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap; }
.title-stop { color: white; }
.premise { justify-self: center; max-width: 37ch; padding-inline: var(--gap); font-size: clamp(15px, 1.14vw, 20px); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.reset-tools { display: flex; align-items: center; gap: 12px; padding-right: var(--edge); }
.reset-readout { font-size: 12px; line-height: 1.5; }
.schedule { color: var(--muted); }
.schedule time { font-variant-numeric: tabular-nums; white-space: nowrap; }
#reset-status:not(:empty) { color: var(--ink); font-weight: 650; }
.masthead { position: relative; }
button, summary, .narrow-links a { cursor: pointer; font: inherit; }
.reset-button, .narrow-links a, #shell-language {
  display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center;
  gap: 8px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 3px;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap;
}
#shell-language { background: transparent; color: var(--ink); padding-inline: 6px; border-color: #69736e; }
.reset-button:hover, #shell-language:hover, .narrow-links a:hover { background: var(--orange); color: var(--ink); }
.masthead button:focus-visible, .browser-bar .open-action:focus-visible { outline-color: #9c4121; }
.reset-button[aria-disabled="true"] { cursor: progress; }
.reset-button .icon { width: 16px; height: 16px; }
.narrow-note { display: none; }

.showcase {
  display: grid; min-height: 0; height: 100%;
  grid-template: "member guide" auto "member desk" minmax(0, 1fr) / var(--member-width) minmax(0, 1fr);
  gap: var(--panel-gap) var(--gap); padding: 12px var(--edge) 16px;
}
.member-panel { grid-area: member; min-height: 0; display: grid; grid-template-rows: 52px minmax(0, 1fr); gap: 9px; }
.member-caption, .browser-bar { display: flex; align-items: center; gap: 10px; border-inline-start: 3px solid transparent; }
.member-caption { gap: 12px; padding-inline: 10px 0; border-bottom: 1px solid var(--dark-rule); }
.member-caption > .icon { width: 19px; height: 19px; }
.member-caption h2, .browser-bar h2 { font: 650 15px/1.2 var(--body); letter-spacing: -.02em; }
.caption-rule { flex: 1; }
.pane-cue { display: none; font: 700 11px/1 var(--body); letter-spacing: .035em; text-transform: uppercase; }
[data-active-pane="member"] .member-caption, [data-active-pane="staff"] .browser-bar { border-inline-start-color: var(--orange); }
[data-active-pane="member"] .member-caption > .icon, [data-active-pane="member"] .member-caption .pane-cue { color: #ffa781; }
[data-active-pane="member"] .member-caption .pane-cue, [data-active-pane="staff"] .browser-bar .pane-cue { display: inline; }
[data-active-pane="staff"] .browser-bar { border-inline-start-color: #bd461d; }
[data-active-pane="staff"] .browser-bar .pane-cue { color: #923910; }
.open-action { display: inline-grid; place-items: center; width: 44px; min-height: 44px; flex: none; color: inherit; }
.open-action .icon { width: 17px; height: 17px; }
.open-action:hover { color: var(--orange); }
.phone-stage { position: relative; min-height: 0; isolation: isolate; overflow: hidden; }
.lane-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: #465054; pointer-events: none; }
.phone-fit { position: absolute; inset: 6px 7px 9px; }
.phone-case {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 414px;
  height: 888px;
  transform: translate(-50%, -50%) scale(var(--phone-scale, .6));
  border: 2px solid #d3d6d0;
  border-radius: 58px;
  background: linear-gradient(115deg, #b3b7af 0%, #687275 26%, #89928f 54%, #515c60 80%, #a2a8a3);
  box-shadow: inset 0 0 0 1px #e0e1d9, inset 0 0 0 4px #788184, inset 0 0 0 6px #313b3f,
    0 2px 4px #10151780;
}
.phone-case::before, .phone-case::after {
  content: "";
  position: absolute;
  width: 5px;
  border: 1px solid #c7ccc7;
  border-radius: 2px;
  background: #798386;
}
.phone-case::before { top: 171px; left: -6px; height: 48px; box-shadow: 0 60px #a1aba7; }
.phone-case::after { top: 206px; right: -6px; height: 76px; }
.earpiece, .home-bar { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 10px; }
.earpiece { top: 8px; width: 47px; height: 4px; background: #20282c; }
.earpiece::after { content: ""; position: absolute; left: calc(100% + 8px); top: -1px; width: 6px; height: 6px; border-radius: 50%; background: #252e35; }
.home-bar { bottom: 8px; width: 91px; height: 3px; background: #313a3c; }
.phone-glass { position: absolute; left: 10px; top: 20px; width: 390px; height: 844px; overflow: hidden; border-radius: 43px; background: var(--paper); box-shadow: 0 0 0 4px #182023; }
iframe { display: block; border: 0; background: white; }
#member-frame { width: 390px; height: 844px; }
.phone-glass:focus-within { outline: 3px solid var(--orange); }

.desk-panel {
  grid-area: desk;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: var(--desk-bar-height) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #747975;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.browser-bar { padding-left: 16px; padding-right: 4px; gap: 15px; border-bottom: 1px solid var(--paper-rule); }
.window-dots { display: flex; align-items: center; gap: 5px; padding-right: 15px; height: 16px; border-right: 1px solid #adada5; }
.window-dots i { display: block; width: 7px; height: 7px; border: 1px solid #737a76; border-radius: 50%; }
.window-dots i:first-child { background: #737a76; }
.browser-bar .open-action { margin-left: auto; }
.browser-bar .open-action:hover { color: #9c4121; }
.browser-bar .open-action:focus-visible { outline-offset: -4px; }
.desk-viewport { position: relative; min-height: 0; overflow: hidden; }
#staff-frame {
  position: absolute;
  inset: 0 auto auto 0;
  width: calc(100% / var(--desk-scale, 1));
  height: calc(100% / var(--desk-scale, 1));
  transform: scale(var(--desk-scale, 1));
  transform-origin: top left;
}

.guide { grid-area: guide; position: relative; min-width: 0; z-index: 2; }
.guide-strip { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 4px 0 16px; color: var(--paper); background: #2b3438; border: 1px solid #596163; border-left: 3px solid var(--orange); }
#guide-title:focus-visible + .guide-strip { outline: 3px solid var(--orange); outline-offset: 2px; }
.current-step { flex: 1; min-width: 0; margin-block: 5px; }
#review-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
#review-links a { display: inline-flex; align-items: center; min-height: 25px; color: inherit; text-decoration-color: #ffac8b; text-underline-offset: 3px; }
#current-meta, .step-role { font-size: 11px; line-height: 1.25; font-weight: 700; letter-spacing: .065em; }
#current-meta { color: #ffac8b; }
#current-instruction, #review-links { text-wrap: balance; font-size: clamp(14px, 1.1vw, 18px); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
#guide-toggle, #skip-step, #review-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; padding: 2px 12px; background: transparent; border: 0; color: var(--paper); font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; }
#guide-toggle:hover, #skip-step:hover, #review-action:hover { background: #39454a; }
#guide-toggle:focus-visible, #skip-step:focus-visible { outline-offset: -3px; }
#skip-step { color: var(--dim); font-size: 12px; font-weight: 500; }
.chevron { width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
[aria-expanded="true"] .chevron { transform: translateY(2px) rotate(225deg); }
#review-action { border-inline-end: 1px solid var(--dark-rule); }
#review-action input { margin: 0; width: 17px; height: 17px; accent-color: var(--orange); }
#review-action:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: -2px; }
[hidden] { display: none !important; }
.guide-list { position: absolute; right: 0; top: calc(100% + var(--panel-gap) + var(--desk-bar-height) + 2px); width: min(100%, 680px); max-height: calc(100dvh - 222px); overflow: auto; padding: 18px 22px 10px; border: 1px solid var(--dark-rule); border-top: 3px solid var(--orange); background: var(--ink); box-shadow: 0 12px 32px #10151675; }
.guide-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.guide-head h3, .narrow-note h2 { font: 800 32px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
#guide-count { margin-left: auto; color: var(--dim); font-size: 12px; }
progress { appearance: none; width: 52px; height: 6px; border: 0; color: var(--orange); background: white; }
progress::-webkit-progress-bar { background: white; }
progress::-webkit-progress-value { background: var(--orange); }
progress::-moz-progress-bar { background: var(--orange); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; border-top: 1px solid var(--dark-rule); padding: 12px 0; font-size: 14px; line-height: 1.35; }
.steps li p { text-wrap: balance; }
.step-number { position: relative; display: grid; place-items: center; min-width: 28px; height: 28px; border: 1px solid #87928f; border-radius: 2px; font: 700 18px/1 var(--display); }
.step-role { display: block; margin: 1px 0 3px; color: var(--dim); }
li[aria-current="step"] .step-number { border-color: var(--orange); background: var(--orange); color: var(--ink); }
li[aria-current="step"] .step-role { color: #ffac8b; }
li[data-complete] .step-number { font-size: 0; background: var(--paper); border-color: var(--paper); }
li[data-complete] .step-number::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 7px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: translate(-50%, -68%) rotate(-45deg); }
li[data-skipped] .step-number { border-style: dashed; color: var(--dim); }
li[data-skipped] p { color: var(--dim); }
.engineering { border-top: 1px solid var(--dark-rule); color: var(--dim); font-size: 13px; }
.engineering summary { min-height: 44px; padding: 12px 0; color: var(--paper); font-weight: 600; }
.engineering p { max-width: 64ch; margin-bottom: 10px; }
@media (min-width: 900px) {
  body { height: max(600px, 100dvh); display: grid; grid-template-rows: clamp(62px, 5vw, 72px) minmax(0, 1fr); }
  main { min-height: 0; }
}
@media (min-width: 900px) and (max-width: 1130px) {
  .masthead { grid-template-columns: auto minmax(12ch, 1fr) auto; }
  .identity { padding-inline: 12px; gap: 6px; }
  .premise { padding-inline: 12px; font-size: 15px; }
  .reset-tools { gap: 12px; padding-right: 12px; }
  .meta-dot { display: none; }
  .reset-readout strong { display: block; }
  #current-instruction, #review-links { text-wrap: balance; font-size: 13px; }
  #guide-toggle, #skip-step, #review-action { padding-inline: 6px; }
}
@media (max-width: 899.98px) {
  .masthead { grid-template-columns: 1fr; }
  .identity { padding: 16px var(--edge); }
  .premise { justify-self: start; padding: 14px var(--edge) 0; max-width: 46ch; }
  .reset-tools { justify-content: space-between; gap: 6px; padding: 14px var(--edge); }
  .reset-readout { margin-right: auto; }
  .meta-dot { display: none; }
  .reset-readout strong { display: block; }
  .reset-button { padding-inline: 10px; }
  .narrow-note { display: block; padding: 32px var(--edge); }
  .narrow-note p { max-width: 45ch; margin: 12px 0 20px; color: var(--dim); }
  .narrow-links { display: flex; flex-wrap: wrap; gap: 10px; }
  .narrow-links a { border-color: var(--dim); }
  .showcase { display: none; }
}
@media (max-width: 359px) {
  .reset-tools { display: grid; grid-template-columns: 1fr auto; justify-items: start; }
  .reset-readout { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .step-number, .reset-button { transition: background-color .16s ease, color .16s ease; }
}
