:root {
  --bg: #070b12;
  --bg-elevated: #0f1623;
  --surface: #141c2b;
  --border: #243044;
  --text: #e8edf5;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, .15);
  --max-width: 72rem;
  --radius: .75rem;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }
.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.125rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--text); max-width: 42rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-strong); color: var(--bg); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { color: var(--text); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .12rem;
  line-height: 0;
}
.brand-lockup__icon { display: block; width: auto; height: 2.35rem; }
.brand-lockup__word { display: block; width: auto; height: 1.45rem; margin-top: .12rem; margin-left: -.22rem; }
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #070b12eb;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 2rem;
  min-height: 4.25rem;
  padding: .65rem 0;
}
.header__logo { display: flex; align-items: center; text-decoration: none; line-height: 0; }
.header__logo:hover { text-decoration: none; opacity: .92; }
.header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem 1.35rem;
}
.header__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  padding: .35rem .15rem;
  white-space: nowrap;
  touch-action: manipulation;
}
.header__nav-link:hover,
.header__nav-link--active { color: var(--accent); text-decoration: none; }
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}
.footer__logo { display: block; max-height: 2.35rem; max-width: min(220px, 55vw); }
.footer__tagline,
.footer__copy { margin: 0; font-size: .85rem; color: var(--muted); }
.header__word {
  margin-left: .35rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}
.header__inner--staff {
  grid-template-columns: auto 1fr auto;
  column-gap: 1rem;
}
.header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem .85rem;
}
.pill-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: .2rem;
  padding: .2rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.pill-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  min-height: 44px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  touch-action: manipulation;
}
.pill-nav__item:hover { text-decoration: none; color: var(--text); }
.pill-nav__item--on {
  background: var(--accent);
  color: var(--bg);
}
.pill-nav__item--on:hover { color: var(--bg); }
.pill-nav__item--locked {
  opacity: .38;
  cursor: not-allowed;
}
.emu-banner {
  margin: 0;
  padding: .55rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-elevated));
  color: var(--text);
  font-size: .9rem;
}
@media (max-width: 40rem) {
  .header__inner--staff {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo tools"
      "pills pills";
    row-gap: .35rem;
  }
  .header__inner--staff .header__logo { grid-area: logo; }
  .header__inner--staff .header__tools { grid-area: tools; }
  .header__inner--staff .pill-nav { grid-area: pills; width: 100%; }
  .header__nav { gap: .15rem .55rem; }
  .header__nav-link { font-size: .88rem; }
  .section { padding: 2.25rem 0; }
  .section--tight { padding: 1.5rem 0; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  background: var(--surface);
}
.role-card h3 { margin: 0 0 .4rem; }
.role-card .eyebrow { margin-bottom: .45rem; }
.desk-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.25rem; }
.notice {
  padding: .9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.notice--ok { border-color: #34d399; }
.notice--err { border-color: #f87171; }
.people-list { display: grid; gap: .75rem; }
.person-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.slot-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem; }
.slot {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: .5rem;
  min-height: 44px;
  padding: .55rem .85rem;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
}
.slot--on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg-elevated)); }
.cal-form { display: grid; gap: .85rem; max-width: 32rem; }
.cal-form label { display: grid; gap: .3rem; font-weight: 600; }
.cal-form input,
.cal-form textarea,
.cal-form select {
  padding: .7rem .85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  font-size: 16px;
}
.person-row { flex-wrap: wrap; }
.role-card--action {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
}
.role-card--action:hover { border-color: var(--accent); }
.wizard {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  overflow: auto;
  padding: calc(env(safe-area-inset-top) + .75rem) 1rem calc(env(safe-area-inset-bottom) + 1.25rem);
}
.wizard__inner { width: min(100%, 36rem); margin: 0 auto; }
.wizard__steps {
  display: flex;
  gap: .35rem;
  margin: 0 0 1.25rem;
}
.wizard__step {
  flex: 1;
  height: .35rem;
  border-radius: 99px;
  background: var(--border);
}
.wizard__step--on { background: var(--accent); }
.provider-grid { display: grid; gap: .65rem; margin: 1rem 0; }
.provider-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  width: 100%;
  min-height: 56px;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.provider-btn strong { color: var(--text); }
.provider-btn span { color: var(--muted); font-size: .9rem; }
.provider-btn--on { border-color: var(--accent); }
.source-list { display: grid; gap: .75rem; margin: 1rem 0 1.5rem; }
.source-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--surface);
}
.source-row__top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
}
.busy-list { display: grid; gap: .65rem; margin: .75rem 0; }
.busy-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  font-weight: 600;
}
