/* Chicago Builds Portal V5.1 — Certificate × Desk */
:root {
  --ink: #0d130f;
  --ink-raised: #141c16;
  --ink-rule: #26332b;
  --currency-green: #1c4a33;
  --seal: #10301f;
  --phosphor: #8fc9a8;
  --live: #52d68f;
  --paper: #f1ede0;
  --paper-raised: #f8f5ec;
  --paper-rule: #d8d1bd;
  --steel: #5e6a60;
  --brass: #8a6d2f;
  --brass-ink: #b99a52;
  --ledger-red: #8c3a2e;
  --dur-micro: 120ms;
  --dur-ui: 220ms;
  --dur-page: 320ms;
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --font-display: "Besley", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  /* 1 = original design, 1.5 = +50% type AND layout (1:1 proportions) */
  --s: 1.5;
  --text: var(--s);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(15px * var(--s));
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: var(--currency-green); text-decoration: none; }
a:hover { color: var(--seal); }

.hidden { display: none !important; }

/* ——— Motion ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.card-enter {
  animation: cardEnter var(--dur-page) var(--ease-enter) both;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-enter {
  animation: pageEnter var(--dur-page) var(--ease-enter) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.is-entering-row {
  animation: rowIn var(--dur-ui) var(--ease-enter) both;
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-press { transform: scale(0.98); transition: transform var(--dur-micro) var(--ease-exit); }
.validation-draw::after {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 2px;
  width: 100%;
  background: var(--phosphor);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 280ms var(--ease-enter) forwards;
}
@keyframes drawLine {
  to { transform: scaleX(1); }
}
.error-shake {
  animation: shake 200ms var(--ease-exit);
  border-color: var(--ledger-red) !important;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ——— Login ——— ORIGINAL design + 25% scale only (does not use global --s) */
#view-login {
  --login-s: 1.35;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F1EDE0;
  position: relative;
  font-size: calc(15px * var(--login-s));
}
.login-desk {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #F1EDE0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(13, 19, 15, 0.015) 2px,
      rgba(13, 19, 15, 0.015) 3px
    );
}
.login-desk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0D130F;
  padding: calc(12px * var(--login-s)) calc(28px * var(--login-s));
  font-family: var(--font-mono);
  font-size: calc(10px * var(--login-s));
  letter-spacing: 0.14em;
  color: rgba(241, 237, 224, 0.5);
  flex-shrink: 0;
}
.login-desk-bar .private {
  color: #8FC9A8;
  letter-spacing: 0.14em;
}
.login-desk-bar .private--no-dot::before {
  content: none !important;
  display: none !important;
}
.login-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(64px * var(--login-s)) calc(20px * var(--login-s)) calc(48px * var(--login-s));
  position: relative;
  z-index: 1;
}
.login-card {
  width: min(calc(420px * var(--login-s)), 100%);
  background: #0D130F;
  color: #F1EDE0;
  border: 1px solid #26332B;
  border-radius: 2px;
  padding: calc(28px * var(--login-s)) calc(32px * var(--login-s)) calc(24px * var(--login-s));
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 253, 246, 0.06),
    0 3px 10px rgba(13, 19, 15, 0.18),
    0 16px 44px rgba(13, 19, 15, 0.28);
  overflow: hidden;
}
.login-card .skyline {
  position: absolute;
  right: calc(-26px * var(--login-s));
  top: calc(-34px * var(--login-s));
  width: calc(215px * var(--login-s));
  opacity: 0.45;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 25%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, black 25%, transparent 82%);
}
#view-login .pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: calc(9.5px * var(--login-s));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(143, 201, 168, 0.35);
  color: #8FC9A8;
  padding: calc(5px * var(--login-s)) calc(10px * var(--login-s));
  border-radius: 999px;
  margin-bottom: calc(16px * var(--login-s));
  position: relative;
  z-index: 1;
}
#view-login .login-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(calc(32px * var(--login-s)), 6vw, calc(40px * var(--login-s)));
  line-height: 1.02;
  margin: 0 0 calc(18px * var(--login-s));
  position: relative;
  z-index: 1;
  color: #F1EDE0;
}
#view-login .login-title .line2 { color: #8FC9A8; }

#view-login .facts {
  border-top: 1px solid #26332B;
  margin: 0 0 calc(20px * var(--login-s));
  position: relative;
  z-index: 1;
}
#view-login .fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(16px * var(--login-s));
  padding: calc(10px * var(--login-s)) 0;
  border-bottom: 1px solid #26332B;
  font-size: calc(12px * var(--login-s));
  flex-wrap: nowrap;
}
#view-login .fact .k {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--login-s));
  letter-spacing: 0.14em;
  color: #5E6A60;
  text-transform: uppercase;
  flex: 0 0 auto;
  white-space: nowrap;
}
#view-login .fact .v {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--login-s));
  letter-spacing: 0.04em;
  color: rgba(241, 237, 224, 0.88);
  text-align: right;
  white-space: nowrap;
}
#view-login .fact .v.accent { color: #8FC9A8; }

#view-login .field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--login-s));
  letter-spacing: 0.16em;
  color: #5E6A60;
  text-transform: uppercase;
  margin-bottom: calc(8px * var(--login-s));
  position: relative;
  z-index: 1;
}
#view-login .field,
#view-login .field-paper {
  width: 100%;
  background: #F8F5EC;
  border: 1px solid #D8D1BD;
  border-radius: 2px;
  color: #0D130F;
  padding: calc(14px * var(--login-s));
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  position: relative;
  z-index: 1;
  letter-spacing: 0.2em;
  font-size: calc(15px * var(--login-s));
}
#view-login .field:focus,
#view-login .field-paper:focus {
  border-color: #8FC9A8;
  box-shadow: 0 0 0 2px rgba(143, 201, 168, 0.25);
}
#view-login .field-error {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--login-s));
  color: #e08a7a;
  margin: calc(10px * var(--login-s)) 0 0;
  min-height: calc(16px * var(--login-s));
  position: relative;
  z-index: 1;
}

#view-login .btn-outline,
#view-login .btn-primary {
  width: 100%;
  margin-top: calc(16px * var(--login-s));
  background: transparent;
  color: #8FC9A8;
  border: 1px solid #8FC9A8;
  border-radius: 2px;
  padding: calc(14px * var(--login-s)) calc(16px * var(--login-s));
  font-family: var(--font-mono);
  font-size: calc(12px * var(--login-s));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
  position: relative;
  z-index: 1;
}
#view-login .btn-outline:hover,
#view-login .btn-primary:hover {
  background: rgba(143, 201, 168, 0.12);
}
#view-login .btn-outline:active,
#view-login .btn-primary:active { transform: scale(0.98); }

#view-login .login-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(12px * var(--login-s));
  margin-top: calc(18px * var(--login-s));
  font-size: calc(11px * var(--login-s));
  color: #5E6A60;
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
}
#view-login .login-foot span { white-space: nowrap; }
#view-login .login-foot a {
  color: #B99A52;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--login-s));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.login-desk-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(16px * var(--login-s));
  padding: calc(16px * var(--login-s)) calc(28px * var(--login-s)) calc(20px * var(--login-s));
  font-family: var(--font-mono);
  font-size: calc(9px * var(--login-s));
  letter-spacing: 0.08em;
  color: #5E6A60;
  border-top: 1px solid #D8D1BD;
  flex-shrink: 0;
}
.login-desk-foot span:last-child {
  color: #8A6D2F;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .login-shell { padding: calc(28px * var(--login-s)) calc(14px * var(--login-s)); }
  .login-card { padding: calc(22px * var(--login-s)) calc(18px * var(--login-s)); width: min(100%, calc(420px * var(--login-s))); }
  #view-login .fact { flex-wrap: wrap; }
  #view-login .fact .v { white-space: normal; width: 100%; text-align: right; }
  #view-login .login-foot { flex-wrap: wrap; }
  .login-desk-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .login-desk-bar { padding: calc(10px * var(--login-s)) calc(16px * var(--login-s)); }
}

/* ——— App shell ——— */
#view-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.app-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink-rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: calc(12px * var(--s));
  padding: 0 calc(20px * var(--s));
  min-height: calc(56px * var(--s));
}
.app-nav .brand {
  justify-self: start;
}
.app-nav .nav-links {
  justify-self: center;
}
.app-nav .nav-meta {
  justify-self: end;
  text-align: right;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: calc(8px * var(--s));
  font-family: var(--font-mono);
  font-size: calc(11px * var(--s));
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.brand b { color: var(--phosphor); font-weight: 600; }
.brand:hover b { color: #b7f0c4; }
a.brand { display: flex; align-items: baseline; gap: calc(8px * var(--s)); }
.nav-links {
  display: flex;
  align-items: center;
  gap: calc(4px * var(--s));
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  color: rgba(241, 237, 224, 0.62);
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: calc(18px * var(--s)) calc(10px * var(--s));
  border-bottom: 2px solid transparent;
  transition: color var(--dur-micro), border-color var(--dur-ui) var(--ease-enter);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a.nav-active {
  color: var(--paper);
  border-bottom-color: var(--phosphor);
}
.nav-meta {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.1em;
  color: var(--steel);
  white-space: nowrap;
}
.nav-meta .conf { color: var(--brass-ink); margin-right: 10px; }

.app-main {
  flex: 1;
  width: min(calc(1120px * var(--s)), 100%);
  margin: 0 auto;
  padding: calc(28px * var(--s)) calc(20px * var(--s)) calc(64px * var(--s));
}
.page-foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-rule);
  font-family: var(--font-mono);
  font-size: calc(9px * var(--s));
  letter-spacing: 0.08em;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  gap: calc(12px * var(--s));
  flex-wrap: wrap;
}

/* ——— Typography helpers ——— */
.kicker {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 calc(8px * var(--s));
}
h1.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(calc(36px * var(--s)), 6vw, calc(56px * var(--s)));
  line-height: 1.02;
  margin: 0 0 calc(12px * var(--s));
  letter-spacing: -0.01em;
}
h1.display .phos { color: var(--currency-green); }
.sub {
  color: var(--steel);
  max-width: 52ch;
  margin: 0 0 calc(28px * var(--s));
  font-size: calc(15px * var(--s));
}
.sub-oneline {
  white-space: normal;
  max-width: none;
}
@media (min-width: 900px) {
  .sub-oneline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.section-rule {
  border: 0;
  border-top: 3px double var(--paper-rule);
  margin: 0 0 calc(20px * var(--s));
}

/* ——— Home ——— */
.home-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: calc(24px * var(--s));
  align-items: start;
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-nav { display: flex !important; }
}
.mobile-nav {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: var(--ink);
  border-top: 1px solid var(--ink-rule);
  justify-content: space-around;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.mobile-nav a {
  color: rgba(241, 237, 224, 0.55);
  font-family: var(--font-mono);
  font-size: calc(9px * var(--s));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: calc(8px * var(--s)) calc(4px * var(--s));
  text-align: center;
}
.mobile-nav a.nav-active { color: var(--phosphor); }

.panel {
  background: var(--paper-raised);
  border: 1px solid var(--paper-rule);
  border-radius: 2px;
  padding: calc(16px * var(--s));
}
.panel h3 {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 calc(12px * var(--s));
  font-weight: 500;
}

.tape-head {
  display: flex;
  justify-content: space-between;
  gap: calc(12px * var(--s));
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.tape {
  border-top: 1px solid var(--paper-rule);
}
.tape-row {
  display: grid;
  grid-template-columns: calc(92px * var(--s)) 1fr auto;
  gap: calc(12px * var(--s));
  align-items: center;
  padding: calc(11px * var(--s)) calc(8px * var(--s));
  border-bottom: 1px solid var(--paper-rule);
  font-size: calc(13px * var(--s));
}
.tape-row .t {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--s));
  color: var(--steel);
  white-space: nowrap;
}
.tape-row .title { font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--s)); }
.tape-row .short { color: var(--steel); font-size: calc(12px * var(--s)); margin-top: 2px; }
.tape-row.is-current {
  background: var(--ink);
  color: var(--paper);
  border-left: 3px solid var(--phosphor);
  margin: 0 -8px;
  padding-left: 13px;
  padding-right: 8px;
}
.tape-row.is-current .t,
.tape-row.is-current .short { color: rgba(241, 237, 224, 0.55); }
/* Passed sessions on day-of: clearly greyed out */
.tape-row.is-done,
.tl-row.is-done {
  opacity: 0.38;
  filter: grayscale(0.85);
}
.tape-row.is-done .title,
.tl-row.is-done .tl-title {
  text-decoration: none;
  color: inherit;
}
.tape-row.is-done .chip,
.tl-row.is-done .chip {
  opacity: 0.9;
  border-color: rgba(94, 106, 96, 0.5);
  color: #5E6A60;
  background: transparent;
}
.tape-row.is-done .person-line .nm,
.tl-row.is-done .person-line .nm {
  color: inherit;
}
.chip {
  font-family: var(--font-mono);
  font-size: calc(9px * var(--s));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--paper-rule);
  color: var(--steel);
  padding: calc(4px * var(--s)) calc(8px * var(--s));
  border-radius: 2px;
  white-space: nowrap;
}
.tape-row.is-current .chip {
  background: var(--phosphor);
  color: var(--ink);
  border-color: var(--phosphor);
}
.chip.next {
  border-color: var(--currency-green);
  color: var(--currency-green);
}
.chip.evening {
  border-style: dashed;
  color: var(--brass);
  border-color: var(--brass);
}

.stage-card .time {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--s));
  color: var(--steel);
  letter-spacing: 0.08em;
}
.stage-card .stitle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(20px * var(--s));
  margin: calc(8px * var(--s)) 0;
  line-height: 1.15;
}
.stage-card .people { color: var(--steel); font-size: calc(13px * var(--s)); margin-bottom: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: calc(8px * var(--s)); }
.btn-ghost, .btn-fill {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: calc(10px * var(--s)) calc(12px * var(--s));
  cursor: pointer;
  border: 1px solid var(--paper-rule);
  background: transparent;
  color: var(--ink);
}
.btn-fill {
  background: var(--currency-green);
  border-color: var(--currency-green);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--currency-green); }

.search-inline {
  width: 100%;
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--paper-rule);
  border-radius: 2px;
  padding: calc(12px * var(--s)) calc(14px * var(--s));
  outline: none;
  font-size: calc(15px * var(--s));
}
.search-inline:focus { border-color: var(--currency-green); }

.interview-mini {
  list-style: none;
  margin: 0;
  padding: 0;
}
.interview-mini li {
  display: flex;
  justify-content: space-between;
  gap: calc(10px * var(--s));
  padding: calc(10px * var(--s)) 0;
  border-bottom: 1px solid var(--paper-rule);
  font-size: calc(13px * var(--s));
}
.interview-mini .who { font-family: var(--font-display); font-weight: 700; }
.interview-mini .blurb { color: var(--steel); font-size: calc(12px * var(--s)); text-align: right; }

.partner-strip {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-rule);
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.08em;
  color: var(--steel);
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px * var(--s)) calc(14px * var(--s));
  align-items: center;
}
.partner-strip strong { color: var(--ink); font-weight: 600; }

/* ——— Who's going ——— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px * var(--s));
  margin: calc(16px * var(--s)) 0;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--paper-rule);
  background: transparent;
  color: var(--steel);
  padding: calc(8px * var(--s)) calc(12px * var(--s));
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--dur-ui), color var(--dur-ui), border-color var(--dur-ui);
}
.filter-chip.chip-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--phosphor);
}
.filter-chip:active { transform: scale(0.98); }
.shown-label {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--s));
  color: var(--brass);
  letter-spacing: 0.08em;
  margin: 0 0 calc(10px * var(--s));
}
.ledger {
  border-top: 1px solid var(--paper-rule);
}
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: calc(12px * var(--s));
  align-items: center;
  padding: calc(12px * var(--s)) calc(4px * var(--s));
  border-bottom: 1px solid var(--paper-rule);
  min-height: calc(44px * var(--s));
}
.ledger-row:hover { background: rgba(248, 245, 236, 0.9); }
.ledger-row .person { min-width: 0; }
.ledger-row .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(16px * var(--s));
  line-height: 1.15;
}
.ledger-row .co {
  color: var(--steel);
  font-weight: 400;
  font-size: calc(13px * var(--s));
  margin-top: 2px;
}
.tag {
  font-family: var(--font-mono);
  font-size: calc(9px * var(--s));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--paper-rule);
  color: var(--currency-green);
  padding: calc(4px * var(--s)) calc(8px * var(--s));
  border-radius: 2px;
}
.li-link {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.08em;
  color: var(--steel);
  text-transform: uppercase;
}
.li-link:hover { color: var(--currency-green); }
.empty {
  padding: calc(32px * var(--s)) calc(8px * var(--s));
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: calc(12px * var(--s));
  letter-spacing: 0.06em;
}

/* ——— Schedule ——— */
.tl-row {
  display: grid;
  grid-template-columns: calc(110px * var(--s)) 1fr auto;
  gap: calc(16px * var(--s));
  padding: calc(16px * var(--s)) calc(8px * var(--s));
  border-bottom: 1px solid var(--paper-rule);
}
.tl-row.is-current {
  background: var(--ink);
  color: var(--paper);
  border-left: 3px solid var(--phosphor);
}
.tl-row.is-current .meta,
.tl-row.is-current .desc { color: rgba(241, 237, 224, 0.6); }
.tl-time {
  font-family: var(--font-mono);
  font-size: calc(12px * var(--s));
  color: var(--steel);
}
.tl-row.is-current .tl-time { color: var(--phosphor); }
.tl-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(18px * var(--s));
  margin: 0 0 calc(6px * var(--s));
}
.meta {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--s));
  color: var(--steel);
  margin-bottom: 4px;
}
.desc { font-size: calc(13px * var(--s)); color: var(--steel); }

/* ——— Partners / Interviews ——— */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(180px * var(--s)), 1fr));
  gap: calc(10px * var(--s));
}
.wall-cell {
  border: 1px solid var(--paper-rule);
  background: var(--paper-raised);
  padding: calc(18px * var(--s)) calc(14px * var(--s));
  border-radius: 2px;
  min-height: calc(88px * var(--s));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--dur-micro);
}
.wall-cell:hover { border-color: var(--currency-green); }
.wall-cell .pn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(16px * var(--s));
}
.wall-cell .pw {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: 12px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--s));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: calc(28px * var(--s)) 0 calc(14px * var(--s));
  font-weight: 500;
}
.iv-card {
  border-top: 3px double var(--paper-rule);
  border-left: 1px solid var(--paper-rule);
  border-right: 1px solid var(--paper-rule);
  border-bottom: 1px solid var(--paper-rule);
  padding: calc(18px * var(--s)) calc(16px * var(--s));
  margin-bottom: 12px;
  background: var(--paper-raised);
  transition: border-top-color var(--dur-ui);
}
.iv-card:hover { border-top-color: var(--currency-green); }
.iv-label {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.14em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.iv-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(22px * var(--s));
  margin: 0 0 calc(6px * var(--s));
}
.iv-blurb { color: var(--steel); margin: 0 0 12px; font-size: calc(15px * var(--s)); }
.iv-link {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--currency-green);
  position: relative;
  display: inline-block;
}
.iv-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-enter);
}
.iv-card:hover .iv-link::after { transform: scaleX(1); }

.linkish {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--s));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--currency-green);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.linkish:hover { color: var(--seal); }

/* Schedule modal */
body.modal-open { overflow: hidden; }
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px * var(--s)) calc(16px * var(--s));
}
.modal-root.hidden { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 15, 0.62);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(calc(920px * var(--s)), 100%);
  max-height: min(88vh, calc(960px * var(--s)));
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-rule);
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  padding: calc(28px * var(--s)) calc(28px * var(--s)) calc(36px * var(--s));
  outline: none;
  animation: pageEnter var(--dur-page) var(--ease-enter) both;
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: calc(40px * var(--s));
  height: calc(40px * var(--s));
  border: 1px solid var(--paper-rule);
  background: var(--paper-raised);
  color: var(--ink);
  font-size: calc(28px * var(--s));
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}
.modal-close:hover { border-color: var(--currency-green); }
.modal-kicker {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 calc(10px * var(--s));
  clear: both;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(calc(36px * var(--s)), 5vw, calc(56px * var(--s)));
  line-height: 1.02;
  margin: 0 0 calc(16px * var(--s));
}
.modal-title .phos { color: var(--currency-green); }

@media (max-width: 640px) {
  .tape-row { grid-template-columns: calc(72px * var(--s)) 1fr; }
  .tape-row .chip { grid-column: 2; justify-self: start; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .ledger-row { grid-template-columns: 1fr auto; }
  .ledger-row .li-link { grid-column: 2; grid-row: 1; }
  .ledger-row .tag { grid-column: 1; }
  .app-nav { padding: calc(10px * var(--s)) calc(14px * var(--s)); min-height: auto; flex-wrap: wrap; }
  .nav-meta .conf { display: none; }
  .login-card { width: min(100%, calc(420px * var(--s))); }
}


/* ——— Scale-aware layout fixes (text + boxes stay 1:1) ——— */

/* Login card grows with type so fact rows / footer stay one line */
.login-card {
  width: min(calc(420px * var(--s)), 100%);
}
.fact {
  flex-wrap: nowrap;
  align-items: baseline;
  gap: calc(16px * var(--s));
}
.fact .k { flex: 0 0 auto; white-space: nowrap; }
.fact .v {
  flex: 1 1 auto;
  white-space: nowrap;
  text-align: right;
  min-width: 0;
}
.login-foot {
  flex-wrap: nowrap;
  gap: calc(12px * var(--s));
}
.login-foot span {
  white-space: nowrap;
}
.sheet-foot {
  max-width: none;
  width: 100%;
  padding: 0 calc(24px * var(--s)) calc(24px * var(--s));
  white-space: normal;
  text-wrap: balance;
}
@media (min-width: 720px) {
  .sheet-foot {
    white-space: nowrap;
  }
}

/* Session tape: time column tracks text size so times never collide with titles */
.tape-row {
  grid-template-columns: max-content 1fr auto;
  column-gap: calc(16px * var(--s));
  align-items: start;
}
.tape-row .t {
  white-space: nowrap;
  min-width: calc(7.5ch * var(--s));
  padding-right: calc(8px * var(--s));
}
.tape-row .title {
  line-height: 1.2;
}
.tl-row {
  grid-template-columns: max-content 1fr auto;
  column-gap: calc(20px * var(--s));
  align-items: start;
}
.tl-time {
  white-space: nowrap;
  min-width: calc(7.5ch * var(--s));
}

/* Home grid / panels breathe with scale */
.app-main {
  width: min(calc(1120px * var(--s)), 100%);
  padding: calc(28px * var(--s)) calc(20px * var(--s)) calc(64px * var(--s));
}
.home-grid {
  gap: calc(24px * var(--s));
}
.panel {
  padding: calc(16px * var(--s));
  overflow: hidden;
}
.search-inline {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Nav height tracks type */
.app-nav {
  min-height: calc(56px * var(--s));
  padding: 0 calc(20px * var(--s));
  gap: calc(16px * var(--s));
}
.nav-links a {
  padding: calc(18px * var(--s)) calc(10px * var(--s));
}

/* Page foot: prefer one line when space allows */
.page-foot {
  flex-wrap: wrap;
  gap: calc(12px * var(--s));
}
@media (min-width: 900px) {
  .page-foot {
    flex-wrap: nowrap;
  }
  .page-foot span {
    white-space: nowrap;
  }
}

.modal-panel {
  width: min(calc(920px * var(--s)), 100%);
  padding: calc(28px * var(--s));
}

@media (max-width: 480px) {
  .fact { flex-wrap: wrap; }
  .fact .v { white-space: normal; text-align: right; width: 100%; }
  .login-foot { flex-wrap: wrap; }
  .login-foot span { white-space: normal; }
  .sheet-foot { white-space: normal; }
}

/* ——— Partner ticker (ambient, under nav) ——— */
.ticker {
  background: var(--ink);
  border-bottom: 1px solid var(--ink-rule);
  overflow: hidden;
  height: calc(44px * var(--s));
  display: flex;
  align-items: center;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(48px * var(--s));
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--ink), transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: calc(36px * var(--s));
  width: max-content;
  animation: tickerScroll 55s linear infinite;
  padding-left: calc(24px * var(--s));
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(28px * var(--s));
  flex: 0 0 auto;
  opacity: 0.92;
  transition: opacity 120ms ease;
  text-decoration: none;
}
.ticker-item:hover { opacity: 1; }
.ticker-item img {
  height: calc(22px * var(--s));
  width: auto;
  max-width: calc(140px * var(--s));
  object-fit: contain;
  background: transparent;
  /* no invert, no white plate — logo sits on ink bar */
  filter: none;
}
/* Color logos that already work on dark (BAM HAUS from poster, etc.) */
.ticker-item img.logo-color {
  filter: none;
}
.ticker-sep {
  width: 1px;
  height: calc(14px * var(--s));
  background: var(--ink-rule);
  flex: 0 0 auto;
}

/* Home bottom: logo strip (static row — same logos as ticker, not text) */
.partner-logo-strip {
  margin-top: calc(28px * var(--s));
  padding-top: calc(18px * var(--s));
  border-top: 1px solid var(--paper-rule);
}
.partner-logo-strip .strip-label {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 calc(12px * var(--s));
}
.partner-logo-strip .strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(18px * var(--s)) calc(28px * var(--s));
}
.partner-logo-strip a {
  display: inline-flex;
  align-items: center;
  height: calc(36px * var(--s));
  opacity: 0.9;
}
.partner-logo-strip a:hover { opacity: 1; }
.partner-logo-strip img {
  height: calc(28px * var(--s));
  width: auto;
  max-width: calc(140px * var(--s));
  object-fit: contain;
  background: transparent !important;
  box-shadow: none;
  filter: none;
}

/* Partners page logo grid */
.wall-cell {
  align-items: center;
  text-align: center;
  min-height: calc(120px * var(--s));
  justify-content: center;
  gap: calc(10px * var(--s));
}
.wall-cell .logo-wrap {
  height: calc(48px * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.wall-cell .logo-wrap img {
  max-height: calc(48px * var(--s));
  max-width: 90%;
  width: auto;
  object-fit: contain;
}
.wall-cell .pn {
  font-size: calc(14px * var(--s));
}

.modal-panel {
  width: min(calc(960px * var(--s)), calc(100vw - 32px));
  max-height: min(90vh, 1000px);
}


/* ——— Ticker: logo + name + dividers ——— */
.ticker {
  height: calc(48px * var(--s));
}
.ticker-track {
  gap: 0;
  align-items: center;
}
.ticker-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: calc(10px * var(--s));
  height: calc(32px * var(--s));
  padding: 0 calc(18px * var(--s));
  opacity: 0.95;
  text-decoration: none;
  color: rgba(241, 237, 224, 0.88);
  white-space: nowrap;
}
.ticker-item:hover {
  opacity: 1;
  color: var(--paper);
}
.ticker-item img {
  height: calc(20px * var(--s));
  width: auto;
  max-width: calc(88px * var(--s));
  object-fit: contain;
  background: transparent !important;
  filter: none;
  display: block;
  flex-shrink: 0;
}
.ticker-item img.logo-color {
  filter: none;
}
.ticker-item .ticker-name {
  font-family: var(--font-mono);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1;
}
.ticker-sep {
  width: 1px;
  height: calc(16px * var(--s));
  background: rgba(241, 237, 224, 0.14);
  flex: 0 0 auto;
  align-self: center;
}

/* Paper strip / partners page: no white plate behind logos */
.partner-logo-strip a,
.wall-cell .logo-wrap {
  background: transparent !important;
}
.partner-logo-strip img,
.wall-cell .logo-wrap img {
  background: transparent !important;
  filter: none;
}

/* OG person lines: Name dark · Company muted, one person per row */
.person-lines {
  display: flex;
  flex-direction: column;
  gap: calc(4px * var(--s));
  margin-top: calc(6px * var(--s));
}
.person-line,
.person-lines .person-line {
  font-size: calc(13px * var(--s));
  line-height: 1.35;
  color: var(--ink);
}
.person-line .nm {
  font-weight: 600;
  color: var(--ink);
}
.person-line .co {
  font-weight: 400;
  color: var(--steel);
}
.person-line .mod-label {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}
.tape-row .person-lines {
  margin-top: calc(4px * var(--s));
}
.tape-row.is-current .person-line .nm {
  color: var(--paper);
}
.tape-row.is-current .person-line .co,
.tape-row.is-current .person-line .mod-label {
  color: rgba(241, 237, 224, 0.55);
}
.tl-row.is-current .person-line .nm {
  color: var(--paper);
}
.tl-row.is-current .person-line .co,
.tl-row.is-current .person-line .mod-label {
  color: rgba(241, 237, 224, 0.55);
}
.stage-card .person-lines {
  margin: 0 0 calc(14px * var(--s));
}

/* Login: fit viewport without scroll when possible */
#view-login {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
.login-desk {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.login-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-top: clamp(16px, 4vh, 64px);
  padding-bottom: clamp(12px, 3vh, 40px);
}
.login-desk-foot {
  flex-shrink: 0;
}
@media (max-height: 780px) {
  #view-login {
    --login-s: 1.15;
  }
  .login-shell {
    padding-top: 16px;
    padding-bottom: 12px;
  }
}
@media (max-height: 680px) {
  #view-login {
    --login-s: 1.05;
  }
  .login-desk-foot {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Mobile web: prevent horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
#view-app {
  max-width: 100vw;
  overflow-x: hidden;
}
.app-main {
  max-width: 100%;
  box-sizing: border-box;
}
.modal-panel {
  max-width: calc(100vw - 24px);
}
.tape-row {
  align-items: start;
}

/* Time simulator (dev / preview July 22 day-of) */
.time-sim-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  width: 220px;
  background: #0D130F;
  color: #F1EDE0;
  border: 1px solid #26332B;
  border-radius: 4px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.time-sim-panel .ts-head {
  color: #8FC9A8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.time-sim-panel .ts-clock {
  color: rgba(241,237,224,0.7);
  margin-bottom: 10px;
  font-size: 11px;
}
.time-sim-panel .ts-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.time-sim-panel input[type="number"] {
  width: 48px;
  background: #141C16;
  border: 1px solid #26332B;
  color: #F1EDE0;
  padding: 6px;
  border-radius: 2px;
  font: inherit;
}
.time-sim-panel button {
  font: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #1C4A33;
  color: #F1EDE0;
  border: 0;
  border-radius: 2px;
  padding: 6px 8px;
  cursor: pointer;
}
.time-sim-panel .ts-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.time-sim-panel .ts-presets button {
  background: #141C16;
  border: 1px solid #26332B;
  font-size: 9px;
  padding: 5px 6px;
}
.time-sim-panel .ts-presets button:hover {
  border-color: #8FC9A8;
}
.time-sim-panel .ts-clear {
  width: 100%;
  background: transparent;
  border: 1px solid #26332B;
  color: #5E6A60;
}
.time-sim-panel .ts-clear:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@media (max-width: 640px) {
  .time-sim-panel {
    right: 8px;
    bottom: 56px;
    width: min(220px, calc(100vw - 16px));
  }
}

/* Content protection CSS (from WV ContentGuard era) */
body.portal-protected,
#view-app {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#view-app input,
#view-app textarea,
#view-login input {
  -webkit-user-select: text !important;
  user-select: text !important;
}
#view-app img {
  -webkit-user-drag: none;
  user-drag: none;
}
a img { pointer-events: auto; }
@media print {
  body * { visibility: hidden !important; }
  html::after {
    content: "Shared in confidence with confirmed guests. Do not redistribute.";
    visibility: visible;
    display: block;
    padding: 40px;
    text-align: center;
  }
}

/* Full interview cards are clickable links */
a.iv-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--dur-ui), box-shadow var(--dur-ui), transform var(--dur-micro);
}
a.iv-card:hover {
  border-top-color: var(--currency-green);
  box-shadow: 0 4px 18px rgba(13, 19, 15, 0.08);
}
a.iv-card:hover .iv-link {
  color: var(--currency-green);
}
a.iv-card .iv-link {
  text-decoration: none;
}
a.iv-card .iv-name {
  color: var(--ink);
}
a.interview-mini-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.interview-mini-link:hover .who {
  color: var(--currency-green);
}
