/* Momentum: warm paper, oversized type, pills and a bento hero. */

body.jn-theme-momentum {
  --th-bg: #f6f4ee;
  --th-surface: #fff;
  --th-soft: #ece9df;
  --th-ink: #15140f;
  --th-muted: #5f5d54;
  --th-line: rgba(21, 20, 15, .12);
  --th-accent-text: color-mix(in srgb, rgb(var(--clr-primary-code)) 85%, #000);
  --mom-lime: #d7f25c;
  --mom-panel: #15140f;
  --mom-panel-text: #f6f4ee;
}

body.jn-theme-momentum.dark-mode {
  --th-bg: #12110d;
  --th-surface: #1c1b16;
  --th-soft: #26251e;
  --th-ink: #f4f1e8;
  --th-muted: #a8a59a;
  --th-line: rgba(244, 241, 232, .14);
  --mom-panel: #1c1b16;
}

/* Header */
.mom-header {
  position: sticky;
  inset-block-start: 12px;
  z-index: 1030;
  padding-top: 12px;
}

.mom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 10px 8px 22px;
  border: 1px solid var(--th-line);
  border-radius: 100px;
  background: color-mix(in srgb, var(--th-surface) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}

[dir="rtl"] .mom-nav {
  padding: 8px 22px 8px 10px;
}

.mom-nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mom-nav-end .th-link-plain {
  padding: 0 8px;
}

/* Hero */
.mom-hero {
  padding-block: clamp(36px, 6vw, 72px) clamp(32px, 4vw, 48px) !important;
}

.mom-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--th-line);
  border-radius: 100px;
  background: var(--th-surface);
  font-size: 14px;
  font-weight: 600;
}

.mom-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--th-accent);
  animation: mom-pulse 1.8s ease-out infinite;
}

@keyframes mom-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--clr-primary-code), .55); }
  100% { box-shadow: 0 0 0 10px rgba(var(--clr-primary-code), 0); }
}

.mom-hero-title {
  max-width: 15ch;
  margin: 22px 0 0;
  font-size: clamp(2.75rem, 7.6vw, 6.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.mom-hero-title em {
  font-style: normal;
  color: var(--th-accent-text);
}

.mom-hero-lede {
  max-width: 560px;
  margin-top: 22px;
}

.mom-hero-lede p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.mom-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 820px;
  margin-top: 30px;
  padding: 8px 8px 8px 22px;
  border: 1px solid var(--th-line);
  border-radius: 100px;
  background: var(--th-surface);
  box-shadow: 0 14px 40px rgba(21, 20, 15, .08);
}

[dir="rtl"] .mom-search {
  padding: 8px 22px 8px 8px;
}

.mom-search .th-field + .th-field {
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--th-line);
}

.mom-search .th-btn {
  min-height: 52px;
  padding: 0 28px;
}

.mom-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}

.mom-popular .th-chip {
  background: transparent;
  border: 1px solid var(--th-line);
}

/* Bento */
.mom-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(170px, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 5vw, 56px);
}

.mom-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  text-decoration: none;
}

.mom-tile strong {
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}

.mom-tile span {
  font-weight: 500;
}

.mom-tile-photo {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  position: relative;
  padding: 0;
  background: var(--th-accent);
}

.mom-tile-photo img {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  width: 96%;
  max-height: 104%;
  object-fit: contain;
  object-position: bottom;
  transform: translateX(-50%);
}

[dir="rtl"] .mom-tile-photo img {
  transform: translateX(50%);
}

.mom-tile-ink {
  grid-column: 6 / span 3;
  background: var(--mom-panel);
  color: var(--mom-panel-text);
}

.mom-tile-ink strong {
  color: var(--mom-panel-text);
}

.mom-tile-lime {
  grid-column: 9 / span 4;
  background: var(--mom-lime);
  color: #15140f;
}

.mom-tile-lime strong {
  color: #15140f;
}

.mom-tile-plain {
  grid-column: 6 / span 4;
  border: 1px solid var(--th-line);
  background: var(--th-surface);
}

.mom-tile-cta {
  grid-column: 10 / span 3;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: var(--th-soft);
  color: var(--th-ink);
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  transition: background-color .18s, color .18s;
}

.mom-tile-cta span {
  font-weight: 700;
}

.mom-tile-cta:hover {
  background: var(--th-ink);
  color: var(--th-bg);
}

.mom-tile-cta .th-arrow {
  width: 26px;
  height: 26px;
}

/* Logos */
.mom-logos {
  padding-block: 30px 40px !important;
  overflow: hidden;
}

.mom-logos-title {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.mom-marquee {
  display: flex;
  width: max-content;
  animation: mom-marquee 38s linear infinite;
}

/* The scroll maths assumes the track starts at the left edge. */
[dir="rtl"] .mom-marquee {
  direction: ltr;
}

.mom-marquee:hover {
  animation-play-state: paused;
}

.mom-marquee-run {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-inline-end: 72px;
}

.mom-marquee img {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.dark-mode .mom-marquee img {
  filter: brightness(0) invert(1);
  opacity: .8;
}

@keyframes mom-marquee {
  to { transform: translateX(-50%); }
}

/* Sections */
.mom-section {
  padding-block: clamp(56px, 8vw, 104px) !important;
}

.mom-section-tint {
  background: var(--th-surface);
}

.mom-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.mom-head > div {
  max-width: 760px;
}

.mom-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--th-accent-text);
  font-size: 15px;
  font-weight: 600;
}

.mom-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* Categories: hairline rows */
.mom-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  border-top: 1px solid var(--th-line);
}

.mom-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--th-line);
  color: var(--th-ink);
  text-decoration: none;
  transition: padding .18s, color .18s;
}

.mom-cat:hover {
  padding-inline-start: 16px;
  color: var(--th-accent-text);
}

.mom-cat img {
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.mom-cat-name {
  flex: 1;
  min-width: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.015em;
}

.mom-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 9px;
  border-radius: 100px;
  background: var(--th-soft);
  color: var(--th-ink);
  font-size: 13px;
  font-weight: 600;
}

/* Job card */
.mom-job {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--th-line);
  background: var(--th-bg);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.mom-job:hover {
  transform: translateY(-4px);
  border-color: var(--th-ink);
  box-shadow: 0 18px 40px rgba(21, 20, 15, .1);
}

.mom-job-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mom-job-logo {
  display: flex;
  align-items: center;
  height: 40px;
  max-width: 130px;
}

/* Company logos are usually drawn for light backgrounds. */
.dark-mode .mom-job-logo {
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff;
}

.mom-job-logo img {
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
}

.mom-job-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.mom-job-title a {
  font: inherit;
  color: var(--th-ink);
  text-decoration: none;
}

.mom-job-title a:hover {
  color: var(--th-accent-text);
}

.mom-job-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
  font-size: 14px;
}

.mom-job-meta a {
  color: var(--th-ink);
  font-weight: 600;
  text-decoration: none;
}

.mom-job-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.mom-job-foot strong {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
}

.mom-job-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--th-ink);
  color: var(--th-bg);
  transition: background-color .18s;
}

.mom-job-go:hover {
  background: var(--th-accent);
  color: #fff;
}

/* How it works */
.mom-steps-panel {
  padding: clamp(28px, 5vw, 64px);
  background: var(--mom-panel);
  color: var(--mom-panel-text);
}

.mom-head-invert h2 {
  color: var(--mom-panel-text) !important;
}

.mom-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
}

.mom-steps li {
  padding-top: 18px;
  border-top: 1px solid rgba(246, 244, 238, .24);
}

.mom-step-num {
  display: block;
  margin-bottom: 26px;
  color: var(--mom-lime);
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

.mom-steps h3 {
  margin-bottom: 8px;
  color: var(--mom-panel-text) !important;
  font-size: 20px;
  font-weight: 700;
}

.mom-steps p {
  margin: 0;
  color: rgba(246, 244, 238, .72) !important;
  font-size: 15px;
  line-height: 1.55;
}

/* Testimonials: masonry */
.mom-quotes {
  columns: 3;
  column-gap: 16px;
}

.mom-quote {
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 24px;
  border: 1px solid var(--th-line);
  background: var(--th-surface);
}

.mom-quote:nth-child(3n + 1) {
  background: var(--mom-lime);
  border-color: transparent;
}

.mom-quote:nth-child(3n + 1) :is(blockquote, strong, small) {
  color: #15140f !important;
}

.mom-quote blockquote {
  margin: 0 0 22px;
  color: var(--th-ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.mom-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mom-quote img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.mom-quote strong,
.mom-quote small {
  display: block;
}

/* Blog */
.mom-posts {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
}

.mom-post {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--th-line);
  background: var(--th-bg);
  color: var(--th-ink);
  text-decoration: none;
  transition: border-color .18s;
}

.mom-post:hover {
  border-color: var(--th-ink);
  color: var(--th-ink);
}

.mom-post img {
  flex: 0 0 42%;
  width: 42%;
  min-height: 190px;
  object-fit: cover;
}

.mom-post-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
}

.mom-post strong {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.mom-post-lead {
  grid-row: 1 / span 2;
  flex-direction: column;
}

.mom-post-lead img {
  flex: 1 1 auto;
  width: 100%;
  min-height: 260px;
  max-height: 340px;
}

.mom-post-lead strong {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -.02em;
}

/* CTA */
.mom-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--th-accent);
}

.mom-cta h2 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.mom-cta .th-subscribe input {
  border-color: transparent;
  background: #fff;
  color: #15140f;
}

.mom-cta .th-subscribe input::placeholder {
  color: #5f5d54;
}

.mom-cta .th-btn-ink {
  background: #15140f;
  color: #fff;
}

.mom-cta .th-btn-ink:hover {
  background: #000;
  color: #fff;
}

/* Footer */
.mom-footer {
  padding-block: clamp(48px, 7vw, 80px) 28px !important;
  background: var(--mom-panel);
  color: var(--mom-panel-text);
  overflow: hidden;
}

.mom-footer-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.mom-footer-about p {
  max-width: 400px;
  margin: 18px 0;
  color: rgba(246, 244, 238, .72) !important;
  line-height: 1.6;
}

.mom-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mom-footer h4 {
  margin-bottom: 14px;
  color: var(--mom-panel-text) !important;
  font-size: 15px;
  font-weight: 700;
}

.mom-footer-cols li a {
  display: inline-block;
  padding: 6px 0;
  color: rgba(246, 244, 238, .72);
  text-decoration: none;
}

.mom-footer-cols li a:hover {
  color: var(--mom-lime);
}

.mom-wordmark {
  margin: clamp(32px, 5vw, 56px) 0 0;
  color: var(--mom-panel-text) !important;
  font-family: var(--heading-font);
  font-size: clamp(4rem, 17vw, 15rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.mom-copy {
  margin: 18px 0 0;
  color: rgba(246, 244, 238, .6) !important;
  font-size: 14px;
}

/* Page title band on inner pages */
body.jn-theme-momentum .bg-dark {
  background: var(--mom-panel) !important;
}

/* Inner pages */
body.jn-theme-momentum .job-card,
body.jn-theme-momentum .box-style {
  border-radius: var(--appearance-card-border-radius);
}

@media (max-width: 1199.98px) {
  .mom-nav {
    padding: 6px 8px 6px 18px;
  }
}

@media (max-width: 991.98px) {
  .mom-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .mom-tile-photo {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 340px;
  }

  .mom-tile-ink,
  .mom-tile-lime,
  .mom-tile-plain,
  .mom-tile-cta {
    grid-column: auto;
    min-height: 150px;
  }

  .mom-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .mom-quotes {
    columns: 2;
  }

  .mom-posts {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .mom-post-lead {
    grid-row: auto;
  }

  .mom-cta,
  .mom-footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .mom-search {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 24px;
  }

  [dir="rtl"] .mom-search {
    padding: 12px;
  }

  .mom-search .th-field {
    flex: none;
    padding-inline: 6px;
  }

  .mom-search .th-field + .th-field {
    padding-inline-start: 6px;
    border-inline-start: 0;
    border-top: 1px solid var(--th-line);
  }

  .mom-search .th-btn {
    margin-top: 8px;
  }

  .mom-cats {
    grid-template-columns: 1fr;
  }

  .mom-quotes {
    columns: 1;
  }

  .mom-post {
    flex-direction: column;
  }

  .mom-post img {
    flex: none;
    width: 100%;
    height: 190px;
  }

  .mom-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .mom-steps {
    grid-template-columns: 1fr;
  }

  .mom-step-num {
    margin-bottom: 12px;
  }
}
