:root {
  --site-bg: #f4f6f7;
  --site-ink: #101820;
  --site-muted: #5b6672;
  --header-bg: #101820;
  --header-ink: #ffffff;
  --header-line: rgba(255, 255, 255, .16);
  --header-link-border: rgba(255, 255, 255, .24);
  --header-link-hover: rgba(255, 255, 255, .08);
  --accent: #f4a928;
  --accent-strong: #0b6f9f;
  --button-bg: #f4a928;
  --button-ink: #101820;
  --hero-overlay: rgba(8, 13, 18, .92);
  --card-bg: #ffffff;
  --card-border: #111111;
  --dark-section-bg: #101820;
  --dark-card-bg: #16212d;
  --dark-card-border: rgba(255, 255, 255, .2);
  --footer-bg: #0b1117;
  --footer-ink: #ffffff;
  --footer-heading: #ffffff;
  --footer-muted: rgba(255, 255, 255, .72);
  --footer-line: rgba(255, 255, 255, .16);
}

.affinity-site .site-brand img {
  max-width: 260px;
}

.affinity-site .site-header {
  border-bottom: 1px solid rgba(244, 169, 40, .28);
}

.affinity-site .site-topbar {
  background: #0b1117;
}

.affinity-site .banner-five-main-wrapper {
  background-position: center;
}

.affinity-site .banner-five-main-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(135deg, rgba(244, 169, 40, .15), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 64px);
}

.affinity-site .service-wrapper7 {
  border-top-width: 4px;
}

.affinity-site .service-wrapper7 .icon {
  background: #101820;
  color: #f4a928;
}

.affinity-site .section-dark,
.affinity-site .project-bg {
  background:
    linear-gradient(135deg, rgba(244, 169, 40, .12), transparent 42%),
    #101820;
}

.affinity-site .project-single2 .content,
.affinity-site .project-card__body {
  border-top: 4px solid #f4a928;
}

.affinity-site .site-btn-primary:hover,
.affinity-site .site-btn-primary:focus {
  background: #ffbd43;
}

.affinity-site .page-hero--split {
  min-height: 470px;
  align-items: center;
}

.affinity-site .page-hero {
  border-bottom: 10px solid #f4a928;
  background-position: center;
}

.affinity-site .page-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 8, 12, .96) 0%, rgba(5, 8, 12, .86) 48%, rgba(5, 8, 12, .44) 100%);
}

.affinity-site .page-hero h1 {
  max-width: 980px;
  color: #ffffff;
  font-size: clamp(2.6rem, 5.8vw, 5.9rem);
  line-height: .9;
  text-transform: uppercase;
}

.affinity-site .page-hero__copy {
  max-width: 800px;
  color: rgba(255, 255, 255, .84);
  font-weight: 800;
}

.affinity-site .page-hero .eyebrow {
  width: fit-content;
  padding: .28rem .5rem;
  border: 1px solid rgba(244, 169, 40, .76);
  color: #f4a928;
  background: rgba(5, 8, 12, .68);
}

.affinity-site .page-hero--split::after,
.affinity-site .portfolio-strategy::before,
.affinity-site .process-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(16, 24, 32, .06) 0 1px, transparent 1px 58px);
  z-index: 0;
}

.affinity-site .portfolio-strategy,
.affinity-site .process-band {
  position: relative;
  isolation: isolate;
}

.affinity-site .page-hero--split > .site-container,
.affinity-site .portfolio-strategy > .site-container,
.affinity-site .process-band > .site-container {
  position: relative;
  z-index: 1;
}

.affinity-site .strategy-lead,
.affinity-site .sales-lead,
.affinity-site .ledger-aside {
  padding-left: 1rem;
  border-left: 6px solid #f4a928;
}

.affinity-services-page .sales-grid,
.affinity-markets-page .section-head,
.affinity-about-page .split-grid,
.affinity-ledger .portfolio-method--affinity,
.affinity-market-detail .service-detail-shell,
.affinity-service-detail .service-detail-shell {
  border: 1px solid #101820;
  border-left: 10px solid #f4a928;
  background:
    linear-gradient(135deg, rgba(244, 169, 40, .08), transparent 44%),
    #ffffff;
  box-shadow: 10px 10px 0 rgba(16, 24, 32, .1);
}

.affinity-services-page .sales-grid,
.affinity-about-page .split-grid,
.affinity-ledger .portfolio-method--affinity,
.affinity-market-detail .service-detail-shell,
.affinity-service-detail .service-detail-shell {
  padding: clamp(1rem, 3vw, 2rem);
}

.affinity-site .sales-points > div,
.affinity-site .process-grid > article,
.affinity-site .market-fit-grid > article {
  border-top: 4px solid #f4a928;
}

.affinity-site .home-work-entry--affinity,
.affinity-site .portfolio-method-section--affinity {
  background:
    linear-gradient(135deg, rgba(244, 169, 40, .1), transparent 46%),
    repeating-linear-gradient(90deg, rgba(16, 24, 32, .05) 0 1px, transparent 1px 64px),
    #f4f6f7;
}

.affinity-site .scope-ledger--affinity,
.affinity-site .portfolio-feature--affinity,
.affinity-site .portfolio-register-group,
.affinity-site .method-lane {
  border-color: #101820;
}

.affinity-site .scope-ledger--affinity div {
  border-left: 5px solid #f4a928;
}

.affinity-site .portfolio-feature--affinity {
  box-shadow: 0 22px 54px rgba(16, 24, 32, .16);
}

.affinity-site .portfolio-feature--affinity .portfolio-feature__media--collage {
  background:
    linear-gradient(135deg, rgba(244, 169, 40, .18), transparent 45%),
    #101820;
}

.affinity-site .portfolio-feature--affinity .portfolio-feature__content {
  border-left: 6px solid #f4a928;
}

.affinity-site .portfolio-feature--affinity .portfolio-feature__facts {
  background: #fff9ee;
  border-color: #101820;
}

.affinity-site .portfolio-method--affinity .method-lane article > span {
  color: #f4a928;
}

.affinity-site .portfolio-register-section--affinity {
  background: #ffffff;
}

.affinity-site .portfolio-register-section--affinity .portfolio-register-aside {
  padding-left: 1rem;
  border-left: 6px solid #f4a928;
}

.affinity-site .portfolio-register-section--affinity .portfolio-register-group header {
  background:
    linear-gradient(90deg, rgba(244, 169, 40, .18), transparent),
    #ffffff;
}

.affinity-site .portfolio-register-section--affinity .portfolio-register-row {
  border-left: 4px solid transparent;
}

.affinity-site .portfolio-register-section--affinity .portfolio-register-row:hover,
.affinity-site .portfolio-register-section--affinity .portfolio-register-row:focus {
  border-left-color: #f4a928;
  background: #fff9ee;
}

.affinity-site .project-register-preview--affinity .project-register-preview__row {
  border-left: 4px solid transparent;
}

.affinity-site .project-register-preview--affinity .project-register-preview__row:hover,
.affinity-site .project-register-preview--affinity .project-register-preview__row:focus {
  border-left-color: #f4a928;
  background: rgba(244, 169, 40, .08);
}

.affinity-site .project-bg .market-fit-grid > article {
  background: #16212d;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: none;
}

.affinity-site .project-bg .market-fit-grid strong,
.affinity-site .project-bg .market-fit-grid span {
  color: #ffffff;
}

.affinity-site .project-bg .market-fit-grid span,
.affinity-site .section-dark .service-row__lead {
  color: rgba(255, 255, 255, .74);
}

.affinity-site .section-dark .service-row {
  background: #16212d;
  border-color: rgba(255, 255, 255, .2);
  box-shadow: none;
}

.affinity-site .section-dark .service-row h2,
.affinity-site .section-dark .rich-copy,
.affinity-site .section-dark .rich-copy p {
  color: #ffffff;
}

.affinity-site .section-dark .text-link {
  background: #f4a928;
  color: #101820;
  border-color: #f4a928;
}

.affinity-site .portfolio-row {
  border-left: 4px solid transparent;
}

.affinity-site .portfolio-row:hover,
.affinity-site .portfolio-row:focus {
  border-left-color: #f4a928;
  background: #fff9ee;
}

.affinity-yard-hero {
  position: relative;
  min-height: 820px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 169, 40, .2), transparent 24rem),
    linear-gradient(135deg, #05080c 0%, #111820 58%, #05080c 100%);
  color: #ffffff;
}

.affinity-yard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 54px);
  mask-image: linear-gradient(90deg, #000 0%, transparent 80%);
}

.affinity-yard-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background:
    repeating-linear-gradient(90deg, #f4a928 0 48px, #101820 48px 74px);
}

.affinity-yard-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(5, 8, 12, .98) 0%, rgba(5, 8, 12, .9) 38%, rgba(5, 8, 12, .42) 68%, rgba(5, 8, 12, .72) 100%),
    var(--hero-image);
  background-position: center right;
  background-size: cover;
  filter: saturate(.82) contrast(1.08);
}

.affinity-yard-hero__inner {
  min-height: 820px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.affinity-job-ticket {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: .7rem;
  padding: 1.2rem;
  border: 1px solid rgba(244, 169, 40, .55);
  border-left: 8px solid #f4a928;
  background: rgba(5, 8, 12, .72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.affinity-job-ticket span,
.affinity-yard-hero .eyebrow,
.affinity-hero-ledger span,
.affinity-package-row span {
  color: #f4a928;
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.affinity-job-ticket strong {
  color: #ffffff;
  padding-block: .55rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-size: .95rem;
  line-height: 1.05;
}

.affinity-yard-hero__copy {
  max-width: 980px;
}

.affinity-yard-hero__copy h1 {
  margin: .65rem 0 1.1rem;
  color: #ffffff;
  font-size: clamp(3.2rem, 7vw, 7.25rem);
  line-height: .88;
  font-weight: 950;
  text-transform: uppercase;
}

.affinity-yard-hero__copy p {
  max-width: 820px;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.58;
}

.affinity-yard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.affinity-hero-ledger {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(244, 169, 40, .55);
  background: rgba(5, 8, 12, .84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

.affinity-hero-ledger div {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.15rem;
  border-right: 1px solid rgba(244, 169, 40, .35);
}

.affinity-hero-ledger div:last-child {
  border-right: 0;
}

.affinity-hero-ledger strong {
  color: #ffffff;
  line-height: 1.24;
}

.affinity-rig-strip--field {
  border-top: 0;
}

.affinity-package-board {
  background:
    linear-gradient(90deg, rgba(244, 169, 40, .09), transparent 46%),
    #f3f1ec;
}

.affinity-package-board__grid {
  display: grid;
  gap: .85rem;
}

.affinity-package-row {
  display: grid;
  grid-template-columns: 64px 240px minmax(0, 1fr) 130px;
  gap: 1rem;
  align-items: center;
  min-height: 104px;
  padding: 1rem;
  border: 1px solid #101820;
  border-left: 10px solid #f4a928;
  background: #ffffff;
  color: #101820;
  box-shadow: 8px 8px 0 rgba(16, 24, 32, .12);
}

.affinity-package-row:hover,
.affinity-package-row:focus {
  color: #101820;
  transform: translateY(-2px);
  box-shadow: 10px 12px 0 rgba(16, 24, 32, .16);
}

.affinity-package-row strong {
  color: #101820;
  font-size: 1.25rem;
  line-height: 1.05;
}

.affinity-package-row p {
  margin: 0;
  color: #46515d;
  line-height: 1.45;
}

.affinity-package-row small {
  justify-self: end;
  color: #101820;
  font-weight: 950;
  text-transform: uppercase;
}

.affinity-site .hero-affinity {
  min-height: 760px;
  background-image:
    linear-gradient(90deg, rgba(5, 8, 12, .97) 0%, rgba(8, 13, 18, .88) 48%, rgba(8, 13, 18, .32) 100%),
    var(--hero-image);
  background-position: center right;
}

.affinity-site .hero-affinity::after {
  height: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      #f4a928 0 48px,
      #101820 48px 72px
    );
}

.affinity-site .hero-affinity .banner-three-wrapper {
  width: min(100%, 840px);
}

.affinity-site .hero-affinity .title-banner {
  max-width: 960px;
  font-size: clamp(3rem, 6vw, 5.35rem);
}

.affinity-rig-strip {
  position: relative;
  z-index: 3;
  padding-block: 0;
  background: #0b1117;
  color: #ffffff;
  border-block: 1px solid rgba(255, 255, 255, .18);
}

.affinity-rig-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-inline: 1px solid rgba(255, 255, 255, .18);
}

.affinity-rig-strip article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: .62rem;
  padding: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, .18);
  background:
    linear-gradient(135deg, rgba(244, 169, 40, .12), transparent 48%),
    #101820;
}

.affinity-rig-strip article:last-child {
  border-right: 0;
}

.affinity-rig-strip span {
  width: fit-content;
  padding: .26rem .45rem;
  border: 1px solid rgba(244, 169, 40, .85);
  color: #f4a928;
  font-size: .75rem;
  font-weight: 950;
}

.affinity-rig-strip strong {
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.08;
  font-weight: 950;
}

.affinity-rig-strip p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .95rem;
}

.affinity-scope-shop {
  padding-block: 64px;
  background: #101820;
}

.affinity-scope-shop__layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.affinity-photo-stack {
  position: relative;
  min-height: 470px;
}

.affinity-photo-stack img {
  border: 1px solid #101820;
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 24px 54px rgba(16, 24, 32, .24);
}

.affinity-photo-stack__main {
  width: 82%;
  height: 410px;
}

.affinity-photo-stack__small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 260px;
  border: 8px solid #101820;
}

.affinity-scope-shop .home-entry-copy {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 8px solid #f4a928;
  background: #101820;
  color: #ffffff;
}

.affinity-scope-shop .home-entry-copy h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.affinity-scope-shop .home-entry-copy p {
  color: rgba(255, 255, 255, .78);
  font-size: 1.04rem;
}

.affinity-bid-board {
  display: grid;
  gap: .8rem;
  margin-top: .4rem;
}

.affinity-bid-board div {
  display: grid;
  gap: .3rem;
  padding: .85rem;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
}

.affinity-bid-board span {
  color: #f4a928;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.affinity-bid-board strong {
  color: #ffffff;
  line-height: 1.28;
}

.affinity-home .tmp-service-area {
  background: #ffffff;
}

.affinity-home .service-wrapper7 {
  border-radius: 0;
  border-color: #101820;
  box-shadow: none;
}

.affinity-home .service-wrapper7 h3 {
  font-size: 1.35rem;
}

.affinity-home .service-wrapper7 p {
  font-size: 1rem;
  line-height: 1.55;
}

.affinity-home .service-wrapper7 .read-more-btn-border {
  width: fit-content;
  margin-top: auto;
}

.affinity-home .split-grid .media-block,
.affinity-home .project-register-preview__row {
  border-radius: 0;
}

@media (max-width: 1040px) {
  .affinity-yard-hero__inner {
    grid-template-columns: 1fr;
  }

  .affinity-job-ticket {
    align-self: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .affinity-job-ticket span {
    grid-column: 1 / -1;
  }

  .affinity-package-row {
    grid-template-columns: 56px minmax(180px, .35fr) minmax(0, 1fr);
  }

  .affinity-package-row small {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .affinity-rig-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affinity-rig-strip article:nth-child(2) {
    border-right: 0;
  }

  .affinity-rig-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }

  .affinity-scope-shop__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .affinity-yard-hero,
  .affinity-yard-hero__inner {
    min-height: auto;
  }

  .affinity-yard-hero__inner {
    padding-block: 3.5rem 4.5rem;
  }

  .affinity-job-ticket,
  .affinity-hero-ledger,
  .affinity-package-row {
    grid-template-columns: 1fr;
  }

  .affinity-job-ticket strong {
    border-bottom: 0;
    padding-block: .15rem;
  }

  .affinity-yard-hero__copy h1 {
    font-size: clamp(2rem, 10.5vw, 2.8rem);
  }

  .affinity-hero-ledger div {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 169, 40, .35);
  }

  .affinity-hero-ledger div:last-child {
    border-bottom: 0;
  }

  .affinity-package-row small {
    grid-column: auto;
  }

  .affinity-site .hero-affinity {
    min-height: 650px;
  }

  .affinity-rig-strip__grid {
    grid-template-columns: 1fr;
  }

  .affinity-rig-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }

  .affinity-rig-strip article:last-child {
    border-bottom: 0;
  }

  .affinity-photo-stack {
    min-height: auto;
  }

  .affinity-photo-stack__main,
  .affinity-photo-stack__small {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border: 1px solid #101820;
  }

  .affinity-photo-stack__small {
    margin-top: .85rem;
  }
}
