/* The Underwriting Desk — a tactile workbench for setting, reading, and repaying a facility. */

:root {
  --desk-charcoal: #151719;
  --desk-panel: #202326;
  --desk-line: rgba(255, 255, 255, 0.2);
}

.home-hero {
  padding-block: clamp(64px, 7vw, 104px) clamp(54px, 6vw, 86px);
}

.home-hero-grid { grid-template-columns: minmax(0, 740px); }
.home-hero-copy h1 { font-size: clamp(68px, 6.9vw, 106px); }
.home-term-strip { display: none; }

.desk-workbench {
  position: relative;
  padding: 38px 0 clamp(104px, 10vw, 150px);
  overflow: hidden;
  color: #f8f6f2;
  background-color: var(--desk-charcoal);
}

.desk-workbench-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.25vw, 36px);
}

.desk-station {
  display: grid;
  grid-template-rows: auto 1fr;
}

.desk-station h2 {
  min-height: 42px;
  margin: 0 0 24px;
  padding: 0 12px 15px;
  border-bottom: 1px solid var(--desk-line);
  color: #f3efea;
  font-size: 15px;
  font-weight: 520;
  letter-spacing: -0.01em;
}

.desk-station h2 span {
  margin-right: 16px;
  color: #ef2f33;
  font-family: var(--home-mono);
}

.desk-control-card,
.desk-station .home-risk-card,
.desk-repayment-copy {
  height: 100%;
  min-height: 460px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: var(--desk-panel);
  color: #f8f6f2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.desk-control-card {
  display: grid;
  gap: 26px;
}

.desk-control-card label {
  display: grid;
  align-content: start;
  gap: 11px;
}

.desk-control-card label > span {
  font-size: 14px;
}

.desk-control-card output {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.desk-control-card input {
  width: 100%;
  accent-color: #ef2f33;
}

.desk-control-card small {
  justify-self: end;
  color: #bcbfc1;
  font-family: var(--home-mono);
  font-size: 11px;
}

.desk-control-card select {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.desk-station .home-risk-card { width: 100%; margin: 0; }

.desk-repayment-copy > p {
  margin: 0 0 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: #fffdfa;
  font-size: clamp(23px, 1.8vw, 29px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.desk-repayment-copy ol { margin: 0; padding: 0; list-style: none; }
.desk-repayment-copy li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: center; padding: 14px 0; }
.desk-repayment-copy .home-proof-icon { color: #ef2f33; }
.desk-repayment-copy strong { font-size: 14px; font-weight: 480; }

.home-disclosure {
  width: min(calc(100% - 72px), 1250px);
  margin: clamp(-96px, -6vw, -76px) auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(35, 30, 27, 0.18);
  background: #f8f6f2;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.home-disclosure::before {
  content: "";
  position: absolute;
  inset: -11px 18px auto;
  height: 11px;
  border: 1px solid rgba(35, 30, 27, 0.14);
  border-bottom: 0;
  background: #eee9e0;
}

.home-story-bridge {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  min-height: clamp(480px, 45vw, 680px);
  border-bottom: 1px solid rgba(200, 16, 30, 0.28);
  background: var(--home-paper);
}

.home-story-bridge-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(56px, 6vw, 92px) clamp(28px, 4.6vw, 72px);
}

.home-story-bridge h2 {
  max-width: 9.5ch;
  font-size: clamp(52px, 4.8vw, 76px);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.home-story-bridge h2 span {
  color: var(--home-carmine);
}

.home-story-bridge-photo {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

.home-story-bridge-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.home-section:not(.home-disclosure) { border-bottom-color: rgba(200, 16, 30, 0.28); }
.home-capital { background: #202326; }

.interior-page { background: #ece7df; }
.interior-page main { background: #f8f6f2; }
.interior-page .site-header { background: rgba(248, 246, 242, 0.97); }

.story-page .archive-hero { background: #17191b; color: #f8f6f2; }
.story-page .archive-path { border-top-color: rgba(248, 246, 242, 0.62); }
.story-page .archive-path-step--credit .archive-path-symbol { color: #f8f6f2; }
.story-page .archive-path-label { color: rgba(248, 246, 242, 0.68); }
.story-page .archive-chapter { border-bottom-color: rgba(200, 16, 30, 0.3); }
.story-page .archive-wide-photo,
.story-page .archive-photo-pair,
.story-page .archive-coin-grid,
.story-page .archive-book-grid,
.story-page .archive-data-science-grid,
.story-page .archive-credit-grid {
  padding: 24px;
  border: 1px solid rgba(35, 30, 27, 0.16);
  background: #ede8df;
}

@media (max-width: 1100px) {
  .desk-workbench-grid { grid-template-columns: 1fr 1fr; }
  .desk-station-repayment { grid-column: 1 / -1; }
  .desk-repayment-copy {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
  }

  .desk-repayment-copy > p {
    margin: 0;
    padding: 0 48px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.42);
    border-bottom: 0;
  }

  .home-story-bridge {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 720px) {
  .home-hero { padding-block: 46px 56px; }
  .home-hero-copy h1 { font-size: clamp(50px, 15vw, 66px); }
  .desk-workbench { padding-top: 32px; padding-bottom: 112px; }
  .desk-workbench-grid { grid-template-columns: 1fr; }
  .desk-station-repayment { grid-column: auto; }
  .desk-control-card,
  .desk-station .home-risk-card,
  .desk-repayment-copy { min-height: auto; }
  .desk-repayment-copy { display: block; }
  .desk-repayment-copy > p {
    margin: 0 0 30px;
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  }
  .home-disclosure { width: calc(100% - 28px); transform: none; }
  .home-story-bridge {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-story-bridge-copy {
    min-height: 390px;
    padding: 54px var(--home-gutter) 48px;
  }
  .home-story-bridge h2 {
    max-width: 10ch;
    font-size: clamp(48px, 14vw, 64px);
  }
  .home-story-bridge-photo {
    min-height: 360px;
  }
  .story-page .archive-wide-photo,
  .story-page .archive-photo-pair,
  .story-page .archive-coin-grid,
  .story-page .archive-book-grid,
  .story-page .archive-data-science-grid,
  .story-page .archive-credit-grid { padding: 0; border: 0; background: transparent; }
}
